/* ═══════════════════════════════════════════════════════════════════════════
   SplitBill — Homepage Styles (Self-Contained)
   Premium landing page with design tokens, header, footer, animations & glassmorphism
   ═══════════════════════════════════════════════════════════════════════════ */

:root, [data-theme="dark"] {
    /* Colors (Dark Theme - Default) */
    --bg-primary: #0A0A12;
    --bg-secondary: #12121E;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(255, 255, 255, 0.1);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(108, 92, 231, 0.5);

    --text-primary: #F0F0F5;
    --text-secondary: #8B8BA3;
    --text-muted: #5A5A72;
    --text-accent: #A78BFA;

    --accent-primary: #6C5CE7;
    --accent-secondary: #A855F7;
    --accent-gradient: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    --accent-glow: rgba(108, 92, 231, 0.3);

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

[data-theme="light"] {
    /* Colors (Light Theme Overrides) */
    --bg-primary: #F4F4F9;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F0F7;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-input: #F0F0F7;
    --bg-input-focus: #FFFFFF;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --border-focus: rgba(108, 92, 231, 0.6);

    --text-primary: #1E1E2E;
    --text-secondary: #6C6C82;
    --text-muted: #9E9EA8;
    --text-accent: #6C5CE7;

    --accent-primary: #6C5CE7;
    --accent-secondary: #A855F7;
    --accent-gradient: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    --accent-glow: rgba(108, 92, 231, 0.2);

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

:root {
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --navbar-height: 64px;
    --content-max-width: 1200px;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-size: var(--font-xl);
    font-weight: 700;
}

.navbar-logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* ─── Badge ─────────────────────────────────────────────────────────────── */
.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--error);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ─── Main Layout ───────────────────────────────────────────────────────── */
.main-content {
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    padding-bottom: var(--space-2xl);
    max-width: var(--content-max-width);
    margin: 0 auto;
    min-height: 100vh;
}

/* ─── Avatar ────────────────────────────────────────────────────────────── */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    font-size: var(--font-xs);
    font-weight: 700;
    color: white;
    background: var(--accent-gradient);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-sm .avatar-initials {
    font-size: 11px;
}

/* ─── Dropdown System ───────────────────────────────────────────────────── */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2500;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.2s ease forwards;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

/* ─── Notification Items ────────────────────────────────────────────────── */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.notification-title {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-xs);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-card-hover);
}

