/* ==========================================================================
   EXPER PANEL - Ultra-Modern Monochrome Obsidian & Titanium Design System
   Minimalist, High-Contrast Luxury Tech & Intelligence Aesthetic
   ========================================================================== */

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

/* ==========================================================================
   1. DESIGN TOKENS (CSS CUSTOM VARIABLES)
   ========================================================================== */

:root {
    /* Light Mode (Titanium / Crisp Porcelain White) */
    --bg-canvas: #f4f4f5;
    --bg-primary: #f4f4f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-surface: #ffffff;
    --bg-subtle: #fafafa;
    --bg-hover: #e9ecef;
    --bg-active: #e4e4e7;

    --text-primary: #09090b;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --text-muted: #71717a;
    --text-disabled: #a1a1aa;

    --border-subtle: #e4e4e7;
    --border-primary: #e4e4e7;
    --border-secondary: #d4d4d8;
    --border-medium: #d4d4d8;
    --border-strong: #09090b;
    --border-hover: #18181b;

    /* Refined Luxury Accent Tints (Subtle Jewel Tones Harmonious with Monochrome) */
    --accent-emerald: #059669;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.10);
    --accent-emerald-border: rgba(16, 185, 129, 0.25);
    
    --accent-amber: #d97706;
    --accent-amber-subtle: rgba(245, 158, 11, 0.10);
    --accent-amber-border: rgba(245, 158, 11, 0.25);
    
    --accent-indigo: #4f46e5;
    --accent-indigo-subtle: rgba(99, 102, 241, 0.10);
    --accent-indigo-border: rgba(99, 102, 241, 0.25);

    --accent-cyan: #0891b2;
    --accent-cyan-subtle: rgba(6, 182, 212, 0.10);
    --accent-cyan-border: rgba(6, 182, 212, 0.25);

    --accent-rose: #e11d48;
    --accent-rose-subtle: rgba(244, 63, 94, 0.10);
    --accent-rose-border: rgba(244, 63, 94, 0.25);

    --accent-purple: #9333ea;
    --accent-purple-subtle: rgba(168, 85, 247, 0.10);
    --accent-purple-border: rgba(168, 85, 247, 0.25);

    --accent-primary: #09090b;
    --accent-hover: #27272a;
    --accent-text: #ffffff;
    --accent-light: #f4f4f5;
    --accent-bg: #f4f4f5;

    --card-bg: #ffffff;
    --card-border: #e4e4e7;

    --badge-bg: #f4f4f5;
    --badge-text: #09090b;
    --badge-border: #e4e4e7;

    --status-success: #059669;
    --status-success-bg: rgba(16, 185, 129, 0.10);
    --status-success-border: rgba(16, 185, 129, 0.25);

    --status-error: #e11d48;
    --status-error-bg: rgba(244, 63, 94, 0.10);
    --status-error-border: rgba(244, 63, 94, 0.25);

    --grid-color: rgba(0, 0, 0, 0.035);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

    --sidebar-width: 280px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out-expo);
    --transition-normal: 250ms var(--ease-out-expo);
    --transition-slow: 400ms var(--ease-out-expo);
}

/* Dark Mode (Obsidian / High-Contrast Titanium Silver) */
html.dark,
body.dark {
    --bg-canvas: #09090b;
    --bg-primary: #09090b;
    --bg-secondary: #121214;
    --bg-tertiary: #18181b;
    --bg-surface: #121214;
    --bg-subtle: #18181b;
    --bg-hover: #27272a;
    --bg-active: #3f3f46;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    --text-disabled: #52525b;

    --border-subtle: #27272a;
    --border-primary: #27272a;
    --border-secondary: #3f3f46;
    --border-medium: #3f3f46;
    --border-strong: #fafafa;
    --border-hover: #71717a;

    /* Refined Luxury Accent Tints (Dark Mode Harmonious Accents) */
    --accent-emerald: #34d399;
    --accent-emerald-subtle: rgba(52, 211, 153, 0.12);
    --accent-emerald-border: rgba(52, 211, 153, 0.25);
    
    --accent-amber: #fbbf24;
    --accent-amber-subtle: rgba(251, 191, 36, 0.12);
    --accent-amber-border: rgba(251, 191, 36, 0.25);
    
    --accent-indigo: #818cf8;
    --accent-indigo-subtle: rgba(129, 140, 248, 0.12);
    --accent-indigo-border: rgba(129, 140, 248, 0.25);

    --accent-cyan: #22d3ee;
    --accent-cyan-subtle: rgba(34, 211, 238, 0.12);
    --accent-cyan-border: rgba(34, 211, 238, 0.25);

    --accent-rose: #fb7185;
    --accent-rose-subtle: rgba(251, 113, 133, 0.12);
    --accent-rose-border: rgba(251, 113, 133, 0.25);

    --accent-purple: #c084fc;
    --accent-purple-subtle: rgba(192, 132, 252, 0.12);
    --accent-purple-border: rgba(192, 132, 252, 0.25);

    --accent-primary: #ffffff;
    --accent-hover: #e4e4e7;
    --accent-text: #09090b;
    --accent-light: #27272a;
    --accent-bg: #18181b;

    --card-bg: #121214;
    --card-border: #27272a;

    --badge-bg: #18181b;
    --badge-text: #fafafa;
    --badge-border: #27272a;

    --status-success: #34d399;
    --status-success-bg: rgba(52, 211, 153, 0.12);
    --status-success-border: rgba(52, 211, 153, 0.25);

    --status-error: #fb7185;
    --status-error-bg: rgba(251, 113, 133, 0.12);
    --status-error-border: rgba(251, 113, 133, 0.25);

    --grid-color: rgba(255, 255, 255, 0.03);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    scroll-behavior: smooth;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 9999px;
}

