/* ========== GLOBAL TABLE STYLES ========== */
.table-avatar {
    height: 40px !important;
    width: auto !important;
    margin-right: 0.25rem !important;
}

.offcanvas-logo-show {
    height: 60px !important;
    width: auto !important;
    margin-right: 0.5rem !important;
    border-radius: var(--radius-sm) !important;
    padding: 1px !important;
    background-color: #fff !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--elevation-3) !important;
}

.td-scroll-list {
    max-height: 65px;
    overflow-y: auto;
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Email Template Preview Body Container */
.preview-body-container {
    background: var(--bg-glass-light) !important;
    box-shadow: var(--elevation-3);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 600px;
    min-height: 300px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure content inside preview fits the container (especially for fixed-width email tables) */
.preview-body-container table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.preview-body-container img {
    max-width: 100% !important;
    height: auto !important;
}

/* Attachment Pill Style - Glassmorphism */
.attachment-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    /* ~30% smaller */
    background: var(--bg-glass) !important;
    backdrop-filter: var(--blur-glass) !important;
    -webkit-backdrop-filter: var(--blur-glass) !important;
    border: 1px solid var(--border-glass-dark) !important;
    border-radius: 50rem;
    font-size: 0.75rem;
    /* ~30% smaller */
    font-weight: 500;
    color: var(--brand-primary) !important;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
    transition: var(--transition-normal) !important;
    box-shadow: var(--elevation-1);
    text-decoration: none !important;
}

.attachment-pill:hover {
    background: var(--bg-glass-heavy) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: var(--elevation-3);
    transform: translateY(-2px);
}

.attachment-pill a {
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.attachment-pill:hover a {
    color: var(--brand-primary) !important;
}

.attachment-pill i.fa-paperclip {
    margin-right: 0.35rem;
    /* Slightly smaller spacing */
    color: var(--brand-muted);
    transition: var(--transition-normal);
    font-size: 0.8rem;
    /* Smaller icon */
}

.attachment-pill:hover i.fa-paperclip {
    color: var(--brand-secondary);
}

.attachment-pill .remove-old-attachment {
    margin-left: 0.5rem;
    /* Slightly tighter */
    color: var(--brand-danger);
    cursor: pointer;
    font-size: 0.8rem;
    /* Smaller remove icon */
    padding: 3px;
    border-radius: 50%;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.attachment-pill .remove-old-attachment:hover {
    background-color: rgba(220, 53, 69, 0.1);
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    /* Playful interaction */
}

.contact-check,
.lead-checkbox {
    scale: 1.5 !important;
}

/* Communication Timeline Scroll */
.comm-timeline-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.lead-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.lead-item i {
    width: 18px;
    text-align: center;
}

.card-img {
    margin-bottom: 0.5rem;
}

/* ========== DASHBOARD SPECIFIC STYLES ========== */
.dashboard-item {
    transition: var(--transition-normal) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    box-shadow: var(--elevation-2) !important;
    margin-bottom: 0.5rem !important;
}

.dashboard-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--elevation-4) !important;
}

.dashboard-img {
    height: 60px !important;
    width: auto !important;
    max-width: 80px !important;
    object-fit: contain !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
    display: block !important;
}

.dashboard-icon-box {
    width: 60px !important;
    height: 60px !important;
    background: var(--bg-glass-heavy) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.dashboard-icon-box i {
    color: var(--brand-primary) !important;
    font-size: 1.5rem !important;
}

.dashboard-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--brand-primary) !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    text-align: left !important;
}

.dashboard-subtitle {
    font-size: 0.8rem !important;
    color: var(--brand-danger) !important;
    text-align: left !important;
    margin-bottom: 2px !important;
}

.dashboard-date {
    font-size: 0.75rem !important;
    color: var(--brand-success) !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    text-align: left !important;
}

.dashboard-badge-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.dashboard-badge {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    /* Solid brand primary with 5px shaded strips */
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 5px, transparent 5px, transparent 10px),
        var(--brand-primary) !important;
    backdrop-filter: var(--blur-glass-light) !important;
    -webkit-backdrop-filter: var(--blur-glass-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: var(--elevation-2) !important;
    border-radius: 50rem !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: var(--transition-normal) !important;
}



.dashboard-badge:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--elevation-3) !important;
    filter: brightness(1.1) !important;
}

/* ========== TAP PROFILE COVER EDIT ========== */
.cover-edit-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

/* ========== TAP PROFILE VIEW (DASHBOARD) ========== */
.tap-profile-view-wrapper {
    font-family: var(--profile-font, 'Instrument Sans', sans-serif);
}

