/* ═══════════════════════════════════════════════════════
   NEXUS — Wunder V2 Design System
   Theme: Dark Navy + Electric Teal + Amber Gold
   Layout: Full sidebar with glassmorphism cards
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    /* Core Palette */
    --navy-950: #04090f;
    --navy-900: #060c14;
    --navy-800: #0a1520;
    --navy-700: #0d1d2e;
    --navy-600: #112438;
    --navy-500: #162d46;

    /* Teal Accent */
    --teal: #00d4aa;
    --teal-dim: rgba(0, 212, 170, 0.12);
    --teal-glow: 0 0 30px rgba(0, 212, 170, 0.25);

    /* Gold Accent */
    --gold: #f0b429;
    --gold-dim: rgba(240, 180, 41, 0.12);

    /* Coral Alert */
    --coral: #ff5e57;
    --coral-dim: rgba(255, 94, 87, 0.12);

    /* Sky Blue */
    --sky: #38bdf8;
    --sky-dim: rgba(56, 189, 248, 0.12);

    /* Text */
    --txt-1: #e8f4f2;
    --txt-2: #8ab5aa;
    --txt-3: #4a7a6e;

    /* Borders */
    --b1: rgba(0, 212, 170, 0.08);
    --b2: rgba(0, 212, 170, 0.18);
    --b3: rgba(0, 212, 170, 0.35);

    /* Radius */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    /* Typography */
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--navy-950);
    color: var(--txt-1);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ══════════════════
   ANIMATED GRID BG
   ══════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(ellipse, rgba(0, 212, 170, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-dim);
}

/* ══════════════════
   SIDEBAR LAYOUT
   ══════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: rgba(6, 12, 20, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--b1);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    margin-bottom: 32px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--teal), #00a884);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy-950);
    box-shadow: var(--teal-glow);
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--txt-1);
}

.logo-badge {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    line-height: 1;
}

.nav-section {
    margin-bottom: 8px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--txt-3);
    margin-top: 20px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--txt-2);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 2px;
    position: relative;
}

.nav-item i {
    font-size: 17px;
    flex-shrink: 0;
}

.nav-item:hover {
    color: var(--txt-1);
    background: rgba(0, 212, 170, 0.06);
    border-color: var(--b1);
}

.nav-item.active {
    color: var(--teal);
    background: var(--teal-dim);
    border-color: var(--b2);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    background: var(--teal);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

.sidebar-bottom {
    margin-top: auto;
}

.user-card {
    background: var(--navy-700);
    border: 1px solid var(--b1);
    border-radius: var(--r-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-600);
    object-fit: cover;
    flex-shrink: 0;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-bal {
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Main content area */
.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    padding: 36px 40px;
    position: relative;
    z-index: 1;
}

/* ══════════════════
   TOPBAR (Mobile)
   ══════════════════ */
.topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 9, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--b1);
    padding: 14px 20px;
    align-items: center;
    justify-content: space-between;
}

/* ══════════════════
   CARDS & GLASS
   ══════════════════ */
.card {
    background: rgba(10, 21, 32, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--b1);
    border-radius: var(--r-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-dim), transparent);
}

.card-sm {
    padding: 18px;
    border-radius: var(--r-md);
}

.card-glow {
    border-color: var(--b2);
    box-shadow: inset 0 1px 0 rgba(0, 212, 170, 0.08);
}

/* ══════════════════
   STAT CARDS
   ══════════════════ */
.stats-row {
    display: grid;
    gap: 16px;
}

