/* =========================================================
   BASE + RESET + DESIGN TOKENS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    /* Brand red (admin) — softened from #d00000 */
    --red-primary: #e63946;
    --red-glow: #ff5c66;
    --red-soft: #ff8f95;
    --red-deep: #a31621;

    /* Brand blue (customer) — softened from old neon cyan */
    --blue-primary: #3b82f6;
    --blue-glow: #60a5fa;
    --blue-soft: #93c5fd;
    --blue-deep: #1e40af;

    /* Surface scale */
    --bg: #0b0b0e;
    --surface-1: #131318;
    --surface-2: #1a1a21;
    --surface-3: #22222b;
    --surface-hover: #2a2a35;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(230, 57, 70, 0.35);

    /* Text */
    --text: #ececef;
    --text-muted: #a8a8b3;
    --text-dim: #6b6b78;

    /* Status */
    --green: #22c55e;
    --green-soft: #14532d;
    --yellow: #eab308;
    --yellow-soft: #422006;
    --blue: #3b82f6;

    /* Layout */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.55);
    --shadow-accent: 0 0 0 1px rgba(230, 57, 70, 0.25), 0 8px 24px rgba(230, 57, 70, 0.15);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy aliases — keep older page-specific CSS in sync with new palette */
    --dg-bg: var(--bg);
    --dg-bg-light: var(--surface-1);
    --dg-panel: var(--surface-1);
    --dg-panel-light: var(--surface-2);
    --dg-red: var(--red-primary);
    --dg-red-light: var(--red-glow);
    --dg-red-dark: var(--red-deep);
    --dg-text: var(--text);
    --dg-text-dim: var(--text-muted);
    --dg-border: var(--border);
    --shadow-red: var(--shadow);
}

html, body {
    height: 100%;
    background: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 80px !important;
    min-height: 100vh;
}

code, pre, kbd {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p, label {
    color: var(--text-muted);
    line-height: 1.6;
}

a {
    color: var(--red-soft);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

a:hover { color: var(--red-glow); }

::selection {
    background: rgba(230, 57, 70, 0.4);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 999px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--surface-hover); }
