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

:root {
    --nba-red: #c8102e;
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #2a2a2a;
    --text: #f0f0f0;
    --muted: #888;
    --radius: 8px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    gap: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 span {
    color: var(--nba-red);
}

p.tagline {
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
    max-width: 480px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
    margin-top: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

label:first-child {
    margin-top: 0;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    padding: 0.65rem 0.9rem;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: 2px solid var(--nba-red);
    border-color: transparent;
}

.officials-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.officials-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    cursor: pointer;
}

.officials-group input[type="checkbox"] {
    accent-color: var(--nba-red);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.league-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nba-red);
    margin: 1rem 0 0.4rem;
    font-weight: 600;
}

button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
    background: var(--nba-red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

button[type="submit"]:hover {
    opacity: 0.85;
}

.flash {
    border-radius: var(--radius);
    padding: 0.8rem 1.1rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 480px;
}

.flash.success { background: #0d2d1a; border: 1px solid #1a5c34; color: #4ade80; }
.flash.error   { background: #2d0d0d; border: 1px solid #5c1a1a; color: #f87171; }
.flash.info    { background: #0d1e2d; border: 1px solid #1a3a5c; color: #60a5fa; }

.manage-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.official-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.official-row:last-child { border-bottom: none; }

.badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #1a1a2e;
    color: #818cf8;
}

.unsubscribe-link {
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.unsubscribe-link:hover { color: #f87171; }

footer {
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}
