/* ==========================================================================
   APEX CONTABILIDAD & SAAS SOFTWARE SOLUTIONS - DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR TOKENS & BRAND IDENTITY (APEX & SAAS SOFTWARE SOLUTIONS)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Gradient Colors */
    --brand-cyan: #00d2ff;
    --brand-blue-royal: #2563eb;
    --brand-violet: #7f00ff;
    --brand-magenta: #ff007f;
    --brand-gold: #fbbf24;

    /* Satin Typography */
    --text-satin-dark: #0f172a;
    --text-satin-muted: #475569;

    /* Base Surfaces - Light Glass Default */
    --bg-primary: #f4f7fc;
    --bg-secondary: #eef2f8;
    --bg-surface-glass: rgba(255, 255, 255, 0.72);
    --bg-surface-glass-solid: rgba(255, 255, 255, 0.92);
    --bg-surface-glass-hover: rgba(255, 255, 255, 0.88);
    --bg-surface-active: rgba(37, 99, 235, 0.12);

    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-light: rgba(0, 0, 0, 0.14);
    --border-glass-active: rgba(37, 99, 235, 0.4);

    --glass-blur: blur(24px);
    --glass-blur-sm: blur(12px);
    --glass-blur-lg: blur(40px);

    /* Text Tokens */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Financial & Accent Colors */
    --accent-green: #16a34a;
    --accent-green-dark: #15803d;
    --accent-green-glow: rgba(22, 163, 74, 0.25);
    
    --accent-blue: #2563eb;
    --accent-blue-glow: rgba(37, 99, 235, 0.25);

    --color-expense: #dc2626;
    --color-expense-glow: rgba(220, 38, 38, 0.2);
    --color-income: #16a34a;
    --color-warning: #d97706;

    /* Shadows & Glass Highlights */
    --shadow-glass: 0 10px 30px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    --shadow-glass-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.14), inset 0 1px 0 0 rgba(255, 255, 255, 1);
    --shadow-glow-neon: 0 0 30px rgba(127, 0, 255, 0.35);

    /* Radius & Dimensions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --sidebar-width: 260px;
    --header-height: 72px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"], html[data-theme="dark"], body[data-theme="dark"] {
    --bg-primary: #070a0f;
    --bg-secondary: #0d121d;
    --bg-surface-glass: rgba(15, 23, 42, 0.75);
    --bg-surface-glass-solid: rgba(15, 23, 42, 0.92);
    --bg-surface-glass-hover: rgba(30, 41, 59, 0.78);
    --bg-surface-active: rgba(37, 99, 235, 0.25);

    --border-glass: rgba(255, 255, 255, 0.12);
    --border-glass-light: rgba(255, 255, 255, 0.22);
    --border-glass-active: rgba(37, 99, 235, 0.5);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #070a0f;

    --shadow-glass: 0 10px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    --shadow-glass-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   2. SYSTEM_INIT OVERLAY ANIMATION SCREEN (ULTRA LIQUID GLASS)
   -------------------------------------------------------------------------- */
.system-init-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.system-init-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.init-content-box {
    width: 90%;
    max-width: 440px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 60px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    z-index: 10;
}

.init-logo-wrapper {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px auto;
}

.init-brand-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.25), 0 0 60px rgba(127, 0, 255, 0.2);
    animation: initPulse 2.4s infinite ease-in-out;
}

@keyframes initPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 35px rgba(37, 99, 235, 0.25), 0 0 60px rgba(127, 0, 255, 0.2); }
    50% { transform: scale(1.08); box-shadow: 0 0 50px rgba(37, 99, 235, 0.4), 0 0 80px rgba(127, 0, 255, 0.35); }
}

