:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --primary: #f97316;
    /* Burnt Orange */
    --primary-glow: rgba(249, 115, 22, 0.4);
    --accent: #22c55e;
    /* Green for Wins */
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border: #333333;
    --glass: rgba(20, 20, 20, 0.95);
    --font-heading: 'Impact', 'Oswald', sans-serif;
    /* Condensed Industrial */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Tech Grid */
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gradient-primary {
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
    /* Solid for Intel look */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    /* Industrial Shape */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    /* Sharp corners for Intel look */
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #ea580c;
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* Glass Panel -> Intel Card */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    /* Slight round */
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--border);
}

.glass-panel.active-signal::before {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Dashboard Grid */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding-top: 2rem;
    min-height: 80vh;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: 0.3s;
    background: var(--bg-card);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: white;
    background: #1f1f1f;
    border-left: 2px solid var(--primary);
}

/* Pick Card - Ticker Style */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Full width list */
    gap: 1rem;
}

.pick-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--border);
}

.pick-card:hover {
    border-color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(5px);
    transition: 0.3s;
}

.sport-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: #333;
    color: #fff;
    padding: 0.2rem 0.5rem;
    text-align: center;
    border-radius: 2px;
}

.matchup {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.pick-data {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1.2rem;
    /* Larger data points */
}

/* Utils */
.hero {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.8rem;
    background: #000;
    border: 1px solid var(--border);
    color: white;
    border-radius: 2px;
    font-family: var(--font-mono);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .container p {
        margin: 0 auto 2rem auto;
    }

    .hero .container div {
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ledger-stats {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Hide standard links to keep clean on mobile or use a burger later */
    }

    .logo {
        font-size: 1.2rem;
    }

    .pick-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .ledger-stats {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Admin Action Buttons */
.btn-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.btn-action.grant {
    background: var(--accent);
    color: #000;
}

.btn-action.revoke {
    background: #222;
    color: #fff;
    border-color: #444;
}

.btn-action.delete {
    background: #ff5252;
    color: #fff;
}

.btn-action:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}
.disclaimer-banner {
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    margin: 3rem 0;
    font-family: var(--font-mono);
    line-height: 1.6;
}

/* Tiny Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 300px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

#cookie-banner button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 10px;
    text-transform: uppercase;
}

#cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
}

/* Dashboard Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #111;
    border-bottom: 2px solid var(--primary);
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 4rem;
    color: var(--text-muted);
}

.ticker-item span {
    color: var(--accent);
    font-weight: 800;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Enhanced Pick Card Utilities */
.pick-calc {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.calc-input {
    background: #000;
    border: 1px solid var(--border);
    color: white;
    padding: 4px 8px;
    width: 60px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.calc-result {
    color: var(--accent);
    font-weight: 800;
    font-family: var(--font-mono);
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.war-stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
