/* ===========================
   AKSJANT Dashboard Design System
   Version: 1.0.0
   =========================== */

:root {
    /* === COLORS === */
    /* Primary */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Semantic */
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.1);
    --color-success-border: rgba(34, 197, 94, 0.2);

    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-warning-border: rgba(245, 158, 11, 0.2);

    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-error-border: rgba(239, 68, 68, 0.2);

    --color-info: #3b82f6;
    --color-info-bg: rgba(59, 130, 246, 0.1);
    --color-info-border: rgba(59, 130, 246, 0.2);

    /* Neutrals */
    --color-bg-primary: #0f172a;    /* slate-950 */
    --color-bg-secondary: #1e293b;  /* slate-900 */
    --color-bg-tertiary: #334155;   /* slate-700 */
    --color-bg-hover: rgba(51, 65, 85, 0.5);

    --color-border-primary: #475569;  /* slate-600 */
    --color-border-secondary: #64748b; /* slate-500 */
    --color-border-subtle: rgba(71, 85, 105, 0.5);

    --color-text-primary: #f1f5f9;    /* slate-100 */
    --color-text-secondary: #cbd5e1;  /* slate-300 */
    --color-text-tertiary: #94a3b8;   /* slate-400 */
    --color-text-disabled: #64748b;   /* slate-500 */

    /* === TYPOGRAPHY === */
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */

    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* === SPACING === */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */

    /* === BORDER RADIUS === */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;

    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Colored Shadows */
    --shadow-primary: 0 8px 16px rgba(59, 130, 246, 0.25);
    --shadow-success: 0 8px 16px rgba(34, 197, 94, 0.25);
    --shadow-warning: 0 8px 16px rgba(245, 158, 11, 0.25);
    --shadow-error: 0 8px 16px rgba(239, 68, 68, 0.25);

    /* === Z-INDEX === */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-sidebar: 35;
    --z-header: 36;
    --z-modal-backdrop: 40;
    --z-modal: 50;
    --z-popover: 60;
    --z-tooltip: 70;
    --z-notification: 80;

    /* === TRANSITIONS === */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
}

/* ===========================
   COMPONENT STYLES
   =========================== */

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    border: none;
}

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

/* Button Sizes */
.btn-xs {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

/* Button Variants */
.btn-primary {
    background: var(--color-primary-600);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-500);
    box-shadow: var(--shadow-primary);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--color-border-primary);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #16a34a;
    box-shadow: var(--shadow-success);
}

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: var(--shadow-error);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-tertiary);
}

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

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

.btn-outline:hover:not(:disabled) {
    background: var(--color-bg-hover);
    border-color: var(--color-border-secondary);
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

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

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

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

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

.badge-neutral {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    color: var(--color-text-tertiary);
}

/* === INPUTS === */
.input {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input::placeholder {
    color: var(--color-text-disabled);
}

.input:disabled {
    background: rgba(51, 65, 85, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.input-sm {
    padding: var(--space-2);
    font-size: var(--text-xs);
}

.input-lg {
    padding: var(--space-4);
    font-size: var(--text-base);
}

/* === STAT CARDS === */
.stat-card {
    padding: var(--space-5);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
}

.stat-change {
    font-size: var(--text-xs);
    margin-top: var(--space-2);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

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

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

.stat-change-neutral {
    color: var(--color-text-tertiary);
}

/* === ALERTS === */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

.alert-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success);
}

.alert-warning {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning);
}

.alert-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error);
}

.alert-info {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    color: var(--color-info);
}

/* === DIVIDERS === */
.divider {
    height: 1px;
    background: var(--color-border-subtle);
    margin: var(--space-6) 0;
}

.divider-vertical {
    width: 1px;
    background: var(--color-border-subtle);
    margin: 0 var(--space-4);
}

/* === UTILITIES === */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, #34d399, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-strong {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === LOADING STATES === */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(51, 65, 85, 0.3) 25%,
        rgba(71, 85, 105, 0.3) 50%,
        rgba(51, 65, 85, 0.3) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary-500);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === ANIMATIONS === */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes bounce-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.animate-slide-in-right {
    animation: slideInFromRight var(--transition-base);
}

.animate-slide-in-bottom {
    animation: slideInFromBottom var(--transition-base);
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow);
}