.notification-item.unread {
    background: rgba(108, 92, 231, 0.08);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.notif-icon svg {
    width: 16px;
    height: 16px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: var(--font-xs);
    font-weight: 700;
}

.notif-msg {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.empty-notif {
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

/* ─── Theme Toggle Component ─────────────────────────────────────────────── */
.theme-toggle-group {
    display: inline-flex;
    background: var(--bg-input);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-btn svg {
    width: 14px;
    height: 14px;
}

.theme-btn:hover {
    color: var(--text-primary);
}

.theme-btn.active {
    background: var(--accent-gradient);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.btn-ghost-sm {
    background: none;
    border: none;
    color: var(--text-accent);
    cursor: pointer;
    font-size: var(--font-xs);
}

.btn-ghost-sm:hover {
    text-decoration: underline;
}

/* ─── User Account Dropdown & Mobile Fullscreen Drawer ───────────────────── */
.btn-user-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.user-dropdown-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.user-account-drawer {
    width: 260px;
    right: 0;
    left: auto;
}

/* Mobile drawer header MUST be hidden on desktop */
.mobile-drawer-header {
    display: none !important;
}

.user-dropdown-profile-box {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-name {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.user-dropdown-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 2px;
}

.user-dropdown-settings-box {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-settings-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.user-dropdown-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-dropdown-theme-title {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.user-dropdown-links-list {
    padding: var(--space-xs) 0;
    display: flex;
    flex-direction: column;
}

.user-dropdown-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.user-dropdown-link-item:hover {
    background: var(--bg-card-hover);
}

.user-dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.user-dropdown-icon-workspaces {
    color: var(--accent-primary);
}

.user-dropdown-icon-rate {
    color: #F59E0B;
}

.user-dropdown-icon-profile {
    color: var(--text-secondary);
}

.user-dropdown-logout-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.user-dropdown-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--error);
    font-size: var(--font-sm);
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.user-dropdown-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-icon-logout {
    color: var(--error);
}

/* ─── Mobile Fullscreen Drawer View (max-width: 768px) ─────────────────── */
@keyframes drawerSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-burger {
    display: none;
}

@media (max-width: 900px) {
    .btn-burger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .navbar-nav-links {
        display: none !important;
    }

    #main-menu-drawer.dropdown-menu.active,
    #user-dropdown-menu.dropdown-menu.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 99999 !important;
        background: var(--bg-secondary) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: var(--space-lg) !important;
        overflow-y: auto !important;
        animation: drawerSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    .mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: var(--space-md) !important;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: var(--space-md) !important;
    }

    .mobile-drawer-title {
        font-weight: 700;
        font-size: var(--font-lg);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-drawer-icon {
        width: 22px;
        height: 22px;
        color: var(--accent-primary);
    }

    .drawer-close-btn {
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-full) !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--text-primary) !important;
        cursor: pointer !important;
        padding: 0 !important;
    }

    .drawer-close-icon {
        width: 20px;
        height: 20px;
    }

    .user-dropdown-link-item,
    .user-dropdown-logout-btn {
        padding: 16px 20px !important;
        font-size: var(--font-base) !important;
        border-radius: var(--radius-md) !important;
    }

    .main-menu-drawer-links .main-nav-menu {
        display: block !important;
        width: 100% !important;
    }

    .main-menu-drawer-links .main-nav-menu .nav-menu-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-menu-drawer-links .main-nav-menu .nav-menu-item {
        display: block !important;
        width: 100% !important;
    }

    .main-menu-drawer-links .menu-link {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: var(--font-base) !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        border-radius: var(--radius-md) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        transition: background 0.2s ease !important;
    }

    .main-menu-drawer-links .menu-link:hover {
        background: var(--bg-card-hover) !important;
        color: var(--text-accent) !important;
    }
}

/* ─── Navigation Links & Menu ───────────────────────────────────────────── */
.navbar-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.navbar-nav-links .main-nav-menu {
    display: flex;
    align-items: center;
}

.navbar-nav-links .main-nav-menu .nav-menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav-links .main-nav-menu .nav-menu-item {
    display: inline-flex;
    align-items: center;
}

.main-nav-menu .menu-link {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.main-nav-menu .menu-link:hover {
    color: #FFFFFF;
    background: rgba(108, 92, 231, 0.15);
}

/* ─── Purple Text with Underline for Active Menu Links ─────────────────────── */
.main-nav-menu .menu-link.active,
.main-menu-drawer-links .menu-link.active,
#main-menu-drawer .main-menu-drawer-links .menu-link.active {
    color: #A855F7 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: #A855F7 !important;
    font-weight: 700 !important;
}

/* ─── Alert Messages ────────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: var(--font-lg);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ─── Dropdown slideUp Animation ────────────────────────────────────────── */
@keyframes slideUp {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/* ─── Override main-content constraints for homepage ────────────────────── */
.main-content:has(.hp-wrapper) {
    max-width: none;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

/* ─── Wrapper ────────────────────────────────────────────────────────────── */
.hp-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* ─── Section Header ─────────────────────────────────────────────────────── */
.hp-section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hp-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.hp-section-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px var(--space-2xl) var(--space-2xl);
    background: radial-gradient(circle at 50% 30%, rgba(30, 26, 58, 0.95) 0%, rgba(13, 12, 23, 1) 100%);
    box-sizing: border-box;
}

.hp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(2px);
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108, 92, 231, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hp-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: rgba(30, 27, 52, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-full);
    color: var(--text-accent);
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hp-hero__title {
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 35%, #C084FC 70%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hp-hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hp-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    background: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    color: white;
    font-size: var(--font-lg);
    font-weight: 800;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 36px rgba(108, 92, 231, 0.45), 0 0 80px rgba(168, 85, 247, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hp-hero__cta:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 52px rgba(108, 92, 231, 0.6), 0 0 100px rgba(168, 85, 247, 0.4);
    color: white;
}

/* Floating orbs */
.hp-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.hp-hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hp-hero__orb--2 {
    width: 300px;
    height: 300px;
    background: #A855F7;
    bottom: -50px;
    right: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hp-hero__orb--3 {
    width: 200px;
    height: 200px;
    background: #3B82F6;
    top: 50%;
    left: 60%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}


/* ═══════════════════════════════════════════════════════════════════════════
   APP STEPS (Phone Mockup)
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-steps {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hp-steps__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hp-steps__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hp-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    position: relative;
    overflow: hidden;
    /* scroll animation */
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease, background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.hp-step.hp-visible {
    opacity: 1;
    transform: translateX(0);
}

.hp-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.hp-step--active {
    background: rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.1);
}

.hp-step--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
}

.hp-step__number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-step__icon {
    color: var(--text-accent);
    margin-top: 2px;
}

.hp-step__icon i {
    width: 22px;
    height: 22px;
}

.hp-step__title {
    font-weight: 700;
    font-size: var(--font-base);
    margin-bottom: 4px;
}

.hp-step__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Phone mockup */
.hp-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hp-phone__frame {
    width: 280px;
    height: 580px;
    background: #1a1a2e;
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1;
}

[data-theme="light"] .hp-phone__frame {
    background: #e8e8f0;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hp-phone__notch {
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

[data-theme="light"] .hp-phone__notch {
    background: #e8e8f0;
}

.hp-phone__screen {
    width: 100%;
    height: calc(100% - 28px);
    background: var(--bg-primary);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.hp-phone__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hp-phone__image--active {
    opacity: 1;
    transform: scale(1);
}

.hp-phone__glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-features {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hp-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.hp-feature-card {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    /* scroll animation */
    opacity: 0;
    transform: translateY(40px);
}

.hp-feature-card.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.hp-feature-card.hp-visible:hover {
    transform: translateY(-8px);
}

.hp-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.hp-feature-card__icon i {
    width: 28px;
    height: 28px;
}

.hp-feature-card__title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.hp-feature-card__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Hover shine effect */
.hp-feature-card__shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.hp-feature-card:hover .hp-feature-card__shine {
    transform: rotate(25deg) translateX(100%);
}


/* ═══════════════════════════════════════════════════════════════════════════
   STATS COUNTER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-stats {
    position: relative;
    padding: 90px var(--space-2xl);
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 16, 38, 0.95) 0%, rgba(48, 22, 85, 0.85) 50%, rgba(16, 14, 30, 0.95) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: inset 0 0 120px rgba(108, 92, 231, 0.25), 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.hp-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.15), transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.12), transparent 40%);
    animation: orbFloat 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.hp-stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.hp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: rgba(30, 26, 56, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hp-stat.hp-visible {
    opacity: 1;
    transform: scale(1);
}

.hp-stat:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(40, 34, 76, 0.75);
    box-shadow: 0 18px 50px rgba(168, 85, 247, 0.35), 0 0 30px rgba(108, 92, 231, 0.3);
}

.hp-stat__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C084FC;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.hp-stat__icon i, .hp-stat__icon svg {
    width: 26px;
    height: 26px;
}

.hp-stat__value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.hp-stat__label {
    font-size: var(--font-base);
    color: var(--text-secondary);
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-testimonials {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hp-testimonials__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.hp-testimonial {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.hp-testimonial.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-testimonial:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hp-testimonial__stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.hp-star-active {
    width: 16px;
    height: 16px;
    fill: #F59E0B;
    color: #F59E0B;
}

.hp-star-inactive {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.hp-testimonial__quote {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: var(--space-lg);
}

.hp-testimonial__quote-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
    display: block;
}

.hp-testimonial__quote p {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.hp-testimonial__author {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hp-testimonial__avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-lg);
    overflow: hidden;
}

.hp-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-testimonial__author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-testimonial__name {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.hp-testimonial__role {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.hp-testimonial__verified {
    font-size: var(--font-xs);
    color: var(--success);
    font-weight: 500;
}

.hp-testimonials__ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-cta {
    position: relative;
    padding: 100px var(--space-2xl);
    text-align: center;
    overflow: hidden;
}

.hp-cta__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

.hp-cta__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.hp-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.hp-cta__subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent-gradient);
    color: white;
    font-size: var(--font-lg);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 32px var(--accent-glow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hp-cta__btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 48px var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-footer {
    position: relative;
    padding: 60px var(--space-2xl) 40px;
    width: 100%;
    background: linear-gradient(180deg, rgba(13, 12, 23, 0) 0%, rgba(13, 12, 23, 1) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    box-sizing: border-box;
}

.hp-footer__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.hp-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.hp-footer__brand-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hp-footer__logo {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.hp-footer__tagline {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
}

.hp-footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: var(--font-xs);
    color: var(--text-muted);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: var(--space-lg);
}

/* Footer menu block */
.footer-menu-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-menu-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu-list li .menu-link {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-menu-list li .menu-link:hover {
    color: #C084FC;
    padding-left: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   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 orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* ─── Phone + Steps: 4 buttons around smaller phone ──────────────────── */
    .hp-steps__layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "step0 step1"
            "phone phone"
            "step2 step3";
        gap: var(--space-md);
        align-items: center;
    }

    .hp-steps__list {
        display: contents;
    }

    .hp-step[data-step="0"] { grid-area: step0; }
    .hp-step[data-step="1"] { grid-area: step1; }
    .hp-step[data-step="2"] { grid-area: step2; }
    .hp-step[data-step="3"] { grid-area: step3; }

    .hp-phone {
        grid-area: phone;
        order: 0;
        margin: var(--space-sm) auto;
    }

    .hp-phone__frame {
        width: 180px;
        height: 370px;
        border-radius: 28px;
        padding: 8px;
    }

    .hp-phone__notch {
        width: 90px;
        height: 20px;
        border-radius: 0 0 12px 12px;
    }

    .hp-phone__screen {
        height: calc(100% - 20px);
        border-radius: 20px;
    }

    .hp-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md) var(--space-sm);
        gap: var(--space-sm);
    }

    .hp-step__number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: var(--font-xs);
    }

    .hp-step__icon i {
        width: 18px;
        height: 18px;
    }

    .hp-step__title {
        font-size: var(--font-sm);
    }

    .hp-step__desc {
        font-size: var(--font-xs);
        line-height: 1.4;
    }

    .hp-step--active::before {
        left: 0;
        top: 0;
        bottom: auto;
        width: 100%;
        height: 3px;
        border-radius: 3px 3px 0 0;
    }

    /* ─── Testimonials / Ratings: horizontal snap slider with EXACT equal card sizes ─── */
    .hp-testimonials__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding: var(--space-xs) var(--space-xs) var(--space-lg);
        scrollbar-width: none;
        align-items: stretch;
    }

    .hp-testimonials__track::-webkit-scrollbar {
        display: none;
    }

    .hp-testimonial {
        width: 290px !important;
        min-width: 290px !important;
        max-width: 290px !important;
        flex: 0 0 290px !important;
        height: auto !important;
        min-height: 250px !important;
        box-sizing: border-box !important;
        scroll-snap-align: center;
    }

    /* ─── Feature cards: 2-column grid with centered text and icons on mobile ─── */
    .hp-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .hp-feature-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-lg) var(--space-sm);
    }

    .hp-feature-card__icon {
        width: 44px;
        height: 44px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-md);
    }

    .hp-feature-card__icon i {
        width: 22px;
        height: 22px;
    }

    .hp-feature-card__title {
        font-size: var(--font-base);
        margin-bottom: 4px;
    }

    .hp-feature-card__desc {
        font-size: var(--font-xs);
        line-height: 1.5;
    }

    .hp-footer__inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* ─── Neural map: bigger & zoomed in on mobile via SVG viewBox framing ─────── */
    .neural-map-section {
        padding: 60px var(--space-md);
    }

    .neural-map-container {
        min-height: 280px;
        overflow: hidden;
    }

    .neural-map-svg {
        min-height: 260px;
        transform: none;
    }
}

@media (max-width: 600px) {
    .hp-hero {
        min-height: 80vh;
        padding: var(--space-xl) var(--space-md);
    }

    .hp-steps,
    .hp-features,
    .hp-testimonials,
    .hp-cta,
    .hp-faq {
        padding: 60px var(--space-md);
    }

    .hp-stats {
        padding: 50px var(--space-md);
    }

    .hp-phone__frame {
        width: 170px;
        height: 350px;
    }

    .hp-step {
        padding: var(--space-md);
    }

    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BACKGROUND ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-steps {
    border-radius: var(--radius-xl);
}

.hp-features {
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
}

.hp-testimonials {
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.04) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-faq {
    padding: 100px var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(22, 20, 38, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.faq-item:hover {
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--accent-primary);
    background: rgba(30, 27, 52, 0.95);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.25);
}

.faq-question {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-align: left !important;
    gap: 16px !important;
    transition: color 0.2s ease !important;
}

.faq-question:hover {
    color: var(--text-accent) !important;
}

.faq-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: faqSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-base);
}

.faq-answer-content p {
    margin: 0;
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT FORM SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-contact {
    padding: 100px var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.contact-card-wrap {
    background: rgba(22, 20, 38, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.contact-feedback {
    font-size: var(--font-sm);
    font-weight: 600;
    text-align: center;
}

.contact-feedback.success {
    color: #10B981;
}

.contact-feedback.error {
    color: #EF4444;
}

/* ─── Form Success State ─────────────────────────────────────────────────── */
.form-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    min-height: 280px;
    animation: fadeInUp 0.6s ease-out;
}

.form-success-state__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    animation: successPulse 2s ease-in-out infinite;
}

.form-success-state__icon svg {
    width: 36px;
    height: 36px;
    color: #10B981;
    stroke-width: 2.5;
}

.form-success-state__title {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-success-state__message {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}



/* ═══════════════════════════════════════════════════════════════════════════
   NEURAL MAP / INTERACTIVE EXPENSE MATRIX
   ═══════════════════════════════════════════════════════════════════════════ */
.neural-map-section {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.neural-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(30, 27, 52, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-full);
    color: var(--text-accent);
    font-size: var(--font-sm);
    font-weight: 700;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
}

.neural-map-badge i,
.neural-map-badge svg {
    width: 18px;
    height: 18px;
}

/* ─── Container & Canvas ────────────────────────────────────────────────── */
.neural-map-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-xl);
    background: rgba(13, 12, 23, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.2);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(108, 92, 231, 0.15), inset 0 0 80px rgba(108, 92, 231, 0.05);
}

.neural-lightning-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.neural-map-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 350px;
    position: relative;
    z-index: 1;
}

/* ─── Arc Lines ─────────────────────────────────────────────────────────── */
.neural-arc-line {
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.neural-arc-line.flow-primary {
    stroke: #6C5CE7;
    stroke-dasharray: 8 4;
    animation: neuralDash 2s linear infinite;
}

.neural-arc-line.flow-success {
    stroke: #10B981;
    stroke-dasharray: 8 4;
    animation: neuralDash 2.5s linear infinite;
}

.neural-arc-line.flow-purple {
    stroke: #A855F7;
    stroke-dasharray: 8 4;
    animation: neuralDash 3s linear infinite;
}

.neural-arc-line.flow-settlement {
    stroke: url(#flow-gradient-2);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
    opacity: 0.4;
    animation: neuralDash 4s linear infinite reverse;
}

@keyframes neuralDash {
    to { stroke-dashoffset: -24; }
}

/* ─── Nodes ─────────────────────────────────────────────────────────────── */
.map-node {
    cursor: pointer;
    transition: filter 0.3s ease;
}

.map-node:hover,
.map-node.node-active {
    filter: url(#neon-glow-primary);
}

/* Hub node */
.node-hub-pulse {
    fill: rgba(108, 92, 231, 0.15);
    stroke: rgba(108, 92, 231, 0.4);
    stroke-width: 1.5;
    animation: hubPulse 3s ease-in-out infinite;
}

.node-hub-core {
    fill: #6C5CE7;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.node-hub-text {
    fill: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
    letter-spacing: 0.1em;
    font-family: var(--font-family);
}

@keyframes hubPulse {
    0%, 100% { r: 32; opacity: 1; }
    50% { r: 36; opacity: 0.7; }
}

/* Member nodes */
.node-pulse {
    stroke-width: 1;
    animation: nodePulse 2.5s ease-in-out infinite;
}

.node-pulse.pulse-success {
    fill: rgba(16, 185, 129, 0.12);
    stroke: rgba(16, 185, 129, 0.4);
}

.node-pulse.pulse-error {
    fill: rgba(239, 68, 68, 0.12);
    stroke: rgba(239, 68, 68, 0.4);
}

.node-dot {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.node-dot.dot-success {
    fill: #10B981;
}

.node-dot.dot-error {
    fill: #EF4444;
}

@keyframes nodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Node text */
.node-text-bold {
    fill: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    font-family: var(--font-family);
}

.node-text-sub {
    fill: var(--text-secondary);
    font-size: 9px;
    font-weight: 600;
    text-anchor: middle;
    font-family: var(--font-family);
}

.node-text-sub.text-success {
    fill: #10B981;
}

.node-text-sub.text-error {
    fill: #EF4444;
}

/* ─── Tooltip ───────────────────────────────────────────────────────────── */
.neural-tooltip {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    background: rgba(22, 20, 40, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    min-width: 180px;
}

.neural-tooltip-badge {
    font-size: var(--font-xs);
    font-weight: 700;
    color: #A78BFA;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.neural-tooltip-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.neural-tooltip-sub {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

/* ─── Neural Map Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .neural-map-section {
        padding: 50px var(--space-md);
    }

    .neural-map-container {
        min-height: 260px;
        overflow: hidden;
    }

    .neural-map-svg {
        min-height: 240px;
        transform: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MAIN MENU DRAWER (VERTICAL STACK OVERRIDE)
   ═══════════════════════════════════════════════════════════════════════════ */
#main-menu-drawer .main-menu-drawer-links nav,
#main-menu-drawer .main-menu-drawer-links .main-nav-menu,
.main-menu-drawer-links .main-nav-menu {
    display: block !important;
    width: 100% !important;
}

#main-menu-drawer .main-menu-drawer-links ul,
#main-menu-drawer .main-menu-drawer-links .nav-menu-list,
.main-menu-drawer-links .nav-menu-list,
.main-menu-drawer-links .main-nav-menu .nav-menu-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#main-menu-drawer .main-menu-drawer-links li,
#main-menu-drawer .main-menu-drawer-links .nav-menu-item,
.main-menu-drawer-links .nav-menu-item,
.main-menu-drawer-links .main-nav-menu .nav-menu-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#main-menu-drawer .main-menu-drawer-links a,
#main-menu-drawer .main-menu-drawer-links .menu-link,
.main-menu-drawer-links .menu-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: var(--font-base, 16px) !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease !important;
}

.lang-flag-mini {
    font-size: 14px;
    display: inline-block;
    line-height: 1;
}

.lang-option-span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Notification Dropdown Fixed Position ───────────────────────────── */
#notification-dropdown.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 360px !important;
    max-width: calc(100vw - 32px) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
}

#notification-dropdown-container {
    position: relative !important;
}

/* ─── Premium Light Theme Overrides ─────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-input: #F1F5F9;
    --bg-input-focus: #FFFFFF;

    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-focus: #7C3AED;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-accent: #6D28D9;

    --accent-primary: #7C3AED;
    --accent-secondary: #9333EA;
    --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    --accent-glow: rgba(124, 58, 237, 0.15);

    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --info: #2563EB;
}

[data-theme="light"] .navbar,
[data-theme="light"] .dropdown-menu,
[data-theme="light"] .card,
[data-theme="light"] .modal-container,
[data-theme="light"] .profile-section-card {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] textarea {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] textarea:focus {
    background: #FFFFFF !important;
    border-color: #7C3AED !important;
}

[data-theme="light"] .menu-link,
[data-theme="light"] .nav-link,
[data-theme="light"] .user-dropdown-name {
    color: #0F172A !important;
}

[data-theme="light"] .user-dropdown-id,
[data-theme="light"] .page-subtitle,
[data-theme="light"] .card-desc {
    color: #475569 !important;
}

/* ─── Language Switcher & Dropdown Master Fixes ───────────────────────── */
.dropdown#language-dropdown-container {
    position: relative !important;
}

#btn-language-dropdown,
.lang-btn-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 40px !important;
    min-width: max-content !important;
    width: auto !important;
    padding: 0 14px !important;
    background: #18162A !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

#btn-language-dropdown:hover,
.lang-btn-trigger:hover {
    background: #211E3B !important;
    border-color: #A855F7 !important;
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.25) !important;
}

.lang-dropdown-drawer,
.lang-dropdown-drawer.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 180px !important;
    padding: 6px !important;
    background: #18162A !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    z-index: 1000 !important;
    display: none;
    flex-direction: column !important;
}

.lang-dropdown-drawer.active,
.lang-dropdown-drawer.dropdown-menu.active {
    display: flex !important;
}

.lang-switcher-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.lang-select-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    color: #F0F0F5 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.lang-select-btn:hover, .lang-select-btn.active {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #A855F7 !important;
    font-weight: 700 !important;
}