.init-brand-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.init-brand-title .sub-brand {
    display: block;
    font-size: 0.72rem;
    background: linear-gradient(90deg, #2563eb, #7f00ff, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.28em;
    font-weight: 800;
    margin-top: 6px;
}

.init-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.init-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7f00ff, #ec4899);
    border-radius: var(--radius-full);
    box-shadow: 0 0 16px #00d2ff;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.init-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.init-pct {
    font-weight: 900;
    color: #00d2ff;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

.init-code-legend {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.init-pct {
    font-weight: 800;
    color: var(--brand-cyan);
}

.init-code-legend {
    font-family: monospace;
    color: #22c55e;
    letter-spacing: 0.05em;
}

.glass-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

/* Modo Minimizado / Solo Iconos */
.glass-sidebar.collapsed {
    width: 72px;
    padding: 20px 8px;
}

.glass-sidebar.collapsed .sidebar-brand span,
.glass-sidebar.collapsed .nav-section-title,
.glass-sidebar.collapsed .nav-link span,
.glass-sidebar.collapsed .sidebar-footer .user-info {
    display: none !important;
}

.glass-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.glass-sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

.glass-sidebar.collapsed .nav-link i,
.glass-sidebar.collapsed .nav-link svg {
    margin: 0 auto;
    width: 22px;
    height: 22px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.user-avatar,
.apex-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2563eb, #7f00ff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.glass-sidebar.collapsed .sidebar-footer {
    padding: 8px 0;
}

.glass-sidebar.collapsed .user-card {
    padding: 4px;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-theme="dark"] .glass-sidebar {
    background: rgba(17, 24, 39, 0.88);
    border-right-color: rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
}

.brand-logo-img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    display: inline-block !important;
    background: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.brand-logo-img:hover {
    transform: scale(1.08);
}

.main-wrapper,
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    padding: 24px;
    width: calc(100% - 260px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .main-wrapper,
body.sidebar-collapsed .main-content {
    margin-left: 72px;
    width: calc(100% - 72px);
}

@media (max-width: 992px) {
    .glass-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .glass-sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-wrapper,
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.apex-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.apex-letter-a {
    font-weight: 900;
    font-size: 1.4rem;
    color: #ffffff;
    z-index: 2;
}

.apex-gold-ribbon {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold), #f59e0b);
    transform: rotate(-35deg);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--brand-gold);
    z-index: 3;
}

.brand-badge-apex {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-blue-royal);
    letter-spacing: 0.08em;
}

.apex-avatar {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet)) !important;
}

/* --------------------------------------------------------------------------
   4. BASE LAYOUT & AMBIENT ORBS
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-slow);
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    will-change: transform;
}

.ambient-orb-1 {
    top: -10%;
    right: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);
    animation: floatOrb1 18s infinite ease-in-out alternate;
}

.ambient-orb-2 {
    bottom: -15%;
    left: -5%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--brand-violet) 0%, transparent 70%);
    animation: floatOrb2 22s infinite ease-in-out alternate;
}

.ambient-orb-3 {
    top: 35%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand-magenta) 0%, transparent 70%);
    animation: floatOrb3 20s infinite ease-in-out alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 40px) scale(1.1); }
    100% { transform: translate(40px, -50px) scale(0.95); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(70px, -50px) scale(1.15); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(-40px, -60px) scale(1.2); }
    100% { transform: translate(50px, 30px) scale(1); }
}

/* --------------------------------------------------------------------------
   5. REAL-TIME DATA FLOW SIMULATOR (POS ➔ CAJA ➔ REPORTES)
   -------------------------------------------------------------------------- */
.flow-simulator-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flow-nodes-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 30px 20px;
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    position: relative;
    overflow-x: auto;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-glass-solid);
    border: 1px solid var(--border-glass-light);
    min-width: 140px;
    text-align: center;
    z-index: 2;
    transition: all var(--transition-fast);
}

.flow-node.active {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-4px);
}

.flow-node-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-surface-active);
    color: var(--brand-blue-royal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-node-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.flow-connector {
    flex: 1;
    height: 3px;
    background: var(--border-glass-light);
    position: relative;
    min-width: 40px;
}

.flow-packet {
    position: absolute;
    top: -4px;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-cyan);
    transition: left 0.8s ease-in-out;
}

/* --------------------------------------------------------------------------
   6. INSTAGRAM STORIES GLASSMORPHIC GENERATOR (9:16 PREVIEW CARD)
   -------------------------------------------------------------------------- */
.story-generator-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.story-preview-container {
    width: 340px;
    height: 600px;
    border-radius: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.story-glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff;
}

