/* ================================
   GOOGLE FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=League+Spartan:wght@400;600;700;800&family=Archivo:wght@300;400;500;600&display=swap');

/* ================================
   ROOT VARIABLES
================================ */
:root {
    --bg-deep:        #070f0a;
    --bg-card:        #0d1f14;
    --bg-mid:         #162b1e;
    --bg-hover:       #1e3828;
    --gold:           #c9a84c;
    --gold-bright:    #e8c060;
    --gold-dim:       #8a6e2a;
    --gold-glow:      rgba(201, 168, 76, 0.15);
    --cream:          #f5ead8;
    --cream-mid:      #e0d4bc;
    --cream-faded:    #8a7e6a;
    --red-muted:      #8b2020;
    --red-bright:     #c0392b;
    --green-success:  #2e7d4f;
    --shadow-soft:    0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-hard:    0 8px 40px rgba(0, 0, 0, 0.8);
    --shadow-gold:    0 0 20px rgba(201, 168, 76, 0.2);
    --radius:         10px;
    --radius-sm:      6px;
    --border-gold:    1px solid rgba(201, 168, 76, 0.4);
    --border-subtle:  1px solid rgba(255, 255, 255, 0.05);
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(26, 61, 42, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(10, 35, 24, 0.8) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23070f0a'/%3E%3Crect width='1' height='1' fill='%230d1a11' opacity='0.6'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--cream-mid);
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-bright);
}

ul {
    list-style: none;
    padding: 0;
}

/* ================================
   PAGE LOAD ANIMATION
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ================================
   HEADER
================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: rgba(7, 15, 10, 0.97);
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    z-index: 1000;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Thin gold accent line at very top */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-msg {
    color: var(--cream-faded);
    font-size: 0.85rem;
    font-family: 'Archivo', sans-serif;
    letter-spacing: 0.3px;
}

/* ================================
   BUTTONS
================================ */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #070f0a;
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #070f0a;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-mid);
    color: var(--cream);
    border: var(--border-gold);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.btn-logout {
    background-color: transparent;
    color: var(--cream-faded);
    border: 1px solid rgba(138, 126, 106, 0.4);
    padding: 6px 14px;
}

.btn-logout:hover {
    border-color: var(--cream-faded);
    color: var(--cream);
    transform: translateY(-1px);
}

.btn-admin {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #070f0a;
    padding: 6px 14px;
}

.btn-admin:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    transform: translateY(-1px);
}

/* ================================
   ALERTS / FLASH MESSAGES
================================ */
.alert {
    max-width: 1200px;
    margin: 16px auto;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.alert::before {
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: rgba(46, 125, 79, 0.15);
    border: 1px solid rgba(46, 125, 79, 0.4);
    border-left: 3px solid var(--green-success);
    color: var(--cream);
}

.alert-success::before {
    content: '✓';
    color: var(--green-success);
    font-weight: bold;
}

.alert-error {
    background-color: rgba(139, 32, 32, 0.15);
    border: 1px solid rgba(139, 32, 32, 0.4);
    border-left: 3px solid var(--red-muted);
    color: var(--cream);
}

.alert-error::before {
    content: '✕';
    color: var(--red-bright);
    font-weight: bold;
}

.alert ul {
    padding-left: 16px;
    list-style: disc;
    margin: 0;
}

/* ================================
   AUTH PAGES
================================ */
.auth-container {
    max-width: 420px;
    margin: 100px auto 40px auto;
    background-color: var(--bg-card);
    padding: 44px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    border: var(--border-gold);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

/* Decorative corner accent */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05), transparent 70%);
    pointer-events: none;
}

.auth-container h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 5px;
    margin-bottom: 4px;
    border-bottom: none !important;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
    line-height: 1;
}

.subheading {
    text-align: center;
    color: var(--cream-faded);
    margin-bottom: 32px;
    font-size: 0.85rem;
    font-family: 'Archivo', sans-serif;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--cream-faded);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'League Spartan', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(7, 15, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-size: 0.95rem;
    font-family: 'Archivo', sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(7, 15, 10, 1);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group input::placeholder {
    color: var(--cream-faded);
    opacity: 0.4;
}

.auth-container .btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--cream-faded);
    font-size: 0.85rem;
    font-family: 'Archivo', sans-serif;
    line-height: 1.8;
}

/* ================================
   DASHBOARD
================================ */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 32px 60px 32px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

/* Dashboard header area */
.dashboard-hero {
    text-align: center;
    padding: 24px 0 20px 0;
    position: relative;
}

.dashboard-hero::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px auto 0 auto;
}

.dashboard-eyebrow {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 8px;
}

.dashboard-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--cream);
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.dashboard-headline span {
    color: var(--gold);
    display: inline;
}

.dashboard-sub {
    margin-top: 10px;
    color: var(--cream-faded);
    font-family: 'Archivo', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--cream-faded);
    letter-spacing: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.4em;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ================================
   FEATURED CARD
