/* ============================================
   J.A.R.V.I.S. PORTAL - Iron Man HUD Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep:       #020508;
    --bg-primary:    #050c14;
    --bg-card:       #091522;
    --bg-card-hover: #0d1e2e;
    --red:           #e63030;
    --red-glow:      #ff4444;
    --red-dim:       #8b1a1a;
    --gold:          #ffb300;
    --gold-glow:     #ffd700;
    --arc:           #00d4ff;
    --arc-dim:       #005f75;
    --text-primary:  #e8f0f8;
    --text-secondary:#7a9bb5;
    --text-muted:    #3d5a72;
    --border:        rgba(0, 212, 255, 0.12);
    --border-active: rgba(0, 212, 255, 0.35);
    --shadow-red:    0 0 20px rgba(230, 48, 48, 0.3);
    --shadow-arc:    0 0 20px rgba(0, 212, 255, 0.2);
    --shadow-gold:   0 0 20px rgba(255, 179, 0, 0.3);
}

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

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(230, 48, 48, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 179, 0, 0.02) 0%, transparent 50%);
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--arc-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--arc); }

/* ── Grid Layout ───────────────────────────── */
.portal-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ── HEADER ────────────────────────────────── */
header {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(5,12,20,0.98) 0%, rgba(5,12,20,0.95) 100%);
    border-bottom: 1px solid var(--border-active);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 0 var(--arc-dim);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.arc-reactor {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, var(--arc) 30%, var(--arc-dim) 60%, transparent 80%);
    box-shadow: 0 0 15px var(--arc), 0 0 30px rgba(0,212,255,0.4), 0 0 60px rgba(0,212,255,0.15);
    animation: reactorPulse 2.5s ease-in-out infinite;
    position: relative;
    flex-shrink: 0;
}

.arc-reactor::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 0 8px rgba(0,212,255,0.8);
}

@keyframes reactorPulse {
    0%, 100% { box-shadow: 0 0 15px var(--arc), 0 0 30px rgba(0,212,255,0.4), 0 0 60px rgba(0,212,255,0.15); }
    50%       { box-shadow: 0 0 25px var(--arc), 0 0 50px rgba(0,212,255,0.6), 0 0 80px rgba(0,212,255,0.25); }
}

.portal-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--arc) 0%, #ffffff 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.portal-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hud-clock {
    text-align: right;
}

.clock-time {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--arc);
    text-shadow: 0 0 10px rgba(0,212,255,0.6);
    letter-spacing: 0.1em;
}