.story-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 210, 255, 0.2);
    border: 1px solid rgba(0, 210, 255, 0.5);
    color: #00d2ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.story-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 14px 0 8px 0;
    line-height: 1.25;
}

.story-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.story-cta-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, #00d2ff, #7f00ff);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(127, 0, 255, 0.5);
}

/* --------------------------------------------------------------------------
   7. LAYOUT COMPONENTS & SIDEBAR
   -------------------------------------------------------------------------- */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.glass-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform var(--transition-normal), background var(--transition-slow);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 24px 12px;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.sidebar-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Ocultar barra de desplazamiento global manteniendo el desplazamiento activo */
::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    padding: 16px 12px 6px 12px;
}

/* Remove all text underlines globally across application links */
a,
a:hover,
a:focus,
a:visited {
    text-decoration: none !important;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
    text-decoration: none !important;
}

.nav-link span {
    text-decoration: none !important;
}

.nav-link:hover {
    background: var(--bg-surface-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glass);
    text-decoration: none !important;
}

.nav-link.active {
    background: var(--bg-surface-active);
    color: var(--brand-blue-royal);
    border-color: var(--border-glass-active);
    font-weight: 700;
    text-decoration: none !important;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

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

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-plan {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.glass-header {
    height: var(--header-height);
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left { display: flex; align-items: center; gap: 16px; }
.mobile-menu-btn { display: none !important; }
#btn-toggle-sidebar { display: flex !important; }
.page-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.page-subtitle { font-size: 0.82rem; color: var(--text-muted); }
.header-right { display: flex; align-items: center; gap: 12px; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-surface-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glass-light);
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.glass-btn-primary {
    background: linear-gradient(135deg, var(--brand-blue-royal), var(--brand-violet));
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.glass-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(127, 0, 255, 0.45);
}

.glass-btn-secondary {
    background: var(--bg-surface-glass);
    border-color: var(--border-glass);
    color: var(--text-primary);
}

.content-body {
    padding: 32px;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   8. GLASS CARDS & STATS (NEUMORPHIC SOFT LIQUID GLASS STYLE)
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .glass-card {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.glass-card-interactive:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
}

.glass-card-sm {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-title { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-glass-solid);
    border: 1px solid var(--border-glass);
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-footer { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; }
.stat-change { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.stat-change.positive { background: rgba(22, 163, 74, 0.15); color: var(--accent-green); }
.stat-change.negative { background: rgba(220, 38, 38, 0.15); color: var(--color-expense); }
.stat-change-text { color: var(--text-muted); }

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-glass-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.glass-badge.success { background: rgba(22, 163, 74, 0.12); color: var(--accent-green); border-color: rgba(22, 163, 74, 0.3); }
.glass-badge.warning { background: rgba(217, 119, 6, 0.12); color: var(--color-warning); border-color: rgba(217, 119, 6, 0.3); }
.glass-badge.danger { background: rgba(220, 38, 38, 0.12); color: var(--color-expense); border-color: rgba(220, 38, 38, 0.3); }
.glass-badge.info { background: rgba(37, 99, 235, 0.12); color: var(--brand-blue-royal); border-color: rgba(37, 99, 235, 0.3); }

/* --------------------------------------------------------------------------
   9. TABLES, MODALS & TOASTS
   -------------------------------------------------------------------------- */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 28px; }
.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chart-container { position: relative; width: 100%; height: 300px; }
.donut-chart-container { position: relative; width: 100%; height: 240px; display: flex; align-items: center; justify-content: center; }

.table-responsive { width: 100%; overflow-x: auto; }
.glass-table { width: 100%; border-collapse: collapse; text-align: left; }
.glass-table th { padding: 14px 16px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-glass); }
.glass-table td { padding: 16px; font-size: 0.9rem; color: var(--text-primary); border-bottom: 1px solid var(--border-glass); }
.glass-table tr:hover td { background: var(--bg-surface-glass-hover); }

.tx-concept { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tx-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-amount { font-weight: 700; font-size: 0.95rem; }
.tx-amount.income { color: var(--accent-green); }
.tx-amount.expense { color: var(--color-expense); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.progress-bar-container { width: 100%; height: 8px; background: rgba(0, 0, 0, 0.08); border-radius: var(--radius-full); overflow: hidden; margin: 12px 0; }
.progress-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.8s ease; }
.progress-bar-fill.normal { background: linear-gradient(90deg, var(--brand-blue-royal), var(--brand-cyan)); }
.progress-bar-fill.warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress-bar-fill.critical { background: linear-gradient(90deg, #dc2626, #ef4444); }

.virtual-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border-glass-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-glass);
}
.virtual-card-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #f59e0b, #d97706); margin-bottom: 20px; }

.ai-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.ai-chat-card { display: flex; flex-direction: column; height: 500px; padding: 0; overflow: hidden; }
.ai-chat-header { padding: 18px 24px; border-bottom: 1px solid var(--border-glass); display: flex; align-items: center; gap: 14px; }
.ai-orb-container { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 20px rgba(127, 0, 255, 0.4); }
.ai-chat-messages { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.message-bubble { max-width: 80%; padding: 14px 18px; border-radius: var(--radius-lg); font-size: 0.9rem; line-height: 1.5; }
.message-bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand-blue-royal), var(--brand-violet)); color: #fff; border-bottom-right-radius: 4px; }
.message-bubble.assistant { align-self: flex-start; background: var(--bg-surface-glass-solid); border: 1px solid var(--border-glass); border-bottom-left-radius: 4px; }
.ai-chat-input-container { padding: 16px 24px; border-top: 1px solid var(--border-glass); display: flex; gap: 12px; }

.glass-input { width: 100%; padding: 12px 16px; border-radius: var(--radius-md); background: var(--bg-surface-glass); border: 1px solid var(--border-glass); color: var(--text-primary); font-size: 0.92rem; outline: none; transition: all var(--transition-fast); }
.glass-input:focus { border-color: var(--brand-blue-royal); box-shadow: 0 0 15px rgba(37, 99, 235, 0.25); }
.glass-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.65); backdrop-filter: var(--glass-blur-sm); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--transition-normal); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.glass-modal { width: 100%; max-width: 520px; background: var(--bg-surface-glass-solid); backdrop-filter: var(--glass-blur-lg); border: 1px solid var(--border-glass-light); border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); padding: 28px; transform: scale(0.95); transition: transform var(--transition-normal); max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .glass-modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.25rem; font-weight: 800; }

.cmd-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6); backdrop-filter: var(--glass-blur-sm); z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; opacity: 0; pointer-events: none; transition: opacity var(--transition-fast); }
.cmd-overlay.active { opacity: 1; pointer-events: auto; }
.cmd-dialog { width: 100%; max-width: 600px; padding: 0; overflow: hidden; }
.cmd-header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-glass); gap: 12px; }
.cmd-header input { background: transparent; border: none; color: var(--text-primary); font-size: 1.05rem; width: 100%; outline: none; }
.cmd-body { max-height: 350px; overflow-y: auto; padding: 8px; }
.cmd-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-md); cursor: pointer; color: var(--text-secondary); }
.cmd-item:hover { background: var(--bg-surface-active); color: var(--brand-blue-royal); }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.glass-toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--radius-md); background: var(--bg-surface-glass-solid); backdrop-filter: var(--glass-blur); border: 1px solid var(--border-glass-light); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-size: 0.9rem; font-weight: 600; animation: toastIn 0.3s ease-out forwards; }

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

