:root {
    /* Primitive Color Tokens */
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
    --color-cream-50: rgba(252, 252, 249, 1);
    --color-cream-100: rgba(255, 255, 253, 1);
    --color-gray-200: rgba(245, 245, 245, 1);
    --color-gray-300: rgba(167, 169, 169, 1);
    --color-gray-400: rgba(119, 124, 124, 1);
    --color-slate-500: rgba(98, 108, 113, 1);
    --color-brown-600: rgba(94, 82, 64, 1);
    --color-charcoal-700: rgba(31, 33, 33, 1);
    --color-charcoal-800: rgba(38, 40, 40, 1);
    --color-slate-900: rgba(19, 52, 59, 1);
    --color-teal-300: rgba(50, 184, 198, 1);
    --color-teal-400: rgba(45, 166, 178, 1);
    --color-teal-500: rgba(33, 128, 141, 1);
    --color-teal-600: rgba(29, 116, 128, 1);
    --color-teal-700: rgba(26, 104, 115, 1);
    --color-teal-800: rgba(41, 150, 161, 1);
    --color-red-400: rgba(255, 84, 89, 1);
    --color-red-500: rgba(192, 21, 47, 1);
    --color-orange-400: rgba(230, 129, 97, 1);
    --color-orange-500: rgba(168, 75, 47, 1);
    /* RGB versions for opacity control */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    --color-slate-500-rgb: 98, 108, 113;
    --color-red-500-rgb: 192, 21, 47;
    --color-red-400-rgb: 255, 84, 89;
    --color-orange-500-rgb: 168, 75, 47;
    --color-orange-400-rgb: 230, 129, 97;
    /* Background color tokens (Light Mode) */
    --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
    --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
    --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
    --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
    --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
    --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
    --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
    --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */
    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
    /* Common style patterns */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    /* RGB versions for opacity control */
    --color-success-rgb: 33, 128, 141;
    --color-error-rgb: 192, 21, 47;
    --color-warning-rgb: 168, 75, 47;
    --color-info-rgb: 98, 108, 113;
    /* Typography */
    --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 550;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --letter-spacing-tight: -0.01em;
    /* Spacing */
    --space-0: 0;
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    /* Animation */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        /* RGB versions for opacity control (Dark Mode) */
        --color-gray-400-rgb: 119, 124, 124;
        --color-teal-300-rgb: 50, 184, 198;
        --color-gray-300-rgb: 167, 169, 169;
        --color-gray-200-rgb: 245, 245, 245;
        /* Background color tokens (Dark Mode) */
        --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
        --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
        --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
        --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
        --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
        --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
        --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
        --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
        /* Semantic Color Tokens (Dark Mode) */
        --color-background: var(--color-charcoal-700);
        --color-surface: var(--color-charcoal-800);
        --color-text: var(--color-gray-200);
        --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
        --color-primary: var(--color-teal-300);
        --color-primary-hover: var(--color-teal-400);
        --color-primary-active: var(--color-teal-800);
        --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
        --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
        --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
        --color-border: rgba(var(--color-gray-400-rgb), 0.3);
        --color-error: var(--color-red-400);
        --color-success: var(--color-teal-300);
        --color-warning: var(--color-orange-400);
        --color-info: var(--color-gray-300);
        --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
        --color-btn-primary-text: var(--color-slate-900);
        --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
        --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
        --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
        /* Common style patterns - updated for dark mode */
        --focus-ring: 0 0 0 3px var(--color-focus-ring);
        --focus-outline: 2px solid var(--color-primary);
        --status-bg-opacity: 0.15;
        --status-border-opacity: 0.25;
        --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        /* RGB versions for dark mode */
        --color-success-rgb: var(--color-teal-300-rgb);
        --color-error-rgb: var(--color-red-400-rgb);
        --color-warning-rgb: var(--color-orange-400-rgb);
        --color-info-rgb: var(--color-gray-300-rgb);
    }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
    /* RGB versions for opacity control (dark mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;
    /* Colorful background palette - Dark Mode */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
    /* RGB versions for opacity control (light mode) */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    /* RGB versions for light mode */
    --color-success-rgb: var(--color-teal-500-rgb);
    --color-error-rgb: var(--color-red-500-rgb);
    --color-warning-rgb: var(--color-orange-500-rgb);
    --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin: 0 0 var(--space-16) 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

    a:hover {
        color: var(--color-primary-hover);
    }

