/* =========================================
   REDitors — HERCULES-STYLE OVERHAUL
   Light theme, diamond grid bg, indigo accents
   ========================================= */

:root {
    /* Default variables (Dark theme only) */
    --bg: #050507;
    --bg-secondary: #0f0f13;
    --bg-tertiary: #16161c;
    --bg-elevated: rgba(15, 15, 19, 0.85);
    --input-bg: #0a0a0d;
    --card-bg: #0a0a0d;
    
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --text-disabled: #334155;
    --foreground: #f8fafc;
    --muted-foreground: #94a3b8;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-dark: rgba(255, 255, 255, 0.15);
    
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-light: rgba(129, 140, 248, 0.12);
    --primary-glow: rgba(129, 140, 248, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.7);
    
    --overlay: rgba(5, 5, 7, 0.85);
    --glass-blur: blur(20px);
    --grid-opacity: 0.03;
}

/* ── GLOBAL PAGE RESET ── */
html {
    background: var(--bg) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    width: 100% !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth touch scroll on iOS */
}

body {
    background: transparent !important; /* Let html handle background */
    color: var(--text) !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    touch-action: pan-y; /* Prevent unwanted horizontal movement on mobile */
}

body > * { position: relative; z-index: 1; }

/* Global Smooth Transitions for all interactive elements */
*, *::before, *::after {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.2s ease, 
                box-shadow 0.3s ease;
}

/* Disable transitions for layout-heavy elements to avoid "jumping" */
.hero-header, .hero-container, .nav, .footer, .bento-grid {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── GLOBAL TEXT CONTRAST FIXES ── */
h1, h2, h3, h4, h5, h6 { color: var(--text) !important; }
p, span, li, a { color: var(--text-secondary); }
p strong, li strong { color: var(--text) !important; }

.section-title, .hero-title, .hero-title span { color: var(--text) !important; }
.section-description, .hero-description { color: var(--text-secondary) !important; }
.section-tag, .hero-label, .hero-badge { 
    background: var(--primary-light) !important; 
    color: var(--primary) !important; 
    border-color: var(--primary-light) !important;
}

/* Specific component overrides */
.step h3, .step-card h3 { color: var(--text) !important; }
.step p, .step-card p { color: var(--text-secondary) !important; }

.tool-card h3, .bento-card h3 { color: var(--text) !important; }
.tool-card p, .bento-card p { color: var(--text-secondary) !important; }

.tm-name { color: var(--text) !important; }
.tm-card-text { color: var(--text-secondary) !important; }

.pricing-header h3, .price { color: var(--text) !important; }
.pricing-features li { color: var(--text-secondary) !important; }

/* Dashboard-specific text fixes */
.pt h1 { color: var(--text) !important; }
.pt p { color: var(--text-muted) !important; }
.hero-amt { color: var(--text) !important; }
.hero-lbl, .hero-sub { color: var(--text-muted) !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── NAV ── */
.nav {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 clamp(16px, 4vw, 48px) !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    background: var(--bg-elevated) !important;
    backdrop-filter: var(--glass-blur) saturate(180%) !important;
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%) !important;
    border-bottom: 1px solid var(--border) !important;
}

.nav.nav--scrolled,
.nav.scrolled {
    height: 64px !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--overlay) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
}
.nav-link:hover { 
    color: var(--text) !important; 
    background: var(--bg-secondary) !important; 
}

.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

/* ── PREMIUM LIQUID TABS ── */
.exp-tabs {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.exp-tabs-glider {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.exp-tab {
    color: var(--text-secondary) !important;
}

.exp-tab:hover {
    color: var(--text) !important;
}

.exp-tab.active {
    color: var(--primary) !important;
}

.exp-tab-sep {
    background: var(--border);
}

/* ── RIGHT ICONS ── */
.nav-icon-btn {
    border: 1px solid var(--border) !important;
    background: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
}

.nav-icon-btn:hover {
    border-color: var(--primary) !important;
    background: var(--bg-elevated) !important;
    color: var(--primary) !important;
}

.lang-switch {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}

.lang-switch:hover {
    background: var(--bg-elevated) !important;
    border-color: var(--primary) !important;
}

/* Guest nav buttons */
#guestButtons a:first-child {
    background: rgba(59,79,216,0.08) !important;
    color: #1a1a2e !important;
    border: 1px solid rgba(59,79,216,0.2) !important;
    border-radius: 100px !important;
}
#guestButtons a:first-child:hover { background: rgba(59,79,216,0.14) !important; }

#guestButtons a:last-child {
    background: #3b4fd8 !important;
    color: #fff !important;
    border-radius: 100px !important;
    box-shadow: 0 2px 12px rgba(59,79,216,0.35) !important;
}
#guestButtons a:last-child:hover { background: #2d3fb0 !important; transform: translateY(-1px) !important; }