================================ */
.card-featured {
    background: linear-gradient(135deg, #0d1f14 0%, #162b1e 60%, #1a3228 100%);
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard), inset 0 1px 0 rgba(201, 168, 76, 0.1);
    padding: 48px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease 0.1s both;
}

/* Large background number watermark */
.card-featured::before {
    content: '01';
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14rem;
    color: rgba(201, 168, 76, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Top gold line */
.card-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}

.card-featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hard), var(--shadow-gold);
}

.card-featured-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 12px;
}

.card-featured .card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--cream);
    letter-spacing: 5px;
    margin-bottom: 14px;
    line-height: 1;
}

.card-featured .card-description {
    color: var(--cream-faded);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
    font-family: 'Archivo', sans-serif;
}

/* ================================
   GAME CARDS GRID
================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background-color: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: var(--shadow-hard), 0 0 30px rgba(201, 168, 76, 0.08);
}

.card-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    color: var(--gold);
    opacity: 0.4;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.card .card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 10px;
    letter-spacing: 3px;
    line-height: 1;
}

.card .card-description {
    color: var(--cream-faded);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-family: 'Archivo', sans-serif;
}

/* Coming Soon badge */
.coming-soon-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ================================
   FOOTER
================================ */
.site-footer {
    background-color: #040a06;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    text-align: center;
    padding: 28px 32px;
    color: var(--cream-faded);
    font-size: 0.78rem;
    font-family: 'Archivo', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

/* ================================
   ADMIN STATS
================================ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.4s ease both;
}

.stat-card {
    background-color: var(--bg-card);
    border: var(--border-gold);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--gold);
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.stat-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.72rem;
    color: var(--cream-faded);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ================================
   ADMIN TABLE
================================ */
.admin-table-section {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: var(--border-gold);
    animation: fadeInUp 0.4s ease 0.1s both;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-family: 'Archivo', sans-serif;
}

.admin-table thead tr {
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.admin-table th {
    text-align: left;
    padding: 10px 16px;
    color: var(--gold);
    font-family: 'League Spartan', sans-serif;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 800;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--cream-mid);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-mid);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ================================
   ROLE BADGES
================================ */
.role-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.role-user {
    background-color: rgba(255,255,255,0.05);
    color: var(--cream-faded);
    border: 1px solid rgba(255,255,255,0.08);
}

.role-admin {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #070f0a;
}

.you-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    letter-spacing: 1px;
}

/* ================================
   ACTION BUTTONS
================================ */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.action-buttons form {
    margin: 0;
    padding: 0;
}

.btn-action {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-promote {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-promote:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #070f0a;
    border-color: transparent;
}

.btn-demote {
    background-color: transparent;
    color: var(--cream-faded);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-demote:hover {
    background-color: rgba(255,255,255,0.08);
    color: var(--cream);
}

.btn-delete {
    background-color: transparent;
    color: var(--red-muted);
    border: 1px solid rgba(139, 32, 32, 0.4);
}

.btn-delete:hover {
    background-color: var(--red-muted);
    color: var(--cream);
    border-color: transparent;
}

/* ================================
   DIVIDER
================================ */
.gold-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
    margin: 40px 0;
    border: none;
}

/* ================================
   SCROLLBAR
================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .site-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .dashboard {
        padding: 80px 20px 40px 20px;
    }

    .dashboard-headline {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .card-featured {
        padding: 32px 24px;
    }

    .card-featured .card-title {
        font-size: 2.2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .auth-container {
        margin: 80px 16px 40px 16px;
        padding: 32px 24px;
    }

    .auth-container h1 {
        font-size: 2.4rem;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .welcome-msg {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .header-nav {
        gap: 8px;
    }

    .btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}


/* ================================
   GUEST STYLES
================================ */
.guest-banner {
    max-width: 1200px;
    margin: 16px auto;
    padding: 14px 20px;
    background-color: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Archivo', sans-serif;
    font-size: 0.88rem;
    color: var(--cream-faded);
    animation: fadeInUp 0.3s ease;
}

.guest-banner a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
}

.guest-banner a:hover {
    color: var(--gold-bright);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--cream-faded);
    font-size: 0.8rem;
    font-family: 'Archivo', sans-serif;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.btn-guest {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-sm);
    color: var(--cream-faded) !important;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-guest:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background-color: rgba(201, 168, 76, 0.05);
}

/* ================================
   PROFILE PAGE
================================ */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 32px auto;
    padding: 0 24px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    box-sizing: border-box;
}

.profile-card-wide {
    /* no longer needed but kept for compatibility */
}

.profile-card-danger {
    border-color: rgba(192, 57, 43, 0.25);
}

.profile-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gold);
    margin: 0 0 6px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    padding-bottom: 10px;
}

.profile-card-sub {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    color: var(--cream-faded);
    margin: 0 0 16px 0;
}

.profile-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: var(--bg-mid);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.profile-card textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.btn-delete-full {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: var(--radius-sm);
    color: #e07070 !important;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-delete-full:hover {
    background: rgba(192, 57, 43, 0.3);
    border-color: #c0392b;
    color: #ff9090 !important;
}