.animate-pulse-soft {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-soft {
    animation: bounce-soft 1s ease-in-out infinite;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 640px) {
    .stat-value {
        font-size: var(--text-2xl);
    }
}

/* === PRINT STYLES === */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
        box-shadow: none;
    }

    .btn, .badge {
        border: 1px solid #333;
    }
}

/* === CARDS === */
.card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.74));
    border: 1px solid rgba(30, 41, 59, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.card-body {
    padding: var(--space-5);
}

/* Optional: add to cards that should feel clickable */
.card-hover {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    will-change: transform;
}

.card-hover:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

/* === TABLES === */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

/* Subtle zebra striping for readability across all tables */
:where(.table tbody tr:nth-child(even)) {
    background: rgba(51, 65, 85, 0.10);
}

.table tbody tr:hover {
    background: rgba(51, 65, 85, 0.22);
}

/* === ACCESSIBILITY === */
:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.55);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}

/* === APP BACKGROUND === */
.app-bg {
    background-image:
        radial-gradient(900px circle at 20% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(700px circle at 85% 0%, rgba(99, 102, 241, 0.10), transparent 55%),
        radial-gradient(900px circle at 50% 110%, rgba(34, 197, 94, 0.06), transparent 55%);
    background-attachment: fixed;
}

/* Card accent variants (use with .card) */
.card-accent-success { border-left: 3px solid rgba(34, 197, 94, 0.55); }
.card-accent-warning { border-left: 3px solid rgba(245, 158, 11, 0.55); }
.card-accent-error { border-left: 3px solid rgba(239, 68, 68, 0.55); }
.card-accent-info { border-left: 3px solid rgba(59, 130, 246, 0.55); }

/* === TABS === */
.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(30, 41, 59, 0.55);
    color: var(--color-text-tertiary);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    user-select: none;
}

.tab:hover {
    background: rgba(51, 65, 85, 0.38);
    color: var(--color-text-primary);
}

.tab-active {
    background: rgba(37, 99, 235, 1);
    border-color: rgba(37, 99, 235, 0.85);
    color: #ffffff;
}

.tab-active:hover {
    background: rgba(59, 130, 246, 1);
    border-color: rgba(59, 130, 246, 0.85);
    color: #ffffff;
}

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

/* DS .input is width:100% by default (good for forms). In filter bars we want inline controls. */
.filter-bar .input {
    width: auto;
}

.filter-bar select.input {
    min-width: 10rem;
}

/* Unified filter layout helpers */
.filter-shell {
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.filter-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-end;
}

.filter-field {
    min-width: 10rem;
}

.filter-field-sm {
    min-width: 8.5rem;
}

.filter-field-wide {
    min-width: 16rem;
    flex: 1 1 16rem;
}

.filter-stack .filter-field .input {
    width: 100%;
}

.filter-stack .filter-field select.input {
    min-width: 0;
}

.filter-actions-inline {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-checks {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.filter-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.filter-meta-note {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

@media (max-width: 960px) {
    .filter-field,
    .filter-field-sm,
    .filter-field-wide {
        min-width: 100%;
        flex-basis: 100%;
    }

    .filter-meta {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

/* === LOGIN HERO === */
.login-shell {
    border: 1px solid rgba(30, 41, 59, 0.95);
    box-shadow: 0 22px 52px -30px rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(4px);
}

.login-split {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.login-hero-panel {
    order: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-4);
    overflow: hidden;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    background:
        radial-gradient(680px circle at -8% 0%, rgba(59, 130, 246, 0.2), transparent 58%),
        radial-gradient(560px circle at 105% 100%, rgba(99, 102, 241, 0.2), transparent 62%),
        linear-gradient(148deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.74));
}

.login-hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), transparent 38%);
    pointer-events: none;
}

.login-hero-content,
.login-quote-wrap {
    position: relative;
    z-index: 1;
}

.login-hero-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.login-quote-wrap {
    margin-top: var(--space-2);
    max-width: 38rem;
}

.login-quote-box {
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(560px circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.52));
    padding: calc(var(--space-5) + 0.1rem);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 44px -36px rgba(2, 6, 23, 0.92);
}

.login-quote-box::before {
    content: '"';
    position: absolute;
    top: 0.6rem;
    left: 1rem;
    font-size: 2.1rem;
    line-height: 1;
    color: rgba(147, 197, 253, 0.45);
}

.login-quote-text {
    min-height: auto;
    padding-left: 0.85rem;
}