/* Profile dropdown */
.profile-wrapper {
    position: relative;
    display: inline-flex;
}

.profile-circle {
    width: 38px !important;
    height: 38px !important;
    background: linear-gradient(135deg, #3b4fd8 0%, #6366f1 100%) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.profile-circle:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.profile-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    min-width: 220px !important;
    background: var(--bg-elevated) !important;
    backdrop-filter: var(--glass-blur) saturate(180%) !important;
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: var(--shadow-lg) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1100 !important;
}

.profile-wrapper:hover .profile-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Arrow for dropdown */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
    z-index: -1;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 550 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    text-align: left !important;
}

.dropdown-item:hover {
    background: var(--bg-secondary) !important;
    color: var(--text) !important;
}

.dropdown-item i, .dropdown-item svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.2px !important;
    color: var(--text-muted) !important;
    transition: color 0.2s ease !important;
}

.dropdown-item:hover i, .dropdown-item:hover svg {
    color: var(--text) !important;
}

.dropdown-item.primary {
    color: var(--primary) !important;
}

.dropdown-item.danger {
    color: #ff4d4d !important;
}

.dropdown-item.danger:hover {
    background: rgba(255, 77, 77, 0.1) !important;
}

.dropdown-item.danger i, .dropdown-item.danger svg {
    color: #ff4d4d !important;
}

.dropdown-divider {
    height: 1px !important;
    background: var(--border) !important;
    margin: 6px 8px !important;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    color: var(--text) !important;
    cursor: pointer !important;
}

.menu-toggle-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-toggle.active .menu-toggle-svg {
    transform: rotate(-45deg);
}

.line {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-1 {
    stroke-dasharray: 12 63;
}

.mobile-menu-toggle.active .line-1 {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42px;
}

@media (max-width: 850px) {
    .mobile-menu-toggle { display: flex !important; }
}

/* ── MOBILE SIDEBAR ── */
.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 320px !important;
    height: 100vh !important;
    background: rgba(10, 10, 12, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    z-index: 10000 !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: none !important; /* Hidden on PC */
    padding: 80px 24px 40px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

@media (max-width: 850px) {
    .mobile-menu {
        display: block !important; /* Visible on mobile */
    }
}

.mobile-menu-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

.mobile-menu-close i, .mobile-menu-close svg {
    width: 20px !important;
    height: 20px !important;
}

.mobile-menu.open, .mobile-menu.active {
    transform: translateX(0) !important;
}

.mobile-menu-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* Prevent sidebar horizontal shift */
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 14px 18px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 550 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
    font-family: inherit !important;
}

.mobile-menu-link i, .mobile-menu-link svg {
    width: 20px !important;
    height: 20px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease !important;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    transform: translateX(4px) !important;
}

.mobile-menu-link:hover i, .mobile-menu-link:hover svg {
    color: #3b4fd8 !important;
    transform: scale(1.1) !important;
}

.mobile-menu-link.active {
    background: rgba(59, 79, 216, 0.1) !important;
    color: #818cf8 !important;
}

.mobile-menu-link.active i, .mobile-menu-link.active svg {
    color: #3b4fd8 !important;
}

.mobile-menu-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    margin: 12px 18px !important;
    width: auto !important;
}

.mobile-menu-cta {
    background: #3b4fd8 !important;
    color: #fff !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
    box-shadow: 0 8px 24px rgba(59, 79, 216, 0.3) !important;
}

.mobile-menu-cta:hover {
    background: #4a5ee0 !important;
    transform: translateY(-2px) !important;
}

.mobile-menu-cta i, .mobile-menu-cta svg {
    color: #fff !important;
}

.mobile-menu-link.logout-btn {
    color: #ef4444 !important;
    margin-top: auto !important;
}

.mobile-menu-link.logout-btn i, .mobile-menu-link.logout-btn svg {
    color: #ef4444 !important;
}