code,
pre {
    font-family: var(--font-family-mono);
    font-size: calc(var(--font-size-base) * 0.95);
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
}

code {
    padding: var(--space-1) var(--space-4);
}

pre {
    padding: var(--space-16);
    margin: var(--space-16) 0;
    overflow: auto;
    border: 1px solid var(--color-border);
}

    pre code {
        background: none;
        padding: 0;
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    border: none;
    text-decoration: none;
    position: relative;
}

    .btn:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

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

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

    .btn--primary:active {
        background: var(--color-primary-active);
    }

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}

    .btn--secondary:hover {
        background: var(--color-secondary-hover);
    }

    .btn--secondary:active {
        background: var(--color-secondary-active);
    }

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

    .btn--outline:hover {
        background: var(--color-secondary);
    }

.btn--sm {
    padding: var(--space-4) var(--space-12);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: var(--space-10) var(--space-20);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn--full-width {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form elements */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

select.form-control {
    padding: var(--space-8) var(--space-12);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--select-caret-light);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 16px;
    padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
    select.form-control {
        background-image: var(--select-caret-dark);
    }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
    background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
    background-image: var(--select-caret-light);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: var(--focus-outline);
}

.form-label {
    display: block;
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.form-group {
    margin-bottom: var(--space-16);
}

/* Card component */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-standard);
}

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

.card__body {
    padding: var(--space-16);
}