.clock-date {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.status-indicators {
    display: flex;
    gap: 0.6rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.status-dot.online  { background: #00ff88; box-shadow: 0 0 6px #00ff88; animation-delay: 0s; }
.status-dot.systems { background: var(--gold); box-shadow: 0 0 6px var(--gold); animation-delay: 0.6s; }
.status-dot.secure  { background: var(--arc); box-shadow: 0 0 6px var(--arc); animation-delay: 1.2s; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── SIDEBAR ───────────────────────────────── */
sidebar, .sidebar {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    display: block;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.04);
    border-left-color: var(--arc-dim);
}

.nav-item.active {
    color: var(--arc);
    background: rgba(0, 212, 255, 0.08);
    border-left-color: var(--arc);
    text-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.nav-item.active .nav-icon { filter: drop-shadow(0 0 4px var(--arc)); }

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    font-family: 'Orbitron', monospace;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: var(--shadow-red);
}

.nav-item.soon {
    opacity: 0.4;
    pointer-events: none;
}

.nav-item.soon::after {
    content: 'SOON';
    margin-left: auto;
    font-family: 'Orbitron', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 1px 5px;
    border-radius: 3px;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-active), transparent);
    margin: 1rem 1.5rem;
}

/* ── MAIN CONTENT ──────────────────────────── */
main {
    padding: 2rem;
    overflow-y: auto;
}

/* ── PAGE HEADER ───────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.page-title span {
    color: var(--arc);
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.greeting {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.greeting strong {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255,179,0,0.4);
}

/* ── HUD CORNER CARD ───────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--arc);
    border-style: solid;
}

.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    box-shadow: var(--shadow-arc);
    transform: translateY(-2px);
}

.card:hover::before,
.card:hover::after { border-color: var(--arc); }

.card.red-accent::before,
.card.red-accent::after { border-color: var(--red); }
.card.red-accent:hover  { box-shadow: var(--shadow-red); border-color: rgba(230,48,48,0.35); }

.card.gold-accent::before,
.card.gold-accent::after { border-color: var(--gold); }
.card.gold-accent:hover  { box-shadow: var(--shadow-gold); border-color: rgba(255,179,0,0.35); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* ── STAT CARDS ────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.stat-delta {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.stat-delta.up   { color: #00ff88; }
.stat-delta.down { color: var(--red); }

.color-arc  { color: var(--arc);  text-shadow: 0 0 15px rgba(0,212,255,0.5); }
.color-red  { color: var(--red);  text-shadow: 0 0 15px rgba(230,48,48,0.5); }
.color-gold { color: var(--gold); text-shadow: 0 0 15px rgba(255,179,0,0.5); }
.color-green{ color: #00ff88;     text-shadow: 0 0 15px rgba(0,255,136,0.4); }

/* ── MAIN GRID ─────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* ── TASK LIST ─────────────────────────────── */
.task-list { display: flex; flex-direction: column; gap: 0.5rem; }

.task-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.8rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.task-item:hover { border-color: var(--arc-dim); background: rgba(0,212,255,0.04); }

.task-check {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.task-item:hover .task-check { border-color: var(--arc); }
.task-item.done .task-check  { background: var(--arc); border-color: var(--arc); }
.task-item.done .task-text   { text-decoration: line-through; color: var(--text-muted); }

.task-priority {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.task-priority.high   { background: var(--red);  box-shadow: 0 0 4px var(--red); }
.task-priority.medium { background: var(--gold); box-shadow: 0 0 4px var(--gold); }
.task-priority.low    { background: var(--arc);  box-shadow: 0 0 4px var(--arc); }

.task-text { flex: 1; }
.task-due  { font-size: 0.7rem; color: var(--text-muted); font-family: 'Orbitron', monospace; letter-spacing: 0.05em; }

/* ── FINANCE MINI ──────────────────────────── */
.finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.finance-row:last-child { border-bottom: none; }
.finance-row .label    { color: var(--text-secondary); }
.finance-row .amount   { font-family: 'Orbitron', monospace; font-size: 0.9rem; }
.finance-row .amount.pos { color: #00ff88; }
.finance-row .amount.neg { color: var(--red); }
.finance-row .amount.net { color: var(--gold); text-shadow: 0 0 8px rgba(255,179,0,0.4); }

/* ── PROGRESS BAR ──────────────────────────── */
.progress-item { margin-bottom: 1rem; }
.progress-item:last-child { margin-bottom: 0; }

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.progress-label { color: var(--text-secondary); }

.progress-pct {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: inherit;
    box-shadow: 0 0 6px 2px currentColor;
}

.fill-arc  { background: linear-gradient(90deg, var(--arc-dim), var(--arc)); }
.fill-red  { background: linear-gradient(90deg, var(--red-dim), var(--red)); }
.fill-gold { background: linear-gradient(90deg, #7a5500, var(--gold)); }
.fill-green{ background: linear-gradient(90deg, #004d22, #00ff88); }

/* ── TRAINING LOG ──────────────────────────── */
.workout-log { display: flex; flex-direction: column; gap: 0.5rem; }

.workout-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.85rem;
}

.workout-type {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.workout-type .icon { font-size: 1rem; }
.workout-meta { font-family: 'Orbitron', monospace; font-size: 0.7rem; color: var(--text-muted); }

/* ── SYSTEM STATUS ─────────────────────────── */
.system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.system-item {
    padding: 0.8rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 3px;
    text-align: center;
}

.system-item .sys-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.system-item .sys-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
}

.sys-online  { color: #00ff88; text-shadow: 0 0 8px rgba(0,255,136,0.4); }
.sys-nominal { color: var(--gold); text-shadow: 0 0 8px rgba(255,179,0,0.4); }
.sys-secure  { color: var(--arc); text-shadow: 0 0 8px rgba(0,212,255,0.4); }

/* ── SCAN LINE ANIMATION ───────────────────── */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--arc) 50%, transparent 100%);
    opacity: 0.15;
    animation: scanDown 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes scanDown {
    0%   { top: 70px; opacity: 0; }
    5%   { opacity: 0.15; }
    95%  { opacity: 0.15; }
    100% { top: 100vh; opacity: 0; }
}

/* ── FOOTER ────────────────────────────────── */
footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    background: var(--bg-primary);
}

.footer-status { display: flex; gap: 2rem; }
.footer-version { color: var(--arc-dim); }

/* ── QUICK ACTION BUTTON ───────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 3px;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: transparent;
}

.btn-arc {
    border-color: var(--arc-dim);
    color: var(--arc);
}
.btn-arc:hover {
    border-color: var(--arc);
    background: rgba(0,212,255,0.08);
    box-shadow: var(--shadow-arc);
    text-shadow: 0 0 8px rgba(0,212,255,0.6);
}

.btn-red {
    border-color: var(--red-dim);
    color: var(--red);
}
.btn-red:hover {
    border-color: var(--red);
    background: rgba(230,48,48,0.08);
    box-shadow: var(--shadow-red);
}

/* ── HAMBURGER BUTTON ──────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-active);
    border-radius: 3px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--arc);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(0,212,255,0.5);
}

.hamburger:hover { border-color: var(--arc); background: rgba(0,212,255,0.08); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ────────────────────────────── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active { opacity: 1; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-active);
    z-index: 300;
    padding: 0;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

.mobile-nav.open { right: 0; }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.mobile-nav-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    border-color: var(--red);
    color: var(--red);
}

.mobile-nav .sidebar-section { padding-top: 1rem; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .col-span-2 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .portal-wrapper { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .hamburger { display: flex; }
    .mobile-nav-overlay { display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .col-span-2, .col-span-3 { grid-column: span 1; }
    .system-grid { grid-template-columns: repeat(2, 1fr); }

    header { padding: 0 1rem; }
    main   { padding: 1rem; }

    .portal-title    { font-size: 1.1rem; letter-spacing: 0.08em; }
    .portal-subtitle { display: none; }
    .clock-date      { display: none; }
    .clock-time      { font-size: 1rem; }
    .status-indicators { gap: 0.4rem; }

    .page-header     { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; }
    .greeting        { font-size: 0.7rem; }
    .stat-value      { font-size: 1.5rem; }

    footer { flex-direction: column; gap: 0.4rem; text-align: center; }
    .footer-status { flex-direction: column; gap: 0.2rem; }
}

/* ── HUD GRID OVERLAY ──────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.portal-wrapper { position: relative; z-index: 1; }

/* ── TOOLTIP ───────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 200;
}

/* ── ANIMATED ENTRANCE ─────────────────────── */
.card {
    animation: cardIn 0.4s ease backwards;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stats-grid .card:nth-child(1) { animation-delay: 0.05s; }
.stats-grid .card:nth-child(2) { animation-delay: 0.10s; }
.stats-grid .card:nth-child(3) { animation-delay: 0.15s; }
.stats-grid .card:nth-child(4) { animation-delay: 0.20s; }

.dashboard-grid .card:nth-child(1) { animation-delay: 0.25s; }
.dashboard-grid .card:nth-child(2) { animation-delay: 0.30s; }
.dashboard-grid .card:nth-child(3) { animation-delay: 0.35s; }
.dashboard-grid .card:nth-child(4) { animation-delay: 0.40s; }
.dashboard-grid .card:nth-child(5) { animation-delay: 0.45s; }