.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 64px; background: var(--bg-surface-glass-solid); backdrop-filter: var(--glass-blur-lg); border-top: 1px solid var(--border-glass); z-index: 95; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: transparent; border: none; color: var(--text-muted); font-size: 0.7rem; cursor: pointer; }
.bottom-nav-item.active { color: var(--brand-blue-royal); }
.bottom-nav-fab { transform: translateY(-16px); }
.fab-circle { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-blue-royal), var(--brand-violet)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); }

/* --------------------------------------------------------------------------
   10. DASHBOARD SPECIAL COMPONENTS (AI FLYOUT PANEL, FAB RADIAL & SKELETONS)
   -------------------------------------------------------------------------- */
/* AI Flyout Side Panel */
.ai-flyout-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-surface-glass-solid);
    backdrop-filter: var(--glass-blur-lg);
    border-left: 1px solid var(--border-glass-light);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-flyout-panel.active {
    right: 0;
}

.ai-flyout-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-flyout-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-flyout-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 10px;
}

/* FAB Radial Mobile Menu */
.fab-radial-menu {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-radial-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.fab-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-glass-solid);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass-light);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Empty State Box */
.empty-state-box {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-surface-active);
    color: var(--brand-blue-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.empty-state-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 380px;
}

/* Skeleton Loading Helpers */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.15) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: skeletonLoading 1.4s ease infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (max-width: 1024px) {
    .glass-sidebar { transform: translateX(-100%); }
    .glass-sidebar.active { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .mobile-menu-btn { display: flex !important; }
    #btn-toggle-sidebar { display: none !important; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .ai-layout { grid-template-columns: 1fr; }
    .story-generator-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .content-body { padding: 16px; padding-bottom: 80px; }
    .glass-header { padding: 0 16px; }
    .mobile-bottom-nav { display: flex; }
    .desktop-only { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .ai-flyout-panel { width: 100vw; right: -100vw; }
}

/* ==========================================================================
   ENHANCED LANDING PAGE LIQUID GLASS STYLES
   ========================================================================== */

/* Shimmer Glow Buttons */
.glass-btn-primary.shimmer-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #7f00ff);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-btn-primary.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
}

.glass-btn-primary.shimmer-btn:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.glass-btn-primary.shimmer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(127, 0, 255, 0.45);
}