.stat-tile {
    background: rgba(10, 21, 32, 0.8);
    border: 1px solid var(--b1);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.stat-tile:hover {
    border-color: var(--b2);
}

.stat-tile .icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.stat-tile .icon-wrap.teal {
    background: var(--teal-dim);
    color: var(--teal);
}

.stat-tile .icon-wrap.gold {
    background: var(--gold-dim);
    color: var(--gold);
}

.stat-tile .icon-wrap.sky {
    background: var(--sky-dim);
    color: var(--sky);
}

.stat-tile .icon-wrap.coral {
    background: var(--coral-dim);
    color: var(--coral);
}

.stat-tile .tile-val {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.stat-tile .tile-label {
    font-size: 12px;
    color: var(--txt-2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════════════
   BUTTONS
   ══════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--r-xs);
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
    border-radius: var(--r-md);
}

.btn-full {
    width: 100%;
}

.btn-teal {
    background: var(--teal);
    color: var(--navy-950);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.2);
}

.btn-teal:hover {
    background: #00eabf;
    box-shadow: 0 6px 28px rgba(0, 212, 170, 0.35);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-950);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(240, 180, 41, 0.2);
}

.btn-gold:hover {
    background: #f8c83a;
    box-shadow: 0 6px 28px rgba(240, 180, 41, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--b2);
}

.btn-outline:hover {
    background: var(--teal-dim);
    border-color: var(--b3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--txt-2);
    border-color: var(--b1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--txt-1);
    border-color: var(--b2);
}

.btn-danger {
    background: var(--coral-dim);
    color: var(--coral);
    border-color: rgba(255, 94, 87, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 94, 87, 0.2);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border-color: #4757e9;
}

.btn-discord:hover {
    background: #4757e9;
}

/* ══════════════════
   FORM ELEMENTS
   ══════════════════ */
.field {
    margin-bottom: 20px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-2);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    background: var(--navy-800);
    border: 1px solid var(--b1);
    color: var(--txt-1);
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.input:focus {
    border-color: var(--b3);
    background: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.08), 0 0 20px rgba(0, 212, 170, 0.05);
}

.input::placeholder {
    color: var(--txt-3);
    font-family: var(--font-mono);
    font-size: 12px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row .input {
    flex: 1;
}

/* ══════════════════
   TYPE SELECTOR
   ══════════════════ */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.type-option {
    background: var(--navy-800);
    border: 1px solid var(--b1);
    border-radius: var(--r-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.type-option input {
    display: none;
}

.type-option:hover {
    border-color: var(--b2);
}

.type-option.active {
    border-color: var(--teal);
    background: var(--teal-dim);
    box-shadow: inset 0 1px 0 rgba(0, 212, 170, 0.15);
}

.type-option .check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--txt-3);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-option.active .check {
    border-color: var(--teal);
    background: var(--teal);
}

.type-option.active .check::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--navy-950);
}

.type-option-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--txt-1);
}

.type-option-price {
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    font-family: var(--font-mono);
}

.type-option-desc {
    font-size: 11px;
    color: var(--txt-2);
    margin-top: 4px;
}

/* ══════════════════
   BADGES & TAGS
   ══════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}

.badge-teal {
    background: var(--teal-dim);
    color: var(--teal);
    border-color: var(--b2);
}

.badge-gold {
    background: var(--gold-dim);
    color: var(--gold);
    border-color: rgba(240, 180, 41, 0.25);
}

.badge-coral {
    background: var(--coral-dim);
    color: var(--coral);
    border-color: rgba(255, 94, 87, 0.25);
}

.badge-sky {
    background: var(--sky-dim);
    color: var(--sky);
    border-color: rgba(56, 189, 248, 0.25);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--txt-2);
    border-color: var(--b1);
}

/* ══════════════════
   PROGRESS BAR
   ══════════════════ */
.progress-track {
    background: var(--navy-700);
    border-radius: var(--r-full);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #00ffcc);
    border-radius: var(--r-full);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: -100%;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(150%);
    }
}