.lang-flag-mini {
    font-size: 15px !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.lang-option-span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.lang-check-icon {
    width: 14px !important;
    height: 14px !important;
    color: #A855F7 !important;
}

/* ─── Account Menu Screen Edge Fix ─────────────────────────────────────── */
#user-dropdown-container {
    position: relative !important;
}

#user-dropdown-menu.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 240px !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
}

/* ─── Footer Master Accent & Title Colors ──────────────────────────────── */
.hp-footer__logo-icon {
    color: var(--accent-primary) !important;
    fill: var(--accent-primary) !important;
    width: 28px !important;
    height: 28px !important;
}

.hp-footer__logo {
    font-size: var(--font-xl) !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
}

.hp-footer__logo-accent {
    color: var(--accent-primary) !important;
}

.footer-menu-title {
    font-size: var(--font-sm) !important;
    font-weight: 700 !important;
    color: var(--accent-primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: var(--space-xs) !important;
}

/* ─── Language Switcher Rectangular Trigger (No Pill/Circle Outline) ────── */
.lang-btn-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background 0.2s ease !important;
}

.lang-btn-trigger:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
}

.lang-flag-svg {
    border-radius: 2px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* ─── Header & Footer Brand Logo Uniformity ────────────────────────────── */
.brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    text-decoration: none !important;
    color: var(--text-primary) !important;
}