.card__header,
.card__footer {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
    display: inline-flex;
    align-items: center;
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.status--success {
    background-color: rgba( var(--color-success-rgb, 33, 128, 141), var(--status-bg-opacity) );
    color: var(--color-success);
    border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
    background-color: rgba( var(--color-error-rgb, 192, 21, 47), var(--status-bg-opacity) );
    color: var(--color-error);
    border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
    background-color: rgba( var(--color-warning-rgb, 168, 75, 47), var(--status-bg-opacity) );
    color: var(--color-warning);
    border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
    background-color: rgba( var(--color-info-rgb, 98, 108, 113), var(--status-bg-opacity) );
    color: var(--color-info);
    border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-16);
    padding-left: var(--space-16);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* Utility classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-16 {
    gap: var(--space-16);
}

.m-0 {
    margin: 0;
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mx-8 {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
}

.my-8 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.p-0 {
    padding: 0;
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.px-16 {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
}

.block {
    display: block;
}

.hidden {
    display: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
    border: 1px solid var(--color-border-secondary);
}

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
:root {
    /* Modern Light Theme */
    --light-bg: #f8f9fd;
    --light-surface: #ffffff;
    --primary-indigo: #6366f1;
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
    --shadow-soft: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
    /* Original tokens */
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
    --color-cream-50: rgba(252, 252, 249, 1);
    --color-cream-100: rgba(255, 255, 253, 1);
    --color-gray-200: rgba(245, 245, 245, 1);
    --color-gray-300: rgba(167, 169, 169, 1);
    --color-gray-400: rgba(119, 124, 124, 1);
    --color-slate-500: rgba(98, 108, 113, 1);
    --color-brown-600: rgba(94, 82, 64, 1);
    --color-charcoal-700: rgba(31, 33, 33, 1);
    --color-charcoal-800: rgba(38, 40, 40, 1);
    --color-slate-900: rgba(19, 52, 59, 1);
    --color-teal-300: rgba(50, 184, 198, 1);
    --color-teal-400: rgba(45, 166, 178, 1);
    --color-teal-500: rgba(33, 128, 141, 1);
    --color-teal-600: rgba(29, 116, 128, 1);
    --color-teal-700: rgba(26, 104, 115, 1);
    --color-red-400: rgba(255, 84, 89, 1);
    --color-red-500: rgba(192, 21, 47, 1);
    --color-orange-400: rgba(230, 129, 97, 1);
    --color-orange-500: rgba(168, 75, 47, 1);
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    --color-slate-500-rgb: 98, 108, 113;
    --color-red-500-rgb: 192, 21, 47;
    --color-red-400-rgb: 255, 84, 89;
    --color-orange-500-rgb: 168, 75, 47;
    --color-orange-400-rgb: 230, 129, 97;
    --color-bg-1: rgba(59, 130, 246, 0.08);
    --color-bg-2: rgba(245, 158, 11, 0.08);
    --color-bg-3: rgba(34, 197, 94, 0.08);
    --color-bg-4: rgba(239, 68, 68, 0.08);
    --color-bg-5: rgba(147, 51, 234, 0.08);
    --color-bg-6: rgba(249, 115, 22, 0.08);
    --color-bg-7: rgba(236, 72, 153, 0.08);
    --color-bg-8: rgba(6, 182, 212, 0.08);
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --color-success-rgb: 33, 128, 141;
    --color-error-rgb: 192, 21, 47;
    --color-warning-rgb: 168, 75, 47;
    --color-info-rgb: 98, 108, 113;
    --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 550;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --letter-spacing-tight: -0.01em;
    --space-0: 0;
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-gray-400-rgb: 119, 124, 124;
        --color-teal-300-rgb: 50, 184, 198;
        --color-gray-300-rgb: 167, 169, 169;
        --color-gray-200-rgb: 245, 245, 245;
        --color-bg-1: rgba(29, 78, 216, 0.15);
        --color-bg-2: rgba(180, 83, 9, 0.15);
        --color-bg-3: rgba(21, 128, 61, 0.15);
        --color-bg-4: rgba(185, 28, 28, 0.15);
        --color-bg-5: rgba(107, 33, 168, 0.15);
        --color-bg-6: rgba(194, 65, 12, 0.15);
        --color-bg-7: rgba(190, 24, 93, 0.15);
        --color-bg-8: rgba(8, 145, 178, 0.15);
        --color-background: var(--color-charcoal-700);
        --color-surface: var(--color-charcoal-800);
        --color-text: var(--color-gray-200);
        --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
        --color-primary: var(--color-teal-300);
        --color-primary-hover: var(--color-teal-400);
        --color-border: rgba(var(--color-gray-400-rgb), 0.3);
        --color-error: var(--color-red-400);
        --color-success: var(--color-teal-300);
        --color-warning: var(--color-orange-400);
        --color-btn-primary-text: var(--color-slate-900);
        --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
        --color-success-rgb: var(--color-teal-300-rgb);
        --color-error-rgb: var(--color-red-400-rgb);
        --color-warning-rgb: var(--color-orange-400-rgb);
    }
}

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    height: 100%;
    overflow: hidden;
}

/* Particle Canvas - Hidden in light theme */
.particle-canvas {
    display: none;
}

/* Confetti Canvas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ========================================
   GAMIFICATION BAR
   ======================================== */

.gamification-bar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 20px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    color: white;
    position: relative;
    overflow: hidden;
}

    .gamification-bar::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