.tap-profile-view-wrapper .mockup-card-static {
    background-color: var(--brand-bg, #ffffff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid var(--brand-secondary-50);
}

.tap-profile-view-wrapper .cover-section {
    aspect-ratio: 2 / 1;
    width: 100%;
    height: auto;
    background-image: var(--profile-cover);
    background-size: cover;
    background-position: center;
    border-bottom: 3px ridge var(--brand-secondary);
}

.tap-profile-view-wrapper .profile-photo-static {
    width: 110px;
    height: 110px;
    object-fit: cover;
    object-position: center;
    border: 3px ridge var(--brand-secondary);
    display: block;
    margin: 0 auto;
    margin-top: -55px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.tap-profile-view-wrapper .photo-shape-circle {
    border-radius: 50%;
}

.tap-profile-view-wrapper .photo-shape-rounded {
    border-radius: 20px;
}

.tap-profile-view-wrapper .photo-shape-squircle {
    border-radius: 35% 35% 35% 35%;
}

.tap-profile-view-wrapper .photo-shape-square {
    border-radius: 0;
}

.tap-profile-view-wrapper .photo-shape-landscape {
    width: 155px !important;
    height: 105px !important;
    border-radius: 12px;
    margin-top: -52px !important;
}

.tap-profile-view-wrapper .photo-shape-portrait {
    width: 105px !important;
    height: 155px !important;
    border-radius: 12px;
    margin-top: -77px !important;
}

.tap-profile-view-wrapper .identity-section {
    padding: 10px 20px 30px;
    text-align: center;
    transition: padding 0.3s ease;
}

.tap-profile-view-wrapper .profile-name-static {
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.tap-profile-view-wrapper .profile-designation-static {
    color: var(--brand-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.tap-profile-view-wrapper .brand-section-static {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.tap-profile-view-wrapper .brand-logo-static {
    width: 32px;
    height: 32px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.tap-profile-view-wrapper .brand-name-static {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.tap-profile-view-wrapper .qr-code-wrapper {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    border: 1px dashed #dee2e6;
}

.tap-profile-view-wrapper .public-link-text {
    word-break: break-all;
    color: #6c757d;
    font-size: 0.85rem;
    background: #fdfdfd;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
}

/* ========== PUBLIC INFO PAGES (About, Privacy, etc.) ========== */

.info-content {
    padding: 1rem 2rem !important;
}

.info-heading {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.info-subheading {
    color: var(--brand-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
}

.info-content p {
    color: #000;
    line-height: 1.75;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-content ul {
    color: #000;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-content ul li {
    margin-bottom: 0.3rem;
    line-height: 1.65;
    font-size: 0.9rem;
}

.info-content strong {
    color: var(--brand-primary);
}

.info-content a.text-primary {
    color: var(--brand-primary) !important;
    text-decoration: underline;
}

.info-content a.text-primary:hover {
    color: var(--brand-secondary) !important;
}

/* ========== WELCOME CAROUSEL STYLES ========== */
.welcome-carousel .carousel-item {
    min-height: 180px;
    padding: 20px 0;
}

.welcome-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.welcome-icon-box i {
    font-size: 2.5rem;
}

.carousel-indicators {
    bottom: -10px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 4px;
    background-color: var(--brand-muted);
    opacity: 0.3;
    border-radius: 2px;
    border: none;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.carousel-indicators .active {
    width: 24px;
    background-color: var(--brand-primary);
    opacity: 1;
}

.svg-primary-mask {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-color: var(--brand-primary);
}

.mask-tap {
    -webkit-mask: url("../assets/svg/tap.svg") no-repeat center / contain;
    mask: url("../assets/svg/tap.svg") no-repeat center / contain;
}

.mask-scan {
    -webkit-mask: url("../assets/svg/scan.svg") no-repeat center / contain;
    mask: url("../assets/svg/scan.svg") no-repeat center / contain;
}

.welcome-icon-box {
    background-color: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
}

.welcome-title {
    color: var(--brand-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.welcome-desc {
    color: var(--brand-secondary);
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.5;
}

.welcome-wrapper {
    margin-bottom: 40px;
    margin-top: 20px;
}

/* ========== CROWN OVERLAP SYSTEM (MOBILE PARITY) ========== */

/* Floating premium crown badge overlay on buttons */
.btn-crown-overlap {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: var(--bg-glass-heavy) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
    color: var(--brand-warning) !important;
    border-radius: 50% !important;
    width: 15px !important;
    height: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 7.5px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--border-glass-light) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Ensure parents of overlapping elements don't clip them */
.btn.position-relative-crown,
.nav-text.sidebar-crown-overlap-container {
    position: relative !important;
    overflow: visible !important;
}

/* Sidebar Specific Overlap Crown */
.sidebar-crown-overlap-container {
    position: relative !important;
    display: inline-block !important;
}

.sidebar-crown-overlap {
    position: relative !important;
    top: -1px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin-left: 3px !important;
    background: var(--bg-glass-heavy) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
    color: var(--brand-warning) !important;
    border-radius: 50% !important;
    width: 15px !important;
    height: 15px !important;
    font-size: 7.5px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-glass-light) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Perfect vertical alignment for FontAwesome crown glyph inside button and sidebar circular badges */
.btn-crown-overlap i::before,
.sidebar-crown-overlap::before {
    margin-top: -0.5px !important;
    display: inline-block !important;
}

/* ========== SUBSCRIPTION PLANS STYLES ========== */
.plans .plans-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.plans .old-price {
    font-size: 1.1rem;
    opacity: 0.7;
}

.plans .plans-offer-box {
    border: 1px dashed var(--brand-warning) !important;
    border-radius: 16px;
    text-align: left;
}