/* Pricing Section Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-glass-light);
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.35s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px -10px rgba(37, 99, 235, 0.15);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(37,99,235,0.08), rgba(127,0,255,0.06));
    border: 2px solid rgba(127, 0, 255, 0.4);
    box-shadow: 0 20px 50px -10px rgba(127, 0, 255, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg, #7f00ff, #2563eb);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(127, 0, 255, 0.4);
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 16px 0 8px 0;
    line-height: 1;
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin: 24px 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent-green);
    width: 18px;
    height: 18px;
}

/* Interactive Simulator */
.simulator-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass-light);
    border-radius: 28px;
    padding: 36px;
    margin-top: 40px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.08);
}

.simulator-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(37,99,235,0.15);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 16px 0 8px 0;
}

.simulator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7f00ff);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(37,99,235,0.5);
    transition: transform 0.2s ease;
}

.simulator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Interactive Hero Tab Switcher */
.hero-tab-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-tab-btn {
    padding: 8px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface-glass);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-tab-btn.active, .hero-tab-btn:hover {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(127,0,255,0.12));
    border-color: rgba(37,99,235,0.35);
    color: var(--brand-blue-royal);
    transform: translateY(-1px);
}

/* Testimonial Cards */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass-light);
    border-radius: 20px;
    padding: 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   UNIFIED LANDING NAVBAR (CORPORATE LIQUID GLASS)
   ========================================================================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .landing-nav {
    background: rgba(15, 23, 42, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.landing-nav-link:hover {
    color: var(--brand-blue-royal);
    background: rgba(37, 99, 235, 0.08);
}

.landing-nav-link.active {
    color: var(--brand-blue-royal);
    font-weight: 800;
    background: rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .landing-nav-link:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .landing-nav-link.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.2);
}

@media (max-width: 1280px) {
    .landing-nav-links {
        gap: 10px;
    }
    .landing-nav-link {
        font-size: 0.82rem;
        padding: 5px 8px;
    }
}

@media (max-width: 992px) {
    .landing-nav-links.desktop-only {
        display: none !important;
    }
}


/* --------------------------------------------------------------------------
   CUSTOM GLASS CHECKBOXES & TOGGLE SWITCHES
   -------------------------------------------------------------------------- */
.glass-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.glass-switch-label:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.glass-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
}

.glass-checkbox:checked {
    background: linear-gradient(135deg, #2563eb, #7f00ff);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.glass-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.glass-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(203, 213, 225, 0.7);
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin: 0;
}

.glass-toggle:checked {
    background: linear-gradient(135deg, #2563eb, #7f00ff);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.glass-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-toggle:checked::before {
    transform: translateX(20px);
}