.gamification-left {
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-icon {
    font-size: 32px;
}

.level-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.level-title {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xp-progress {
    min-width: 200px;
}

.xp-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.xp-text {
    font-size: 12px;
    opacity: 0.95;
    font-weight: 500;
}

.gamification-center {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.achievement-badges {
    display: flex;
    gap: 12px;
}

.badge {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

    .badge:hover {
        transform: translateY(-8px) scale(1.1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.25);
    }

    .badge.bronze {
        border-color: #cd7f32;
        background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
    }

    .badge.silver {
        border-color: #c0c0c0;
        background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
    }

    .badge.gold {
        border-color: #fbbf24;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.1));
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    }

    .badge.purple {
        border-color: #a855f7;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.1));
    }

    .badge.blue {
        border-color: #3b82f6;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    }

.gamification-right {
    z-index: 1;
}

.streak-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.streak-fire {
    font-size: 32px;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.streak-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.streak-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login Page */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.login-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #7678e4 0%, #8b5cf6 50%, #4899ec 100%);
    padding: var(--space-16);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.login-glow {
    display: none;
}

.login-card {
    background: var(--light-surface);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease-out;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-32);
}

.logo-glow {
    font-size: 64px;
    /*margin-bottom: 16px;*/
}

.login-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.login-form .form-group {
    margin-bottom: var(--space-16);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-24);
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
}

    .checkbox-label input {
        margin-right: 10px;
        accent-color: var(--primary-indigo);
    }

.forgot-link {
    font-size: 13px;
    color: var(--primary-indigo);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .forgot-link:hover {
        color: var(--primary-purple);
    }

/* Main App Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 280px;
    background: var(--light-surface);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-normal) var(--ease-standard);
    position: relative;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

.sidebar-header {
    /*padding: 32px 24px;*/
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-indigo);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-16) 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 12px;
    position: relative;
}

    .nav-item:hover {
        background: #f1f5f9;
        color: var(--text-primary);
    }

    .nav-item.active {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        color: var(--primary-indigo);
        font-weight: 500;
    }

.nav-icon {
    margin-right: var(--space-12);
    font-size: var(--font-size-xl);
}

.nav-label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    background: var(--light-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 90;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.menu-toggle {
    /*display: none;*/
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

.notification-btn {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    color: var(--text-secondary);
}

    .notification-btn::after {
        content: '';
        position: absolute;
        top: 8px;
        right: 8px;
        width: 6px;
        height: 6px;
        background: var(--error-red);
        border-radius: 50%;
    }

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

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .user-btn:hover {
        background: #f1f5f9;
    }

.user-avatar {
    font-size: var(--font-size-xl);
}

.user-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.dropdown-arrow {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

    .user-dropdown.show {
        display: block;
    }

.dropdown-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

    .dropdown-item:hover {
        background: #f1f5f9;
        color: var(--primary-indigo);
    }

/* Views */
.view {
    padding: 32px;
    overflow-y: auto;
    display: none;
    animation: slideUp 0.5s ease-out;
    position: relative;
}

    .view.active {
        display: block;
    }

.view-header {
    margin-bottom: var(--space-24);
}

    .view-header h1 {
        font-size: 32px;
        margin-bottom: 12px;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.5px;
    }

.view-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Cards */
.card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    position: relative;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .card h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-16);
        color: var(--text-primary);
        font-weight: 600;
    }

/* ========================================
   REVOLUTIONARY GAMIFIED DASHBOARD
   ======================================== */

.gamified-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
    align-items: start;
}

.dashboard-left-column,
.dashboard-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 3D Balance Card */
.balance-card-3d {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

    .balance-card-3d:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
    }

.balance-card-inner {
    position: relative;
    z-index: 2;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

    .balance-header h3 {
        font-size: 16px;
        font-weight: 600;
        opacity: 0.9;
        margin: 0;
    }

.balance-icon {
    font-size: 32px;
}

.balance-amount {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.balance-details {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.balance-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.balance-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 8px;
}

.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.coin {
    position: absolute;
    font-size: 24px;
    opacity: 0.2;
    animation: floatCoin 6s infinite ease-in-out;
}

    .coin:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .coin:nth-child(2) {
        top: 60%;
        left: 80%;
        animation-delay: 2s;
    }

    .coin:nth-child(3) {
        top: 40%;
        left: 90%;
        animation-delay: 4s;
    }

@keyframes floatCoin {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Quick Actions Widget */
.quick-actions-widget,
.chart-3d-container,
.goal-progress-widget,
.challenge-widget,
.weekly-goal-widget,
.leaderboard-widget,
.shortcuts-widget,
.calendar-widget {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

    .quick-actions-widget:hover,
    .chart-3d-container:hover,
    .goal-progress-widget:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quick-action-card {
    padding: 24px;
    border-radius: 16px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .quick-action-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    .quick-action-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .quick-action-card.purple {
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
    }

    .quick-action-card.blue {
        background: linear-gradient(135deg, #3b82f6, #60a5fa);
    }

    .quick-action-card.green {
        background: linear-gradient(135deg, #10b981, #34d399);
    }

    .quick-action-card.orange {
        background: linear-gradient(135deg, #f59e0b, #fbbf24);
    }

.action-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.action-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.action-badge {
    font-size: 11px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

/* Chart 3D Container */
.chart-3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-3d-tabs {
    display: flex;
    gap: 8px;
}

.chart-tab {
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .chart-tab:hover {
        background: #f1f5f9;
    }

    .chart-tab.active {
        background: var(--primary-indigo);
        color: white;
        border-color: var(--primary-indigo);
    }

.chart-3d-canvas-wrapper {
    position: relative;
    height: 300px;
}

/* Goal Progress Widget */
.goal-progress-content {
    display: flex;
    gap: 32px;
    align-items: center;
}

.circular-progress {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

    .circular-progress svg {
        transform: rotate(-90deg);
    }

.progress-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 12;
}

.progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-indigo);
    line-height: 1;
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.goal-details {
    flex: 1;
}

.goal-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

    .goal-detail-row.highlight {
        color: var(--primary-indigo);
        font-weight: 600;
        border-bottom: none;
    }

/* Challenge Widget */
.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .challenge-header h3 {
        margin: 0;
    }

.challenge-timer {
    background: var(--color-bg-2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--warning-orange);
}

.challenge-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.challenge-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

    .challenge-progress-ring svg {
        transform: rotate(-90deg);
    }

.ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: #10b981;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.challenge-info {
    flex: 1;
}

.challenge-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.challenge-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-1);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-indigo);
}

.reward-icon {
    font-size: 18px;
}

/* Weekly Goal Widget */
.weekly-goal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.weekly-progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.weekly-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.weekly-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.weekly-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.weekly-timer {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px;
    background: var(--color-bg-2);
    border-radius: 6px;
}

/* Leaderboard Widget */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fd;
    border-radius: 10px;
    transition: all 0.2s ease;
}

    .leaderboard-item:hover {
        background: #f1f5f9;
        transform: translateX(4px);
    }

.leaderboard-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    flex-shrink: 0;
}

    .leaderboard-rank.gold {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: white;
    }

    .leaderboard-rank.silver {
        background: linear-gradient(135deg, #e5e7eb, #9ca3af);
        color: white;
    }

    .leaderboard-rank.bronze {
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: white;
    }

    .leaderboard-rank.other {
        background: #e2e8f0;
        color: var(--text-secondary);
    }

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-indigo);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-score {
    font-size: 11px;
    color: var(--text-secondary);
}

.leaderboard-trend {
    font-size: 16px;
}

.your-position {
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--primary-indigo);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Shortcuts Widget */
.shortcuts-saved {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--color-bg-3);
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
    color: var(--success-green);
}

.shortcuts-icon {
    font-size: 16px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcut-item {
    padding: 10px 14px;
    background: #f8f9fd;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .shortcut-item:hover {
        background: #f1f5f9;
        border-left-color: var(--primary-indigo);
        transform: translateX(4px);
    }

/* Calendar Widget */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-event {
    padding: 14px;
    background: #f8f9fd;
    border-radius: 10px;
    border-left: 4px solid var(--primary-indigo);
    transition: all 0.2s ease;
}

    .calendar-event:hover {
        background: #f1f5f9;
        transform: translateX(4px);
    }

.calendar-event-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.calendar-event-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-indigo);
}

/* Bottom Widgets Row */
.bottom-widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.success-meter-widget,
.notifications-widget,
.calculator-widget {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

/* Success Rate Meter */
.speedometer {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 20px auto;
}

.speedometer-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 12;
}

.speedometer-fill {
    fill: none;
    stroke: url(#speedometerGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.speedometer-needle {
    stroke: var(--text-primary);
    stroke-width: 3;
    stroke-linecap: round;
    transform-origin: 100px 100px;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.speedometer-value {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.success-rate-change {
    text-align: center;
    font-size: 12px;
    color: var(--success-green);
    font-weight: 600;
}

/* Notifications Widget */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px;
    background: #f8f9fd;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideInNotif 0.4s ease-out;
}

@keyframes slideInNotif {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.notif-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Calculator Widget */
.calc-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

    .calc-input:focus {
        outline: none;
        border-color: var(--primary-indigo);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

    .calc-row:last-child {
        border-bottom: none;
        padding-top: 12px;
        font-size: 16px;
        color: var(--primary-indigo);
    }

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

    .fab:hover {
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
    }

    .fab::before {
        content: attr(data-tooltip);
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--text-primary);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .fab:hover::before {
        opacity: 1;
    }

.fab-icon {
    display: block;
}

/* Achievement Modal */
.achievement-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.achievement-modal .modal-body {
    padding: 40px;
}

.achievement-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.achievement-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 16px 0;
    line-height: 1.6;
}

.achievement-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   MAGAZINE/EDITORIAL DASHBOARD LAYOUT
   ======================================== */

.magazine-dashboard {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Hero Section - Full Width with Large Typography */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 24px;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-balance {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin: 8px 0;
}

.hero-tagline {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mini-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

    .mini-stat-card:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-4px);
    }

.mini-stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.mini-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.mini-stat-change {
    font-size: 12px;
    font-weight: 600;
}

/* Featured Story Section - Asymmetric Sidebar + Main */
.featured-story-section {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 32px;
}

.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.quick-stat {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

    .quick-stat:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-medium);
    }

.quick-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.quick-stat-content {
    flex: 1;
}

.quick-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.quick-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.story-main {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.editorial-header {
    margin-bottom: 32px;
}

.editorial-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.editorial-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.featured-chart-container {
    position: relative;
    height: 380px;
}

/* Spotlight Section - Asymmetric 3-Column (25% - 50% - 25%) */
.spotlight-section {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 24px;
    align-items: start;
}

.spotlight-left,
.spotlight-right {
    display: flex;
    flex-direction: column;
}

.payout-request-card,
.settlement-schedule-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

    .payout-request-card:hover,
    .settlement-schedule-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.payout-icon,
.settlement-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.payout-request-card h3,
.settlement-schedule-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.payout-available {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.payout-quick-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

    .payout-quick-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

.spotlight-center {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.spotlight-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}

.magazine-collection-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.magazine-collection-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fd;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .magazine-collection-item:hover {
        background: #f1f5f9;
        border-left-color: var(--primary-indigo);
        transform: translateX(4px);
    }

.collection-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.collection-details {
    flex: 1;
}

.collection-customer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.collection-transaction-id {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-family-mono);
}

.collection-right {
    text-align: right;
}

.collection-amount-large {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.collection-time-small {
    font-size: 11px;
    color: var(--text-secondary);
}

.next-settlement-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-indigo);
    margin: 16px 0 8px 0;
}

.settlement-countdown-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.settlement-amount-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settlement-txn-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Activity Feed Section - Horizontal Cards */
.activity-feed-section {
    margin-top: 16px;
}

.activity-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.activity-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

    .activity-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: currentColor;
    }

    .activity-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.activity-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.activity-card-type {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.activity-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.activity-card-time {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Color variations for activity cards */
.activity-card.green {
    color: var(--success-green);
}

.activity-card.blue {
    color: var(--primary-indigo);
}

.activity-card.purple {
    color: var(--primary-purple);
}

.activity-card.orange {
    color: var(--warning-orange);
}

.activity-card.pink {
    color: var(--primary-pink);
}

.stat-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Stat Card Styles */
.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.8;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    letter-spacing: -0.5px;
}

.stat-change {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .stat-change.positive {
        color: var(--success-green);
    }

    .stat-change.negative {
        color: var(--error-red);
    }

/* Quick Actions */
.quick-actions-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-btn {
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

    .quick-action-btn.indigo {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
    }

    .quick-action-btn.purple {
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
    }

    .quick-action-btn.pink {
        background: linear-gradient(135deg, #ec4899, #f472b6);
    }

    .quick-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

/* Payout Status */
.payout-status-item {
    padding: 12px;
    background: #f8f9fd;
    border-radius: 8px;
    margin-bottom: 12px;
}

.payout-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payout-status-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.payout-status-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payout-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.payout-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

    .payout-progress-fill.pending {
        background: var(--warning-orange);
    }

    .payout-progress-fill.processing {
        background: var(--primary-indigo);
    }

    .payout-progress-fill.completed {
        background: var(--success-green);
    }

/* Settlement Calendar */
.settlement-calendar {
    text-align: center;
}

.settlement-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-indigo);
    margin: 12px 0;
}

.settlement-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settlement-countdown {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Chart Card */
.chart-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-tabs {
    display: flex;
    gap: 8px;
}

.chart-tab {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .chart-tab.active {
        background: var(--primary-indigo);
        color: white;
    }

.chart-container {
    position: relative;
    height: 300px;
}

/* Recent Collections List */
.collection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .collection-item:hover {
        background: #f1f5f9;
        transform: translateX(4px);
    }

.collection-info {
    flex: 1;
}

.collection-customer {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.collection-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.collection-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 12px;
}

.view-all-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    background: var(--light-surface);
    color: var(--primary-indigo);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

    .view-all-btn:hover {
        background: var(--primary-indigo);
        color: white;
    }



/* Metrics Grid (Keep for other pages) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-16);
    margin-bottom: var(--space-24);
}

.metric-card {
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

    .metric-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
        opacity: 0.1;
        pointer-events: none;
    }

    .metric-card:hover {
        transform: translateY(-8px) rotateX(5deg);
        box-shadow: 0 20px 60px rgba(0, 255, 247, 0.3);
    }

        .metric-card:hover::after {
            opacity: 0.2;
        }

.metric-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.metric-change {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

    .metric-change.positive {
        color: var(--success-green);
    }

    .metric-change.negative {
        color: var(--error-red);
    }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-24);
}

.chart-card {
    min-height: 400px;
}

.chart-container {
    position: relative;
    height: 320px;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-16);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--light-surface);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-indigo);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

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

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--select-caret-light);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 16px;
    padding-right: var(--space-32);
}

@media (prefers-color-scheme: dark) {
    select.form-control {
        background-image: var(--select-caret-dark);
    }
}

.form-help {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-20);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border: none;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-soft);
}

    .btn--primary:hover {
        box-shadow: var(--shadow-medium);
        transform: translateY(-2px);
    }

.btn--secondary {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

    .btn--secondary:hover {
        background: #e2e8f0;
    }

.btn--full-width {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Card */
.filter-card {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-16);
    margin-bottom: var(--space-16);
}

.filter-actions {
    display: flex;
    gap: var(--space-12);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

    .data-table th,
    .data-table td {
        padding: 16px;
        text-align: left;
        border-bottom: 1px solid var(--border-light);
    }

    .data-table th {
        font-weight: 600;
        color: var(--text-secondary);
        background: #f8f9fd;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .data-table tr {
        transition: all 0.2s ease;
    }

        .data-table tr:hover {
            background: #f8f9fd;
        }

    .data-table td {
        color: var(--text-primary);
        font-size: 13px;
    }

/* Status Badges */
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status--success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status--error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status--warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status--info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-16);
}

    .pagination button {
        padding: var(--space-8) var(--space-12);
        border: 1px solid var(--border-light);
        background: var(--light-surface);
        color: var(--text-primary);
        border-radius: var(--radius-base);
        cursor: pointer;
        transition: all var(--duration-fast) var(--ease-standard);
    }

        .pagination button:hover:not(:disabled) {
            background: var(--primary-indigo);
            color: white;
            border-color: var(--primary-indigo);
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pagination button.active {
            background: var(--primary-indigo);
            color: white;
            border-color: var(--primary-indigo);
        }

/* Payout Grid */
.payout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
}

.balance-display {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 24px 0;
    letter-spacing: -1px;
}

.balance-note {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-24);
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border-light);
}

.profile-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.profile-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* IP Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-16);
    align-items: end;
}

/* Callback Display */
.callback-display {
    background: var(--color-bg-1);
    padding: var(--space-16);
    border-radius: var(--radius-base);
    margin-bottom: var(--space-16);
}

.callback-url {
    font-family: var(--font-family-mono);
    font-size: 13px;
    color: var(--primary-indigo);
    margin-bottom: 10px;
    word-break: break-all;
    background: #f8f9fd;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.callback-description {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: var(--space-12);
}

/* TFA Section */
.tfa-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    transition: background var(--duration-normal) var(--ease-standard);
}

    .toggle-slider::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: var(--light-surface);
        border-radius: 50%;
        transition: transform var(--duration-normal) var(--ease-standard);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

.toggle-label input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
}

    .toggle-label input:checked + .toggle-slider::before {
        transform: translateX(24px);
    }