.brand-logo .logo-icon {
    width: 28px !important;
    height: 28px !important;
    color: var(--accent-primary) !important;
    fill: none !important;
}

.brand-logo .logo-accent {
    color: var(--accent-primary) !important;
}

.footer-menu-title {
    font-size: var(--font-sm) !important;
    font-weight: 700 !important;
    color: var(--accent-primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: var(--space-xs) !important;
}

/* ─── Hero Badge & FAQ Component Light Theme Overrides ────────────────── */
.hp-hero__badge {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--text-accent);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

[data-theme="light"] .hp-hero__badge {
    background: rgba(124, 58, 237, 0.1) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    color: #7C3AED !important;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.1) !important;
}

[data-theme="light"] .hp-hero__badge i,
[data-theme="light"] .hp-hero__badge svg {
    color: #7C3AED !important;
}

[data-theme="light"] .faq-item {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .faq-item:hover {
    border-color: #7C3AED !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1) !important;
}

[data-theme="light"] .faq-item.active {
    background: #F8FAFC !important;
    border-color: #7C3AED !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15) !important;
}

[data-theme="light"] .faq-question {
    color: #0F172A !important;
}

[data-theme="light"] .faq-question:hover {
    color: #7C3AED !important;
}

[data-theme="light"] .faq-answer-content p {
    color: #475569 !important;
}

[data-theme="light"] .faq-icon {
    color: #64748B !important;
}

[data-theme="light"] .faq-item.active .faq-icon {
    color: #7C3AED !important;
}

/* ─── Light Theme Language Dropdown, Forms, & Neural Map Overrides ──────── */
[data-theme="light"] .lang-dropdown-drawer.dropdown-menu,
[data-theme="light"] #language-dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .lang-select-btn {
    color: #0F172A !important;
}

[data-theme="light"] .lang-select-btn:hover,
[data-theme="light"] .lang-select-btn.active {
    background: rgba(124, 58, 237, 0.12) !important;
    color: #7C3AED !important;
}

[data-theme="light"] .lang-check-icon {
    color: #7C3AED !important;
}

[data-theme="light"] .lang-btn-trigger {
    color: #0F172A !important;
}

[data-theme="light"] .lang-btn-trigger:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Neural Map / Lightning Section Light Purple Background */
[data-theme="light"] .neural-map-container,
[data-theme="light"] #neural-map-container {
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%) !important;
    border: 1px solid #E9D5FF !important;
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.12) !important;
}

