/* Jambvant Theme and Base Styles */

:root {
    --primary-purple: #FF8C00;
    --primary-purple-dark: #E07B00;
    --primary-purple-light: #FFB347;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --bg-light: #FFF5E1; /* cream background used across hero and panels for consistent pattern */
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --bronze: #8B5A3C;
    --silver: #A8A9A9;
    --gold: #FFD700;
    --platinum: #B997EC;
    --emerald: #50C878;
    --diamond: #1E90FF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --card-bg: var(--bg-white);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-purple: #FFB347;
    --primary-purple-dark: #FF8C00;
    --primary-purple-light: #FFC875;
    --text-dark: #e8e8e8;
    --text-gray: #b0b0b0;
    --bg-light: #1e1e1e;
    --bg-white: #121212;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    /* card background should be slightly lighter than page background in dark mode */
    --card-bg: #1b1b1b;
}

[data-theme="dark"] body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

[data-theme="dark"] .hero {
    background: #1a1a1a;
}

[data-theme="dark"] .steps-section {
    background: var(--bg-white);
}

[data-theme="dark"] .step-card {
    background: #1a1a1a;
}

[data-theme="dark"] .info-bar {
    background: #1a1a1a;
    border-color: #333;
}

[data-theme="dark"] .tier-badge.silver,
[data-theme="dark"] .tier-badge.gold,
[data-theme="dark"] .tier-badge.platinum {
    color: #1a1a1a;
}