.affiliate-highlight {
    background: rgba(243, 186, 47, 0.1) !important;
    color: #f3ba2f !important;
    border: 1px solid rgba(243, 186, 47, 0.2) !important;
}

.affiliate-highlight i, .affiliate-highlight svg {
    color: #f3ba2f !important;
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100% !important;
        padding: 80px 20px 40px !important;
    }
}

/* ── SEARCH MODAL ── */
.search-modal { 
    background: rgba(0, 0, 0, 0.6) !important; 
    backdrop-filter: blur(8px) !important; 
    -webkit-backdrop-filter: blur(8px) !important;
}

.search-modal-content {
    background: #0a0a0c !important; /* Deeper obsidian */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    max-width: 600px !important;
}

.search-header { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; 
    padding: 16px 24px !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.search-header i, .search-header svg, .search-header .search-close { 
    color: #94a3b8 !important; 
}

.search-header input { 
    color: #ffffff !important; 
    background: transparent !important;
    font-size: 1.1rem !important;
}

.search-header input::placeholder { 
    color: #475569 !important; 
}

.search-close:hover { 
    color: #ffffff !important; 
    background: rgba(255, 255, 255, 0.05) !important;
}

.search-body {
    padding: 12px !important;
}

.search-category h4 { 
    color: #64748b !important; 
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 12px 16px 8px !important;
}

.search-item { 
    color: #cbd5e1 !important; 
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-item:hover, .search-item.active, .search-item.nc-hi { 
    background: rgba(129, 140, 248, 0.1) !important; 
    color: #ffffff !important; 
}

.search-item i, .search-item svg { 
    color: #64748b !important; 
    width: 18px !important;
    height: 18px !important;
}

.search-item:hover i, .search-item:hover svg {
    color: #818cf8 !important;
    transform: scale(1.1);
}

/* ── MOBILE TOGGLE ── */
.mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10001 !important;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(59, 79, 216, 0.5) !important;
}

.menu-toggle-svg {
    width: 24px !important;
    height: 24px !important;
}

.menu-toggle-svg .line {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-menu-toggle.open .line-1 {
    stroke: #818cf8 !important;
}

.mobile-menu-toggle.open .line-2 {
    stroke: #818cf8 !important;
    opacity: 0 !important;
}

.sfb-hint, .sfb-hint kbd {
    color: #475569 !important;
    font-size: 0.7rem !important;
}

.sfb-hint kbd {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.4) !important;
    color: #94a3b8 !important;
}

.sfb-brand {
    color: #475569 !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
}

/* ── HERO ── */
.hero-header {
    background: transparent !important;
    padding-top: 64px !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-background { display: none !important; }

.hero-container {
    text-align: center !important;
    padding: 80px 24px 60px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.hero-badge.premiere-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: 100px !important;
    padding: 6px 16px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

.premiere-chip-text {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 900 !important;
    color: var(--text) !important;
    letter-spacing: -0.04em !important;
    line-height: 1.05 !important;
    margin-bottom: 24px !important;
}

.hero-title-gradient {
    background: linear-gradient(90deg, #3b4fd8, #6366f1, #818cf8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: none !important;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
    color: var(--text-secondary) !important;
    max-width: 560px !important;
    margin: 0 auto 36px !important;
    line-height: 1.65 !important;
}

.hero-cta-row {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* ── CTA BUTTONS ── */
.btn-hero-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    box-shadow: 0 0 15px var(--primary-light), 0 4px 20px var(--primary-glow) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-hero-primary span { color: #ffffff !important; }
.btn-hero-primary:hover { 
    background: var(--primary-hover) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 8px 32px var(--primary-glow) !important; 
}

.btn-pill {
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    border-radius: 100px !important;
    padding: 3px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.hero-sub-note {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    margin-top: 14px !important;
}

.trust-badges {
    margin-top: 48px !important;
    display: flex !important;
    justify-content: center !important;
}

.trust-badge-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

.trust-badge-logo svg path { fill: #00b67a !important; }
.trust-text { font-size: 0.82rem !important; font-weight: 700 !important; color: var(--text) !important; }
.trust-subtext { font-size: 0.72rem !important; color: var(--text-secondary) !important; }
.trust-stars { display: flex !important; gap: 2px !important; }

.hero-social-proof { color: var(--text-secondary) !important; font-size: 0.875rem !important; margin-top: 32px !important; }

.scroll-indicator { display: none !important; }

/* ── SECTION SHARED ── */
.section-header {
    text-align: center !important;
    margin-bottom: clamp(40px, 6vw, 64px) !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-tag {
    display: inline-block !important;
    padding: 5px 14px !important;
    background: var(--primary-light) !important;
    border: 1px solid var(--border) !important;
    border-radius: 99px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--primary) !important;
    margin-bottom: 18px !important;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 900 !important;
    color: var(--text) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
}

.section-description {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.65 !important;
    max-width: 560px !important;
    margin: 0 auto !important;
}

/* ── FEATURES BENTO ── */
.features-section {
    padding: clamp(80px, 10vw, 120px) 0 !important;
    background: transparent !important;
}

.bento-grid .bento-card,
.feature-cards-grid > div {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: 20px !important;
    color: var(--text) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.3s !important;
}
.bento-card:hover,
.feature-cards-grid > div:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary) !important;
    background: var(--bg-secondary) !important;
}

.bento-card h3, .bento-card h4 { color: var(--text) !important; }
.bento-card p { color: var(--text-secondary) !important; }

/* ── PARTNERS MARQUEE ── */
.partners-section {
    padding: 48px 0 !important;
    background: var(--bg-elevated) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
}

.partners-title {
    text-align: center !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 24px !important;
}

.partner-logo {
    color: var(--text-dim) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    background: linear-gradient(to right, var(--bg-elevated) 0%, transparent 100%) !important;
}
.marquee-wrapper::after {
    background: linear-gradient(to left, var(--bg-elevated) 0%, transparent 100%) !important;
}

/* ── HOW IT WORKS ── */
.how-it-works-section {
    padding: clamp(80px, 10vw, 120px) 0 !important;
    background: transparent !important;
}

.step-card {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
}
.step-card h3 { color: var(--text) !important; }
.step-card p { color: var(--text-secondary) !important; }
.step-number {
    color: var(--primary-light) !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
}
.step-icon { color: var(--primary) !important; }
.step-icon i, .step-icon svg { color: var(--primary) !important; stroke: var(--primary) !important; }
.connector-line { background: var(--primary-light) !important; }
.step-connector i, .step-connector svg { color: var(--primary) !important; stroke: var(--primary) !important; }

/* ── IMPACT STATS ── */
.impact-section {
    padding: clamp(60px, 8vw, 100px) 0 !important;
    background: var(--bg-elevated) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
}

.impact-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.impact-item {
    padding: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
}

.impact-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    background: rgba(129, 140, 248, 0.1) !important;
    border: 1px solid rgba(129, 140, 248, 0.2) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.impact-icon {
    width: 22px !important;
    height: 22px !important;
    color: #818cf8 !important;
}

.impact-number {
    color: var(--text) !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 8px !important;
}

.impact-label { 
    color: #818cf8 !important; 
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 4px !important;
}

.impact-sub { 
    color: var(--text-secondary) !important; 
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.impact-divider {
    width: 1px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    height: 60% !important;
    align-self: center !important;
}

@media (max-width: 1024px) {
    .impact-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .impact-divider { display: none !important; }
    .impact-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .impact-item:nth-child(2n) { border-right: none !important; }
    .impact-item:nth-child(n+3) { border-bottom: none !important; }
}

@media (max-width: 480px) {
    .impact-divider {
        display: none !important; /* Remove divider elements from grid flow */
    }

    .impact-grid { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        margin: 0 16px !important;
        gap: 0 !important; /* Force items to touch for perfect lines */
    }

    .impact-item {
        padding: 20px 12px !important;
        aspect-ratio: 1 / 1 !important; 
        justify-content: center !important;
        border: none !important;
        /* Create the 2x2 grid lines using borders on items */
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-sizing: border-box !important;
    }

    /* Remove outer right border for items in the second column */
    .impact-item:nth-of-type(2),
    .impact-item:nth-of-type(4) {
        border-right: none !important;
    }

    /* Remove outer bottom border for items in the last row */
    .impact-item:nth-of-type(3),
    .impact-item:nth-of-type(4) {
        border-bottom: none !important;
    }

    .impact-icon-wrap {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 10px !important;
    }

    .impact-number {
        font-size: 1.4rem !important;
        margin-bottom: 2px !important;
    }

    .impact-label {
        font-size: 0.6rem !important;
        letter-spacing: 0.05em !important;
    }

    .impact-sub {
        font-size: 0.65rem !important;
        opacity: 0.6 !important;
    }
}

/* ── TESTIMONIALS (marquee) ── */
.testimonials-section,
section.testimonials-section {
    background: var(--bg) !important;
    padding: 80px 0 !important;
}

.tm-heading h2 {
    color: var(--text) !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
}
.tm-heading h2 span { color: var(--primary) !important; }

.tm-card {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-sm) !important;
    width: 300px !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
}
.tm-name { color: var(--text) !important; }
.tm-card-text { color: var(--text-secondary) !important; }
.tm-avatar { background: var(--primary-light) !important; color: var(--primary) !important; }

.tm-marquee-wrapper::before {
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%) !important;
}
.tm-marquee-wrapper::after {
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%) !important;
}

.tm-cta a {
    background: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(59,79,216,0.35) !important;
}
.tm-cta a:hover { background: var(--primary-hover) !important; }

/* ── FAQ ── */
.faq-section {
    padding: clamp(80px, 10vw, 120px) 0 !important;
    background: var(--bg-elevated) !important;
    border-top: 1px solid var(--border) !important;
}

.faq-item {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
}
.faq-question {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    cursor: pointer !important;
}
.faq-question h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}
.faq-question svg, .faq-question i { color: var(--primary) !important; stroke: var(--primary) !important; }
.faq-answer { padding: 0 24px !important; }
.faq-answer p {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.65 !important;
    padding-bottom: 20px !important;
}
.faq-item:hover { border-color: var(--primary) !important; }

/* ── SUBSCRIBE / FINAL CTA ── */
.subscribe-section,
.final-cta-section,
section#subscribe {
    background: var(--bg) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: none !important;
}

section#subscribe h2 { color: var(--text) !important; }
section#subscribe h2 span {
    background: linear-gradient(90deg, var(--primary), #6366f1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
section#subscribe p { color: var(--text-secondary) !important; }

/* Email form */
section#subscribe input[type="email"],
section#subscribe input[type="text"] {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
}
section#subscribe input::placeholder { color: var(--text-dim) !important; }

section#subscribe button[type="submit"],
section#subscribe .sub-btn,
section#subscribe button {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(59,79,216,0.35) !important;
}
section#subscribe button:hover { background: var(--primary-hover) !important; }

/* Payment badges in footer */
.pay-badge { border-color: var(--border) !important; }

/* ── FOOTER ── */

/* Force all footer content visible — overrides any animation/transition
   from original overhaul.css that starts elements at opacity:0 */
.footer,
.footer-main,
.footer-brand,
.footer-logo,
.footer-tagline,
.footer-links-group,
.footer-column,
.footer-copyright,
.footer-payment-badges,
.pay-accepts-label,
.pay-unified-row,
.pay-item,
.community-box,
.community-box h3 {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}
/* Keep hover transform working on community cards */
.community-box:hover {
    transform: translateY(-2px) !important;
}

.footer {
    border-top: 1px solid var(--border) !important;
    color: var(--text) !important;
}

/* 3-column grid layout */
.footer-main {
    display: grid !important;
    grid-template-columns: 3.5fr 1fr 2fr !important;
    gap: 48px !important;
    padding: 60px clamp(24px, 6vw, 80px) 48px !important;
    align-items: start !important;
}

/* ── Brand column ── */
.footer-logo {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    color: var(--text) !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 10px !important;
}
/* High-specificity overrides — beats original overhaul.css multi-class selectors */
footer.footer .footer-brand .footer-logo,
.footer .footer-brand .footer-logo {
    color: #f8fafc !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-tagline {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}
footer.footer .footer-brand .footer-tagline,
.footer .footer-brand .footer-tagline {
    color: #cbd5e1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Adobe marketplace widget — invisible container, only chip is visible */
.footer-adobe-marketplace {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.footer-adobe-header {
    display: none !important;
}

.footer-adobe-divider {
    display: none !important;
}

.footer-adobe-apps {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.footer-adobe-app {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.footer-adobe-app:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* Version chip */
.footer-version-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border) !important;
    border-radius: 100px !important;
    padding: 5px 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.footer-version-chip:hover {
    background: rgba(255,255,255,0.09) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.fvc-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 6px rgba(34,197,94,0.6) !important;
    display: inline-block !important;
}

.fvc-label {
    color: var(--text-secondary) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
}

.fvc-tag {
    background: rgba(34,197,94,0.15) !important;
    color: #22c55e !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 99px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

.footer-copyright {
    color: var(--text-dim) !important;
    font-size: 0.78rem !important;
    margin-top: 12px !important;
}
footer.footer .footer-brand .footer-copyright,
.footer .footer-brand .footer-copyright {
    color: #94a3b8 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-payment-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
    padding: 14px 18px !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    width: max-content !important;
}

.pay-accepts-label {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: rgba(255,255,255,0.2) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-right: 4px !important;
}

.pay-unified-row {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

.pay-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    height: auto !important;
    min-width: unset !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    transition: opacity 0.18s !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pay-item:hover { opacity: 0.75 !important; }

.pay-item img {
    display: block !important;
    height: 22px !important;
    width: auto !important;
    max-width: 48px !important;
    filter: none !important;
    object-fit: contain !important;
}

.pay-img-shop {
    height: 18px !important;
    width: auto !important;
    max-width: 42px !important;
    object-fit: contain !important;
}

.pay-item-binance img {
    background: #ffffff !important;
    border-radius: 1px !important;
    padding: 2px 4px !important;
    height: 22px !important;
    width: 38px !important;
    object-fit: contain !important;
}

.pay-divider { display: none !important; }

/* ── Nav links column ── */
.footer-links-group {
    display: flex !important;
    gap: 36px !important;
    flex-wrap: wrap !important;
}

.footer-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-width: 100px !important;
}

.footer-column h4 {
    color: var(--text) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 14px !important;
}
footer.footer .footer-links-group .footer-column h4,
.footer .footer-links-group .footer-column h4 {
    color: #f8fafc !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-column a {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    margin-bottom: 10px !important;
    transition: color 0.2s ease !important;
    display: block !important;
}
footer.footer .footer-links-group .footer-column a,
.footer .footer-links-group .footer-column a {
    color: #cbd5e1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-column a:hover,
footer.footer .footer-links-group .footer-column a:hover,
.footer .footer-links-group .footer-column a:hover {
    color: #f8fafc !important;
}

/* ── Community cards column ── */
.footer-community {
    display: flex !important;
    flex-direction: column !important;
}

.community-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 10px !important;
}

/* Top row: Discord + YouTube — each spans 3 of 6 cols (50% each) */
.community-box:nth-child(1),
.community-box:nth-child(2) {
    grid-column: span 3 !important;
}

/* Bottom row: TikTok + Instagram + X — each spans 2 of 6 cols (33% each) */
.community-box:nth-child(3),
.community-box:nth-child(4),
.community-box:nth-child(5) {
    grid-column: span 2 !important;
}

.community-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 14px 10px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

.community-box:hover {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(255,255,255,0.15) !important;
    transform: translateY(-2px) !important;
}

.community-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-muted) !important;
    background: rgba(255,255,255,0.06) !important;
    padding: 2px 6px !important;
    border-radius: 99px !important;
}

.community-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 4px !important;
}

.community-box h3 {
    color: var(--text) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.community-btn {
    display: inline-block !important;
    padding: 5px 16px !important;
    border-radius: 99px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-top: 2px !important;
    width: 100% !important;
    text-align: center !important;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    z-index: 999999 !important;
    display: none; /* Controlled by JS */
}

.cookie-container {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.cookie-icon-wrap {
    font-size: 24px !important;
    flex-shrink: 0 !important;
}

.cookie-text {
    flex: 1 !important;
}

.cookie-text h3 {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
}

.cookie-text p {
    color: #a0a0a0 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.cookie-text a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.cookie-actions {
    display: flex !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.cookie-btn-accept {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.cookie-btn-accept:hover {
    background: #e5e5e5 !important;
}

.cookie-btn-decline {
    background: transparent !important;
    color: #a0a0a0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.cookie-btn-decline:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .cookie-container { flex-direction: column !important; text-align: center !important; }
    .cookie-actions { width: 100% !important; }
    .cookie-actions button { flex: 1 !important; }
}

/* ── SEARCH MODAL ── */
/* ── AI SHOWCASE SECTION ── */
.ai-showcase-section {
    background: #fff !important;
    border-top: 1px solid rgba(100,100,180,0.1) !important;
}
.showcase-feature {
    background: rgba(59,79,216,0.04) !important;
    border-color: rgba(59,79,216,0.1) !important;
}
.showcase-feature:hover { background: rgba(59,79,216,0.08) !important; border-color: rgba(59,79,216,0.2) !important; }
.showcase-feature-icon { background: rgba(59,79,216,0.1) !important; border-color: rgba(59,79,216,0.15) !important; color: #3b4fd8 !important; }
.showcase-feature-text h4 { color: #1a1a2e !important; }
.showcase-feature-text p { color: #3a3a5a !important; }

/* ── PRICING TEASER ── */
.pricing-teaser-section { background: #f0f0f5 !important; }
.pricing-card {
    background: #fff !important;
    border: 1px solid rgba(100,100,180,0.12) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05) !important;
}
.pricing-card:hover { border-color: rgba(59,79,216,0.3) !important; box-shadow: 0 12px 40px rgba(59,79,216,0.1) !important; }
.pricing-card.popular { border-color: #3b4fd8 !important; box-shadow: 0 12px 40px rgba(59,79,216,0.18) !important; }
.popular-tag { background: #3b4fd8 !important; color: #fff !important; }
.pricing-header h3 { color: #1a1a2e !important; }
.price { color: #1a1a2e !important; }
.price span { color: #4a4a6a !important; }
.pricing-features li { color: #3a3a5a !important; }
.pricing-features li i, .pricing-features li svg { color: #3b4fd8 !important; stroke: #3b4fd8 !important; }
.pricing-btn { border-color: rgba(100,100,180,0.2) !important; color: #1a1a2e !important; background: transparent !important; }
.pricing-btn:hover { background: rgba(59,79,216,0.06) !important; }
.pricing-btn.primary { background: #3b4fd8 !important; color: #fff !important; border: none !important; }
.pricing-btn.primary:hover { background: #2d3fb0 !important; }

/* ── FINAL CTA SECTION ── */
/* background is inherited from the .subscribe-section / .final-cta-section group above = var(--bg) */
.final-cta-title { color: var(--text) !important; }
.final-cta-description { color: var(--text-secondary) !important; }
.final-cta-btn-primary {
    background: var(--primary) !important; color: #fff !important;
    box-shadow: 0 4px 20px var(--primary-glow) !important;
}
.final-cta-btn-primary:hover { background: var(--primary-hover) !important; box-shadow: 0 8px 28px var(--primary-glow) !important; }
.final-cta-btn-secondary {
    border-color: var(--border-dark) !important;
    color: var(--text-secondary) !important;
}
.final-cta-btn-secondary:hover { color: var(--text) !important; background: var(--bg-secondary) !important; }
.final-trust-badges span { color: var(--text-dim) !important; }
.final-trust-badges svg { color: var(--text-muted) !important; }
.final-cta-grid-bg {
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px) !important;
}

/* ── BUTTON OVERRIDES ── */
.btn-primary, .btn {
    background: #3b4fd8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
}
.btn-primary:hover { background: #2d3fb0 !important; transform: translateY(-1px) !important; }

.btn-secondary, .btn-outline {
    background: transparent !important;
    color: #1a1a2e !important;
    border: 1px solid rgba(100,100,180,0.25) !important;
    border-radius: 100px !important;
}
.btn-secondary:hover { background: rgba(59,79,216,0.06) !important; }

/* ── GUEST BUTTONS ── */
#guestButtons {
    gap: 8px !important;
}

#guestButtons a {
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    border-radius: 18px !important; /* Perfect pill shape */
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    white-space: nowrap !important; /* Prevent text stacking */
    flex-shrink: 0 !important; /* Don't allow buttons to shrink */
    width: auto !important;
}

#guestButtons a:first-child {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#guestButtons a:first-child:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

#guestButtons a:last-child {
    background: #3b4fd8 !important; /* Vivid blue */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(59, 79, 216, 0.3) !important;
}

#guestButtons a:last-child:hover {
    background: #2d3fb0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(59, 79, 216, 0.4) !important;
}

/* ── NAV ICON BUTTONS ── */
.nav-icon-btn {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
}

#themeToggle {
    border-radius: 12px !important;
}

.theme-icon { font-size: 1.1rem !important; line-height: 1 !important; }

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.nav-icon-btn i, .nav-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.2px !important;
}

/* ── CUSTOM DROPDOWN (Language) ── */
.custom-dropdown {
    position: relative;
    user-select: none;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dropdown-trigger .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

.dropdown-trigger .chevron {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    overflow: hidden; /* Keep it clean */
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-scroll {
    max-height: none; /* No scroll limit */
    overflow-y: visible; /* Show all items */
    padding: 6px;
}

/* Remove scrollbar styling since it's no longer needed */
.dropdown-scroll::-webkit-scrollbar {
    display: none;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #ffffff !important; /* Force pure white */
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dropdown-item .lang-name {
    color: #ffffff !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.dropdown-item .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dropdown-item .check-icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: #22c55e; /* Green check from image */
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.dropdown-item.active .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Adjust for downward opening if needed in future, but based on image it's floating above */
@media (min-height: 800px) {
    .dropdown-menu {
        top: calc(100% + 12px);
        bottom: auto;
        transform: translateY(-10px) scale(0.95);
    }
    .custom-dropdown.open .dropdown-menu {
        transform: translateY(0) scale(1);
    }
}

.app-badge-main {
    padding: 10px 14px 10px 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    width: auto !important;
    max-width: 280px !important;
    margin-top: 8px !important;
}

.app-badge-icon {
    width: 32px !important;
    height: 32px !important;
    background: #1e1e24 !important;
    border-radius: 8px !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.app-badge-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.app-badge-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

.app-badge-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.app-badge-version {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.version-text {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.version-tag {
    font-size: 0.55rem !important;
    font-weight: 900 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    text-transform: uppercase !important;
}

/* ── PRICING CTA ROW ── */
.pricing-cta-row a { color: #3b4fd8 !important; }

/* ── LINKS INSIDE STEPS ── */
.step-card a { color: #3b4fd8 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .bento-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 850px) {
    .nav-center { display: none !important; }
    .lang-switch { display: none !important; }
    #langDropdown { display: none !important; }
    #guestButtons { display: none !important; }
    .impact-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .bento-grid { grid-template-columns: 1fr !important; }
    .testimonials-grid { grid-template-columns: 1fr !important; }

    /* Footer Mobile Overrides */
    .footer-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 48px !important;
        padding: 64px 24px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-logo {
        font-size: 2rem !important;
        margin-bottom: 8px !important;
        font-weight: 900 !important;
    }

    .footer-tagline {
        font-size: 0.95rem !important;
        max-width: 320px !important;
        margin: 0 auto 24px !important;
        opacity: 0.5 !important;
        line-height: 1.5 !important;
    }

    .footer-payment-badges {
        width: 100% !important;
        max-width: 380px !important;
        margin: 24px auto 0 !important;
        align-items: center !important;
        padding: 16px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 16px !important;
    }

    .pay-unified-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .footer-links-group {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 40px 0 !important;
    }

    .footer-column {
        min-width: unset !important;
        text-align: center !important;
        align-items: center !important;
    }

    .footer-community {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    /* Community grid: force 1-column stack on mobile */
    .community-grid,
    .footer-community .community-grid,
    .footer-main .community-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }

    /* Community boxes: force horizontal layout on mobile */
    .community-box,
    .community-box:nth-child(n),
    .community-grid .community-box,
    .footer-community .community-box {
        grid-column: auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 20px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        height: auto !important;
        min-height: unset !important;
    }

    .community-icon,
    .community-grid .community-icon {
        margin: 0 !important;
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .community-box h3,
    .community-grid .community-box h3 {
        font-size: 0.95rem !important;
        margin: 0 16px !important;
        flex-grow: 1 !important;
        font-weight: 600 !important;
        color: #fff !important;
        text-align: left !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .community-btn,
    .community-grid .community-btn {
        width: auto !important;
        min-width: 90px !important;
        padding: 8px 14px !important;
        margin: 0 !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .community-badge {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .footer-links-group { grid-template-columns: 1fr !important; gap: 24px !important; }
    .community-grid { grid-template-columns: 1fr !important; }
    .footer-bottom-info { flex-direction: column !important; text-align: center !important; }
    .impact-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Hide on mobile \u2014 hamburger handles that */
@media (max-width: 768px) {
    .exp-tabs { display: none !important; }
}