[data-theme="light"] .neural-map-badge {
    background: rgba(124, 58, 237, 0.1) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    color: #7C3AED !important;
}

/* Light Purple Forms in Light Theme */
[data-theme="light"] form,
[data-theme="light"] .form-card,
[data-theme="light"] .rate-us-card,
[data-theme="light"] .profile-section-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .card-form,
[data-theme="light"] .auth-card {
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%) !important;
    border: 1px solid #E9D5FF !important;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.08) !important;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .review-textarea {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .review-textarea:focus {
    background: #FFFFFF !important;
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER BUTTON & DROPDOWN STYLING (HOMEPAGE OVERRIDE)
   ═══════════════════════════════════════════════════════════════════════════ */
.language-switcher-container {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

#btn-language-dropdown,
.lang-btn-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 40px !important;
    width: auto !important;
    min-width: max-content !important;
    padding: 0 14px !important;
    background: #18162A !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

#btn-language-dropdown:hover,
.lang-btn-trigger:hover {
    background: #211E3B !important;
    border-color: #A855F7 !important;
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.25) !important;
}

.lang-flag-mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 16px !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    line-height: 0 !important;
    margin: 0 !important;
}

.lang-flag-mini svg,
.lang-flag-mini img {
    width: 22px !important;
    height: 16px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 2px !important;
}