/* Background Texture Patterns */
.bg-grid-pattern {
    background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

.bg-dot-pattern,
.bg-dot-matrix {
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

html.dark .bg-dot-pattern,
html.dark .bg-dot-matrix {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.bg-ambient-radial {
    background-image: radial-gradient(circle at 50% 0%, rgba(120, 120, 120, 0.08) 0%, transparent 70%);
}

html.dark .bg-ambient-radial {
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.bg-mesh-dark {
    background-color: #09090b;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 255, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.02) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 255, 255, 0.03) 0px, transparent 50%);
}

/* Ambient Glow Lighting Orbs for Auth & Hero Pages */
.ambient-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    transition: opacity var(--transition-slow);
}

html.dark .ambient-orb {
    opacity: 0.25;
}

.ambient-orb-primary {
    background: radial-gradient(circle, rgba(120, 120, 120, 0.3) 0%, rgba(120, 120, 120, 0) 70%);
}

html.dark .ambient-orb-primary {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

.ambient-orb-accent {
    background: radial-gradient(circle, rgba(160, 160, 160, 0.2) 0%, rgba(160, 160, 160, 0) 70%);
}

html.dark .ambient-orb-accent {
    background: radial-gradient(circle, rgba(200, 200, 200, 0.12) 0%, rgba(200, 200, 200, 0) 70%);
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatSlow 10s ease-in-out 3s infinite;
}

/* ==========================================================================
   3. TYPOGRAPHY & TEXT UTILITIES
   ========================================================================== */

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .page-header-title {
        font-size: 1.875rem;
    }
}

.page-header-sub {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Luxury Monochrome Gradient Text */
.gradient-text-mono,
.text-gradient-gold,
.text-gradient-silver,
.text-gradient-emerald,
.text-gradient-indigo {
    background: linear-gradient(180deg, #18181b 0%, #71717a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html.dark .gradient-text-mono,
html.dark .text-gradient-gold,
html.dark .text-gradient-silver,
html.dark .text-gradient-emerald,
html.dark .text-gradient-indigo {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ==========================================================================
   4. CARDS, SURFACES & ELEVATION
   ========================================================================== */

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-primary);
    border-radius: 1.5rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all var(--transition-normal);
}

html.dark .glass-card-premium {
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hover-lift,
.card-hover-lift {
    transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-out-expo), border-color 0.22s ease;
}

.hover-lift:hover,
.card-hover-lift:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

html.dark .hover-lift:hover,
html.dark .card-hover-lift:hover {
    box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.7);
}

/* Unified Subtle Glow Card Tokens (Monochrome High-End) */
.glow-card-indigo,
.glow-card-emerald,
.glow-card-amber,
.glow-card-violet,
.glow-card-rose {
    position: relative;
}

.glow-card-indigo:hover,
.glow-card-emerald:hover,
.glow-card-amber:hover,
.glow-card-violet:hover,
.glow-card-rose:hover {
    border-color: var(--border-hover) !important;
}

/* ==========================================================================
   5. BUTTONS & ACTIONS
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    background-color: var(--accent-primary);
    color: var(--accent-text);
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
    user-select: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
    user-select: none;
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   6. FORM INPUTS & SELECTS
   ========================================================================== */

:where(input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea) {
    width: 100%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

:where(input:focus,
    select:focus,
    textarea:focus) {
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 0 2px var(--grid-color) !important;
}

:where(input::placeholder,
    textarea::placeholder) {
    color: var(--text-muted);
}

.input-luxury {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 0.875rem;
    transition: all 0.2s ease;
}

.input-luxury:focus {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

html.dark .input-luxury:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Input With Icon Classes */
.input-with-icon-left {
    padding-left: 3rem !important;
    padding-right: 1rem !important;
}

.input-with-icon-right {
    padding-right: 3rem !important;
    padding-left: 1rem !important;
}

.input-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    z-index: 10;
}

.group:focus-within .input-icon-left {
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   7. BADGES, PILLS & RADAR
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.375rem;
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
}

.badge-inverted {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

/* Refined Jewel-Tinted Badges & Status Pills (Subtle, Luxury Monochrome-Harmonious Accents) */
.badge-emerald {
    background: var(--accent-emerald-subtle) !important;
    color: var(--accent-emerald) !important;
    border: 1px solid var(--accent-emerald-border) !important;
}

.badge-amber {
    background: var(--accent-amber-subtle) !important;
    color: var(--accent-amber) !important;
    border: 1px solid var(--accent-amber-border) !important;
}

.badge-indigo {
    background: var(--accent-indigo-subtle) !important;
    color: var(--accent-indigo) !important;
    border: 1px solid var(--accent-indigo-border) !important;
}

.badge-cyan {
    background: var(--accent-cyan-subtle) !important;
    color: var(--accent-cyan) !important;
    border: 1px solid var(--accent-cyan-border) !important;
}

.badge-rose {
    background: var(--accent-rose-subtle) !important;
    color: var(--accent-rose) !important;
    border: 1px solid var(--accent-rose-border) !important;
}

.badge-violet,
.badge-purple {
    background: var(--accent-purple-subtle) !important;
    color: var(--accent-purple) !important;
    border: 1px solid var(--accent-purple-border) !important;
}

.badge-vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25)) !important;
    color: var(--accent-amber) !important;
    border: 1px solid var(--accent-amber-border) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15) !important;
}

.badge-live {
    background: var(--accent-emerald-subtle) !important;
    color: var(--accent-emerald) !important;
    border: 1px solid var(--accent-emerald-border) !important;
}

/* Radar Pulse Indicator */
.radar-pulse {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

.radar-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    animation: radarRipple 1.8s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes radarRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Sample Prefill Pill */
.sample-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sample-pill:hover {
    background: var(--accent-primary);
    color: var(--accent-text);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Copy Trigger Pill */
.copy-pill {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-pill:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.copy-pill:active {
    transform: scale(0.97);
}

/* ==========================================================================
   8. TOAST NOTIFICATION SYSTEM
   ========================================================================== */

#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 3rem);
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastSlideIn 0.35s var(--ease-spring) forwards;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--text-primary);
    width: 100%;
    animation: toastProgress linear forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ==========================================================================
   9. SKELETON LOADERS & MICRO-ANIMATIONS
   ========================================================================== */

.skeleton,
.skeleton-box {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border-radius: 0.75rem;
}

.skeleton::after,
.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.08) 20%,
            rgba(255, 255, 255, 0.18) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.8s infinite;
    content: '';
}

html:not(.dark) .skeleton::after,
html:not(.dark) .skeleton-box::after {
    background-image: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 0.04) 20%,
            rgba(0, 0, 0, 0.08) 60%,
            rgba(0, 0, 0, 0));
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Fade In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.45s var(--ease-out-expo) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.35s var(--ease-out-expo) forwards;
}

