@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   DIGIT WORLD — ULTRA-PREMIUM FIGMA DESIGN SYSTEM
   Dark Theme (Jet OLED Black) & Crisp Bright Light Mode
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ─── Jet OLED Dark Theme (Default) ─── */
    --bg-base: #020204;
    --bg-surface: #08080c;
    --bg-card: rgba(13, 13, 19, 0.85);
    --bg-card-hover: rgba(20, 20, 30, 0.95);
    --bg-elevated: #13131c;
    --bg-glass: rgba(10, 10, 15, 0.72);
    --bg-input: #101017;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --heading-color: #ffffff;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(99, 102, 241, 0.5);
    --border-focus: #6366f1;
    
    --brand-primary: #6366f1;
    --brand-secondary: #a855f7;
    --brand-accent: #00d68f;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
    --aura-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.08) 35%, transparent 70%);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.3);
    
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.3);
    
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.3);
    
    --info: #0ea5e9;
    --info-bg: rgba(14, 165, 233, 0.12);
    --info-border: rgba(14, 165, 233, 0.3);

    --star-filled: #f59e0b;
    --star-empty: rgba(255, 255, 255, 0.18);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
    --shadow-brand: 0 8px 25px -4px rgba(99, 102, 241, 0.45);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
    
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ─── Crisp Bright Light Theme ─── */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-input: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --heading-color: #0f172a;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-hover: #6366f1;
    --border-focus: #6366f1;

    --star-filled: #0f172a;
    --star-empty: #cbd5e1;
    
    --aura-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 70%);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px -3px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.09);
    --shadow-brand: 0 8px 25px -4px rgba(99, 102, 241, 0.3);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* ─── Global Reset & Body ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 700px;
    background: var(--aura-glow);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-brand { color: var(--brand-primary); font-weight: 600; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ─── Containers ─── */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
}

/* ─── Glassmorphism Panels & Cards ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff !important;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 10px 30px -4px rgba(99, 102, 241, 0.55);
    transform: translateY(-2px);
}

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

.btn-outline {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-primary);
}

.btn-success {
    background: var(--success);
    color: #ffffff !important;
    font-weight: 700;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transform: scale(1.06);
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-brand { background: rgba(99, 102, 241, 0.15); color: var(--brand-secondary); border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-info { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-border); }
.badge-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }

/* ─── Form Controls ─── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: var(--bg-surface);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Autofill Fix for Dark & Light Themes */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ─── Hero Section ─── */
.hero {
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ─── SellAuth-Style Scroll-Morphing Floating Pill Navbar ─── */
.header-floating-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 12px 24px 0;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header-pill {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    pointer-events: auto;
    padding: 10px 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.35s ease,
                backdrop-filter 0.35s ease,
                border-color 0.35s ease,
                border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}

/* Scrolled Floating Pill Mode (Generous Width for All Menu Items) */
.header-floating-wrapper.is-scrolled {
    top: 14px;
    padding: 0 16px;
}

.header-floating-wrapper.is-scrolled .site-header-pill {
    max-width: 1360px;
    background: rgba(10, 11, 19, 0.88);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .header-floating-wrapper.is-scrolled .site-header-pill {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.mobile-menu-toggle {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    .nav-links-wrap {
        display: none !important;
    }
    .header-floating-wrapper.is-scrolled .site-header-pill {
        max-width: 100%;
    }
}

.nav-container-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.48rem;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -0.035em;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: auto;
    text-decoration: none;
    user-select: none;
    outline: none;
}

.logo-text {
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
}

.logo-pill:hover,
.logo-pill:active,
.logo-pill:focus {
    outline: none;
}

.logo-pill img {
    height: 44px;
    width: auto;
    max-height: 44px;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.45));
    transition: filter 0.2s ease;
}

.logo-pill:hover img {
    filter: drop-shadow(0 4px 18px rgba(168, 85, 247, 0.8));
}

/* Nav Links (SellAuth Style) */
.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-right: 14px;
    position: relative;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--heading-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

[data-theme="light"] .nav-item:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

.nav-item.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(168, 85, 247, 0.32));
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 16px -2px rgba(168, 85, 247, 0.35);
    font-weight: 700;
}

[data-theme="light"] .nav-item.active {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: none;
}

/* Nav Dropdown (SellAuth Style Flyout) */
.nav-dropdown-wrap {
    position: relative;
}

.dropdown-chevron {
    width: 13px;
    height: 13px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: rgba(12, 14, 24, 0.95);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Hover bridge to keep mouse inside dropdown bounding area */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    display: block;
}