/* ================================
   BUG REPORT STATUS BADGES
================================ */
.bug-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bug-status-open {
    background: rgba(192, 57, 43, 0.2);
    color: #e07070;
    border: 1px solid rgba(192, 57, 43, 0.4);
}

.bug-status-reviewed {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.bug-status-resolved {
    background: rgba(39, 174, 96, 0.15);
    color: #6dbb8a;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.bug-select {
    background: var(--bg-mid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--cream-mid);
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    padding: 5px 8px;
    cursor: pointer;
}

.bug-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* ================================
   HEADER USERNAME LINK
================================ */
.header-username {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream-mid);
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.header-username:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

/* ================================
   GAMES DROPDOWN
================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    color: var(--cream-mid);
    font-family: 'League Spartan', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
    z-index: 1100;
    animation: fadeInUp 0.15s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
    cursor: pointer;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: var(--bg-mid);
}

.nav-dropdown-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-sub {
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    color: var(--cream-faded);
    margin-top: 2px;
}

.nav-dropdown-locked {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.nav-coming-soon {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    padding: 1px 7px;
}

/* ================================
   HEADER REDESIGN — CONSISTENT NAV
================================ */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--cream-mid);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

.nav-dropdown-menu-right {
    right: 0;
    left: auto;
}

.nav-dropdown-danger .nav-dropdown-label {
    color: #e07070;
}

.nav-dropdown-danger:hover {
    background: rgba(192, 57, 43, 0.1) !important;
}

/* ================================
   HAMBURGER BUTTON
================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease;
}

.hamburger:hover {
    border-color: var(--gold);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--cream-mid);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   MOBILE MENU
================================ */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 8px 0 16px 0;
    animation: fadeInUp 0.2s ease;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    z-index: 1002;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-item {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--cream-mid);
    text-decoration: none;
    padding: 12px 24px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-menu-item:hover {
    background: var(--bg-mid);
    color: var(--gold);
}

.mobile-menu-danger {
    color: #e07070 !important;
}

.mobile-menu-danger:hover {
    background: rgba(192, 57, 43, 0.1) !important;
}

.mobile-menu-divider {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream-faded);
    padding: 14px 24px 4px 24px;
    opacity: 0.6;
}

/* ================================
   RESPONSIVE HEADER SWAP
================================ */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .site-header {
        height: auto !important;
    }

    .header-inner {
        height: 65px;
    }
}

/* ================================
   LEGAL PAGES
================================ */
.legal-page {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.legal-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.legal-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 400;
    margin: 8px 0 4px 0;
}

.legal-effective {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    color: var(--cream-faded);
    margin: 0;
}

.legal-body h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    margin: 32px 0 10px 0;
    letter-spacing: 0.5px;
}

.legal-body h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream-mid);
    margin: 20px 0 8px 0;
}

.legal-body p {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--cream-faded);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-body strong {
    color: var(--cream-mid);
}

.legal-body a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.15s ease;
}

.legal-body a:hover {
    color: var(--gold-bright);
}

.legal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.legal-body ul li {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--cream-faded);
    line-height: 1.75;
    padding: 4px 0 4px 20px;
    position: relative;
}

.legal-body ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--gold-dim);
}

.legal-footer-links {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    gap: 12px;
    align-items: center;
}

.legal-footer-links a {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.15s ease;
}

.legal-footer-links a:hover {
    color: var(--gold-bright);
}

.legal-footer-links span {
    color: var(--cream-faded);
    font-size: 0.75rem;
}

/* ================================
   PASSWORD STRENGTH INDICATOR
================================ */
.strength-bar {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
    min-height: 1.1em;
}

.strength-checks {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.strength-checks li {
    font-family: 'Archivo', sans-serif;
    font-size: 0.78rem;
    color: var(--cream-faded);
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

/* ================================
   DASHBOARD CARD STATS
================================ */
.card-stats-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.card-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    text-align: center;
}

.card-stat-divider {
    width: 1px;
    background: rgba(201, 168, 76, 0.2);
    align-self: stretch;
    flex-shrink: 0;
}

.card-stat-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-faded);
}

.card-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1;
}

.card-stat-pending {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream-faded);
    letter-spacing: 0.5px;
}

.card-stat-cta {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: underline;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}

.card-stat-cta:hover {
    color: var(--gold-bright);
}

/* ================================
   OFFSEASON NOTICE
================================ */
.card-offseason-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
}

.card-offseason-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.card-offseason-notice p {
    font-family: 'Archivo', sans-serif;
    font-size: 0.8rem;
    color: var(--cream-faded);
    line-height: 1.5;
    margin: 0;
}

.card-offseason-notice p strong {
    color: var(--cream-mid);
}

@media (max-width: 600px) {
    .card-stats-row {
        flex-direction: column;
        gap: 16px;
    }
    .card-stat-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
    }
}
.card-stat-leaderboard {
    display: block;
    max-height: 220px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,168,76,0.3) transparent;
}