/* ==========================================================================
   Junglenode design system — v2
   Professional SaaS palette, light + dark mode, no neon/glow/gradients.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-subtle: #f6f7f9;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --border: #e3e6ea;
    --border-strong: #d1d6dc;

    --primary: #3457d5;
    --primary-hover: #2a46b8;
    --primary-tint: #eef1fd;
    --primary-ink: #ffffff;

    --text: #14181f;
    --text-muted: #5b6572;
    --text-faint: #8a929c;

    --success: #157347;
    --success-tint: #e8f5ee;
    --warning: #a3650a;
    --warning-tint: #fbf1e2;
    --danger: #b3261e;
    --danger-tint: #fdeceb;
    --info: #2563a8;
    --info-tint: #e9f1fa;

    --radius-lg: 16px;
    --radius: 10px;
    --radius-sm: 7px;

    --shadow-sm: 0 1px 2px rgba(20, 24, 31, .05);
    --shadow: 0 2px 8px rgba(20, 24, 31, .06), 0 1px 2px rgba(20, 24, 31, .05);
    --shadow-lg: 0 16px 40px rgba(20, 24, 31, .12), 0 4px 12px rgba(20, 24, 31, .06);

    --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101216;
        --bg-subtle: #16191e;
        --surface: #1b1e24;
        --surface-raised: #20242b;
        --border: #2b2f36;
        --border-strong: #3a3f48;

        --primary: #7291ff;
        --primary-hover: #8ba3ff;
        --primary-tint: rgba(114, 145, 255, .12);
        --primary-ink: #0d1117;

        --text: #f0f2f5;
        --text-muted: #a4acb8;
        --text-faint: #6b7280;

        --success: #4ade80;
        --success-tint: rgba(74, 222, 128, .12);
        --warning: #fbbf58;
        --warning-tint: rgba(251, 191, 88, .12);
        --danger: #f87066;
        --danger-tint: rgba(248, 112, 102, .12);
        --info: #60a5fa;
        --info-tint: rgba(96, 165, 250, .12);

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 2px 10px rgba(0, 0, 0, .35);
        --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
    }
}
:root[data-theme="dark"] {
    --bg: #101216; --bg-subtle: #16191e; --surface: #1b1e24; --surface-raised: #20242b;
    --border: #2b2f36; --border-strong: #3a3f48;
    --primary: #7291ff; --primary-hover: #8ba3ff; --primary-tint: rgba(114, 145, 255, .12); --primary-ink: #0d1117;
    --text: #f0f2f5; --text-muted: #a4acb8; --text-faint: #6b7280;
    --success: #4ade80; --success-tint: rgba(74, 222, 128, .12);
    --warning: #fbbf58; --warning-tint: rgba(251, 191, 88, .12);
    --danger: #f87066; --danger-tint: rgba(248, 112, 102, .12);
    --info: #60a5fa; --info-tint: rgba(96, 165, 250, .12);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 2px 10px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}
:root[data-theme="light"] {
    --bg: #ffffff; --bg-subtle: #f6f7f9; --surface: #ffffff; --surface-raised: #ffffff;
    --border: #e3e6ea; --border-strong: #d1d6dc;
    --primary: #3457d5; --primary-hover: #2a46b8; --primary-tint: #eef1fd; --primary-ink: #ffffff;
    --text: #14181f; --text-muted: #5b6572; --text-faint: #8a929c;
    --success: #157347; --success-tint: #e8f5ee;
    --warning: #a3650a; --warning-tint: #fbf1e2;
    --danger: #b3261e; --danger-tint: #fdeceb;
    --info: #2563a8; --info-tint: #e9f1fa;
    --shadow-sm: 0 1px 2px rgba(20,24,31,.05); --shadow: 0 2px 8px rgba(20,24,31,.06), 0 1px 2px rgba(20,24,31,.05); --shadow-lg: 0 16px 40px rgba(20,24,31,.12), 0 4px 12px rgba(20,24,31,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .15s ease, color .15s ease;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--primary-tint); color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- nav */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1180px; margin: 0 auto; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.01em; }
.brand .brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-links > .nav-item > a, .nav-links > a {
    display: flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-subtle); }
.nav-item .chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-item:hover .chev { transform: rotate(180deg); }

.mega-menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: 620px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 50;
}
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: var(--radius-sm); color: var(--text); }
.mega-menu a:hover { background: var(--bg-subtle); }
.mega-menu .mm-icon {
    width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--primary-tint); color: var(--primary);
}
.mega-menu .mm-icon svg { width: 17px; height: 17px; }
.mega-menu .mm-title { font-weight: 600; font-size: 14px; margin-bottom: 1px; }
.mega-menu .mm-desc { font-size: 12.5px; color: var(--text-faint); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); }
.cart-link:hover { color: var(--text); border-color: var(--border-strong); }
.cart-link svg { width: 17px; height: 17px; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--primary); color: var(--primary-ink); font-size: 10.5px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 38px; height: 38px; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px;
    border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.btn-ghost { background: var(--bg-subtle); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card-solid { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card-hover { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 88px 0 76px; overflow: hidden; }
.hero-grid-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 40%, transparent 100%);
    opacity: .55;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
    background: var(--primary-tint); border: 1px solid transparent; color: var(--primary);
    font-size: 12.5px; font-weight: 700; letter-spacing: .01em; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 780px; }