[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.dropdown-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-link-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

[data-theme="light"] .dropdown-link-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

.dropdown-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-link-info {
    display: flex;
    flex-direction: column;
}

.dropdown-link-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.dropdown-link-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-actions-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-wrap-pill {
    position: relative;
}

.search-input-pill {
    width: 210px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 6px 14px 6px 34px;
    font-size: 0.86rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .search-input-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.search-input-pill:focus {
    width: 260px;
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--brand-primary);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .search-input-pill:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-icon-pill {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ─── Pill Action Buttons (Contained Inside Navbar) ─── */
.btn-pill-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-pill-primary span {
    display: inline-block;
    white-space: nowrap;
}

.btn-pill-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
    filter: brightness(1.1);
}

.btn-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pill-action:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--heading-color);
}

[data-theme="light"] .btn-pill-action {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-pill-action:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-pill-icon:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--heading-color);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-pill-icon {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.cart-count-pill {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.currency-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 140px;
    background: rgba(12, 14, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

[data-theme="light"] .currency-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.currency-dropdown-item {
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.currency-dropdown-item:hover, .currency-dropdown-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--heading-color);
}

/* ─── Live Search Suggestions Dropdown ─── */
.live-search-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 420px;
    background: rgba(12, 14, 24, 0.96);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1200;
    display: none;
    overflow: hidden;
    animation: searchFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .live-search-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.12);
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.live-search-items-wrap {
    max-height: 330px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.live-search-item:hover, .live-search-item.is-selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

[data-theme="light"] .live-search-item:hover, [data-theme="light"] .live-search-item.is-selected {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
}

.live-search-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 3px;
}

.live-search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-search-item-body {
    flex: 1;
    min-width: 0;
}

.live-search-item-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.live-search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 0.76rem;
}

.live-search-item-cat {
    color: var(--text-muted);
}

.live-search-item-price {
    color: var(--brand-primary);
    font-weight: 800;
}

.live-search-item-orig {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.72rem;
}

.live-search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: background 0.18s ease;
}

.live-search-footer:hover {
    background: rgba(99, 102, 241, 0.1);
}

.live-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

[data-theme="light"] .btn-pill-action {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-pill-action:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

[data-theme="light"] .btn-pill-icon {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-pill-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
}

.btn-pill-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-pill-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

.cart-count-pill {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-base);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* Mobile Drawer (SellAuth Style) */
.mobile-nav-drawer {
    margin-top: 12px;
    background: rgba(10, 12, 20, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .mobile-nav-drawer {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-item {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mobile-nav-item:hover, [data-theme="light"] .mobile-nav-item.active {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

/* ─── Product Card Grid (SellAuth Style) ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
}

/* ─── Category Filter Sidebar ─── */
.category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-sizing: border-box;
}

.category-filter-btn:hover {
    border-color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.08);
    color: var(--brand-primary);
    transform: translateX(3px);
}

.category-filter-btn.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 6px 20px -3px rgba(99, 102, 241, 0.45);
}

.category-filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.category-filter-label span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-filter-count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    margin-left: 8px;
}

.category-filter-btn.active .category-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: transparent;
}

.product-img {
    height: 210px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.product-img img {
    max-height: 165px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.product-card:hover .product-img img {
    transform: scale(1.06);
}

.product-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--brand-secondary);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-color);
    line-height: 1.35;
}

.product-price-wrap {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--heading-color);
}

.product-price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 6px;
}

/* ─── Hero Section ─── */
.hero {
    position: relative;
    padding: 90px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ─── Trust Grid ─── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.trust-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    text-align: center;
    transition: all var(--transition-fast);
}

.trust-item:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
}

.trust-item i {
    width: 42px;
    height: 42px;
    color: var(--brand-primary);
    margin: 0 auto 14px;
}

/* ─── FAQ Accordion ─── */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item.active, .faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--heading-color);
    user-select: none;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ─── Admin Layout Styles ─── */
.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-main {
    padding: 32px 40px;
    background: var(--bg-base);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 20px;
    flex: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary);
    font-weight: 600;
}

.admin-nav-header {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 14px 14px 4px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

/* ─── Admin Table Styles ─── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ─── Footer ─── */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 64px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Alerts ─── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.alert-error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.alert-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.alert-info { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info); }

/* ─── Utilities ─── */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

/* Responsive utility */
@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .d-none-md { display: none !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.3rem; }
    .admin-main { padding: 20px; }
}

@media (max-width: 640px) {
    .d-none-sm { display: none !important; }
}