.login-form-panel {
    order: 2;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, rgba(2, 6, 23, 0.34), rgba(15, 23, 42, 0.12));
}

.login-form-inner {
    width: min(100%, 440px);
    margin: 0 auto;
}

@media (min-width: 900px) {
    .login-split {
        grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
        min-height: 520px;
    }

    .login-hero-panel {
        order: 1;
        justify-content: flex-start;
        border-bottom: none;
        border-right: 1px solid rgba(30, 41, 59, 0.9);
    }

    .login-form-panel {
        order: 2;
    }

    /* Pin the quote block to the bottom so the left panel fills its container more naturally. */
    .login-quote-wrap {
        margin-top: auto;
    }
}

@media (max-width: 899px) {
    .login-form-panel {
        order: 1;
        border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    }

    .login-hero-panel {
        order: 2;
        border-bottom: none;
    }

    .login-quote-wrap {
        max-width: none;
    }

    .login-form-inner {
        width: 100%;
    }
}

/* Login form refinements */
.login-form-panel .input {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(71, 85, 105, 0.78);
    color: #e2e8f0;
    box-shadow: none;
}

.login-form-panel .input::placeholder {
    color: #64748b;
}

.login-form-panel .input:focus {
    border-color: rgba(59, 130, 246, 0.84);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.login-form-panel .btn-primary {
    box-shadow: 0 12px 30px -18px rgba(37, 99, 235, 0.95);
}

.login-form-panel .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* === MOBILE NAV === */
.mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.94);
    border-top: 1px solid rgba(51, 65, 85, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -10px 26px -18px rgba(0, 0, 0, 0.85);
}

.mobile-bottom-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem 0.5rem 0.48rem;
}

.mobile-bottom-nav-inner::-webkit-scrollbar {
    display: none;
}

.mobile-bottom-nav-track {
    display: flex;
    align-items: stretch;
    gap: 0.34rem;
    min-width: max-content;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    min-width: 4.3rem;
    height: 3.15rem;
    padding: 0.28rem 0.38rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    color: #94a3b8;
    background: transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-btn:hover {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(71, 85, 105, 0.86);
}

.mobile-nav-btn:active {
    transform: translateY(1px);
}

.mobile-nav-btn.is-active {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(59, 130, 246, 0.36);
}

.mobile-nav-btn-whatsapp {
    color: #4ade80;
}

.mobile-nav-btn-whatsapp:hover {
    color: #86efac;
    background: rgba(22, 163, 74, 0.22);
    border-color: rgba(34, 197, 94, 0.4);
}

.mobile-nav-icon {
    width: 1.03rem;
    height: 1.03rem;
    flex: 0 0 auto;
}

.mobile-nav-label {
    font-size: 0.645rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (orientation: landscape) and (max-width: 1023px) {
    .mobile-bottom-nav-inner {
        padding-top: 0.34rem;
        padding-bottom: 0.38rem;
    }

    .mobile-bottom-nav-track {
        gap: 0.3rem;
    }

    .mobile-nav-btn {
        min-width: 4rem;
        height: 2.95rem;
        padding: 0.24rem 0.34rem;
    }

    .mobile-nav-label {
        font-size: 0.6rem;
    }
}

/* ═══════════════════════════════════════
   Sidebar grouped navigation
   ═══════════════════════════════════════ */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.sidebar-group-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    color: #cbd5e1;
    transition: background 150ms, color 150ms;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}
.sidebar-group-btn:hover { background: rgba(51,65,85,0.45); color: #f1f5f9; }

.sidebar-sub-group {
    padding: 0.125rem 0 0.25rem 0;
}

.sidebar-sub-link {
    display: block;
    padding: 0.375rem 0.75rem 0.375rem 2.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #94a3b8;
    transition: background 150ms, color 150ms;
    text-decoration: none;
    position: relative;
}
.sidebar-sub-link::before {
    content: '';
    position: absolute;
    left: 1.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #475569;
    transition: background 150ms;
}
.sidebar-sub-link:hover { background: rgba(51,65,85,0.35); color: #e2e8f0; }
.sidebar-sub-link:hover::before { background: #64748b; }
.sidebar-sub-link.is-active {
    background: rgba(59,130,246,0.08);
    color: #60a5fa;
    font-weight: 500;
}
.sidebar-sub-link.is-active::before {
    background: #3b82f6;
    width: 5px;
    height: 5px;
}