.hero .lead { font-size: 17.5px; max-width: 580px; color: var(--text-muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 26px; margin-top: 36px; max-width: 720px; }
.hero-points li { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 14px; }
.hero-points svg { color: var(--success); flex-shrink: 0; width: 17px; height: 17px; }

/* ---------------------------------------------------------------- section */
.section { padding: 72px 0; position: relative; }
.section-alt { background: var(--bg-subtle); }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.section-tag { color: var(--primary); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px; display: block; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-tile {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--primary-tint); color: var(--primary); margin-bottom: 16px;
}
.icon-tile svg { width: 20px; height: 20px; }
.icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- product/category cards */
.category-card { display: flex; flex-direction: column; gap: 4px; }
.category-card .icon-tile { margin-bottom: 14px; }

/* ---------------------------------------------------------------- pricing */
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan-badge { position: absolute; top: -12px; left: 22px; background: var(--primary); color: var(--primary-ink); font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.plan-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 3px; }
.plan-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; min-height: 38px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 20px; }
.plan-price .amount { font-family: var(--font-display); font-size: 36px; font-weight: 800; }
.plan-price .cycle { color: var(--text-muted); font-size: 13.5px; }
.plan-specs { margin-bottom: 22px; flex: 1; }
.plan-specs li { display: flex; gap: 9px; align-items: center; padding: 6px 0; font-size: 13.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.plan-specs li:last-child { border-bottom: none; }
.plan-specs svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- stats */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat .stat-label { color: var(--text-muted); font-size: 13px; margin-top: 3px; }
@media (max-width: 780px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- coming soon */
.coming-soon-hero { text-align: center; padding: 110px 0; position: relative; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 26px; margin-top: 56px; background: var(--bg-subtle); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; padding-bottom: 36px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 14px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--text-muted); font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 12.5px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- forms */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.input, select.input, textarea.input {
    width: 100%; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 14.5px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, select.input:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
textarea.input { resize: vertical; min-height: 110px; }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.form-card { max-width: 420px; margin: 0 auto; }

/* ---------------------------------------------------------------- alerts */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 18px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--success-tint); border-color: transparent; color: var(--success); }
.alert-error { background: var(--danger-tint); border-color: transparent; color: var(--danger); }
.alert-info { background: var(--info-tint); border-color: transparent; color: var(--info); }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-tint); color: var(--success); }
.badge-warning { background: var(--warning-tint); color: var(--warning); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-muted { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--bg-subtle); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-subtle); }

/* ---------------------------------------------------------------- app shell (client/admin) */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 246px; flex-shrink: 0; background: var(--bg-subtle); border-right: 1px solid var(--border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-sidebar .brand { padding: 0 10px 22px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; margin-bottom: 1px; }
.sidebar-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-nav a:hover { background: var(--border); color: var(--text); }
.sidebar-nav a.active { background: var(--primary-tint); color: var(--primary); }
.sidebar-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); padding: 16px 13px 7px; font-weight: 700; }

.app-main { flex: 1; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.app-content { padding: 30px; max-width: 1180px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin-bottom: 3px; }
.page-head p { margin: 0; }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-tint); color: var(--primary); font-weight: 700; font-size: 13px; font-family: var(--font-display); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpi { padding: 20px; }
.kpi .kpi-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.kpi .kpi-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
@media (max-width: 980px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- ticket thread */
.thread-msg { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--border); }
.thread-msg.is-admin { background: var(--primary-tint); border-color: transparent; }
.thread-msg .thread-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); margin-bottom: 9px; }
.thread-msg .thread-meta strong { color: var(--text); }
.thread-msg .thread-body { color: var(--text); white-space: pre-wrap; font-size: 14px; }

/* ---------------------------------------------------------------- status page */
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.up { background: var(--success); }
.status-dot.degraded { background: var(--warning); }
.status-dot.down { background: var(--danger); }
.uptime-bars { display: flex; gap: 2px; }
.uptime-bars .bar { width: 5px; height: 22px; border-radius: 2px; background: var(--success); }
.uptime-bars .bar.degraded { background: var(--warning); }
.uptime-bars .bar.down { background: var(--danger); }
.uptime-bars .bar.unknown { background: var(--border); }

/* ---------------------------------------------------------------- cart */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-row-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-row-icon svg { width: 21px; height: 21px; }
.cart-summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.cart-summary-line.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 700; color: var(--text); font-size: 16px; }

/* ---------------------------------------------------------------- misc */
.divider { height: 1px; background: var(--border); border: none; margin: 26px 0; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-20 { gap: 20px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state svg { width: 40px; height: 40px; color: var(--text-faint); margin: 0 auto 14px; }

@media (max-width: 900px) {
    .nav-actions .btn-outline { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: calc(100% + 1px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 1px;
        background: var(--surface-raised); border-bottom: 1px solid var(--border);
        padding: 8px 16px 16px; opacity: 0; transform: translateY(-8px);
        pointer-events: none; transition: opacity .18s ease, transform .18s ease;
    }
    .nav-links.mobile-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links a { padding: 12px 13px; }
    .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; box-shadow: none; border: none; grid-template-columns: 1fr; padding: 4px 0 4px 20px; display: none; }
    .nav-item.mobile-expanded .mega-menu { display: grid; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .app-sidebar { position: fixed; left: -270px; z-index: 200; transition: left .2s; box-shadow: var(--shadow-lg); }
    .app-sidebar.open { left: 0; }
    .app-content { padding: 20px; }
    .kpi-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}
