/**
 * CERBERUS RP — Enhanced look
 *
 * Loaded LAST on every player-facing page (public pages and /account), after
 * chrome.css, style.css and account.css. It re-themes the 1.0 site to match the
 * GTA V Enhanced server's in-game interface (the LE-HUD "Liquid Glass" kit,
 * default "cerberus" brand preset):
 *   - accent: the kit's blue gradient #4aa7ff -> #5b80f0 (red stays on the logo only)
 *   - type: Inter Tight for headlines, Inter for text, JetBrains Mono for small labels
 *   - surfaces: translucent glass with a bright top edge over blue-black
 *   - sentence-case headings, rounded corners and pill buttons
 *
 * The 1.0 files keep their own values, and every brand colour in them is a
 * token, so removing this one stylesheet (and its font link) puts the 1.0
 * look back. The admin panel has its own layer: admin-enhanced.css.
 */

/* ============================================= */
/* TOKENS                                        */
/* ============================================= */
:root {
    --primary: #4aa7ff;
    --primary-light: #8cc6ff;
    --primary-dark: #3d63d6;
    --primary-rgb: 74, 167, 255;
    --primary-light-rgb: 140, 198, 255;
    --primary-dark-rgb: 61, 99, 214;
    --accent-grad: linear-gradient(135deg, #4aa7ff, #5b80f0);
    --accent-grad-hover: linear-gradient(135deg, #6db9ff, #7895f6);

    --bg-deep: #04060a;
    --bg-main: #06090e;
    --bg-card: #0c1119;
    --bg-input: #111723;
    --bg-hover: #172031;
    --bg-raised: #1b2536;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-primary: rgba(var(--primary-rgb), 0.38);
    --border-primary-hover: rgba(var(--primary-light-rgb), 0.6);

    --text-primary: #f4f6f9;
    --text-secondary: #c5cdd9;
    --text-muted: #8e99ab;
    --text-dark: #5e687a;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 28px rgba(var(--primary-rgb), 0.4);

    --font-display: 'Inter Tight', 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;

    /* glass recipe (the kit's "Liquid" surface; the website may blur, the game may not) */
    --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 55%, rgba(255, 255, 255, 0.025)), rgba(12, 16, 24, 0.72);
    --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    --glass-lift: 0 1.1rem 2.4rem -1.2rem rgba(0, 0, 0, 0.7);

    /* account.css re-themes dashboard.css with its own names: point them at the same values */
    --bg: #06090e;
    --surface: #0c1119;
    --surface-2: #111723;
    --surface-3: #172031;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #4aa7ff;
    --accent-bright: #8cc6ff;
    --accent-deep: #3d63d6;
    --text: #f4f6f9;
    --text-dim: #5e687a;
    --radius: 14px;
    --color-bg: #06090e;
    --color-bg-card: #0c1119;
    --color-bg-elevated: #111723;
    --color-surface: #0c1119;
    --color-surface-light: #111723;
    --color-surface-hover: #172031;
    --color-primary: #4aa7ff;
    --color-primary-light: #8cc6ff;
    --color-primary-dark: #3d63d6;
    --color-text: #f4f6f9;
    --color-text-muted: #8e99ab;
    --color-text-dim: #5e687a;
    --color-text-secondary: #8e99ab;
}

/* ============================================= */
/* GROUND + TYPE                                 */
/* ============================================= */
html { background: var(--bg-deep); }
body {
    background:
        radial-gradient(60% 40% at 85% -5%, rgba(var(--primary-rgb), 0.10), transparent 70%),
        var(--bg-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
    text-transform: none;
}

/* everything that used Russo One in capitals reads in sentence case now */
.tile-title, .card-title, .stat-value, .step h3, .navbar-title, .np-head-title,
.page-hero h1, .section-header h2, .cta-panel h2, .vip-title, .faq-item > summary,
.store-category-name, .pkg-name, .pkg-title {
    text-transform: none;
    letter-spacing: -0.015em;
}

/* small labels: monospace, tracked, the kit's caption style */
.eyebrow, .section-label, .page-hero-eyebrow {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--primary-light);
}

::selection { background: rgba(var(--primary-rgb), 0.35); color: #fff; }

/* ============================================= */
/* NAVBAR                                        */
/* ============================================= */
.navbar {
    background: rgba(6, 9, 14, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-body);
}
.navbar::after { background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.45) 50%, transparent); }
.navbar-brand img { filter: drop-shadow(0 0 10px rgba(227, 25, 28, 0.35)); } /* the logo keeps its red glow */
.navbar-title { font-weight: 800; letter-spacing: -0.02em; }
.navbar-title span { color: var(--primary-light); }

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); }
.nav-link.active { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.nav-link.active::after { display: none; }

.nav-link-btn {
    background: var(--accent-grad);
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0;
    text-transform: none;
    padding: 0.6rem 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 1.2rem rgba(var(--primary-rgb), 0.35);
}
.nav-link-btn:hover { background: var(--accent-grad-hover); }

/* ============================================= */
/* SURFACES                                      */
/* ============================================= */
.panel, .tile, .stat, .step, .cta-panel, .faq-item, .card, .info-section {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-rim), var(--glass-lift);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
}
/* the 1.0 red corner tick has no place in the glass look */
.card::before, .panel::before, .tile::before, .info-section::before { display: none; }