.lang-code-tag {
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
    line-height: 1 !important;
}

.lang-chevron-icon {
    width: 16px !important;
    height: 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

#btn-language-dropdown:hover .lang-chevron-icon {
    color: #A855F7 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL MODAL OVERLAY STYLES (HIDDEN BY DEFAULT)
   ═══════════════════════════════════════════════════════════════════════════ */
#modal-overlay,
.modal-overlay,
.modal-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#modal-overlay.active,
.modal-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(10, 10, 18, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME GRAYSCALE LANGUAGE SWITCHER OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] #btn-language-dropdown,
[data-theme="light"] .lang-btn-trigger {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] #btn-language-dropdown:hover,
[data-theme="light"] .lang-btn-trigger:hover {
    background: #E2E8F0 !important;
    border-color: #94A3B8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .lang-code-tag {
    color: #0F172A !important;
}

[data-theme="light"] .lang-chevron-icon {
    color: #64748B !important;
}

[data-theme="light"] .lang-dropdown-drawer {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .lang-select-btn {
    color: #334155 !important;
}

[data-theme="light"] .lang-select-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

[data-theme="light"] .lang-select-btn.active {
    background: #E2E8F0 !important;
    color: #7C3AED !important;
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME MODAL OVERRIDE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px) !important;
}

[data-theme="light"] .modal-container {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(124, 58, 237, 0.1) !important;
    color: #0F172A !important;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .modal-title {
    color: #0F172A !important;
    font-weight: 800 !important;
}

[data-theme="light"] .modal-close-btn {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
}

[data-theme="light"] .modal-close-btn:hover {
    background: #FEE2E2 !important;
    border-color: #FCA5A5 !important;
    color: #DC2626 !important;
}

[data-theme="light"] .modal-container form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

[data-theme="light"] .modal-container .form-label,
[data-theme="light"] .modal-container label {
    color: #1E293B !important;
    font-weight: 700 !important;
}

[data-theme="light"] .modal-container .form-input,
[data-theme="light"] .modal-container .form-textarea,
[data-theme="light"] .modal-container input[type="text"],
[data-theme="light"] .modal-container textarea,
[data-theme="light"] .modal-container select {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

[data-theme="light"] .modal-container .form-input:focus,
[data-theme="light"] .modal-container .form-textarea:focus,
[data-theme="light"] .modal-container textarea:focus {
    background: #FFFFFF !important;
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

[data-theme="light"] .modal-container .form-help,
[data-theme="light"] .modal-container .text-muted {
    color: #64748B !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME FOOTER OVERRIDE STYLES (NO DARK GRADIENT)
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] footer,
[data-theme="light"] .footer,
[data-theme="light"] .hp-footer {
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%) !important;
    border-top: 1px solid #E9D5FF !important;
    color: #1E293B !important;
}

[data-theme="light"] footer a,
[data-theme="light"] .footer a,
[data-theme="light"] .hp-footer a {
    color: #475569 !important;
}

[data-theme="light"] footer a:hover,
[data-theme="light"] .footer a:hover,
[data-theme="light"] .hp-footer a:hover {
    color: #7C3AED !important;
}

[data-theme="light"] .footer-menu-title,
[data-theme="light"] .hp-footer__title {
    color: #0F172A !important;
    font-weight: 800 !important;
}

[data-theme="light"] .hp-footer__tagline,
[data-theme="light"] .hp-footer__copy,
[data-theme="light"] .footer-copy {
    color: #64748B !important;
    border-top-color: #E9D5FF !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPACT DRAWER LANGUAGE SWITCHER & MOBILE HEADER CLEANUP (HOMEPAGE)
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-drawer-language-switcher .language-switcher-container {
    width: 100% !important;
    position: relative !important;
    display: block !important;
}

.mobile-drawer-language-switcher #btn-language-dropdown,
.mobile-drawer-language-switcher .lang-btn-trigger {
    width: 100% !important;
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 0.8125rem !important;
    border-radius: 8px !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.mobile-drawer-language-switcher .lang-dropdown-drawer,
.mobile-drawer-language-switcher .lang-dropdown-drawer.dropdown-menu,
.mobile-drawer-language-switcher #language-dropdown-menu {
    position: relative !important;
    top: 6px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
    transform: none !important;
}

.mobile-drawer-language-switcher .lang-dropdown-drawer.active,
.mobile-drawer-language-switcher .lang-dropdown-drawer.dropdown-menu.active,
.mobile-drawer-language-switcher #language-dropdown-menu.active {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 100% !important;
}

.mobile-drawer-language-switcher .lang-flag-mini {
    width: 18px !important;
    height: 13px !important;
}

.mobile-drawer-language-switcher .lang-flag-mini svg,
.mobile-drawer-language-switcher .lang-flag-mini img {
    width: 18px !important;
    height: 13px !important;
}

.mobile-drawer-language-switcher .lang-chevron-icon {
    width: 14px !important;
    height: 14px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NOTIFICATIONS DROPDOWN FIT FIX (HOMEPAGE)
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   GUEST SETTINGS & MOBILE DRAWER PREFERENCES (THEME TOGGLE - HOMEPAGE)
   ═══════════════════════════════════════════════════════════════════════════ */
.guest-settings-container {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.guest-settings-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 230px !important;
    background: #18162A !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    padding: 14px !important;
    z-index: 99999 !important;
    display: none;
    box-sizing: border-box !important;
}

[data-theme="light"] .guest-settings-menu {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

.guest-settings-menu.active,
.guest-settings-container.active .guest-settings-menu {
    display: block !important;
}

.guest-settings-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
}

[data-theme="light"] .guest-settings-header {
    border-bottom-color: #E2E8F0 !important;
    color: #0F172A !important;
}

.guest-settings-header-icon {
    width: 16px !important;
    height: 16px !important;
    color: #A855F7 !important;
}

.guest-setting-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted, #8B8BA3) !important;
    margin-bottom: 8px !important;
}

.guest-theme-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.guest-theme-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: #18162A !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #F0F0F5 !important;
    font-family: inherit !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    white-space: nowrap !important;
}

[data-theme="light"] .guest-theme-btn {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #1E293B !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.guest-theme-btn:hover {
    background: #251F42 !important;
    border-color: #A855F7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25) !important;
}

.guest-theme-btn.active {
    background: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%) !important;
    border-color: #A855F7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35) !important;
}

