/* =========================
   CSS RESET & BASE RULES
   ========================= */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================
   DESIGN TOKENS
   ========================= */

:root {
    /* Colors */
    --bg-main: #0f1115;
    --bg-panel: #171a21;
    --bg-card: #1f2330;

    --text-main: #e6e8ee;
    --text-muted: #9aa0b2;

    --accent: #4da3ff;
    --success: #2ecc71;
    --danger: #ff4d4f;
    --warning: #f5a623;

    /* Layout */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 32px;

    /* Transitions */
    --fast: 120ms ease;
    --normal: 200ms ease;
}

/* =========================
   GLOBAL ELEMENTS
   ========================= */

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =========================
   UTILITY CLASSES
   ========================= */

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-sm {
    gap: var(--gap-sm);
}

.gap-md {
    gap: var(--gap-md);
}

.gap-lg {
    gap: var(--gap-lg);
}

/* =========================
   SCROLLBAR (DESKTOP)
   ========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-panel);
}

::-webkit-scrollbar-thumb {
    background: #2a2f3d;
    border-radius: 4px;
}