[data-theme="dark"] .bronze-tier { background: linear-gradient(135deg, #2A2219 0%, #1F1A14 100%); }
[data-theme="dark"] .silver-tier { background: linear-gradient(135deg, #252525 0%, #1F1F1F 100%); }
[data-theme="dark"] .gold-tier { background: linear-gradient(135deg, #2A2714 0%, #1F1C10 100%); }
[data-theme="dark"] .platinum-tier { background: linear-gradient(135deg, #251F2A 0%, #1C181F 100%); }

[data-theme="dark"] .final-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 1px solid var(--primary-purple);
}

[data-theme="dark"] .cta-button {
    background: var(--primary-purple);
    color: #1a1a1a;
}

/* Light theme - final CTA has orange gradient background, so text should be white */
/* Base light theme styles (applied by default, overridden by dark theme) */
.final-cta h2 {
    color: white !important;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.final-cta .cta-note {
    color: rgba(255, 255, 255, 0.85) !important;
}

.final-cta .cta-button {
    background: white !important;
    color: #FF8C00 !important;
}

/* Dark theme overrides for final-cta text */
[data-theme="dark"] .final-cta h2 {
    color: white !important;
}

[data-theme="dark"] .final-cta p {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .final-cta .cta-note {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .final-cta .cta-button {
    background: var(--primary-purple) !important;
    color: #1a1a1a !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Skip to main content link - Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-purple);
    color: var(--bg-white);
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-purple-dark);
    outline-offset: 2px;
}

/* CTA hint text */
.hero-cta-hint,
.footer-cta-hint {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 12px;
    opacity: 0.8;
}

.footer-cta-hint {
    margin-top: 16px;
}

/* Loading skeleton styles */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, rgba(255, 140, 0, 0.1) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-button {
    height: 48px;
    width: 160px;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Content loading fade-in */
.content-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-loaded {
    opacity: 1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 32px;
}

.header-nav .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.header-nav .nav-link:hover {
    color: var(--primary-purple);
    background: rgba(255, 140, 0, 0.08);
}

.header-nav .nav-link.active {
    color: var(--primary-purple);
}

.header-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 2px;
}

[data-theme="dark"] .header-nav .nav-link {
    color: var(--text-light);
}

[data-theme="dark"] .header-nav .nav-link:hover {
    color: var(--primary-purple);
    background: rgba(255, 140, 0, 0.15);
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 8px;
    }

    .header-nav.mobile-visible {
        display: flex;
    }

    .header-nav .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    [data-theme="dark"] .header-nav {
        background: var(--bg-dark);
    }
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-right {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .header-right.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-right .btn {
        width: 100%;
        text-align: center;
    }

    .header-right .user-profile-header,
    .header-right .notifications-container {
        width: 100%;
    }

    .header-right .user-profile-header .language-btn {
        width: 100%;
        justify-content: center;
    }
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: var(--bg-light);
    border: 1px solid var(--primary-purple);
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background-color: rgba(255, 140, 0, 0.1);
}

.language-flag {
    font-size: 14px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--primary-purple);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 3000; /* Ensure above header/modal */
    display: none;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.language-option:hover {
    background-color: var(--bg-light);
}

.language-option.selected {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--primary-purple);
}

/* Theme Toggle */
.theme-toggle {
    padding: 4px 8px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
}

.theme-toggle:hover {
    background-color: rgba(255, 140, 0, 0.1);
    border-color: var(--primary-purple);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

.logo {
    font-size: 26.4px;
    font-weight: 700;
    color: var(--primary-purple);
    cursor: pointer;
}

.logo a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: inline-block;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--bg-white);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 0 100px;
    background: var(--bg-light);
    text-align: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--primary-purple);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero .highlight {
    color: var(--primary-purple);
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 24px auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 32px auto;
    padding: 16px 32px;
    background: rgba(255, 140, 0, 0.08);
    border-radius: 50px;
    max-width: fit-content;
}

.social-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.social-proof-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-purple);
}

.social-proof-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-proof-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Hero Navigation Preview */
.hero-nav-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.nav-preview-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.nav-preview-link {
    font-size: 14px;
    color: var(--primary-purple);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-preview-link:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   HERO ANIMATED - Eye-catching redesign
   ============================================ */

.hero-animated {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0 40px;
}

/* Animated badge */
.hero-badge-animated {
    animation: fadeInDown 0.8s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Main headline with word cycling */
.hero-headline-animated {
    font-size: 56px !important;
    font-weight: 800;
    line-height: 1.15 !important;
    margin-bottom: 24px !important;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline-static {
    display: block;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.hero-headline-dynamic {
    display: block;
    height: 70px;
    overflow: hidden;
}

.word-cycle {
    display: block;
    animation: wordCycle 8s ease-in-out infinite;
}

.word-cycle .word {
    display: block;
    height: 70px;
    line-height: 70px;
    color: var(--primary-purple);
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes wordCycle {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-70px); }
    50%, 70% { transform: translateY(-140px); }
    75%, 95% { transform: translateY(-210px); }
    100% { transform: translateY(-280px); }
}

/* Subheadline */
.hero-subheadline {
    font-size: 22px !important;
    color: var(--text-gray) !important;
    max-width: 600px;
    margin: 0 auto 40px !important;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.5;
}

.hero-subheadline strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* CTA Section */
.hero-cta-section {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-bottom: 40px;
}

.btn-large {
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 600;
}

.hero-cta-pulse {
    position: relative;
    overflow: hidden;
}

.hero-cta-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { width: 0; height: 0; opacity: 0.5; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

.btn-arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-cta-pulse:hover .btn-arrow {
    transform: translateX(4px);
}

/* Learn More link */
.hero-learn-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hero-learn-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Visual accent dots */
.hero-visual-accent {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.accent-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    opacity: 0.4;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.accent-dot:nth-child(2) { animation-delay: 0.2s; }
.accent-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Compact stats */
.hero-stats-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease-out 1s both;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Fadeup animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-headline-animated {
        font-size: 36px !important;
    }

    .hero-headline-dynamic {
        height: 50px;
    }

    .word-cycle .word {
        height: 50px;
        line-height: 50px;
    }

    @keyframes wordCycle {
        0%, 20% { transform: translateY(0); }
        25%, 45% { transform: translateY(-50px); }
        50%, 70% { transform: translateY(-100px); }
        75%, 95% { transform: translateY(-150px); }
        100% { transform: translateY(-200px); }
    }

    .hero-subheadline {
        font-size: 18px !important;
    }

    .hero-stats-compact {
        gap: 20px;
    }

    .stat-number {
        font-size: 22px;
    }
}

/* Scroll indicators - Up and Down buttons */
.scroll-indicator {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

[data-theme="dark"] .scroll-indicator {
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Both buttons at bottom, side by side */
.scroll-indicator.scroll-down {
    bottom: 24px;
    left: calc(50% + 6px);
    transform: none;
}

.scroll-indicator.scroll-up {
    bottom: 24px;
    left: calc(50% - 50px);
    transform: none;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.18);
}

.scroll-indicator.scroll-down:hover,
.scroll-indicator.scroll-up:hover {
    transform: scale(1.15);
}

.scroll-indicator-text {
    display: none;
}

.scroll-indicator-arrow {
    width: 12px;
    height: 12px;
    border-right: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    border-radius: 2px;
}

/* Down arrow */
.scroll-indicator.scroll-down .scroll-indicator-arrow {
    transform: rotate(45deg) translate(-2px, -2px);
    animation: scroll-bounce-down 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce-down {
    0%, 100% {
        transform: rotate(45deg) translate(-2px, -2px);
    }
    50% {
        transform: rotate(45deg) translate(1px, 1px);
    }
}

/* Up arrow */
.scroll-indicator.scroll-up .scroll-indicator-arrow {
    transform: rotate(-135deg) translate(-2px, -2px);
    animation: scroll-bounce-up 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce-up {
    0%, 100% {
        transform: rotate(-135deg) translate(-2px, -2px);
    }
    50% {
        transform: rotate(-135deg) translate(1px, 1px);
    }
}

/* Hide scroll indicator */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile: position scroll indicators lower */
@media (max-width: 768px) {
    .scroll-indicator {
        width: 40px;
        height: 40px;
        bottom: 12px;
    }

    .scroll-indicator.scroll-down {
        bottom: 12px;
        left: calc(50% + 4px);
    }

    .scroll-indicator.scroll-up {
        bottom: 12px;
        left: calc(50% - 44px);
    }

    .scroll-indicator-arrow {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   MODERN SECTIONS - Matching hero style
   ============================================ */

/* Section badge */
.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-purple);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header-animated h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header-animated p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   STEPS SECTION - Clean Card Layout
   ============================================ */
.steps-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.steps-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.steps-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.15);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   FEATURES SECTION - Why Choose Jambvant
   ============================================ */
.features-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.features-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 48px;
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(255, 140, 0, 0.12);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFF5E1 0%, #FFE4B5 50%, #FFF5E1 100%);
}

[data-theme="dark"] .testimonials-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2a1f 50%, #1a1a1a 100%);
}

.testimonials-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.author-role {
    font-size: 13px;
    color: var(--text-gray);
}

/* ============================================
   FOR YOU IF... - Target Audience Section
   ============================================ */
.for-you-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.for-you-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.for-you-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.for-you-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.for-you-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.for-you-icon {
    font-size: 32px;
    flex-shrink: 0;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.for-you-card p {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   WHY JAMBVANT - Section Intro
   ============================================ */
.why-jambvant-intro {
    padding: 80px 20px 40px;
    background: var(--bg-white);
    text-align: center;
}

.why-jambvant-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.why-jambvant-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin: 0;
}

/* ============================================
   USE CASES - What's Possible Section
   ============================================ */
.use-cases-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.use-cases-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.use-cases-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.use-case-icon {
    font-size: 28px;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-tag {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    background: rgba(255, 140, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.use-case-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   INFO BAR - Combined Recognition + Trust
   ============================================ */
.info-bar {
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tier-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B5A3C);
    color: white;
}

.tier-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A9A9);
    color: #333;
}

.tier-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.tier-badge.platinum {
    background: linear-gradient(135deg, #E5E4E2, #B997EC);
    color: #333;
}

.divider-v {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-row .trust-item {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   TIER PROGRESSION SECTION
   ============================================ */
.tier-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.tier-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.tier-section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.tier-progression {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
}

.tier-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.bronze-tier { border-color: #CD7F32; background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E6 100%); }
.silver-tier { border-color: #C0C0C0; background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%); }
.gold-tier { border-color: #FFD700; background: linear-gradient(135deg, #FFFEF0 0%, #FFF9E0 100%); }
.platinum-tier { border-color: #B997EC; background: linear-gradient(135deg, #FAF5FF 0%, #F3EAFF 100%); }

.tier-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.tier-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tier-icon-symbol {
    font-size: 20px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bronze-icon {
    background: linear-gradient(145deg, #D4894A 0%, #CD7F32 50%, #A66628 100%);
}

.silver-icon {
    background: linear-gradient(145deg, #E8E8E8 0%, #C0C0C0 50%, #A8A8A8 100%);
}

.gold-icon {
    background: linear-gradient(145deg, #FFE55C 0%, #FFD700 50%, #E6BE00 100%);
}

.platinum-icon {
    background: linear-gradient(145deg, #D4B8FF 0%, #B997EC 50%, #9B7ACC 100%);
}

.platinum-icon .tier-icon-symbol {
    font-size: 24px;
}

.tier-card .tier-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bronze-tier .tier-name { color: #CD7F32; }
.silver-tier .tier-name { color: #808080; }
.gold-tier .tier-name { color: #DAA520; }
.platinum-tier .tier-name { color: #9370DB; }

.tier-requirement {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
    font-weight: 500;
}

.tier-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tier-benefits li {
    font-size: 13px;
    color: var(--text-dark);
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
}

.tier-benefits li:first-child {
    border-top: none;
}

.tier-arrow {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: var(--text-gray);
    font-weight: 300;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   FINAL CTA - Bold Finish
   ============================================ */
.final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    text-align: center;
}

.final-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--primary-purple);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   MOBILE RESPONSIVE - Lower Sections
   ============================================ */
@media (max-width: 768px) {
    .steps-section {
        padding: 48px 16px;
    }

    .steps-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .steps-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
    }

    .step-card {
        padding: 24px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 16px;
    }

    .step-card h3 {
        font-size: 16px;
    }

    .step-card p {
        font-size: 13px;
    }

    /* Features Section */
    .features-section {
        padding: 60px 16px;
    }

    .features-title {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .features-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 340px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }

    /* For You If Section */
    .for-you-section {
        padding: 48px 16px;
    }

    .for-you-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .for-you-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 360px;
    }

    .for-you-card {
        padding: 20px;
    }

    .for-you-icon {
        font-size: 28px;
    }

    .for-you-card p {
        font-size: 14px;
    }

    /* Why Jambvant Intro */
    .why-jambvant-intro {
        padding: 60px 16px 32px;
    }

    .why-jambvant-title {
        font-size: 28px;
    }

    .why-jambvant-subtitle {
        font-size: 16px;
    }

    /* Use Cases Section */
    .use-cases-section {
        padding: 60px 16px;
    }

    .use-cases-title {
        font-size: 26px;
    }

    .use-cases-subtitle {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 360px;
        margin: 0 auto;
    }

    .use-case-card {
        padding: 24px;
    }

    .use-case-card h3 {
        font-size: 16px;
    }

    .use-case-card p {
        font-size: 13px;
    }

    /* Testimonials Section */
    .testimonials-section {
        padding: 60px 16px;
    }

    .testimonials-title {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 360px;
        margin: 0 auto;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-content p {
        font-size: 14px;
    }

    .author-avatar {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .author-name {
        font-size: 14px;
    }

    .author-role {
        font-size: 12px;
    }

    /* Tier Section */
    .tier-section {
        padding: 60px 16px;
    }

    .tier-section-title {
        font-size: 26px;
    }

    .tier-section-subtitle {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .tier-progression {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .tier-card {
        min-width: 280px;
        max-width: 320px;
        width: 100%;
    }

    .tier-arrow {
        transform: rotate(90deg);
        font-size: 20px;
    }

    .tier-icon {
        font-size: 32px;
    }

    .tier-card .tier-name {
        font-size: 16px;
    }

    .trust-badges {
        gap: 16px;
    }

    .trust-badge {
        font-size: 13px;
    }

    /* Info Bar */
    .info-bar {
        padding: 16px;
    }

    .info-bar-inner {
        flex-direction: column;
        gap: 16px;
    }

    .tier-row {
        gap: 6px;
    }

    .tier-badge {
        padding: 5px 10px;
        font-size: 10px;
    }

    .divider-v {
        width: 60px;
        height: 1px;
    }

    .trust-row {
        gap: 12px;
    }

    .trust-row .trust-item {
        font-size: 12px;
    }

    /* Final CTA */
    .final-cta {
        padding: 60px 20px;
    }

    .final-cta h2 {
        font-size: 26px;
    }

    .final-cta p {
        font-size: 15px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    .cta-note {
        font-size: 12px;
    }
}

/* Enhanced button hover states */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments for hero social proof */
@media (max-width: 600px) {
    .hero-social-proof {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
        border-radius: 16px;
    }

    .social-proof-divider {
        width: 60px;
        height: 1px;
    }

    .hero-nav-preview {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-preview-label {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-icon-container {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 140, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.05);
    background-color: rgba(255, 140, 0, 0.12);
}

.feature-icon-svg {
    width: 40px;
    height: 40px;
    color: var(--primary-purple);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Recognition Section */
.recognition {
    padding: 100px 0;
    background: #FFF5E1;
}

/* Make Recognition headings/subtitle darker for better readability */
#recognition-title {
    color: var(--text-dark);
}

#recognition-desc {
    color: var(--text-dark);
}

/* Hide static leaderboard fallback when JS is enabled */
.js-enabled #leaderboard-fallback {
    display: none;
}

.recognition-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.recognition-logo svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(107, 91, 255, 0.2));
    transition: transform 0.3s ease;
}

.recognition-logo svg:hover {
    transform: scale(1.05);
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tier-card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.tier-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tier-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tier-bronze .tier-icon {
    background: radial-gradient(circle at 30% 30%, #CD7F32, #8B5A3C);
}

.tier-silver .tier-icon {
    background: radial-gradient(circle at 30% 30%, #D3D3D3, #A8A9A9);
}

.tier-gold .tier-icon {
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFC700);
}

.tier-platinum .tier-icon {
    background: radial-gradient(circle at 30% 30%, #E6CCFF, #B997EC);
}

.tier-emerald .tier-icon {
    background: radial-gradient(circle at 30% 30%, #7FD8BE, #50C878);
}

.tier-diamond .tier-icon {
    background: radial-gradient(circle at 30% 30%, #00BFFF, #1E90FF);
}

.tier-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tier-card p {
    font-size: 16px;
    color: var(--text-gray);
}

/* Security Section */
.security {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.security-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.security-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.security-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.security h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.security p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Footer CTA */
.footer-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    text-align: center;
    color: var(--bg-white);
}

.footer-cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.footer-cta .btn {
    background-color: var(--bg-white);
    color: var(--primary-purple);
    font-size: 18px;
    padding: 16px 40px;
}

.footer-cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

/* Leaderboard Styles */
.leaderboard-section {
    margin-top: 60px;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 32px;
}

.leaderboard-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.leaderboard-header p {
    font-size: 14px;
    color: var(--text-dark); /* darker subtitle text */
}

/* Force strong readable colors for headings on light cream sections regardless of theme */
#leaderboard-title,
#leaderboard-subtitle,
#recognition-title,
#recognition-desc {
    color: #1a1a1a !important;
}

.leaderboard-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    overflow: hidden;
}

.leaderboard-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 22px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 40px 50px 1fr 100px 80px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.leaderboard-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.leaderboard-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.leaderboard-rank {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-purple);
    text-align: center;
}

.leaderboard-rank.top-3 {
    font-size: 15px;
}

.leaderboard-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.leaderboard-name a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.leaderboard-name a:hover {
    color: var(--primary-purple-dark);
    text-decoration: underline;
}

.leaderboard-helps {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
    text-align: right;
}

.leaderboard-helps span {
    font-weight: 700;
    color: var(--text-dark);
}

.leaderboard-tier {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-tier-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.leaderboard-tier-badge.bronze {
    background: radial-gradient(circle at 30% 30%, #CD7F32, #8B5A3C);
}

.leaderboard-tier-badge.silver {
    background: radial-gradient(circle at 30% 30%, #D3D3D3, #A8A9A9);
}

.leaderboard-tier-badge.gold {
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFC700);
}

.leaderboard-tier-badge.platinum {
    background: radial-gradient(circle at 30% 30%, #E6CCFF, #B997EC);
}

.leaderboard-tier-badge.emerald {
    background: radial-gradient(circle at 30% 30%, #7FD8BE, #50C878);
}

.leaderboard-tier-badge.diamond {
    background: radial-gradient(circle at 30% 30%, #00BFFF, #1E90FF);
}

/* Leaderboard Avatar Styles */
.leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
}

.leaderboard-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaderboard-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    text-transform: uppercase;
}

/* Animation delays for staggered effect */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }

.tier-card:nth-child(1) { transition-delay: 0.1s; }
.tier-card:nth-child(2) { transition-delay: 0.2s; }
.tier-card:nth-child(3) { transition-delay: 0.3s; }
.tier-card:nth-child(4) { transition-delay: 0.4s; }
.tier-card:nth-child(5) { transition-delay: 0.5s; }
.tier-card:nth-child(6) { transition-delay: 0.6s; }

.leaderboard-item:nth-child(1) { transition-delay: 0.05s; }
.leaderboard-item:nth-child(2) { transition-delay: 0.1s; }
.leaderboard-item:nth-child(3) { transition-delay: 0.15s; }
.leaderboard-item:nth-child(4) { transition-delay: 0.2s; }
.leaderboard-item:nth-child(5) { transition-delay: 0.25s; }
.leaderboard-item:nth-child(6) { transition-delay: 0.3s; }
.leaderboard-item:nth-child(7) { transition-delay: 0.35s; }
.leaderboard-item:nth-child(8) { transition-delay: 0.4s; }
.leaderboard-item:nth-child(9) { transition-delay: 0.45s; }
.leaderboard-item:nth-child(10) { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .badge {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .features {
        padding: 60px 0;
    }

    .recognition {
        padding: 60px 0;
    }

    .security {
        padding: 60px 0;
    }

    .footer-cta {
        padding: 60px 0;
    }

    .footer-cta h2 {
        font-size: 32px;
    }

    .footer-cta p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .recognition-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .leaderboard-header h2 {
        font-size: 28px;
    }

    .leaderboard-card {
        padding: 20px;
    }

    .leaderboard-item {
        grid-template-columns: 40px 50px 1fr 100px 60px;
        gap: 12px;
        padding: 12px;
    }

    .leaderboard-rank {
        font-size: 20px;
    }

    .leaderboard-rank.top-3 {
        font-size: 24px;
    }

    .leaderboard-name {
        font-size: 16px;
    }

    .leaderboard-helps {
        font-size: 14px;
    }

    .leaderboard-tier-badge {
        width: 40px;
        height: 40px;
    }

    /* Potential Interactions Mobile Responsive */
    .help-intent-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 12px;
    }

    .help-intent-left {
        width: 100%;
    }

    .help-intent-right {
        width: 100%;
        justify-content: space-between;
    }

    .help-intent-actions summary {
        padding: 6px 12px;
        font-size: 12px;
    }

    .help-intent-status {
        font-size: 10px;
        padding: 5px 10px;
    }

    .profile-help-intent {
        padding: 20px;
    }

    #help-need-label::before,
    #help-provide-label::before {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .badge {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .leaderboard-section {
        margin-top: 40px;
    }

    .leaderboard-item {
        grid-template-columns: 35px 40px 1fr 80px 50px;
        gap: 8px;
        padding: 10px;
    }

    .leaderboard-avatar {
        width: 40px;
        height: 40px;
    }

    .leaderboard-avatar-initials {
        font-size: 16px;
    }

    .leaderboard-rank {
        font-size: 18px;
    }

    .leaderboard-rank.top-3 {
        font-size: 20px;
    }

    .leaderboard-name {
        font-size: 14px;
    }

    .leaderboard-helps {
        font-size: 12px;
    }

    .leaderboard-tier-badge {
        width: 36px;
        height: 36px;
    }
}

/* Help Intent list styling - Enhanced */
.help-intent-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-intent-list li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
    position: relative;
    overflow: visible;
}

.help-intent-list li:has(.help-intent-actions[open]) {
    z-index: 1000;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-intent-list li:nth-child(1) { animation-delay: 0.05s; }
.help-intent-list li:nth-child(2) { animation-delay: 0.1s; }
.help-intent-list li:nth-child(3) { animation-delay: 0.15s; }
.help-intent-list li:nth-child(4) { animation-delay: 0.2s; }
.help-intent-list li:nth-child(5) { animation-delay: 0.25s; }

.help-intent-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-purple);
    background: var(--bg-white);
}

.help-intent-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.help-intent-left span {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    word-wrap: break-word;
}

.help-intent-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.help-intent-status {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.help-intent-status.status-active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.help-intent-status.status-active::before {
    content: '●';
    font-size: 10px;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.help-intent-status.status-resolved {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.help-intent-status.status-resolved::before {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
}

.help-intent-status.status-cancelled {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.help-intent-status.status-cancelled::before {
    content: '✕';
    font-size: 12px;
}

/* Actions dropdown (summary) styling and accessibility focus */
.help-intent-actions {
    position: relative;
}

.help-intent-actions[open] {
    z-index: 1000;
}

.help-intent-actions summary {
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
    background: var(--bg-white);
    color: var(--primary-purple);
    transition: all 0.2s ease;
    user-select: none;
}

.help-intent-actions summary::after {
    content: '▼';
    margin-left: 6px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.help-intent-actions[open] summary::after {
    transform: rotate(180deg);
}

.help-intent-actions summary::-webkit-details-marker {
    display: none;
}

.help-intent-actions summary:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.help-intent-actions summary:focus,
.help-intent-actions summary:focus-visible {
    outline: 3px solid rgba(255,140,0,0.3);
    outline-offset: 2px;
}

.help-intent-actions .help-intent-actions-body {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-white);
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    padding: 12px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-intent-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    background: var(--bg-light);
    color: var(--text-dark);
    width: 100%;
}

.help-intent-action-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(4px);
}

.help-intent-action-btn:active {
    transform: translateX(2px);
}

/* ========================================
   Inline Editing for Help Intents
   ======================================== */

/* Inline add form container */
.help-intent-inline-add {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.help-intent-inline-add:focus-within {
    border-color: var(--primary-purple);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.help-intent-inline-add textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.help-intent-inline-add textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.help-intent-inline-add textarea::placeholder {
    color: var(--text-gray);
}

/* Inline add button */
.btn-inline-add {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-inline-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-inline-add:active {
    transform: translateY(0);
}

.btn-inline-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Inline buttons container */
.inline-add-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Inline voice button */
.btn-inline-voice {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--primary-purple);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-inline-voice:hover {
    border-color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.05);
    transform: scale(1.05);
}

.btn-inline-voice.recording {
    background: #ef4444;
    border-color: #ef4444;
    animation: pulse-recording 1.5s infinite;
}

.btn-inline-voice.recording .voice-icon {
    color: white;
}

.btn-inline-voice .voice-icon {
    font-size: 20px;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Inline cancel button */
.btn-inline-cancel {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-inline-cancel:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Mobile responsive for inline add */
@media (max-width: 640px) {
    .help-intent-inline-add {
        flex-wrap: wrap;
    }

    .help-intent-inline-add textarea {
        order: 2;
        width: 100%;
        flex: none;
    }

    .btn-inline-voice {
        order: 1;
    }

    .inline-add-buttons {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .btn-inline-add {
        flex: 1;
    }
}

/* Edit mode indicator for section */
#profileHelpIntentSection.edit-mode {
    border: 2px solid var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    border-radius: 16px;
}

#profileHelpIntentSection.edit-mode .profile-section-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-radius: 14px 14px 0 0;
}

/* Edit mode toggle button styling */
#helpIntentEditToggle {
    transition: all 0.2s ease;
}

#profileHelpIntentSection.edit-mode #helpIntentEditToggle {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .help-intent-inline-add {
        flex-direction: column;
        gap: 12px;
    }

    .help-intent-inline-add textarea {
        width: 100%;
    }

    .btn-inline-add {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */

/* Clickable section header */
.collapsible-section .clickable-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.collapsible-section .clickable-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .collapsible-section .clickable-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Collapse/Expand button */
.section-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.section-collapse-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
}

.section-collapse-btn .collapse-icon {
    font-size: 12px;
    color: var(--text-gray);
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Collapsed state */
.collapsible-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-section.collapsed .section-collapsible-content {
    display: none;
}

/* Section content container */
.section-collapsible-content {
    transition: opacity 0.2s ease;
}

/* Visual indicator when collapsed */
.collapsible-section.collapsed {
    padding-bottom: 0;
}

.collapsible-section.collapsed .profile-section-header {
    border-bottom: none;
    margin-bottom: 0;
}

/* Section header controls container */
.section-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .section-collapse-btn {
        width: 28px;
        height: 28px;
    }

    .section-collapse-btn .collapse-icon {
        font-size: 10px;
    }

    .section-header-controls {
        gap: 6px;
    }
}

/* ===== SUBSECTION STYLES (Nested within parent sections) ===== */

/* Subsection container */
.profile-subsection {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .profile-subsection {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Subsection header */
.profile-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-subsection-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .profile-subsection-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Subsection title */
.profile-subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.profile-subsection-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.profile-subsection-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

/* Subsection collapse button */
.subsection-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.subsection-collapse-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

.subsection-collapse-btn .collapse-icon {
    font-size: 10px;
    color: var(--text-gray);
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Collapsed state for subsections */
.collapsible-subsection.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-subsection.collapsed .subsection-collapsible-content {
    display: none;
}

/* Subsection content container */
.subsection-collapsible-content {
    transition: opacity 0.2s ease;
}

/* Visual indicator when collapsed */
.collapsible-subsection.collapsed {
    padding-bottom: 8px;
}

.collapsible-subsection.collapsed .profile-subsection-header {
    margin-bottom: 0;
}

/* Mobile adjustments for subsections */
@media (max-width: 640px) {
    .profile-subsection {
        margin-top: 16px;
        padding: 12px;
    }

    .profile-subsection-title {
        font-size: 16px;
    }

    .subsection-collapse-btn {
        width: 24px;
        height: 24px;
    }

    .subsection-collapse-btn .collapse-icon {
        font-size: 9px;
    }
}

/* Section header icons */
.profile-help-intent-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-help-intent-title::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    flex-shrink: 0;
}

#help-need-label::before {
    content: '🆘';
    font-size: 20px;
    margin-right: 8px;
}

#help-provide-label::before {
    content: '🤲';
    font-size: 20px;
    margin-right: 8px;
}

/* ========================================
   VISITOR SETTINGS BAR - Language & Theme Controls (In Header)
   ======================================== */
.visitor-settings-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.visitor-settings-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-light, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-gray, #666);
    transition: all 0.2s ease;
}

.visitor-settings-btn:hover {
    background: var(--bg-white, #fff);
    border-color: var(--primary-purple, #FF8C00);
    color: var(--text-dark, #333);
    box-shadow: 0 2px 8px rgba(255,140,0,0.15);
}

.visitor-settings-icon {
    font-size: 16px;
}

.visitor-settings-label {
    font-weight: 500;
}

/* Dark mode adjustments for visitor settings */
[data-theme="dark"] .visitor-settings-btn {
    background: var(--card-bg, #1f2937);
    border-color: var(--border-color, #374151);
    color: var(--text-gray, #9ca3af);
}

[data-theme="dark"] .visitor-settings-btn:hover {
    background: var(--bg-light, #374151);
    color: var(--text-dark, #f3f4f6);
}

@media (max-width: 480px) {
    .visitor-settings-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .visitor-settings-label {
        display: none;
    }
}

/* Enhanced profile help intent cards */
.profile-help-intent {
    padding: 28px;
    background: var(--card-bg);
    border-radius: 16px;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.profile-help-intent:has(.help-intent-actions[open]) {
    z-index: 1001;
}

.profile-help-intent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-help-intent:hover::before {
    opacity: 1;
}

.profile-help-intent:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-purple);
}

/* Empty state enhancement */
.profile-empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.profile-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}


/* Jambvant - Modal Styles */
/* Glass-Neumorphism Blend for Modern UI */

/* ========================================
   GLASS-NEUMORPHIC MODAL OVERLAYS
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

/* Profile Modal Styles */
.profile-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-modal-overlay.active {
    display: flex;
}

/* ========================================
   GLASS-NEUMORPHIC MODAL CONTAINERS
   ======================================== */

.profile-modal-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        /* Neumorphic outer shadows */
        12px 12px 36px rgba(0, 0, 0, 0.1),
        -12px -12px 36px rgba(255, 255, 255, 0.9),
        /* Inner glass highlight */
        inset 0 2px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    width: 380px;
    max-width: 100%;
    max-height: 90vh;
    position: relative;
    animation: profileModalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dark mode modal glass-neumorphism */
[data-theme="dark"] .modal-overlay,
[data-theme="dark"] .profile-modal-overlay {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
}

[data-theme="dark"] .profile-modal-container {
    background: rgba(28, 28, 28, 0.94);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        /* Dark neumorphic shadows */
        12px 12px 36px rgba(0, 0, 0, 0.45),
        -12px -12px 36px rgba(50, 50, 50, 0.25),
        /* Inner highlight */
        inset 0 2px 2px rgba(255, 255, 255, 0.04),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

@keyframes profileModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-white);
    border: none;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    transform: scale(1.1);
}

.profile-modal-content {
    padding: 30px;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.profile-tier-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-tier-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-tier-badge.bronze {
    background: radial-gradient(circle at 30% 30%, #CD7F32, #8B5A3C);
}

.profile-tier-badge.silver {
    background: radial-gradient(circle at 30% 30%, #D3D3D3, #A8A9A9);
}

.profile-tier-badge.gold {
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFC700);
}

.profile-tier-badge.platinum {
    background: radial-gradient(circle at 30% 30%, #E6CCFF, #B997EC);
}

.profile-tier-badge.emerald {
    background: radial-gradient(circle at 30% 30%, #7FD8BE, #50C878);
}

.profile-tier-badge.diamond {
    background: radial-gradient(circle at 30% 30%, #00BFFF, #1E90FF);
}

.profile-tier-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.profile-helps {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.profile-helps-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-purple);
    display: block;
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 0 10px;
}

.profile-location {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-location::before {
    content: '📍';
    font-size: 16px;
}

.profile-connect-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #FF8C00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.profile-connect-btn:hover {
    background-color: #E07B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.profile-connect-btn:active {
    transform: translateY(0);
}

.profile-connect-btn.connected {
    background-color: var(--color-success);
}

/* Login/Signup Modal Styles - Glass-Neumorphism Blend */
.modal-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        /* Neumorphic outer shadows */
        12px 12px 36px rgba(0, 0, 0, 0.1),
        -12px -12px 36px rgba(255, 255, 255, 0.9),
        /* Inner glass highlight */
        inset 0 2px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Dark mode modal container glass-neumorphism */
[data-theme="dark"] .modal-container {
    background: rgba(28, 28, 28, 0.94);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        /* Dark neumorphic shadows */
        12px 12px 36px rgba(0, 0, 0, 0.45),
        -12px -12px 36px rgba(50, 50, 50, 0.25),
        /* Inner highlight */
        inset 0 2px 2px rgba(255, 255, 255, 0.04),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 24px 0 24px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.modal-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.3px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-light);
    border: none;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin: 0 24px;
}

.modal-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal-tab.active {
    color: #FF8C00;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #FF8C00;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.form-input::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    color: var(--text-gray);
    opacity: 0.7;
}

.btn-modal-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-modal-primary:hover:not(:disabled) {
    background-color: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-modal-primary:disabled {
    background-color: #CCC;
    cursor: not-allowed;
    opacity: 0.6;
}

.input-with-audio {
    position: relative;
}

/* Modal-specific mic button overrides - inherits from components.css base styles */
.modal-overlay .audio-record-btn,
.modal-container .audio-record-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 50%, #FF5500 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4), 0 0 0 0 rgba(255, 140, 0, 0.3);
    animation: mic-glow 3s ease-in-out infinite;
    transform: none;
}

@keyframes mic-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4), 0 0 0 0 rgba(255, 140, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5), 0 0 0 4px rgba(255, 140, 0, 0.1);
    }
}

.modal-overlay .audio-record-btn:hover,
.modal-container .audio-record-btn:hover {
    background: linear-gradient(135deg, #FF9500 0%, #FF7A00 50%, #FF6600 100%);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.6), 0 0 0 6px rgba(255, 140, 0, 0.15);
    animation: none;
}

.modal-overlay .audio-record-btn.recording,
.modal-container .audio-record-btn.recording {
    background: linear-gradient(135deg, #FF4444 0%, #EF4444 50%, #DC2626 100%);
    animation: mic-pulse-modal 1s ease-in-out infinite;
}

@keyframes mic-pulse-modal {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 2px 8px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0), 0 4px 16px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

.modal-overlay .audio-record-btn.processing,
.modal-container .audio-record-btn.processing {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    animation: none;
    cursor: wait;
    opacity: 0.8;
}

.form-input.with-audio {
    padding-right: 45px;
}

textarea.form-input.with-audio {
    padding-right: 50px;
}

.error-message {
    color: #FF4444;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Terms Consent Checkbox Styles */
.terms-consent-wrapper {
    margin: 0;
}

.terms-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
    line-height: 1.5;
}

.terms-consent-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: #FF8C00;
}

.terms-consent-text {
    font-size: 14px;
    color: var(--text-dark);
    flex: 1;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #FF8C00;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-gray);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.divider::before {
    margin-right: 12px;
}

.divider::after {
    margin-left: 12px;
}

.btn-google {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: #333;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background-color: var(--bg-light);
    border-color: #999;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Ensure Google button is visible in dark mode */
[data-theme="dark"] .btn-google {
    background-color: white;
    color: #333;
    border-color: #DDD;
}

[data-theme="dark"] .btn-google:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.btn-linkedin {
    width: 100%;
    padding: 12px;
    background-color: #0077B5;
    color: white;
    border: 1px solid #0077B5;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.btn-linkedin:hover {
    background-color: #005582;
    border-color: #005582;
}

.linkedin-icon {
    width: 20px;
    height: 20px;
}

/* Custom Scrollbar Styles for Modal Bodies */
.modal-body::-webkit-scrollbar,
.profile-modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.profile-modal-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.profile-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.profile-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Zoom-aware modal adjustments */
@media screen and (min-resolution: 1.25dppx) {
    .modal-container,
    .profile-modal-container {
        max-height: 85vh;
    }
}

@media screen and (min-resolution: 1.5dppx) {
    .modal-container,
    .profile-modal-container {
        max-height: 80vh;
    }
}

@media screen and (min-resolution: 2dppx) {
    .modal-container,
    .profile-modal-container {
        max-height: 75vh;
    }
}

/* Ensure modal header doesn't shrink when scrolling */
.modal-header {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .profile-modal-container {
        width: 100%;
        max-width: 340px;
    }

    .profile-modal-content {
        padding: 24px 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-helps-number {
        font-size: 24px;
    }

    .modal-container {
        width: 90%;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Password Toggle Styles */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .password-input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--text-dark);
}

.password-toggle-btn:focus {
    outline: none;
    color: #FF8C00;
}

.password-toggle-btn .eye-icon {
    width: 20px;
    height: 20px;
}

/* Toggle between eye-open and eye-closed icons */
.password-toggle-btn[data-visible="true"] .eye-open {
    display: none;
}

.password-toggle-btn[data-visible="true"] .eye-closed {
    display: block !important;
}

.password-toggle-btn[data-visible="false"] .eye-open {
    display: block;
}

.password-toggle-btn[data-visible="false"] .eye-closed {
    display: none;
}

/* ===================================
   SHARED COMPONENTS CSS
   Consolidates repeated patterns
   =================================== */

/* ========================================
   MICROPHONE BUTTON - ENHANCED DESIGN
   Eye-catching, attractive voice input button
   ======================================== */

.audio-record-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 50%, #FF5500 100%);
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4), 0 0 0 0 rgba(255, 140, 0, 0.3);
    animation: mic-attention 3s ease-in-out infinite;
    z-index: 5;
}

/* Subtle attention-grabbing pulse when idle */
@keyframes mic-attention {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4), 0 0 0 0 rgba(255, 140, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5), 0 0 0 4px rgba(255, 140, 0, 0.1);
    }
}

.audio-record-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.6), 0 0 0 6px rgba(255, 140, 0, 0.15);
    animation: none;
    background: linear-gradient(135deg, #FF9500 0%, #FF7A00 50%, #FF6600 100%);
}

.audio-record-btn:active {
    transform: translateY(-50%) scale(1.05);
}

/* Recording state - red pulsing */
.audio-record-btn.recording {
    background: linear-gradient(135deg, #FF4444 0%, #EF4444 50%, #DC2626 100%);
    animation: mic-recording 1s ease-in-out infinite;
}

@keyframes mic-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 2px 8px rgba(239, 68, 68, 0.5);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0), 0 4px 16px rgba(239, 68, 68, 0.6);
        transform: translateY(-50%) scale(1.05);
    }
}

/* Processing/Transcribing state */
.audio-record-btn.processing,
.audio-record-btn:disabled {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    animation: none;
    cursor: wait;
    opacity: 0.8;
}

/* For textarea, position at top-right */
.form-group textarea ~ .audio-record-btn,
textarea ~ .audio-record-btn {
    top: 8px;
    transform: none;
}

.form-group textarea ~ .audio-record-btn:hover,
textarea ~ .audio-record-btn:hover {
    transform: scale(1.15);
}

.form-group textarea ~ .audio-record-btn.recording,
textarea ~ .audio-record-btn.recording {
    animation: mic-recording-no-translate 1s ease-in-out infinite;
}

@keyframes mic-recording-no-translate {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 2px 8px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0), 0 4px 16px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

/* Mic button icon styling */
.audio-record-btn svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Dark mode adjustments */
[data-theme="dark"] .audio-record-btn {
    box-shadow: 0 2px 12px rgba(255, 140, 0, 0.5), 0 0 0 0 rgba(255, 140, 0, 0.4);
}

[data-theme="dark"] .audio-record-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.7), 0 0 0 6px rgba(255, 140, 0, 0.2);
}

/* Input with Audio Wrapper - Used 13+ times */
.input-with-audio {
    position: relative;
    width: 100%;
}

.input-with-audio .form-input {
    padding-right: 48px; /* Space for audio button */
}

/* Google Auth Button - Used 2 times */
.btn-google {
    width: 100%;
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    background: var(--bg-light);
    border-color: #FF8C00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google .google-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* LinkedIn OAuth Button */
.btn-linkedin {
    width: 100%;
    padding: 12px 24px;
    background: #0077B5;
    color: white;
    border: 1px solid #0077B5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.btn-linkedin:hover {
    background: #005582;
    border-color: #005582;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.btn-linkedin .linkedin-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: white;
}

/* Modal Close Button - Used 3+ times */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* Back Button - Used multiple times */
.back-btn {
    background: none;
    border: none;
    color: var(--primary-purple);
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: #FF8C00;
    transform: translateX(-4px);
}

/* Option Card - Used in typing options */
.option-card {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-card:hover {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.option-card-content {
    flex: 1;
}

.option-card-title {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-card-desc {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

.option-card-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #FF8C00;
}

/* Error Message - Standardized */
.error-message {
    display: none;
    color: #F44336;
    font-size: 12px;
    margin-top: 4px;
}

.error-message.visible {
    display: block;
}

/* Form Group - Standardized spacing */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Divider - Used in modals */
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-gray);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Loading Spinner - For async operations */
.spinner {
    border: 2px solid rgba(255, 140, 0, 0.2);
    border-top: 2px solid #FF8C00;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Helper classes */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

.toast {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    animation: toastSlideIn 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid var(--primary-purple);
    position: relative;
}

.toast.toast-success {
    border-left-color: #4CAF50;
}

.toast.toast-error {
    border-left-color: #F44336;
}

.toast.toast-warning {
    border-left-color: #FF9800;
}

.toast.toast-info {
    border-left-color: #2196F3;
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    padding: 4px;
}

.toast-success .toast-icon {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.toast-error .toast-icon {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.toast-warning .toast-icon {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.toast-info .toast-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
}

.toast-message {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .option-card {
        padding: 16px;
    }

    .option-card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .option-card-title {
        font-size: 14px;
    }

    .option-card-desc {
        font-size: 12px;
    }
}

/* ===================================
   NOTIFICATION COMPONENTS
   =================================== */

/* Notifications Container */
.notifications-container {
    position: relative;
    margin-right: 12px;
}

/* Notification Bell Button */
.notification-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notification-bell-btn:hover {
    background: var(--bg-light, rgba(0, 0, 0, 0.05));
}

.notification-bell-btn .bell-icon {
    font-size: 20px;
    line-height: 1;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notification-badge.has-notifications {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5); }
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 600px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Notifications Header */
.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    background: var(--bg-light, #F9FAFB);
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, #1F2937);
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary-purple, #FF8C00);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background: rgba(255, 140, 0, 0.1);
}

/* Notifications List */
.notifications-list {
    overflow-y: auto;
    max-height: 480px;
    flex: 1;
}

/* Notification Item */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color, #F3F4F6);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: var(--bg-light, #F9FAFB);
}

.notification-item.unread {
    background: #EFF6FF;
}

.notification-item.unread:hover {
    background: #DBEAFE;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Notification Avatar */
.notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

/* Notification Content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #1F2937);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-body {
    font-size: 13px;
    color: var(--text-medium, #6B7280);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-time {
    font-size: 12px;
    color: var(--text-light, #9CA3AF);
}

/* Unread Dot */
.notif-unread-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #3B82F6;
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Empty State */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
}

.notification-empty p {
    color: var(--text-light, #9CA3AF);
    font-size: 14px;
    margin: 0;
}

/* View All Link */
.view-all-link {
    display: block;
    padding: 12px 20px;
    text-align: center;
    color: var(--primary-purple, #FF8C00);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid var(--border-color, #E5E7EB);
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: var(--bg-light, #F9FAFB);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 24px);
        right: -140px;
    }

    .notifications-header {
        padding: 12px 16px;
    }

    .notifications-header h3 {
        font-size: 15px;
    }

    .notification-item {
        padding: 12px 16px;
    }

    .notif-avatar,
    .notif-avatar-placeholder {
        width: 40px;
        height: 40px;
    }

    .notif-title {
        font-size: 13px;
    }

    .notif-body {
        font-size: 12px;
    }
}

/* ===================================
   CHAT LOADING ANIMATION
   =================================== */

/* Three-dot typing indicator for chat */
.chat-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.chat-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-gray, #6B7280);
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.chat-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ========================================
   GLASS-NEUMORPHISM SHARED STYLES
   Modern UI blend for all pages
   ======================================== */

/* CSS Variables for Neumorphic shadows - shared across all pages */
:root {
    --glass-neu-light: rgba(255, 255, 255, 0.8);
    --glass-neu-dark: rgba(0, 0, 0, 0.08);
    --glass-neu-dark-strong: rgba(0, 0, 0, 0.12);
    --glass-neu-inset-light: rgba(255, 255, 255, 0.5);
    --glass-neu-inset-dark: rgba(0, 0, 0, 0.05);
    --glass-neu-orange-glow: rgba(255, 140, 0, 0.15);
    --glass-neu-purple-glow: rgba(139, 92, 246, 0.15);
    --glass-neu-green-glow: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] {
    --glass-neu-light: rgba(50, 50, 50, 0.5);
    --glass-neu-dark: rgba(0, 0, 0, 0.4);
    --glass-neu-dark-strong: rgba(0, 0, 0, 0.5);
    --glass-neu-inset-light: rgba(60, 60, 60, 0.4);
    --glass-neu-inset-dark: rgba(0, 0, 0, 0.3);
    --glass-neu-orange-glow: rgba(255, 140, 0, 0.2);
    --glass-neu-purple-glow: rgba(139, 92, 246, 0.2);
    --glass-neu-green-glow: rgba(16, 185, 129, 0.2);
}

/* Glass-Neu Page Container */
.glass-neu-page {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 245, 230, 0.5) 100%);
}

[data-theme="dark"] .glass-neu-page {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(30, 30, 30, 0.95) 100%);
}

/* Glass-Neu Card - Base class for all cards */
.glass-neu-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        8px 8px 24px var(--glass-neu-dark),
        -8px -8px 24px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-neu-card:hover {
    transform: translateY(-4px);
    box-shadow:
        10px 10px 32px var(--glass-neu-dark-strong),
        -10px -10px 32px var(--glass-neu-light),
        0 8px 32px var(--glass-neu-orange-glow),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

[data-theme="dark"] .glass-neu-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        8px 8px 24px var(--glass-neu-dark),
        -8px -8px 24px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .glass-neu-card:hover {
    background: rgba(40, 40, 40, 0.9);
    box-shadow:
        10px 10px 32px var(--glass-neu-dark-strong),
        -10px -10px 32px var(--glass-neu-light),
        0 8px 32px var(--glass-neu-orange-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

/* Glass-Neu Section - For content sections */
.glass-neu-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow:
        6px 6px 18px var(--glass-neu-dark),
        -6px -6px 18px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .glass-neu-section {
    background: rgba(28, 28, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        6px 6px 18px var(--glass-neu-dark),
        -6px -6px 18px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.03);
}

/* Glass-Neu Button - Soft neumorphic button */
.glass-neu-btn {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow:
        4px 4px 12px var(--glass-neu-dark),
        -4px -4px 12px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.glass-neu-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 16px var(--glass-neu-dark),
        -6px -6px 16px var(--glass-neu-light),
        0 4px 16px var(--glass-neu-orange-glow);
}

.glass-neu-btn:active {
    transform: translateY(0);
    box-shadow:
        inset 3px 3px 8px var(--glass-neu-inset-dark),
        inset -3px -3px 8px var(--glass-neu-inset-light);
}

[data-theme="dark"] .glass-neu-btn {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        4px 4px 12px var(--glass-neu-dark),
        -4px -4px 12px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Glass-Neu Input - Inset form fields */
.glass-neu-input {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow:
        inset 3px 3px 8px var(--glass-neu-inset-dark),
        inset -3px -3px 8px var(--glass-neu-inset-light);
    transition: all 0.2s ease;
}

.glass-neu-input:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow:
        inset 2px 2px 6px var(--glass-neu-inset-dark),
        inset -2px -2px 6px var(--glass-neu-inset-light),
        0 0 0 3px rgba(255, 140, 0, 0.1);
    outline: none;
}

[data-theme="dark"] .glass-neu-input {
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dark);
}

/* Glass-Neu Badge - For status indicators */
.glass-neu-badge {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow:
        3px 3px 10px var(--glass-neu-dark),
        -3px -3px 10px var(--glass-neu-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .glass-neu-badge {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glass-Neu Avatar - For profile pictures */
.glass-neu-avatar {
    border-radius: 50%;
    box-shadow:
        6px 6px 16px var(--glass-neu-dark),
        -6px -6px 16px var(--glass-neu-light),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.glass-neu-avatar:hover {
    transform: scale(1.05);
    box-shadow:
        8px 8px 24px var(--glass-neu-dark),
        -8px -8px 24px var(--glass-neu-light),
        0 6px 20px var(--glass-neu-orange-glow);
}

[data-theme="dark"] .glass-neu-avatar {
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Glass-Neu Tag - For category/label tags */
.glass-neu-tag {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    box-shadow:
        2px 2px 6px var(--glass-neu-dark),
        -2px -2px 6px var(--glass-neu-light);
    transition: all 0.2s ease;
}

.glass-neu-tag:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* Glass-Neu Divider */
.glass-neu-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 140, 0, 0.2) 20%,
        rgba(255, 140, 0, 0.3) 50%,
        rgba(255, 140, 0, 0.2) 80%,
        transparent 100%);
    border: none;
    margin: 24px 0;
    border-radius: 1px;
    box-shadow:
        0 1px 2px var(--glass-neu-dark),
        0 -1px 2px var(--glass-neu-light);
}

/* Glass-Neu List Item */
.glass-neu-list-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow:
        4px 4px 12px var(--glass-neu-dark),
        -4px -4px 12px var(--glass-neu-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.glass-neu-list-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
    box-shadow:
        6px 6px 16px var(--glass-neu-dark),
        -6px -6px 16px var(--glass-neu-light),
        0 4px 12px var(--glass-neu-orange-glow);
}

[data-theme="dark"] .glass-neu-list-item {
    background: rgba(28, 28, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Accent Variants */
.glass-neu-card.accent-purple:hover,
.glass-neu-section.accent-purple {
    border-color: rgba(139, 92, 246, 0.2);
}
.glass-neu-card.accent-purple:hover {
    box-shadow:
        10px 10px 32px var(--glass-neu-dark-strong),
        -10px -10px 32px var(--glass-neu-light),
        0 8px 32px var(--glass-neu-purple-glow);
}

.glass-neu-card.accent-green:hover,
.glass-neu-section.accent-green {
    border-color: rgba(16, 185, 129, 0.2);
}
.glass-neu-card.accent-green:hover {
    box-shadow:
        10px 10px 32px var(--glass-neu-dark-strong),
        -10px -10px 32px var(--glass-neu-light),
        0 8px 32px var(--glass-neu-green-glow);
}

/* ========================================
   DARK MODE MODAL BUTTON FIX
   Fix for .btn-outline buttons in modals
   ======================================== */

/* Default light mode for modal outline buttons */
.modal-overlay .btn-outline,
.modal-container .btn-outline {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--text-dark, #1F2937);
}

/* Dark mode for ALL modal buttons - comprehensive coverage */
[data-theme="dark"] .modal-overlay .btn-outline,
[data-theme="dark"] .modal-container .btn-outline,
[data-theme="dark"] .modal-overlay .btn.btn-outline,
[data-theme="dark"] .modal-container .btn.btn-outline,
[data-theme="dark"] button.btn-outline,
[data-theme="dark"] .modal-overlay button.btn.btn-outline,
[data-theme="dark"] .modal-container button.btn.btn-outline,
[data-theme="dark"] div.modal-overlay button.btn-outline,
[data-theme="dark"] div.modal-container button.btn-outline,
[data-theme="dark"] button[data-action="cancel"].btn-outline,
[data-theme="dark"] .modal-footer button[data-action="cancel"],
.modal-overlay.ai-suggestion-modal-overlay .btn-outline,
.modal-overlay.content-blocked-modal-overlay .btn-outline,
.modal-overlay.pending-review-modal-overlay .btn-outline,
.modal-overlay.confirm-modal-overlay .btn-outline,
.modal-overlay.editor-modal-overlay .btn-outline,
.modal-overlay .modal-footer .btn-outline,
.modal-container .modal-footer .btn-outline {
    background: rgba(45, 45, 45, 0.95) !important;
    background-color: rgba(45, 45, 45, 0.95) !important;
    border: 1px solid rgba(255, 140, 0, 0.3) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Dark mode hover states */
[data-theme="dark"] .modal-overlay .btn-outline:hover,
[data-theme="dark"] .modal-container .btn-outline:hover,
.modal-overlay.ai-suggestion-modal-overlay .btn-outline:hover {
    background: rgba(55, 50, 40, 0.95) !important;
    background-color: rgba(55, 50, 40, 0.95) !important;
    border-color: rgba(255, 140, 0, 0.45) !important;
    box-shadow:
        6px 6px 16px var(--glass-neu-dark, rgba(0, 0, 0, 0.08)),
        -6px -6px 16px var(--glass-neu-light, rgba(255, 255, 255, 0.8)),
        0 4px 16px var(--glass-neu-orange-glow, rgba(255, 140, 0, 0.15));
}

/* Respect system dark mode preference */
@media (prefers-color-scheme: dark) {
    .modal-overlay .btn-outline,
    .modal-container .btn-outline {
        background: rgba(45, 45, 45, 0.95) !important;
        background-color: rgba(45, 45, 45, 0.95) !important;
        border: 1px solid rgba(255, 140, 0, 0.3) !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .modal-overlay .btn-outline:hover,
    .modal-container .btn-outline:hover {
        background: rgba(55, 50, 40, 0.95) !important;
        background-color: rgba(55, 50, 40, 0.95) !important;
        border-color: rgba(255, 140, 0, 0.45) !important;
    }
}

/* Catch-all for any modal button that might be missed */
body[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .btn-outline,
body[data-theme="dark"] button.btn-outline,
html[data-theme="dark"] button.btn-outline {
    background: rgba(45, 45, 45, 0.95) !important;
    background-color: rgba(45, 45, 45, 0.95) !important;
    border: 1px solid rgba(255, 140, 0, 0.3) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ========================================
   EXPERTISE ASSESSMENT MODAL STYLES
   ======================================== */

/* Question card - light mode (explicit) */
.expertise-question-card,
[data-theme="light"] .expertise-question-card {
    background: #ffffff !important;
    border-color: var(--primary-purple) !important;
}

.expertise-question-text,
[data-theme="light"] .expertise-question-text {
    color: var(--text-dark, #1F2937) !important;
}

/* Question card - dark mode */
[data-theme="dark"] .expertise-question-card {
    background: rgba(45, 45, 45, 0.95) !important;
    border-color: var(--primary-purple, #FF8C00) !important;
}

[data-theme="dark"] .expertise-question-text {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Skip warning box - light mode (explicit) */
.expertise-skip-warning,
[data-theme="light"] .expertise-skip-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: none !important;
}

/* Skip warning box - dark mode */
[data-theme="dark"] .expertise-skip-warning {
    background: rgba(113, 63, 18, 0.3) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

/* Expertise modal header gradient - light mode */
.expertise-modal-header,
[data-theme="light"] .expertise-modal-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.1)) !important;
}

[data-theme="dark"] .expertise-modal-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.25)) !important;
}

/* Expertise response textarea with mic button */
.expertise-response-wrapper {
    position: relative;
}

.expertise-response-wrapper textarea {
    padding-right: 50px;
}

.expertise-voice-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 50%, #FF5500 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.45), 0 0 0 0 rgba(255, 140, 0, 0.3);
    animation: expertise-mic-glow 3s ease-in-out infinite;
}

@keyframes expertise-mic-glow {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(255, 140, 0, 0.45), 0 0 0 0 rgba(255, 140, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 14px rgba(255, 140, 0, 0.55), 0 0 0 5px rgba(255, 140, 0, 0.12);
    }
}

.expertise-voice-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 18px rgba(255, 140, 0, 0.6), 0 0 0 6px rgba(255, 140, 0, 0.15);
    background: linear-gradient(135deg, #FF9500 0%, #FF7A00 50%, #FF6600 100%);
    animation: none;
}

.expertise-voice-btn.recording {
    background: linear-gradient(135deg, #FF4444 0%, #EF4444 50%, #DC2626 100%);
    animation: expertise-mic-recording 1s ease-in-out infinite;
}

@keyframes expertise-mic-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 3px 10px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 5px 18px rgba(239, 68, 68, 0.6);
        transform: scale(1.06);
    }
}

.expertise-voice-btn:disabled {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    animation: none;
    cursor: wait;
    opacity: 0.8;
}

.expertise-voice-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* System dark mode preference - only apply if no explicit theme set */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .expertise-question-card {
        background: rgba(45, 45, 45, 0.95);
    }

    html:not([data-theme="light"]) .expertise-question-text {
        color: rgba(255, 255, 255, 0.95);
    }

    html:not([data-theme="light"]) .expertise-skip-warning {
        background: rgba(113, 63, 18, 0.3);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.3);
    }

    html:not([data-theme="light"]) .expertise-modal-header {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.25));
    }
}

/* ========================================
   VOICE-FIRST INPUT STYLES (Phase 1)
   Primary voice input method for all entries
   ======================================== */

/* Voice Input Wrapper */
.voice-input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.voice-input-wrapper input,
.voice-input-wrapper textarea {
    flex: 1;
    min-width: 0;
}

/* Voice Input Button - Large, Prominent */
.voice-input-btn {
    position: relative;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 50%, #FF5500 100%);
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(255, 140, 0, 0.45),
        0 0 0 0 rgba(255, 140, 0, 0.3);
    z-index: 5;
    flex-shrink: 0;
}

/* Voice-first class - makes button larger and more prominent */
.voice-input-btn.voice-first {
    width: 72px;
    height: 72px;
    min-width: 72px;
    animation: voice-first-pulse 3s ease-in-out infinite;
    box-shadow:
        0 6px 24px rgba(255, 140, 0, 0.5),
        0 0 0 0 rgba(255, 140, 0, 0.4);
}

/* Subtle attention-grabbing pulse */
@keyframes voice-first-pulse {
    0%, 100% {
        box-shadow:
            0 6px 24px rgba(255, 140, 0, 0.5),
            0 0 0 0 rgba(255, 140, 0, 0.4);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(255, 140, 0, 0.6),
            0 0 0 8px rgba(255, 140, 0, 0.12);
    }
}

.voice-input-btn:hover {
    transform: scale(1.1);
    box-shadow:
        0 8px 28px rgba(255, 140, 0, 0.6),
        0 0 0 8px rgba(255, 140, 0, 0.15);
    animation: none;
    background: linear-gradient(135deg, #FF9500 0%, #FF7A00 50%, #FF6600 100%);
}

.voice-input-btn:active {
    transform: scale(1.02);
}

/* Button icon */
.voice-input-btn .voice-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-input-btn .voice-btn-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.voice-input-btn.voice-first .voice-btn-icon svg {
    width: 32px;
    height: 32px;
}

/* Button text hint */
.voice-input-btn .voice-btn-text {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.voice-input-btn.voice-first .voice-btn-text {
    font-size: 11px;
}

/* Waveform container (hidden when not recording) */
.voice-input-btn .voice-btn-waveform {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.voice-input-btn.recording .voice-btn-waveform {
    display: flex;
}

.voice-btn-waveform .waveform-bar {
    width: 4px;
    background: linear-gradient(to top, #FF8C00, #FFB347);
    border-radius: 2px;
    transition: height 0.1s ease;
}

/* State: Idle */
.voice-input-btn.idle {
    /* Default state */
}

/* State: Requesting microphone */
.voice-input-btn.requesting {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    animation: none;
    cursor: wait;
}

/* State: Recording */
.voice-input-btn.recording {
    background: linear-gradient(135deg, #FF4444 0%, #EF4444 50%, #DC2626 100%);
    animation: voice-recording-pulse 1s ease-in-out infinite;
}

@keyframes voice-recording-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(239, 68, 68, 0.7),
            0 4px 16px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 0 16px rgba(239, 68, 68, 0),
            0 8px 28px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

/* State: Processing/Transcribing */
.voice-input-btn.processing {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    animation: none;
    cursor: wait;
}

.voice-input-btn.processing .voice-btn-icon svg.spin {
    animation: spin 1s linear infinite;
}

/* State: Error */
.voice-input-btn.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    animation: voice-error-shake 0.5s ease;
}

@keyframes voice-error-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

/* Disabled state */
.voice-input-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

/* Inline voice button (smaller, for existing layouts) */
.voice-input-btn.inline {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.voice-input-btn.inline .voice-btn-icon svg {
    width: 20px;
    height: 20px;
}

.voice-input-btn.inline .voice-btn-text {
    display: none;
}

/* Voice-first form group */
.form-group.voice-first {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group.voice-first .voice-input-wrapper {
    order: 1;
}

.form-group.voice-first .voice-hint {
    order: 2;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: -8px;
}

.form-group.voice-first .voice-hint em {
    color: var(--primary-purple, #FF8C00);
    font-style: normal;
    font-weight: 500;
}

/* Voice input with prominent mic (vertical layout) */
.voice-input-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.voice-input-vertical .voice-input-btn {
    width: 80px;
    height: 80px;
    min-width: 80px;
}

.voice-input-vertical .voice-input-btn .voice-btn-icon svg {
    width: 36px;
    height: 36px;
}

.voice-input-vertical .voice-input-btn .voice-btn-text {
    font-size: 12px;
}

.voice-input-vertical input,
.voice-input-vertical textarea {
    width: 100%;
    text-align: center;
}

/* Voice status indicator */
.voice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
}

.voice-status.recording {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.voice-status.processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
}

.voice-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: dot-blink 1s ease-in-out infinite;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Voice prompt text (above input) */
.voice-prompt {
    text-align: center;
    margin-bottom: 16px;
}

.voice-prompt-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.voice-prompt-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.voice-prompt-subtext {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Dark mode adjustments */
[data-theme="dark"] .voice-input-btn {
    box-shadow:
        0 4px 20px rgba(255, 140, 0, 0.5),
        0 0 0 0 rgba(255, 140, 0, 0.4);
}

[data-theme="dark"] .voice-input-btn.voice-first {
    box-shadow:
        0 6px 28px rgba(255, 140, 0, 0.55),
        0 0 0 0 rgba(255, 140, 0, 0.45);
}

[data-theme="dark"] .voice-input-btn:hover {
    box-shadow:
        0 8px 32px rgba(255, 140, 0, 0.65),
        0 0 0 8px rgba(255, 140, 0, 0.2);
}

[data-theme="dark"] .voice-status {
    background: rgba(255, 140, 0, 0.15);
}

[data-theme="dark"] .voice-status.recording {
    background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .voice-status.processing {
    background: rgba(59, 130, 246, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .voice-input-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .voice-input-btn.voice-first {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .voice-input-btn.voice-first .voice-btn-icon svg {
        width: 28px;
        height: 28px;
    }

    .voice-input-vertical .voice-input-btn {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
}

/* Accessibility: Focus states */
.voice-input-btn:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(255, 140, 0, 0.3),
        0 4px 16px rgba(255, 140, 0, 0.45);
}

.voice-input-btn:focus-visible {
    outline: 2px solid #FF8C00;
    outline-offset: 4px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* =====================================================
   Jambvant Messaging Interface Styles
   ===================================================== */

/* ===== Force site header to always be visible ===== */
body > header.site-header,
#header-placeholder > header.site-header,
.site-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* ===== Layout - Glass-Neumorphism ===== */
.messaging-page {
    min-height: 100vh;
    padding-top: 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 245, 230, 0.5) 100%);
    color: var(--text-dark);
    position: relative;
}

[data-theme="dark"] .messaging-page {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(30, 30, 30, 0.95) 100%);
}

.messaging-layout {
    display: flex;
    height: calc(100vh - 120px);
    max-width: 1400px;
    margin: 120px auto 0;
    /* Glass-Neumorphism container */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow:
        10px 10px 30px var(--glass-neu-dark, rgba(0, 0, 0, 0.08)),
        -10px -10px 30px var(--glass-neu-light, rgba(255, 255, 255, 0.9)),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

[data-theme="dark"] .messaging-layout {
    background: rgba(28, 28, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        10px 10px 30px var(--glass-neu-dark, rgba(0, 0, 0, 0.4)),
        -10px -10px 30px var(--glass-neu-light, rgba(50, 50, 50, 0.4));
}

/* ===== Conversations Sidebar - Glass-Neumorphism ===== */
.conversations-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .conversations-sidebar {
    background: rgba(25, 25, 25, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.conversations-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conversations-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.unread-badge {
    /* Glass-Neumorphism badge */
    background: linear-gradient(145deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    box-shadow:
        3px 3px 8px rgba(255, 140, 0, 0.2),
        -2px -2px 6px rgba(255, 200, 100, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.conversations-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-input {
    /* Glass-Neumorphism input */
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-dark);
    box-shadow:
        inset 3px 3px 6px var(--glass-neu-inset-dark, rgba(0, 0, 0, 0.04)),
        inset -3px -3px 6px var(--glass-neu-inset-light, rgba(255, 255, 255, 0.5));
    transition: all 0.2s;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow:
        inset 2px 2px 4px var(--glass-neu-inset-dark, rgba(0, 0, 0, 0.04)),
        inset -2px -2px 4px var(--glass-neu-inset-light, rgba(255, 255, 255, 0.5)),
        0 0 0 3px rgba(255, 140, 0, 0.1);
}

[data-theme="dark"] .search-input {
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.conversations-filter {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-light);
}

.filter-btn.active {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== Conversation Group Headers (like Approved Connections) ===== */
.conversation-group-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.conversation-group-header.seeking {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--primary-purple);
}

.conversation-group-header.offering {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
}

/* Dark mode for conversation group headers */
[data-theme="dark"] .conversation-group-header.seeking {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-left: 4px solid var(--primary-purple);
}

[data-theme="dark"] .conversation-group-header.offering {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.15) 100%) !important;
    border-left: 4px solid #22c55e;
}

/* System dark mode preference support */
@media (prefers-color-scheme: dark) {
    .conversation-item.active {
        background: rgba(139, 92, 246, 0.15);
    }

    .conversation-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .conversation-group-header.seeking {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    }

    .conversation-group-header.offering {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.15) 100%);
    }
}

.group-header-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.group-header-content {
    flex: 1;
    min-width: 0;
}

.group-header-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.conversation-group-header.seeking .group-header-label {
    color: var(--primary-purple);
}

.conversation-group-header.offering .group-header-label {
    color: #15803d;
}

.group-header-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.group-header-count {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.conversation-group-header.seeking .group-header-count {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-purple);
}

.conversation-group-header.offering .group-header-count {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.conversation-item:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .conversation-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.conversation-item.active {
    background: var(--primary-light, #fff3f0);
    border-left: 4px solid var(--primary-purple);
}

[data-theme="dark"] .conversation-item.active {
    background: rgba(139, 92, 246, 0.15) !important;
    border-left: 4px solid var(--primary-purple);
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin-right: 12px;
}

.conversation-details {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.conversation-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 12px;
    color: var(--text-gray);
    flex-shrink: 0;
    margin-left: 8px;
}

.conversation-preview {
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.conversation-preview.unread {
    font-weight: 600;
    color: var(--text-dark);
}

.conversation-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-bronze { background: #CD7F32; color: white; }
.tier-silver { background: #C0C0C0; color: white; }
.tier-gold { background: #FFD700; color: #333; }
.tier-platinum { background: #E5E4E2; color: #333; }
.tier-diamond { background: #B9F2FF; color: #333; }

.conversation-unread-badge {
    background: var(--primary-purple);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* ===== Chat Main Area ===== */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: relative;
    z-index: 1;
}

.back-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    margin-right: 12px;
    cursor: pointer;
    color: var(--text-gray);
    border-radius: 50%;
    transition: background 0.2s;
}

.back-btn:hover {
    background: var(--bg-light);
}

.chat-user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-right: 12px;
}

.chat-user-details h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-gray);
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--bg-light);
}

/* ===== Messages Container ===== */
.messages-scroll-container {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-light);
    padding: 20px;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-bubble.mine {
    align-self: flex-end;
    background: var(--primary-purple);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.theirs {
    align-self: flex-start;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-content {
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.message-metadata {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 11px;
    opacity: 0.7;
}

.message-bubble.mine .message-metadata {
    color: white;
}

.message-bubble.theirs .message-metadata {
    color: var(--text-gray);
}

.read-status {
    font-size: 12px;
}

.messages-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== Chat Input ===== */
.chat-input-container {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-input {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-white);
    color: var(--text-dark);
}

.message-input:focus {
    border-color: var(--primary-purple);
}

.input-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.char-counter {
    font-size: 12px;
    color: var(--text-gray);
}

.send-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.send-btn:hover:not(:disabled) {
    background: var(--primary-purple-dark);
    transform: translateY(-1px);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voice-input-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.voice-input-btn:hover {
    background: var(--hover-bg);
    transform: scale(1.1);
}

.voice-input-btn.recording {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    animation: pulse-voice 1.5s ease-in-out infinite;
}

@keyframes pulse-voice {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===== Loading States ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
}

.menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover {
    background: var(--bg-light);
}

.menu-item.danger {
    color: #dc3545;
}

.menu-item.danger:hover {
    background: #fff5f5;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .messaging-layout {
        height: calc(100vh - 100px);
        margin: 100px auto 0;
    }

    .messaging-page {
        padding-top: 0;
    }

    .conversations-sidebar {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 10;
        transition: transform 0.3s;
    }

    .conversations-sidebar.hidden {
        transform: translateX(-100%);
    }

    .chat-main {
        width: 100%;
    }

    .back-btn {
        display: flex;
    }

    .message-bubble {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .conversations-sidebar {
        width: 100%;
    }

    .conversations-header h1 {
        font-size: 20px;
    }

    .conversation-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .message-bubble {
        max-width: 90%;
        padding: 10px 12px;
    }

    .chat-input-container {
        padding: 12px 16px;
    }

    /* Group header responsive */
    .conversation-group-header {
        padding: 10px 16px;
        gap: 10px;
    }

    .group-header-icon {
        font-size: 16px;
    }

    .group-header-label {
        font-size: 9px;
    }

    .group-header-text {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .group-header-count {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ===== Accessibility ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== Scrollbar Styling ===== */
.conversations-list::-webkit-scrollbar,
.messages-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track,
.messages-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb,
.messages-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover,
.messages-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* ===== New Message Button ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.new-message-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.new-message-btn:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.new-message-btn svg {
    stroke-width: 2.5;
}

/* ===== New Message Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-gray);
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-description {
    margin: 0 0 20px;
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== Available Connections List ===== */
.available-connections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.available-connection-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.available-connection-item:hover {
    border-color: var(--primary-purple);
    background: rgba(255, 107, 53, 0.04);
    transform: translateX(4px);
}

.available-connection-item .connection-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.available-connection-item .connection-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.available-connection-item .connection-info {
    flex: 1;
    min-width: 0;
}

.available-connection-item .connection-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.available-connection-item .connection-seeking {
    font-size: 13px;
    color: var(--text-gray);
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.available-connection-item .seeking-label {
    font-weight: 600;
    color: var(--primary-purple);
    display: inline-block;
    margin-right: 4px;
}

.available-connection-item .connection-tier {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 4px;
}

/* ===== Seeking Context in Chat ===== */
.seeking-context-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.02));
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.seeking-context-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.seeking-context-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-purple);
}

.seeking-context-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-gray);
    transition: transform 0.2s;
}

.seeking-context-toggle.expanded {
    transform: rotate(180deg);
}

.seeking-context-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
    display: none;
}

.seeking-context-content.expanded {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.seeking-context-section {
    margin-bottom: 12px;
}

.seeking-context-section:last-child {
    margin-bottom: 0;
}

.seeking-context-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.seeking-context-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
}