a.tile:hover, .tile-hover:hover, .card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--glass-rim), var(--glass-lift), 0 0 0 1px rgba(var(--primary-rgb), 0.12), 0 0 2rem rgba(var(--primary-rgb), 0.10);
}

.cta-panel::before { color: rgba(var(--primary-rgb), 0.05); font-weight: 900; letter-spacing: -0.04em; }

/* ============================================= */
/* BUTTONS                                       */
/* ============================================= */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.btn-primary {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 1.4rem rgba(var(--primary-rgb), 0.35);
}
.btn-primary:hover {
    background: var(--accent-grad-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 2rem rgba(var(--primary-rgb), 0.5);
}
.btn-secondary, .btn-outline {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.13);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-secondary:hover, .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ============================================= */
/* TABS, BADGES, FORMS                           */
/* ============================================= */
.tab { text-transform: none; letter-spacing: 0; font-weight: 600; }
.tab.active { border-bottom-color: var(--primary); }

.section-tabs {
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}
.section-tab {
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 0.88rem;
}
.section-tab.active {
    background: var(--accent-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 1rem rgba(var(--primary-rgb), 0.35);
}

.badge { border-radius: 999px; letter-spacing: 0.04em; }
.badge-primary { color: var(--primary-light); }

input:focus, select:focus, textarea:focus,
.form-input:focus, .form-control:focus {
    border-color: rgba(var(--primary-rgb), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.breadcrumbs .crumb-sep { color: var(--text-dark); }

/* ============================================= */
/* PAGE HERO (every inner page)                  */
/* ============================================= */
.page-hero {
    background:
        linear-gradient(180deg, rgba(6, 9, 14, 0.35) 0%, rgba(6, 9, 14, 0.7) 60%, var(--bg-main) 100%),
        radial-gradient(44% 70% at 84% 10%, rgba(var(--primary-rgb), 0.18), transparent 70%),
        url('/assets/images/enhanced/moon.webp') 0% 58% / max(150%, 1700px) auto no-repeat, /* moon sits right of the centred title */
        var(--bg-main);
    border-bottom: 0;
    padding: 3.2rem 0 3rem;
}
.page-hero::after { background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.55), transparent); }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); letter-spacing: -0.04em; }
.page-hero h1 span {
    background: linear-gradient(180deg, #ffffff 0%, #cfe3ff 45%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.site-footer { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)), var(--bg-deep); }

/* ============================================= */
/* SCROLLBAR                                     */
/* ============================================= */
* { scrollbar-color: rgba(var(--primary-rgb), 0.35) transparent; }

/* ============================================= */
/* ACCOUNT AREA (account.css sets its own 1.0 buttons + nav) */
/* ============================================= */
.acct-body .btn { border-radius: 999px; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.88rem; }
.acct-body .btn-primary {
    background: var(--accent-grad);
    border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 1.2rem rgba(var(--primary-rgb), 0.3);
}
.acct-body .btn-primary:hover { background: var(--accent-grad-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 1.8rem rgba(var(--primary-rgb), 0.45); }
.acct-shell .nav-item { border-radius: 999px; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.92rem; }
.sidebar-profile .profile-name { font-weight: 800; letter-spacing: -0.015em; }
.sidebar-profile .avatar-ring { background: var(--accent-grad); }
.acct-body .card, .acct-body .panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 55%), var(--surface);
}
.nav-user-avatar { border-color: rgba(255, 255, 255, 0.2); border-radius: 50%; background: var(--accent-grad); }