/* Stagger Grid Animations */
.stagger-in > * {
    opacity: 0;
    animation: fadeInUp 0.45s var(--ease-out-expo) forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.04s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.12s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.16s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.20s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.24s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.28s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.32s; }

/* Material Symbols Adjustments */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    vertical-align: middle;
}

.icon-fill {
    font-variation-settings: 'FILL' 1;
}

/* Interactive Tap & Ripple Effects */
.interactive-tap {
    transition: transform var(--transition-fast);
}

.interactive-tap:active {
    transform: scale(0.97);
}

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

html:not(.dark) .ripple-wave {
    background-color: rgba(0, 0, 0, 0.12);
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animated Micro-Interactions */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes iconPulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
}

.icon-animated-float { animation: iconFloat 3.2s ease-in-out infinite; }
.icon-animated-pulse { animation: iconPulseGlow 2.4s ease-in-out infinite; }
.icon-hover-wiggle:hover { animation: iconWiggle 0.5s ease-in-out; }

.icon-hover-scale {
    transition: transform var(--transition-fast);
}
.icon-hover-scale:hover {
    transform: scale(1.15);
}

/* Tab Button Token */
.tab-btn {
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active {
    background: var(--accent-primary) !important;
    color: var(--accent-text) !important;
    border-color: var(--border-strong) !important;
}

/* Accessibility Focus Visible */
*:focus-visible {
    outline: 2px solid var(--text-primary) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   10. MOBILE & DRAWER ADAPTATIONS
   ========================================================================== */

* {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1023px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    input[type="text"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .overflow-y-auto,
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    #sidebar {
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform;
    }

    #sidebar.open {
        transform: translateX(0) !important;
    }
}

#mobileSidebarBackdrop {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

#mobileSidebarBackdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Professional Print Stylesheet */
@media print {
    #sidebar,
    header,
    nav,
    #toast-container,
    .no-print,
    button:not(.printable) {
        display: none !important;
    }

    body,
    main,
    [class*="lg:ml-"] {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .glass-card,
    .glass-card-premium {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
}