.progress-fill.done {
    background: linear-gradient(90deg, var(--gold), #ffcc44);
}

.progress-fill.done::after {
    display: none;
}

/* ══════════════════
   TOASTS
   ══════════════════ */
#toast-rack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.toast-item {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--navy-700);
    border: 1px solid var(--b2);
    border-radius: var(--r-md);
    padding: 14px 18px;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    animation: toastSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-item.out {
    animation: toastOut 0.2s ease forwards;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.toast-accent {
    width: 3px;
    border-radius: 3px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 20px;
}

.toast-success .toast-accent {
    background: var(--teal);
}

.toast-error .toast-accent {
    background: var(--coral);
}

.toast-info .toast-accent {
    background: var(--sky);
}

.toast-warning .toast-accent {
    background: var(--gold);
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 12px;
    color: var(--txt-2);
    line-height: 1.4;
}

/* ══════════════════
   TABLE
   ══════════════════ */
.table-wrap {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--b1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    background: var(--navy-800);
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--b1);
    font-family: var(--font-mono);
}

tbody tr {
    border-bottom: 1px solid var(--b1);
    transition: background 0.12s;
}

tbody tr:hover {
    background: rgba(0, 212, 170, 0.02);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 12px 16px;
    color: var(--txt-1);
}

/* ══════════════════
   MISC
   ══════════════════ */
.divider {
    width: 100%;
    height: 1px;
    background: var(--b1);
    margin: 20px 0;
}

.mono {
    font-family: var(--font-mono);
}

.text-teal {
    color: var(--teal);
}

.text-gold {
    color: var(--gold);
}

.text-coral {
    color: var(--coral);
}

.text-sky {
    color: var(--sky);
}

.text-muted {
    color: var(--txt-2);
}

.text-dim {
    color: var(--txt-3);
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 12px;
}

.text-xs {
    font-size: 11px;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 212, 170, 0.15);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ══════════════════
   PILL / AVAIL
   ══════════════════ */
.avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.avail-pill.ok {
    background: var(--teal-dim);
    color: var(--teal);
    border: 1px solid var(--b2);
}

.avail-pill.none {
    background: var(--coral-dim);
    color: var(--coral);
    border: 1px solid rgba(255, 94, 87, 0.2);
}

.avail-pill.wait {
    background: rgba(255, 255, 255, 0.04);
    color: var(--txt-2);
    border: 1px solid var(--b1);
}

/* ══════════════════
   LIVE DOT
   ══════════════════ */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.3px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

/* ══════════════════
   MODAL
   ══════════════════ */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-bg.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--navy-800);
    border: 1px solid var(--b2);
    border-radius: var(--r-xl);
    padding: 32px;
    width: 100%;
    max-width: 460px;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-bg.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-700);
    border: 1px solid var(--b1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--txt-2);
    font-size: 13px;
    transition: all 0.12s;
}

.modal-close:hover {
    background: var(--navy-600);
    color: var(--txt-1);
}

/* ══════════════════
   PAGE HEADER
   ══════════════════ */
.page-head {
    margin-bottom: 32px;
}

.page-head h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--txt-1);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-head p {
    font-size: 13px;
    color: var(--txt-2);
}

/* ══════════════════
   BOT CARDS
   ══════════════════ */
.bot-tile {
    background: var(--navy-800);
    border: 1px solid var(--b1);
    border-radius: var(--r-lg);
    padding: 20px;
    transition: all 0.2s;
}

.bot-tile.active {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.05);
}

.bot-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--r-xs);
}

.status-pin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--navy-800);
}

.status-pin.idle {
    background: var(--txt-3);
}

.status-pin.active {
    background: var(--teal);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
    animation: livePulse 2s infinite;
}

/* ══════════════════
   ORDER CARDS
   ══════════════════ */
.order-tile {
    background: rgba(10, 21, 32, 0.6);
    border: 1px solid var(--b1);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.order-tile:hover {
    border-color: var(--b2);
}

.order-tile.live {
    border-color: rgba(0, 212, 170, 0.3);
}

.order-tile-top {
    padding: 20px 24px;
}

.order-tile-prog {
    padding: 16px 24px;
    border-top: 1px solid var(--b1);
    background: rgba(0, 212, 170, 0.02);
}

/* ══════════════════
   RESPONSIVE
   ══════════════════ */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 18px;
    }

    .topbar {
        display: flex;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }
}