[data-theme="light"] .guest-theme-btn:hover {
    background: #F1F5F9 !important;
    border-color: #7C3AED !important;
    color: #7C3AED !important;
}

[data-theme="light"] .guest-theme-btn.active {
    background: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%) !important;
    border-color: #7C3AED !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3) !important;
}

.guest-theme-btn svg,
.guest-theme-btn i,
.guest-theme-btn [data-lucide] {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
}

.mobile-drawer-preferences {
    padding: 16px 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

[data-theme="light"] .mobile-drawer-preferences {
    border-top-color: #E2E8F0 !important;
}

.mobile-drawer-pref-section {
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-drawer-pref-section.mt-md {
    margin-top: 16px !important;
}

.mobile-drawer-pref-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: var(--text-muted, #8B8BA3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 10px !important;
}

[data-theme="light"] .mobile-drawer-pref-title {
    color: #64748B !important;
}

.pref-title-icon {
    width: 16px !important;
    height: 16px !important;
    color: #A855F7 !important;
}

[data-theme="light"] .pref-title-icon {
    color: #7C3AED !important;
}

.mobile-drawer-auth-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-drawer-auth-btns .btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* Prevent testimonial cards from sliding or jumping on Y-axis on mobile */
    .hp-testimonial,
    .hp-testimonial.hp-visible,
    .hp-testimonial:hover {
        opacity: 1 !important;
        transform: none !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    /* Hide topbar standalone language switcher & guest settings gear ONLY on mobile view */
    .navbar-actions > #language-dropdown-container,
    .navbar-actions > .language-switcher-container,
    .hp-header__actions > .language-switcher-container,
    .hp-header__actions > #language-dropdown-container,
    .navbar-actions > .guest-settings-container,
    .navbar-actions > #guest-settings-dropdown-container,
    .navbar-actions .btn-guest-theme-toggle,
    .guest-settings-container,
    #guest-settings-dropdown-container,
    .btn-guest-theme-toggle {
        display: none !important;
    }

    #notification-dropdown,
    #notification-dropdown.dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: calc(100vw - 32px) !important;
        box-sizing: border-box !important;
        z-index: 999999 !important;
    }
}