/* ─── Currency Dropdown Menu ─── */
.currency-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    z-index: 1000;
    min-width: 140px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md);
}

.currency-dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.currency-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--brand-primary);
}

.currency-dropdown-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--brand-primary);
    font-weight: 700;
}

/* ─── DigiT AI Software Assistant Chatbot Widget ─── */
.ai-launcher-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.5), 0 0 20px rgba(168, 85, 247, 0.35);
    transition: all var(--transition-normal);
}

.ai-launcher-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px -3px rgba(99, 102, 241, 0.65), 0 0 30px rgba(168, 85, 247, 0.5);
}

.ai-pulse-dot {
    width: 10px;
    height: 10px;
    background: #00d68f;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d68f;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 214, 143, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 214, 143, 0); }
}

.ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 390px;
    max-width: calc(100vw - 40px);
    height: 540px;
    max-height: calc(100vh - 120px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.ai-header-avatar {
    font-size: 1.4rem;
}

.ai-header-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--heading-color);
}

.ai-header-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #00d68f;
    border-radius: 50%;
}

.ai-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.ai-close-btn:hover {
    color: var(--heading-color);
}

.ai-suggestions-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    scrollbar-width: none;
}

.ai-suggestions-bar::-webkit-scrollbar {
    display: none;
}

.ai-chip {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-chip:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.ai-messages-feed {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-msg {
    display: flex;
    max-width: 86%;
}

.ai-msg-bot {
    align-self: flex-start;
}

.ai-msg-user {
    align-self: flex-end;
}

.ai-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.ai-msg-bot .ai-msg-bubble {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.ai-msg-user .ai-msg-bubble {
    background: var(--brand-gradient);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.ai-typing .typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    margin: 0 2px;
    animation: blinkDot 1.2s infinite;
}
.ai-typing .typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing .typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blinkDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

.ai-chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
}

.ai-chat-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    outline: none;
}

.ai-chat-input:focus {
    border-color: var(--brand-primary);
}

.ai-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.ai-send-btn:hover {
    transform: scale(1.08);
}

/* ─── Modern Glassmorphic Alerts ─── */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: alertFadeIn 0.3s ease;
}

.alert svg, .alert i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.alert-danger, .alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.alert-info {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #0ea5e9;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
}

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

/* ─── Modern Site Footer ─── */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.site-footer .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--heading-color);
    text-decoration: none;
}

.site-footer .logo img {
    height: 40px;
    width: auto;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-primary);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT MODE COMPREHENSIVE REFINEMENTS & CONTRAST FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.96);
    --bg-input: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --heading-color: #0f172a;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-hover: #6366f1;
    --border-focus: #6366f1;
}

/* Light Theme: Card & Panels */
[data-theme="light"] .card,
[data-theme="light"] .glass-panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08) !important;
}

/* Light Theme: Form Controls */
[data-theme="light"] .form-control,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .form-label {
    color: #0f172a !important;
    font-weight: 600;
}

/* Light Theme: High-Contrast Alerts */
[data-theme="light"] .alert-success {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

[data-theme="light"] .alert-danger,
[data-theme="light"] .alert-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

[data-theme="light"] .alert-info {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #075985 !important;
}

[data-theme="light"] .alert-warning {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
}

/* Light Theme: Badges & Status Pills */
[data-theme="light"] .badge-brand {
    background: #eef2ff !important;
    color: #4338ca !important;
    border-color: #c7d2fe !important;
}

[data-theme="light"] .badge-success {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

[data-theme="light"] .badge-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

[data-theme="light"] .badge-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

[data-theme="light"] .badge-info {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
}

/* Light Theme: Switch Toggle */
[data-theme="light"] .switch-toggle .slider {
    background-color: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .switch-toggle .slider:before {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .switch-toggle input:checked + .slider {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: #dc2626 !important;
}

/* Light Theme: Admin Hub Layout */
[data-theme="light"] .admin-sidebar {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-main {
    background: #f8fafc !important;
}

[data-theme="light"] .admin-topbar {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-nav-item {
    color: #475569 !important;
}

[data-theme="light"] .admin-nav-item:hover,
[data-theme="light"] .admin-nav-item.active {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4f46e5 !important;
}

[data-theme="light"] .admin-nav-header {
    color: #94a3b8 !important;
}

[data-theme="light"] .admin-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .admin-table td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

/* Light Theme: Dropdowns & Navigation */
[data-theme="light"] .nav-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .dropdown-link-card:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .dropdown-title {
    color: #0f172a !important;
}

[data-theme="light"] .dropdown-desc {
    color: #64748b !important;
}