.toggle-label input {
    display: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 2000;
    min-width: 320px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
}

    .toast.show {
        display: block;
    }

    .toast.success {
        border-left: 4px solid var(--success-green);
    }

    .toast.error {
        border-left: 4px solid var(--error-red);
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

    .modal.show {
        display: flex;
    }

.modal-content {
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease-out;
}

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

    .modal-header h3 {
        margin: 0;
        color: var(--text-primary);
    }

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-3xl);
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

    .modal-close:hover {
        color: var(--text-primary);
    }

.modal-body {
    padding: var(--space-20);
}

/* Action Buttons in Tables */
.action-btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--light-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .action-btn:hover {
        background: var(--primary-indigo);
        color: white;
        border-color: var(--primary-indigo);
        transform: translateY(-1px);
    }

    .action-btn.danger {
        border-color: var(--error-red);
        color: var(--error-red);
    }

        .action-btn.danger:hover {
            background: var(--error-red);
            color: white;
        }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Text Selection */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .bottom-widgets-row {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-balance {
        font-size: 56px;
    }

    .featured-story-section {
        grid-template-columns: 1fr;
    }

    .spotlight-section {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .payout-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gamification-bar {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .gamification-left,
    .gamification-center,
    .gamification-right {
        width: 100%;
        justify-content: center;
    }

    .achievement-badges {
        flex-wrap: wrap;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .goal-progress-content {
        flex-direction: column;
    }

    .challenge-content {
        flex-direction: column;
        text-align: center;
    }

    .floating-actions {
        bottom: 16px;
        right: 16px;
    }

    .hero-section {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-balance {
        font-size: 48px;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .editorial-title {
        font-size: 24px;
    }

    .spotlight-title {
        font-size: 20px;
    }

    .activity-cards {
        grid-template-columns: 1fr;
    }

    .story-main {
        padding: 24px;
    }

    .spotlight-center {
        padding: 24px;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }

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

    .menu-toggle {
        display: block;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .balance-amount {
        font-size: 40px;
    }

    .balance-card-3d {
        padding: 24px;
    }

    .view {
        padding: var(--space-16);
    }

    .app-header {
        padding: var(--space-12) var(--space-16);
    }
}

@media (max-width: 480px) {
    .filter-actions {
        flex-direction: column;
    }

        .filter-actions .btn {
            width: 100%;
        }

    .data-table {
        font-size: 11px;
    }

        .data-table th,
        .data-table td {
            padding: 12px 8px;
        }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
.user-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 4px;
    min-width: 150px;
    z-index: 1000;
}

    .user-dropdown a {
        display: block;
        padding: 8px 12px;
        color: #333;
        text-decoration: none;
    }

        .user-dropdown a:hover {
            background-color: #f0f0f0;
        }
    .user-dropdown.show {
        display: block;
    }