* {

   box-sizing: border-box;
}

:root {
    color-scheme: light dark;
}

html {
    background: #eef3f9;
}

@media (prefers-color-scheme: dark) {
    html {
        background: #09111f;
    }
}

/* =========================
   GREEN THEME
   ========================= */
:root {
    --bg: #eef3f9;
    --bg-accent: #dfeadf;
    --card: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --text: #172033;
    --muted: #667085;
    --border: #d8e0ec;
    --primary: #1f6f43;
    --primary-hover: #185c37;
    --secondary: #0f172a;
    --success: #15803d;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
    --radius: 18px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09111f;
        --bg-accent: #102417;
        --card: rgba(17, 24, 39, 0.88);
        --card-solid: #111827;
        --text: #e8eef8;
        --muted: #9aa9bf;
        --border: #243247;
        --primary: #3fa86a;
        --primary-hover: #2f8e58;
        --secondary: #e5edf7;
        --success: #22c55e;
        --danger: #ef4444;
        --warning: #f59e0b;
        --shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
    }
}
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #dce8e3;
    background-image:
        radial-gradient(circle at top left, rgba(31, 111, 67, 0.42), transparent 28%),
        radial-gradient(circle at top right, rgba(212, 167, 44, 0.16), transparent 24%),
        linear-gradient(180deg, #9fc8ad 0%, #c7dbcd 260px, #dce8e3 520px);
    background-repeat: no-repeat;
    background-size: 100% 520px;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #07111f;
        background-image:
            radial-gradient(circle at top left, rgba(63, 168, 106, 0.30), transparent 30%),
            radial-gradient(circle at top right, rgba(212, 167, 44, 0.12), transparent 24%),
            linear-gradient(180deg, #082114 0%, #06150f 280px, #07111f 560px);
        background-repeat: no-repeat;
        background-size: 100% 560px;
    }
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-header {
/* 
    position: sticky;
    top: 0;
 */
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.70);
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(9, 17, 31, 0.72);
    }
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    margin: 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-mark img {
    display: block;
    max-width: 80px;
    height: auto;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.88rem;
    color: var(--muted);
}

.mobile-menu-toggle {
    display: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.btn-save,
.btn-save:link,
.btn-save:visited {
    background: #d4a72c;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    border: none;
}

.btn-save:hover,
.btn-save:active {
    background: #b88d1f;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}

.nav a.nav-logout,
.nav a.nav-logout:link,
.nav a.nav-logout:visited,
.nav a.nav-logout:hover,
.nav a.nav-logout:active {
    background: #7a4b22;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.nav a.nav-logout:hover {
    background: #613a1a;
}

.nav a,
.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active {
    text-decoration: none;
    background: var(--primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.18s ease;
    box-shadow: var(--shadow);
}

.nav a:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.page-shell {
    padding-top: 18px;
    padding-bottom: 28px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card p {
    margin-top: 0;
}

.card h1:last-child,
.card h2:last-child,
.card h3:last-child,
.card h4:last-child,
.card p:last-child {
    margin-bottom: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* =========================
   GENERAL BUTTONS
   ========================= */

.btn,
.btn:link,
.btn:visited,
button.btn,
input[type="submit"],
button[type="submit"] {
    appearance: none;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

/*
   Do not target every button:hover globally.
   Some buttons are tabs, toggles, print buttons, icon buttons, etc.
   Primary hover should only apply to real site buttons.
*/
.btn:hover,
.btn:active,
button.btn:hover,
button.btn:active,
button[type="submit"]:hover,
button[type="submit"]:active,
input[type="submit"]:hover,
input[type="submit"]:active {
    background: var(--primary-hover);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-1px);
}

/* Success button */
.btn-success,
.btn-success:link,
.btn-success:visited {
    background: var(--success);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn-success:hover,
button.btn-success:hover {
    background: #116c33;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Danger button */
.btn-danger,
.btn-danger:link,
.btn-danger:visited {
    background: var(--danger);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn-danger:hover,
button.btn-danger:hover {
    background: #b91c1c;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Warning button */
.btn-warning,
.btn-warning:link,
.btn-warning:visited {
    background: var(--warning);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn-warning:hover,
button.btn-warning:hover {
    background: #b45309;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* =========================
   NEUTRAL / TAB / TOGGLE BUTTONS
   Use this class for buttons that should NOT become green.
   ========================= */

.btn-neutral,
.btn-neutral:link,
.btn-neutral:visited,
button.btn-neutral {
    background: var(--card-solid);
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-neutral:hover,
button.btn-neutral:hover {
    background: rgba(31, 111, 67, 0.08);
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    border-color: var(--border);
    transform: translateY(-1px);
}


.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-row form {
    margin: 0;
}

/* =========================
   COMMISSIONER DASHBOARD TOOLS
   ========================= */

.commissioner-tools-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.commissioner-tools-row .btn,
.commissioner-tools-row .btn:link,
.commissioner-tools-row .btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .commissioner-tools-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .commissioner-tools-row .btn,
    .commissioner-tools-row .btn:link,
    .commissioner-tools-row .btn:visited {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.muted {
    color: var(--muted);
}

.form-card h1 {
    margin-bottom: 8px;
}

.form-card p {
    margin-top: 0;
    margin-bottom: 18px;
}

.form-card {
    max-width: 560px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 16px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 95%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-solid);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(31, 111, 67, 0.18);
    border-color: var(--primary);
}

.message,
.error {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.message {
    background: rgba(21, 128, 61, 0.12);
    border: 1px solid rgba(21, 128, 61, 0.28);
    color: var(--success);
}

.error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.28);
    color: var(--danger);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.table-wrap form input[type="hidden"] {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

th {
    background: rgba(31, 111, 67, 0.08);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tr:last-child td {
    
     border-bottom: 1px solid var(--border);
}



.status-pill {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-active {
    background: rgba(21, 128, 61, 0.14);
    color: var(--success);
}

.status-inactive {
    background: rgba(220, 38, 38, 0.14);
    color: var(--danger);
}

.status-paid {
    background: rgba(21, 128, 61, 0.14);
    color: var(--success);
}

.status-unpaid {
    background: rgba(217, 119, 6, 0.14);
    color: var(--warning);
}

.status-pill.status-closed {
    background: rgba(220, 38, 38, 0.14);
    color: var(--danger);
}

.status-pill.status-neutral {
    background: rgba(100, 116, 139, 0.14);
    color: var(--muted);
}

.site-footer {
  
    padding: 18px 0 26px;
    color: var(--muted);
}

.footer-inner {
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3,
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 64px;
    }

    .brand {
        min-width: 0;
        gap: 10px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        margin: 0;
    }

    .brand-mark img {
        width: 58px;
        max-width: 58px;
        height: auto;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-title {
        font-size: 0.98rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 190px;
    }

    .brand-subtitle {
        font-size: 0.78rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        font-size: 0.86rem;
        font-weight: 800;
        box-shadow: var(--shadow);
        white-space: nowrap;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
    }

    .nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 8px;
    }

    .nav.is-open {
        display: grid;
    }

    .nav a,
    .nav a:link,
    .nav a:visited,
    .nav a:hover,
    .nav a:active {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.92rem;
        text-align: center;
    }

    .page-shell {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .btn,
    button,
    input[type="submit"] {
        min-height: 44px;
    }
}

/* =========================
   DASHBOARD NICKNAME WELCOME
   ========================= */

.page-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.dashboard-welcome-text h1 {
    margin-top: 0;
}

.dashboard-welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dashboard-welcome-row h1 {
    margin: 0;
}

.dashboard-account-link {
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-account-link:hover {
    transform: rotate(20deg);
}

@media (max-width: 700px) {
    .dashboard-account-link {
        font-size: 22px;
    }
}
/* =========================
   MAKE PICKS (GAME CARDS)
   ========================= */

.make-picks-card {
    background: var(--card-solid);
    backdrop-filter: none;
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.pick-game-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
    transition: 0.18s ease;
    backdrop-filter: none;
}


@media (prefers-color-scheme: dark) {
    .make-picks-card,
    .pick-game-card {
        background: var(--card-solid);
        backdrop-filter: none;
    }
}







/* Keep My Picks wrapper/top cards matching Dashboard/View All Picks transparency */
body.make-picks-page .card {
    background: var(--card);
    backdrop-filter: none;
}

.pick-game-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.pick-game-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.pick-game-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.team-pick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.team-choice {
    position: relative;
    min-width: 0;
}

.team-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.team-choice-label {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    min-height: 86px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--card-solid);
    cursor: pointer;
    transition: 0.18s ease;
}

.team-choice-label:hover {
    border-color: var(--primary);
    background: rgba(31, 111, 67, 0.06);
}

.team-choice input[type="radio"]:checked + .team-choice-label {
    border-color: var(--success);
    background: rgba(21, 128, 61, 0.10);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18);
}

/* Locked team picks - closed/finalized rounds */
.team-choice input[type="radio"]:disabled + .team-choice-label,
.team-choice input[type="radio"]:disabled + .team-choice-label *,
.team-choice input[type="radio"]:disabled + .team-choice-label:hover,
.team-choice input[type="radio"]:disabled + .team-choice-label:hover * {
    cursor: not-allowed;
}

/* Stop locked cards from showing the normal hover effect */
.team-choice input[type="radio"]:disabled + .team-choice-label:hover {
    border-color: var(--border);
    background: var(--card-solid);
}

/* Fade locked teams that were not selected */
.team-choice input[type="radio"]:disabled:not(:checked) + .team-choice-label {
    opacity: 0.72;
}

/* Keep the selected team strong and readable when locked */
.team-choice input[type="radio"]:disabled:checked + .team-choice-label {
    opacity: 1;
}
.team-logo-wrap {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
}

.team-logo-wrap img {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
}

.team-name {
    min-width: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.team-abbr {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.pick-check {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: transparent;
    transition: 0.18s ease;
}

.team-choice input[type="radio"]:checked + .team-choice-label .pick-check {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.confidence-row {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.confidence-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .picks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .pick-game-card {
        padding: 14px;
    }

    .pick-game-title {
        font-size: 18px;
    }

    .team-pick-grid {
        grid-template-columns: 1fr;
    }

    .team-choice-label {
        grid-template-columns: 52px minmax(0, 1fr) 36px;
    }
}

/* =========================
   DASHBOARD PICK TRENDS ROW
   ========================= */

.pick-trends-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pick-trend-box {
    min-width: 0;
    text-align: center;
}

.fun-team-value {
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.15;
}

.fun-team-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fun-team-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.fun-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
}

.fun-team-label {
    font-weight: 900;
    line-height: 1;
}

.fun-team-empty {
    color: var(--muted);
}

@media (max-width: 900px) {
    .pick-trends-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pick-trends-row {
        grid-template-columns: 1fr;
    }
}










/* =========================
   CONFIDENCE SELECT VISIBILITY
   ========================= */

.confidence-select {
    font-weight: 800;
    border: 2px solid var(--border);
    background: var(--card-solid);
    color: var(--text);
}

.confidence-select option {
    font-weight: 700;
}

.confidence-select option:disabled {
    color: #b91c1c;
    background: #fee2e2;
    font-weight: 900;
}

.confidence-has-value {
    border-color: var(--success);
    background: rgba(21, 128, 61, 0.10);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.16);
}

body.dark-mode .confidence-select {
    background: var(--card-solid);
    color: var(--text);
}

body.dark-mode .confidence-select option:disabled {
    color: #fecaca;
    background: #7f1d1d;
}

body.dark-mode .confidence-has-value {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* =========================
   MAKE PICKS - DAY GROUPS
   ========================= */

/* =========================
   CONFIDENCE POINTS
   Desktop: button bar
   Mobile: stepper
   Football theme
   ========================= */

.confidence-control {
    display: grid;
    gap: 8px;
    width: 100%;
    justify-items: center;
    text-align: center;
}

.confidence-control label {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text);
}

.confidence-point-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Available = football leather brown with white text */
.confidence-point-btn,
.confidence-point-btn.available,
.confidence-point-bar button.confidence-point-btn:not(.selected):not(.used):not(:disabled) {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    border-radius: 999px;
    border: 2px solid #5c2e0d !important;
    background: #8b4513 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    cursor: pointer;
    transition: 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    text-shadow: none !important;
    box-sizing: border-box;
    touch-action: manipulation;
}

.confidence-point-btn:hover:not(:disabled):not(.used):not(.selected) {
    transform: translateY(-1px);
    background: #6f3710 !important;
    border-color: #4a250b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Selected = field green */
.confidence-point-btn.selected,
.confidence-point-bar button.confidence-point-btn.selected {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25) !important;
}

/* Used = grayed out */
.confidence-point-btn.used,
.confidence-point-btn:disabled.used,
.confidence-point-bar button.confidence-point-btn.used,
.confidence-point-bar button.confidence-point-btn:disabled.used {
    background: #6b7280 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
   
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Disabled but not used */
.confidence-point-btn:disabled:not(.used),
.confidence-point-bar button.confidence-point-btn:disabled:not(.used) {
    background: #9ca3af !important;
    border-color: #6b7280 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.confidence-stepper {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* Mobile stepper = football leather brown */
.confidence-step-btn,
.confidence-step-display {
    border-radius: 999px;
    border: 2px solid #5c2e0d !important;
    background: #8b4513 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 900;
    cursor: pointer;
    text-shadow: none !important;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.confidence-step-btn {
    width: 46px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    font-size: 1.25rem;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

.confidence-step-btn:hover:not(:disabled) {
    background: #6f3710 !important;
    border-color: #4a250b !important;
}

.confidence-step-display {
    min-width: 78px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 18px !important;
    font-size: 1.15rem;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

/* Chosen mobile value = green */
.confidence-step-display.has-value {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22) !important;
}

.confidence-step-btn:disabled,
.confidence-step-display:disabled {
    background: #6b7280 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
}

.confidence-mini-help {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
}

.confidence-mini-help span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.confidence-help-available::before,
.confidence-help-selected::before,
.confidence-help-used::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

.confidence-help-available::before {
    background: #8b4513;
    border: 1px solid #5c2e0d;
}

.confidence-help-selected::before {
    background: #16a34a;
    border: 1px solid #15803d;
}

.confidence-help-used::before {
    background: #6b7280;
    border: 1px solid #4b5563;
}

@media (prefers-color-scheme: dark) {
    .confidence-point-btn,
    .confidence-point-btn.available,
    .confidence-step-btn,
    .confidence-step-display,
    .confidence-point-bar button.confidence-point-btn:not(.selected):not(.used):not(:disabled) {
        background: #8b4513 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: #c47a3a !important;
    }

    .confidence-point-btn:hover:not(:disabled):not(.used):not(.selected),
    .confidence-step-btn:hover:not(:disabled) {
        background: #6f3710 !important;
        border-color: #d19a66 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .confidence-point-btn.selected,
    .confidence-step-display.has-value {
        background: #22c55e !important;
        border-color: #16a34a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .confidence-point-btn.used,
    .confidence-point-btn:disabled.used,
    .confidence-step-btn:disabled,
    .confidence-step-display:disabled {
        background: #4b5563 !important;
        border-color: #6b7280 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* Mobile: use larger tap targets and prevent accidental double-tap zoom */
@media (max-width: 700px) {
    .confidence-desktop-bar {
        display: none;
    }

    .confidence-mobile-stepper {
        display: flex;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .confidence-control,
    .confidence-stepper,
    .confidence-step-btn,
    .confidence-step-display {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .confidence-step-btn {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        padding: 0 !important;
        font-size: 1.5rem;
        line-height: 1 !important;
    }

    .confidence-step-display {
        min-width: 104px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        padding: 0 18px !important;
        font-size: 1.3rem;
        line-height: 1 !important;
    }

    .confidence-mini-help {
        display: none;
    }

    .confidence-control {
        gap: 7px;
    }
}

@media (min-width: 701px) {
    .confidence-desktop-bar {
        display: flex;
    }

    .confidence-mobile-stepper {
        display: none;
    }
}

/* =========================
   CONFIDENCE HEADER
   One centered row:
   Less confident ← line | title | line → Most confident
   ========================= */

.confidence-header {
    width: 80%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.confidence-header-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}

.confidence-header-side {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--muted);
}

.confidence-header-left {
    justify-content: flex-end;
}

.confidence-header-right {
    justify-content: flex-start;
}

.confidence-header-label {
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.confidence-header-line {
    position: relative;
    flex: 1 1 auto;
    height: 0;
    min-width: 50px;
    border-top: 2px solid currentColor;
    opacity: 0.25;
}

/* Left arrow: label at far left, arrow points left */
.confidence-header-left .confidence-header-label {
    margin-right: 12px;
}

.confidence-header-left .confidence-header-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: -7.8px;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* Right arrow: arrow points right, label at far right */
.confidence-header-right .confidence-header-label {
    margin-left: 12px;
}

.confidence-header-right .confidence-header-line::after {
    content: "";
    position: absolute;
    right: 0;
    top: -7.8px;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Mobile: keep same desktop-style layout, just tighter */
@media (max-width: 700px) {
    .confidence-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .confidence-header-title {
        order: 0;
        font-size: .8rem;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    .confidence-header-side {
        width: 100%;
        max-width: none;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .confidence-header-left {
        order: 0;
        justify-content: flex-end;
    }

    .confidence-header-right {
        order: 0;
        justify-content: flex-start;
    }

    .confidence-header-label {
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .confidence-header-line {
        flex: 0 1 80px;
        width: 80px;
        min-width: 44px;
        max-width: 80px;
    }
}

/* Smaller phones */
@media (max-width: 520px) {
    .confidence-header {
        gap: 8px;
    }

    .confidence-header-title {
        font-size: 0.6rem;
    }

    .confidence-header-side {
        gap: 1px;
    }

    .confidence-header-label {
        font-size: 0.68rem;
    }

    .confidence-header-line {
        flex-basis: 54px;
        width: 54px;
        min-width: 36px;
        max-width: 54px;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .confidence-header {
        gap: 6px;
    }

    .confidence-header-title {
        font-size: 0.58rem;
    }

    .confidence-header-label {
        font-size: 0.62rem;
    }

    .confidence-header-line {
        flex-basis: 42px;
        width: 42px;
        min-width: 28px;
        max-width: 42px;
    }
}

/* end of confidence */

.picks-grid-wrap {
    margin-top: 14px;
    display: grid;
    gap: 24px;
}

.game-day-group {
    display: grid;
    gap: 14px;
}

.game-day-heading {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
    .game-day-heading {
        color: #fff;
    }
}

.meta-value {
    line-height: 1.35;
    font-weight: 600;
}

.confidence-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.confidence-inline-row label {
    margin: 0;
    white-space: nowrap;
}

.confidence-inline-row select.confidence-small {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 8px 10px;
    text-align: center;
}

.save-picks-row {
    margin-top: 26px;
    padding-top: 8px;
}

.save-picks-bar {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Tie Breaker */

.confidence-with-tiebreaker {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 18px;
    width: 85%;
}

.confidence-with-tiebreaker .confidence-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.confidence-with-tiebreaker .confidence-control select.confidence-small {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.tiebreaker-inline-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 6px;
    min-width: 100px;
    text-align: center;
}

.tiebreaker-score-input {
    padding: 8px 10px;
    width: 80px;
    max-width: 80px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.tiebreaker-help {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 600px) {
    .confidence-with-tiebreaker {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .tiebreaker-inline-control {
        justify-self: center;
        width: 100%;
    }

    .tiebreaker-score-input {
        width: 100%;
        max-width: 100px;
    }
}

/* =========================
   MANAGE WEEKS
   ========================= */

.manage-weeks-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.manage-weeks-header h1 {
    margin-bottom: 6px;
}

.manage-weeks-season-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    font-weight: 800;
    white-space: nowrap;
}

.manage-weeks-create-head,
.manage-weeks-list-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.manage-weeks-create-head h3,
.manage-weeks-list-head h3 {
    margin: 0;
}

.create-week-wrap {
    display: none;
    margin-top: 16px;
}

.create-week-wrap.is-open {
    display: block;
}

.create-week-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 230px auto;
    gap: 12px;
    align-items: end;
}

.week-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.week-summary-box {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
}

.week-summary-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.week-summary-value {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 900;
}

.weeks-list {
    display: grid;
    gap: 12px;
}

.week-row-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.week-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.week-title-line {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.week-name {
    font-size: 17px;
    font-weight: 900;
}

.week-type {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.week-meta-line {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.week-status-area {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.week-status-stack {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.week-status-note {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
    max-width: 260px;
}

.week-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid transparent;
}

.week-pill-open {
    background: rgba(31, 157, 73, 0.14);
    color: #14783a;
    border-color: rgba(31, 157, 73, 0.25);
}

.week-pill-closed {
    background: rgba(217, 119, 6, 0.14);
    color: #a35403;
    border-color: rgba(217, 119, 6, 0.25);
}

.week-pill-final {
    background: rgba(79, 111, 143, 0.15);
    color: #37516e;
    border-color: rgba(79, 111, 143, 0.25);
}

.week-edit-row {
    display: grid;
    grid-template-columns: minmax(220px, 485px) auto minmax(260px, 1fr);
    gap: 10px;
    align-items: end;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.week-edit-row label {
    font-size: 12px;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.week-edit-control {
    display: grid;
    gap: 5px;
}

.week-edit-control form {
    margin: 0;
}

.week-edit-control input[type="datetime-local"] {
    width: 90%;
    max-width: 455px;
}

.week-edit-row > .btn {
    justify-self: start;
    min-width: 150px;
}

.week-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.week-actions form {
    margin: 0;
}

.week-action-btn {
    min-width: 120px;
    min-height: 44px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.week-action-btn:disabled,
.week-action-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.week-final-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    align-self: center;
}

@media (prefers-color-scheme: dark) {
    .manage-weeks-season-pill,
    .week-summary-box {
        background: rgba(17, 24, 39, 0.76);
    }

    .week-pill-open {
        color: #4ade80;
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(74, 222, 128, 0.24);
    }

    .week-pill-closed {
        color: #fbbf24;
        background: rgba(245, 158, 11, 0.12);
        border-color: rgba(251, 191, 36, 0.24);
    }

    .week-pill-final {
        color: #93c5fd;
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(147, 197, 253, 0.24);
    }
}

@media (max-width: 900px) {
    .create-week-grid {
        grid-template-columns: 1fr 1fr;
    }

    .create-week-grid .button-row {
        grid-column: 1 / -1;
    }

    .week-row-main {
        grid-template-columns: 1fr;
    }

    .week-status-area,
    .week-status-stack {
        justify-content: flex-start;
        justify-items: start;
    }

    .week-status-note {
        text-align: left;
        max-width: none;
    }

    .week-edit-row {
        grid-template-columns: 1fr;
    }

    .week-actions {
        justify-content: stretch;
    }

    .week-actions .btn,
    .week-actions button,
    .week-action-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .week-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .create-week-grid {
        grid-template-columns: 1fr;
    }

    .manage-weeks-header,
    .manage-weeks-create-head,
    .manage-weeks-list-head {
        align-items: stretch;
    }

    .manage-weeks-create-head .btn,
    .manage-weeks-list-head .btn {
        width: 100%;
    }

    .week-row-card {
        padding: 12px;
        border-radius: 16px;
    }

    .week-title-line {
        align-items: flex-start;
    }

    .week-name {
        width: 100%;
    }

    .week-meta-line {
        display: grid;
        gap: 6px;
    }
}
/* =========================
  ADMIN ALLOW REGISTRATION
   ========================= */

.status-open {
    background: #dff7e8;
    color: #157347;
    border: 1px solid #9fd5b3;
}

.status-closed {
    background: #fde2e2;
    color: #b42318;
    border: 1px solid #f5b5b5;
}

body.dark-mode .status-open {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.35);
}

body.dark-mode .status-closed {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.35);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.toggle-label {
    font-weight: 600;
}

.switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.switch-text-off {
    color: #b42318;
}

.switch-text-on {
    color: #157347;
}

.switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
    margin: 0;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #b42318;
    border-radius: 999px;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .slider {
    background: #157347;
}

.switch input:checked + .slider::before {
    transform: translateX(28px);
}

.switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(21, 115, 71, 0.18);
}

.registration-card {
    max-width: 420px;
}

.registration-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.registration-toggle-form {
    display: flex;
    align-items: center;
    gap: 14px;
}

.simple-toggle {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 32px;
}

.simple-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.simple-toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #b42318;
    border-radius: 999px;
    transition: 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.simple-toggle-slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.simple-toggle input:checked + .simple-toggle-slider {
    background: #157347;
}

.simple-toggle input:checked + .simple-toggle-slider::before {
    transform: translateX(26px);
}

body.dark-mode .simple-toggle-slider {
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .simple-toggle input:checked + .simple-toggle-slider {
    background: #16a34a;
}

/* =========================
   GENERAL GAME / ADMIN UI
   ========================= */

.matchup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.matchup-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.matchup-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.matchup-at {
    font-weight: bold;
    opacity: 0.8;
}

.game-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.game-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.game-status-pill.final {
    background: rgba(255,179,71,0.14);
    border-color: rgba(255,179,71,0.35);
    color: #ffcf7a;
}

.game-status-pill.scheduled {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}

.week-final-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(50,205,50,0.14);
    border: 1px solid rgba(50,205,50,0.35);
    color: green;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.admin-result-hidden {
    display: none;
}

.admin-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: 0.2s ease;
    min-height: 72px;
    user-select: none;
}

.admin-result-card:hover {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
}

.admin-result-card.active {
    border-color: #ffb347;
    background: rgba(255,179,71,0.16);
    box-shadow: 0 0 0 1px rgba(255,179,71,0.18) inset;
}

.admin-result-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-result-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
}

.admin-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-result-name {
    font-weight: 700;
    line-height: 1.2;
}

.admin-result-sub {
    font-size: 13px;
    opacity: 0.75;
}

.admin-tie-card {
    justify-content: center;
    text-align: center;
}

.admin-tie-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.admin-game-card {
    margin-bottom: 16px;
}

.admin-final-note {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.75;
}

.action-row {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.delete-forms {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.week-note {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.readonly-note {
    margin-top: 10px;
    font-size: 14px;
    color: green;
}

.manage-games-add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.manage-games-add-header h3 {
    margin: 0;
}

.add-game-wrap {
    margin-top: 16px;
}

.add-game-wrap.is-collapsed {
    display: none;
}

@media (max-width: 900px) {
    .admin-result-grid {
        grid-template-columns: 1fr;
    }

    .deadline-edit-form {
        flex-direction: column;
        align-items: stretch;
    }

    .deadline-edit-form input[type="datetime-local"] {
        max-width: 100%;
    }

    .deadline-edit-form .btn {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .centered-week-title {
        flex-direction: column;
        gap: 6px;
    }

    .week-row-buttons {
        flex-direction: column;
        align-items: center;
    }

    .week-button-form,
    .week-button-placeholder,
    .week-action-btn,
    .week-manage-btn {
        width: 100%;
        max-width: 320px;
    }
}

.team-record {
    font-size: 0.85em;
    color: #888;
    margin-left: 6px;
    font-weight: 500;
}

body.dark-mode .team-record {
    color: #aaa;
}

.team-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* =========================
   Make picks week selection
   ========================= */

.week-select-narrow {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
}

.week-tools {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.week-select-wrap {
    display: flex;
    flex-direction: column;
    margin: 10px 0 0 0;
}

/* =========================
   PRINTER BUTTON MAKE PICK
   ========================= */

.print-btn {
    margin-left: 4px;
    align-self: flex-end;
    padding: 10px 12px;
    min-width: 44px;
    line-height: 1;
    background: #f8f8f8;
    color: var(--text);
    border: 1px solid var(--border);
}

.print-btn:hover {
    background: #dfeadf;
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    .print-btn {
        background: #1f2937;
        color: #e8eef8;
        border: 1px solid var(--border);
    }

    .print-btn:hover {
        background: #243247;
        color: #ffffff;
    }
}

/* =========================
   PRINTER VERSION MAKE_PICKS
   ========================= */

.print-only {
    display: none;
}

@media print {
    @page {
        size: portrait;
        margin: 0.4in;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11px;
        line-height: 1.2;
    }

    body.make-picks-page *,
    body.make-picks-print * {
        visibility: hidden;
    }

    body.make-picks-page .print-sheet,
    body.make-picks-page .print-sheet *,
    body.make-picks-print .print-sheet,
    body.make-picks-print .print-sheet * {
        visibility: visible;
    }

    .print-sheet {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .site-header,
    .site-footer,
    .no-print,
    .week-tools,
    .message,
    .error,
    .make-picks-top,
    .make-picks-meta,
    .locked-note,
    .save-picks-row,
    .picks-grid-wrap,
    .game-day-group,
    .picks-grid,
    .pick-game-card,
    .week-finalized-summary,
    .finalized-points-box {
        display: none !important;
    }

    .card {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-header {
        margin-bottom: 10px;
        border-bottom: 2px solid #000;
        padding-bottom: 6px;
    }

    .print-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .print-deadline,
    .print-scoring {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .print-day-group {
        margin-bottom: 10px;
        break-inside: avoid;
    }

    .print-day-heading {
        font-size: 13px;
        font-weight: 700;
        padding: 3px 6px;
        border: 0 solid #000;
        border-bottom: 0;
        background: #f3f3f3 !important;
    }

    .print-picks-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        border: 1px solid #000;
    }

    .print-picks-table th,
    .print-picks-table td {
        border: 1px solid #000;
        padding: 5px 6px;
        vertical-align: middle;
        font-size: 10px;
    }

    .print-picks-table th {
        font-size: 10px;
        font-weight: 700;
        text-align: left;
    }

    .print-picks-table th:nth-child(1),
    .print-picks-table td:nth-child(1) {
        width: 29%;
    }

    .print-picks-table th:nth-child(2),
    .print-picks-table td:nth-child(2) {
        width: 4%;
        text-align: center;
    }

    .print-picks-table th:nth-child(3),
    .print-picks-table td:nth-child(3) {
        width: 29%;
    }

    .print-picks-table th:nth-child(4),
    .print-picks-table td:nth-child(4) {
        width: 16%;
    }

    .print-picks-table th:nth-child(5),
    .print-picks-table td:nth-child(5) {
        width: 16%;
    }

    .print-picks-table th:nth-child(6),
    .print-picks-table td:nth-child(6) {
        width: 6%;
        text-align: center;
    }

    .print-team {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .print-team img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex: 0 0 20px;
    }

    .print-team-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .print-team-name {
        font-weight: 700;
        font-size: 11px;
        line-height: 1.1;
    }

    .print-team-record {
        font-size: 9px;
        line-height: 1.05;
    }

    .print-at,
    .print-points {
        text-align: center;
        font-weight: 700;
        font-size: 11px;
    }

    .print-time,
    .print-pick {
        font-size: 10px;
        line-height: 1.1;
    }

    .print-picks-table tbody tr:last-child td {
        border-bottom: 1px solid #000 !important;
    }

    a,
    a:visited {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* =========================
   VIEW ALL PICKS
   ========================= */

.all-picks-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.all-picks-wrap {
    width: 100%;
    overflow-x: visible;
}

.all-picks-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.84rem;
}

.all-picks-table th,
.all-picks-table td {
    padding: 4px 2px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.all-picks-table tbody tr:last-child td,
.all-picks-table tbody tr:last-child th {
    border-bottom: 1px solid var(--border);
}

.all-picks-table tbody tr:last-child .username-col {
    border-bottom: 1px solid var(--border);
}

.username-col {
    min-width: 102px;
    width: 102px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--card-solid);
    padding: 6px 3px;
}

.day-header-row .username-col {
    border-right: 2px solid var(--border);
    z-index: 3;
}

.day-header-row .day-group-heading {
    padding: 0 !important;
    height: 58px;
    min-width: 34px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 2px solid var(--border);
    background: rgba(31, 111, 67, 0.08);
    position: relative;
    overflow: hidden;
}

.day-group-heading-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    padding: 0 6px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-transform: uppercase;
    text-align: center;
    writing-mode: horizontal-tb;
    transform: none;
    -webkit-writing-mode: horizontal-tb;
    -webkit-transform: none;
}

/* Regular-season narrow day groups only */
.day-header-row .day-group-heading.day-group-heading-narrow {
    height: 124px;
    min-width: 42px;
    width: 42px;
}

.day-group-heading-text.day-group-heading-text-rotated {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    -webkit-writing-mode: vertical-rl;
    -webkit-transform: rotate(180deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 124px;
    padding: 3px 0;
    white-space: nowrap;
    font-size: 0.68rem;
    line-height: 1;
}

/* Playoff / smaller-round safety: anything not marked narrow stays horizontal */
.day-header-row .day-group-heading:not(.day-group-heading-narrow) .day-group-heading-text {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    -webkit-writing-mode: horizontal-tb !important;
    -webkit-transform: none !important;
    width: 100% !important;
    height: 58px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.all-picks-table thead tr:nth-child(2) th {
    border-bottom: 2px solid var(--border);
}

.matchup-header {
    min-width: 46px;
    width: 46px;
    vertical-align: top;
    background: rgba(31, 111, 67, 0.04);
    padding: 3px 1px;
}

.matchup-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.matchup-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 600;
    font-size: 0.74rem;
    line-height: 1.02;
}

.matchup-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 1px 0;
}

.pick-cell {
    min-width: 46px;
    width: 46px;
    background: transparent !important;
    padding: 3px 1px;
}

.picked-only-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.picked-only-abbr {
    font-weight: 600;
    line-height: 1;
    font-size: 0.76rem;
    color: inherit;
}

.pick-confidence {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}

.pick-check-small {
    display: inline-block;
    margin-right: 1px;
    font-size: 0.75em;
    vertical-align: middle;
    font-weight: 700;
    color: inherit;
}

.pick-cell-correct {
    background: transparent !important;
}

.pick-cell-incorrect {
    background: transparent !important;
}

.pick-cell-correct .picked-only-abbr,
.pick-cell-correct .pick-confidence,
.pick-cell-correct .pick-check-small {
    color: #2fbf71;
}

.pick-cell-incorrect .picked-only-abbr,
.pick-cell-incorrect .pick-confidence,
.pick-cell-incorrect .pick-check-small {
    color: #f0b27a;
}

.pick-logo {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.pick-empty {
    opacity: 0.5;
}

.player-name-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
    line-height: 1.02;
}

.player-name-text {
    font-size: 0.84rem;
    font-weight: 400;
}

.player-total-points {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.8;
}

.page-print-title {
    display: none;
}

.card .print-note {
    margin-top: 10px;
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 1024px) {
    .all-picks-wrap {
        overflow-x: auto;
    }

    .all-picks-table {
        width: auto;
        min-width: max-content;
    }

    .matchup-header,
    .pick-cell {
        min-width: 52px;
        width: 52px;
    }
}

/* =========================
   PRINTER VERSION VIEW_ALL_PICKS
   ========================= */

@media print {
    .all-picks-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .page-print-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .all-picks-table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    .all-picks-table col.col-player {
        width: 100px !important;
    }

    .all-picks-table col.col-game {
        width: auto !important;
    }

    .matchup-header,
    .pick-cell {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 2px 0 !important;
        box-sizing: border-box !important;
    }

    .day-header-row .day-group-heading {
        height: 42px !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .day-header-row .day-group-heading.day-group-heading-narrow {
        height: 90px !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .day-group-heading-text {
        height: 42px !important;
        width: 100% !important;
        font-size: 0.62rem !important;
        padding: 0 2px !important;
    }

    .day-group-heading-text.day-group-heading-text-rotated {
        height: 90px !important;
        width: 100% !important;
    }

    .day-header-row .day-group-heading:not(.day-group-heading-narrow) .day-group-heading-text {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        -webkit-writing-mode: horizontal-tb !important;
        -webkit-transform: none !important;
        height: 42px !important;
        width: 100% !important;
        white-space: nowrap !important;
    }

    .pick-cell-correct .picked-only-abbr,
    .pick-cell-correct .pick-confidence,
    .pick-cell-correct .pick-check-small {
        color: #355e3b !important;
    }

    .pick-cell-incorrect .picked-only-abbr,
    .pick-cell-incorrect .pick-confidence,
    .pick-cell-incorrect .pick-check-small {
        color: #d97706 !important;
    }

    .pick-empty {
        opacity: 1 !important;
        font-size: 0.64rem !important;
    }

    a,
    a:visited {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* =========================
   DASHBOARD ROUND CARDS
   ========================= */

.round-title-divider {
    color: var(--muted);
    font-weight: 700;
}

.dashboard-rounds-wrap {
    display: grid !important;
    grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr) !important;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.dashboard-round-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    flex: none !important;
}

.dashboard-rounds-wrap > .dashboard-round-card:first-child {
    grid-column: 1;
}

.dashboard-rounds-wrap > .dashboard-round-card:nth-child(2) {
    grid-column: 2;
}

.dashboard-round-simple {
    margin-top: 18px;
}

.dashboard-round-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 3px 0;
}

.dashboard-round-line-inline {
    justify-content: flex-start;
}

.dashboard-round-text {
    max-width: 100%;
}

.dashboard-round-label {
    font-weight: 700;
    color: var(--text);
}

.dashboard-round-value {
    text-align: right;
    font-weight: 400;
}

.dashboard-rounds-wrap > .dashboard-round-card:first-child .button-row {
    justify-content: flex-start;
}

.dashboard-rounds-wrap > .dashboard-round-card:first-child .btn {
    width: auto;
    min-width: 0;
    padding: 10px 18px;
}

.dashboard-finalized-round-card .dashboard-climb-up,
.dashboard-round-text .dashboard-climb-up {
    color: var(--success) !important;
    -webkit-text-fill-color: var(--success) !important;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-current-round-card .button-row {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .dashboard-rounds-wrap {
        grid-template-columns: 1fr !important;
    }

    .dashboard-rounds-wrap > .dashboard-round-card:first-child,
    .dashboard-rounds-wrap > .dashboard-round-card:nth-child(2) {
        grid-column: auto;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================
   DASHBOARD STANDINGS
   ========================= */

.dashboard-standings-grid {
    margin-top: 20px;
}

.standings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.standings-card {
    
    min-width: 0;
    background: var(--card-solid);
}

.standings-toolbar {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.standings-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.standings-card:first-child .standings-section-title {
    color: #c08a13;
    text-shadow:
        0 0 6px rgba(255, 225, 130, 0.55),
        0 0 14px rgba(255, 190, 60, 0.32),
        0 0 24px rgba(190, 120, 20, 0.18);
}

@media (prefers-color-scheme: dark) {
    .standings-card:first-child .standings-section-title {
        color: #f3c95a;
        text-shadow:
            0 0 3px rgba(255, 220, 120, 0.28),
            0 0 8px rgba(255, 185, 55, 0.18);
    }
}



.standings-card:last-child .standings-section-title {
    color: #c96f00;
}

.standings-wrap {
    width: 100%;
    overflow-x: hidden;
}

.standings-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.standings-table th,
.standings-table td {
    padding: 10px 6px;
    border: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
}

.standings-table th,
.standings-table th.col-place,
.standings-table th.col-player,
.standings-table th.col-points,
.standings-table th.col-pick-percent,
.standings-table th.col-change {
    background: rgba(97, 58, 26, 0.10);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.standings-table td {
    background: rgba(255, 255, 255, 0.82);
}

.standings-table tbody tr:nth-child(even) td {
    background: rgba(31, 111, 67, 0.02);
}

.standings-name-cell {
    text-align: left !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    white-space: nowrap;
}

.standings-table .col-place {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    white-space: nowrap;
}

.standings-table th.col-place,
.standings-table td.col-place {
    text-align: center !important;
    padding-left: 4px;
    padding-right: 4px;
    font-weight: 600;
}

.standings-table .col-points {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    white-space: nowrap;
}

.standings-table th.col-points,
.standings-table td.col-points {
    font-weight: 600;
}

.standings-table .col-pick-percent {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    white-space: nowrap;
}

.standings-table th.col-pick-percent,
.standings-table td.col-pick-percent {
    text-align: center !important;
    font-weight: 600;
    padding-left: 3px;
    padding-right: 3px;
}

.standings-table .col-player {
    width: auto;
}

.standings-table .col-change {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    white-space: nowrap;
}

/* Season table keeps wider place column for movement arrows */
.standings-table-season .col-player {
    width: calc(100% - 90px - 72px - 72px);
}

/* Weekly table gets narrower place column */
.standings-table-weekly .col-place {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
}

.standings-table-weekly th.col-place,
.standings-table-weekly td.col-place {
    padding-left: 3px;
    padding-right: 3px;
}

.standings-table-weekly .col-player {
    width: calc(100% - 58px - 72px - 72px);
}

.standings-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
}

.standings-mobile-list {
    display: none;
}

.place-number {
    font-weight: 800;
}

.place-movement {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 300;
}

.movement-up {
    color: #1f9d49;
    font-weight: 300;
}

.movement-down {
    color: #d97706;
    font-weight: 300;
}

.movement-flat {
    color: #7b8794;
    font-weight: 400;
}

@media (prefers-color-scheme: dark) {
    .standings-card {
        background: var(--card-solid);
    }

    .standings-card:first-child .standings-section-title {
        color: #f0c75e;
    }

    .standings-card:last-child .standings-section-title {
        color: rgba(156, 87, 0, 0.85);
    }

    .standings-table th,
    .standings-table th.col-place,
    .standings-table th.col-player,
    .standings-table th.col-points,
    .standings-table th.col-pick-percent,
    .standings-table th.col-change {
        background: rgba(97, 58, 26, 0.10);
    }

    .standings-table td {
        background: rgba(17, 24, 39, 0.94);
    }

    .standings-table tbody tr:nth-child(even) td {
        background: rgba(63, 168, 106, 0.04);
    }

    .movement-up {
        color: #4ade80;
    }

    .movement-down {
        color: #f59e0b;
    }

    .movement-flat {
        color: #94a3b8;
    }
}

@media (max-width: 700px) {
    .dashboard-standings-grid {
        margin-top: 16px;
    }

    .standings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .standings-card {
        overflow: hidden;
    }

    .standings-wrap {
        overflow-x: hidden;
    }

    .standings-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 2px;
        font-size: 14px;
    }

    .standings-table .col-place {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
    }

    .standings-table .col-points {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }

    .standings-table .col-pick-percent {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
    }

    .standings-table th.col-pick-percent,
    .standings-table td.col-pick-percent {
        padding-left: 2px;
        padding-right: 2px;
        font-size: 14px;
    }

    .standings-table .col-change {
        width: 74px;
        min-width: 74px;
        max-width: 74px;
    }

    .standings-table-season .col-player {
        width: calc(100% - 78px - 60px - 64px);
    }

    .standings-table-weekly .col-place {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }

    .standings-table-weekly th.col-place,
    .standings-table-weekly td.col-place {
        padding-left: 1px;
        padding-right: 2px;
    }

    .standings-table-weekly .col-player {
        width: calc(100% - 50px - 60px - 64px);
    }

    .standings-name-cell {
        font-size: 14px;
    }

    .place-movement {
        right: 4px;
    }

    .standings-mobile-list,
    .standings-mobile-item,
    .standings-mobile-top,
    .standings-mobile-bottom,
    .standings-mobile-place,
    .standings-mobile-name,
    .standings-mobile-label,
    .standings-mobile-value {
        display: none !important;
    }
}

.standings-toggle-btn {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    padding: 13px 20px !important;
    line-height: 1.1;
}

@media (max-width: 700px) {
    .standings-toggle-btn {
        font-size: 1.05rem !important;
        padding: 12px 16px !important;
    }
}




/* =========================
   ACCOUNT
   ========================= */

.account-card,
.account-details-card {
    margin: 0 auto 20px;
}

.account-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.account-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-form label {
    font-weight: 600;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[readonly],
.account-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cfcfcf;
    box-sizing: border-box;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    color: var(--muted) !important;
    -webkit-text-fill-color: var(--muted) !important;
    opacity: 1 !important;
}

.account-form input[readonly] {
    background: #f3f4f6;
    color: var(--muted);
}

.form-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.form-actions {
    margin-top: 18px;
}

.alert {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.account-details-card {
    margin-top: 18px;
}

.account-details-card h3 {
    margin-bottom: 14px;
}

.account-details-card .summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
    align-items: start;
}

.account-details-card .summary-item {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.account-details-card .summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.2;
    color: var(--muted);
    opacity: 1;
}

.account-details-card .summary-value {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .account-details-card .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }
}

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

@media (max-width: 600px) {
    .account-details-card .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .account-details-card .summary-label {
        font-size: 14px;
    }

    .account-details-card .summary-value {
        font-size: 17px;
        white-space: normal;
    }
}

/* =========================
   INDEX.PHP
   ========================= */

.login-logo-wrap {
    text-align: center;
    margin-bottom: 5px;
}

.login-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* =========================
   RULES & INFORMATION PAGE
   ========================= */

.rules-card {
    width: 100%;
    max-width: 950px;
    min-width: 0;
    margin: 0 auto;
    overflow-x: hidden;
}

.rules-card h1 {
    text-align: center;
    margin-bottom: 16px;
}

.rules-card h2 {
    margin-top: 26px;
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.rules-card p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.rules-intro {
    font-size: 1.05rem;
    text-align: center;
}

.rules-highlight {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    background: rgba(0, 128, 0, 0.12);
    border: 1px solid rgba(0, 128, 0, 0.25);
}

.bottom-highlight {
    margin-top: 28px;
}

.rules-card,
.rules-card *,
.rules-table,
.rules-table *,
.rules-highlight,
.winnings-list,
.winnings-list * {
    box-sizing: border-box;
}

body.dark-mode .rules-highlight {
    background: rgba(0, 180, 90, 0.14);
    border-color: rgba(0, 180, 90, 0.35);
}

/* =========================
   BASE RULES TABLE
   ========================= */

.rules-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-collapse: collapse;
    margin-top: 14px;
    table-layout: fixed;
}

.rules-table th,
.rules-table td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    background: var(--card);
    word-break: normal;
    overflow-wrap: normal;
}

.rules-table th {
    background: var(--card-solid);
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: normal;
}

/* =========================
   MULTIPLIER TABLE
   ========================= */

.multiplier-table th:first-child,
.multiplier-table td:first-child {
    width: 72%;
  
}

.multiplier-table th:last-child,
.multiplier-table td:last-child {
    width: 28%;
    white-space: nowrap;
}




/* =========================
   WINNINGS LIST
   ========================= */

.winnings-list {
    width: 100%;
    max-width: 520px;
    margin: 16px auto 0;
    display: grid;
    gap: 10px;
}

.winnings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.winnings-place {
    font-weight: 800;
    color: var(--text);
}

.winnings-payout {
    min-width: 72px;
    padding: 7px 12px;
    border-radius: 999px;
    text-align: center;
    font-weight: 900;
    background: rgba(218, 165, 32, 0.18);
    border: 1px solid rgba(218, 165, 32, 0.45);
    color: #8a5a00;
}

@media (prefers-color-scheme: dark) {
    .winnings-payout {
        background: rgba(255, 215, 0, 0.16);
        border-color: rgba(255, 215, 0, 0.4);
        color: #ffd86b;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 850px) {
    .rules-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .rules-card h1 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .rules-card h2 {
        font-size: 1.15rem;
        line-height: 1.25;
        margin-top: 22px;
    }

    .rules-card p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .rules-intro {
        font-size: 0.98rem;
        text-align: left;
    }

    .rules-highlight {
        padding: 12px;
        font-size: 0.95rem;
    }

    .rules-table th,
    .rules-table td {
        padding: 8px 6px;
        font-size: 0.9rem;
        letter-spacing: 0;
    }

    .winnings-list {
        max-width: 100%;
        margin-top: 14px;
    }

    .winnings-row {
        padding: 12px 14px;
    }

    .winnings-payout {
        min-width: 64px;
    }

    /* Only multiplier table becomes mobile cards */
    .multiplier-table {
        display: block;
        width: 100%;
        max-width: 100%;
        border: none;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
    }

    .multiplier-table thead {
        display: none;
    }

    .multiplier-table tbody,
    .multiplier-table tr {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .multiplier-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--card);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .multiplier-table td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        padding: 11px 12px;
        text-align: right;
        background: transparent;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .multiplier-table td:first-child,
    .multiplier-table td:last-child {
        width: 100% !important;
        white-space: normal !important;
    }

    .multiplier-table td:last-child {
        border-bottom: none;
    }

    .multiplier-table td::before {
        content: attr(data-label);
        min-width: 0;
        text-align: left;
        font-weight: 800;
        color: var(--text);
        overflow-wrap: anywhere;
    }
}

/* LB Trophy */

.standings-title-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
    display: block;
    margin: 0;
    transform: translateY(1px);
}
/* =========================
   MANAGE PLAYERS SUMMARY CARD
   ========================= */
.manage-users-stats {
    margin-bottom: 20px;
}

/* =========================
   MANAGE USERS SUMMARY
   ========================= */

.manage-users-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.manage-users-summary-item {
    padding: 16px 18px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.manage-users-summary-item:last-child {
    border-right: none;
}

.manage-users-summary-label {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.manage-users-summary-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

/* Optional support if old stat-grid markup is still used */
.manage-users-stats.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.manage-users-stats .stat-box {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    text-align: center;
}

.manage-users-stats .stat-box:last-child {
    border-right: none;
}

/* =========================
   MANAGE USERS HEADING / CONTROLS
   ========================= */

.manage-users-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.manage-users-heading h3 {
    margin-bottom: 6px;
}

.manage-users-controls {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.manage-users-search {
    width: 100%;
}

.manage-users-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manage-filter-btn {
    border: 1px solid var(--border);
    background: var(--card-solid);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.manage-filter-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.manage-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* =========================
   MANAGE PLAYER CARDS
   ========================= */

.manage-player-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.manage-player-card {
    display: block;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-solid);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.manage-player-card + .manage-player-card {
    margin-top: 4px;
}

.manage-player-view {
    display: block;
}

.manage-player-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.manage-player-name {
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text);
}

.manage-player-nickname {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.manage-player-email {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.manage-player-timezone {
    margin-top: 5px;
    font-size: 0.9rem;
}

.manage-player-meta {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.9rem;
}

.manage-player-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.manage-player-status-note {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 800;
}

.manage-player-status-note.is-success {
    color: var(--success);
}

.manage-player-status-note.is-error {
    color: var(--danger);
}

/* =========================
   MANAGE PLAYER EDIT FORM
   ========================= */

.manage-player-edit-form {
    padding-top: 4px;
}

.manage-player-edit-form[hidden],
.manage-player-view[hidden] {
    display: none !important;
}

.manage-player-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* =========================
   TOGGLE BUTTONS
   ========================= */

.toggle-form {
    margin: 0;
    display: inline-block;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    padding: 7px 9px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.status-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(0);
}

.status-toggle:hover .toggle-track {
    opacity: 0.95;
}

.status-toggle:active {
    transform: scale(0.98);
}

.status-toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.status-toggle:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.toggle-track {
    position: relative;
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    transition: background 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.28);
}

.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.30);
    transition: left 0.2s ease;
}

.toggle-on .toggle-knob {
    left: 28px;
}

.toggle-off .toggle-knob {
    left: 4px;
}

.toggle-active .toggle-track {
    background: #159447;
}

.toggle-inactive .toggle-track {
    background: #7b8494;
}

.toggle-paid .toggle-track {
    background: #2563eb;
}

.toggle-unpaid .toggle-track {
    background: #c98a00;
}

.toggle-text {
    min-width: 62px;
    text-align: left;
    font-size: 0.88rem;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* =========================
   OLD TABLE SUPPORT
   Only applies if older table markup still exists
   ========================= */

.manage-users-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.manage-users-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.manage-users-table th,
.manage-users-table td {
    vertical-align: middle;
}

.manage-player-cell {
    min-width: 240px;
}

.manage-created-cell {
    white-space: nowrap;
    font-size: 0.9rem;
}

.manage-toggle-cell {
    width: 155px;
    text-align: center;
}

/* =========================
   DARK MODE - BODY CLASS
   ========================= */

body.dark-mode .manage-player-card {
    background: var(--card-solid);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body.dark-mode .manage-player-meta {
    background: rgba(148, 163, 184, 0.10);
}

body.dark-mode .manage-player-nickname {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

body.dark-mode .status-toggle {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

body.dark-mode .status-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .toggle-active .toggle-track {
    background: #22c55e;
}

body.dark-mode .toggle-inactive .toggle-track {
    background: #64748b;
}

body.dark-mode .toggle-paid .toggle-track {
    background: #3b82f6;
}

body.dark-mode .toggle-unpaid .toggle-track {
    background: #f59e0b;
}

body.dark-mode .toggle-text {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* =========================
   DARK MODE - SYSTEM PREFERENCE
   ========================= */

@media (prefers-color-scheme: dark) {
    .manage-player-card {
        background: var(--card-solid);
        border-color: rgba(148, 163, 184, 0.28);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    }

    .manage-player-meta {
        background: rgba(148, 163, 184, 0.10);
    }

    .manage-player-nickname {
        background: rgba(59, 130, 246, 0.18);
        color: #93c5fd;
    }

    .status-toggle {
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }

    .status-toggle:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.08);
    }

    .toggle-active .toggle-track {
        background: #22c55e;
    }

    .toggle-inactive .toggle-track {
        background: #64748b;
    }

    .toggle-paid .toggle-track {
        background: #3b82f6;
    }

    .toggle-unpaid .toggle-track {
        background: #f59e0b;
    }

    .toggle-text {
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }
}

/* =========================
   MOBILE CARD LAYOUT
   ========================= */

@media (max-width: 700px) {
    .manage-users-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

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

    .manage-users-summary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 13px 16px;
    }

    .manage-users-summary-item:last-child {
        border-bottom: none;
    }

    .manage-users-summary-label {
        margin-bottom: 0;
    }

    .manage-users-summary-value {
        font-size: 1.35rem;
    }

    .manage-users-filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manage-filter-btn {
        width: 100%;
    }

    .manage-player-card-grid {
        gap: 16px;
    }

    .manage-player-card {
        padding: 15px;
        border-radius: 16px;
    }

    .manage-player-card-top {
        flex-direction: column;
        gap: 12px;
    }

    .manage-player-card-top .btn {
        width: 100%;
    }

    .manage-player-name {
        font-size: 1.08rem;
    }

    .manage-player-email {
        font-size: 0.92rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .manage-player-toggle-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .status-toggle {
        width: 100%;
        max-width: 100%;
        min-height: 72px;
        justify-content: flex-start;
        gap: 16px;
        background: #eef1f5;
        border: 1px solid #d9e1ec;
        border-radius: 20px;
        padding: 14px 18px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }

    .status-toggle:hover {
        background: #e3e8ef;
        border-color: #cbd5e1;
        transform: translateY(0);
    }

    .toggle-track {
        flex: 0 0 56px;
        width: 56px;
        height: 30px;
    }

    .toggle-knob {
        width: 22px;
        height: 22px;
    }

    .toggle-on .toggle-knob {
        left: 30px;
    }

    .toggle-off .toggle-knob {
        left: 4px;
    }

    .toggle-text {
        min-width: 0;
        font-size: 1rem;
        font-weight: 800;
        text-align: left;
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }

    .manage-player-edit-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .manage-player-edit-actions .btn {
        width: 100%;
    }

    /* Mobile support if old stat-grid markup is still used */
    .manage-users-stats.stat-grid {
        grid-template-columns: 1fr;
    }

    .manage-users-stats .stat-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 13px 16px;
    }

    .manage-users-stats .stat-box:last-child {
        border-bottom: none;
    }

    .manage-users-stats .stat-label {
        margin-bottom: 0;
    }

    .manage-users-stats .stat-value {
        font-size: 1.35rem;
    }

    /* Old table mobile support only */
    .manage-users-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .manage-users-table,
    .manage-users-table thead,
    .manage-users-table tbody,
    .manage-users-table th,
    .manage-users-table td,
    .manage-users-table tr {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .manage-users-table {
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
    }

    .manage-users-table thead {
        display: none;
    }

    .manage-users-table tr {
        background: var(--card-solid);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .manage-users-table td {
        border: none;
        padding: 10px 0;
        text-align: left;
    }

    .manage-users-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 800;
        color: var(--muted);
        margin-bottom: 7px;
        font-size: 0.95rem;
    }

    .manage-player-cell {
        padding-top: 0 !important;
    }

    .manage-player-cell::before {
        display: none;
    }

    .manage-created-cell {
        white-space: normal;
    }

    .manage-toggle-cell {
        text-align: left;
        width: 100%;
    }

    .toggle-form {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    body.dark-mode .manage-users-table tr {
        background: var(--card-solid);
        border-color: var(--border);
    }

    body.dark-mode .status-toggle {
        background: #1c2738 !important;
        border: 1px solid #334155 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }

    body.dark-mode .status-toggle:hover {
        background: #263449 !important;
        border-color: #475569 !important;
    }

    body.dark-mode .toggle-text {
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }
}

/* =========================
   MOBILE DARK MODE - SYSTEM PREFERENCE
   ========================= */

@media (prefers-color-scheme: dark) and (max-width: 700px) {
    .manage-users-table tr {
        background: var(--card-solid);
        border-color: var(--border);
    }

    .status-toggle {
        background: #1c2738 !important;
        border: 1px solid #334155 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }

    .status-toggle:hover {
        background: #263449 !important;
        border-color: #475569 !important;
    }

    .toggle-text {
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }
}

@media (max-width: 430px) {
    .manage-player-card {
        padding: 14px;
    }

    .status-toggle {
        width: 100%;
        padding: 13px 15px;
    }

    .manage-users-table tr {
        padding: 14px;
    }

    .manage-users-table td {
        padding: 9px 0;
    }
}
/* =========================
   FORGOT PASSWORD DROPDOWN
   ========================= */

.forgot-password-link {
    margin-top: 8px;
    text-align: right;
}

.forgot-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    color: var(--link, #2563eb) !important;
    -webkit-text-fill-color: var(--link, #2563eb) !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    display: inline-block;
}

.forgot-toggle:hover {
    text-decoration: underline;
    background: none !important;
}

.forgot-password-box {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-solid);
}

.forgot-note {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.forgot-form {
    display: grid;
    gap: 10px;
}

.forgot-button-row {
    margin-top: 4px;
}

/* Send Reset Link button - same brown style as logout */
.forgot-reset-btn {
    background: #7a4b22 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
}

.forgot-reset-btn:hover {
    background: #613a1a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
/* =========================
   MANAGE SEASONS
   ========================= */

.season-create-card {
    margin-bottom: 20px;
}

.season-create-card h3 {
    margin-bottom: 12px;
}

.season-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.6fr) auto;
    gap: 14px;
    align-items: end;
}

.season-create-button-wrap {
    display: flex;
    align-items: flex-end;
}

.season-create-button-wrap button {
    white-space: nowrap;
}

/* Summary box like Manage Players */
.season-summary-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.season-summary-item {
    padding: 16px 18px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.season-summary-item:last-child {
    border-right: none;
}

.season-summary-label {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.season-summary-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

/* Compact All Seasons list */
.season-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.season-list-header h3 {
    margin-bottom: 4px;
}

.season-hide-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.season-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.season-row-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card-solid);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.season-row-card.season-is-active {
    border-color: rgba(21, 128, 61, 0.42);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.08), 0 8px 22px rgba(17, 24, 39, 0.06);
}

.season-hidden {
    display: none !important;
}

.season-main {
    min-width: 0;
}

.season-title-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}

.season-name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.season-year {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--muted);
}

.season-meta-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.season-created {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.season-multiplier-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.season-multiplier-line span {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(31, 111, 67, 0.08);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.season-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.season-actions form {
    margin: 0;
}

.season-action-btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.86rem;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
}

/* Dark mode - body class */
body.dark-mode .season-row-card {
    background: var(--card-solid);
    border-color: var(--border);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.dark-mode .season-row-card.season-is-active {
    border-color: rgba(34, 197, 94, 0.42);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10), 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.dark-mode .season-multiplier-line span {
    background: rgba(34, 197, 94, 0.12);
}

/* Dark mode - system preference */
@media (prefers-color-scheme: dark) {
    .season-row-card {
        background: var(--card-solid);
        border-color: var(--border);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    }

    .season-row-card.season-is-active {
        border-color: rgba(34, 197, 94, 0.42);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10), 0 8px 22px rgba(0, 0, 0, 0.18);
    }

    .season-multiplier-line span {
        background: rgba(34, 197, 94, 0.12);
    }
}

/* Mobile */
@media (max-width: 700px) {
    .season-create-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .season-create-button-wrap {
        display: block;
    }

    .season-create-button-wrap button {
        width: 100%;
    }

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

    .season-summary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 13px 16px;
    }

    .season-summary-item:last-child {
        border-bottom: none;
    }

    .season-summary-label {
        margin-bottom: 0;
    }

    .season-summary-value {
        font-size: 1.35rem;
    }

    .season-list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .season-hide-btn {
        width: 100%;
    }

    .season-row-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .season-title-line {
        margin-bottom: 8px;
    }

    .season-name {
        font-size: 1rem;
    }

    .season-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .season-actions form {
        width: 100%;
    }

    .season-action-btn {
        width: 100%;
        min-height: 42px;
        padding: 9px 10px;
    }
}

@media (max-width: 430px) {
    .season-meta-line {
        gap: 6px;
    }

    .season-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SEASON SETTINGS
   ========================= */

.season-settings-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.season-settings-grid > div {
    min-width: 0;
}

.season-settings-grid label {
    display: block;
    font-size: 0.88rem;
    line-height: 1.15;
    margin-bottom: 8px;
}

.season-settings-grid input[type="number"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
}

.season-settings-preview {
    padding: 12px 0 2px;
}

/* medium screens */
@media (max-width: 980px) {
    .season-settings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* small screens */
@media (max-width: 700px) {
    .season-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .season-settings-grid label {
        font-size: 0.95rem;
    }

    .season-settings-grid input[type="number"] {
        text-align: center;
    }
}

/* very small screens */
@media (max-width: 520px) {
    .season-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SEASON SETTINGS CHECKBOX
   ========================= */

.season-settings-toggle-row {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.season-settings-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
}

.season-settings-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    border: 2px solid var(--border);
    background: var(--card-solid);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    margin: 0;
}

.season-settings-checkbox input[type="checkbox"]::before {
    content: "✓";
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    transform: scale(0);
    transition: transform 0.12s ease;
}

.season-settings-checkbox input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.season-settings-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.season-settings-checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(31, 111, 67, 0.20);
    outline-offset: 3px;
}

.season-settings-checkbox span {
    display: inline-block;
}

/* Dark mode */
body.dark-mode .season-settings-checkbox input[type="checkbox"] {
    background: var(--card-solid);
    border-color: var(--border);
}

body.dark-mode .season-settings-checkbox input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

@media (prefers-color-scheme: dark) {
    .season-settings-checkbox input[type="checkbox"] {
        background: var(--card-solid);
        border-color: var(--border);
    }

    .season-settings-checkbox input[type="checkbox"]:checked {
        background: var(--primary);
        border-color: var(--primary);
    }
}

@media (max-width: 700px) {
    .season-settings-checkbox {
        align-items: flex-start;
        font-size: 0.98rem;
    }

    .season-settings-checkbox input[type="checkbox"] {
        margin-top: 1px;
    }
}

/* =========================
   MANAGE GAMES
   ========================= */

.manage-games-header,
.manage-games-week-head,
.manage-games-add-header,
.manage-games-list-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.manage-games-header h1,
.manage-games-week-head h3,
.manage-games-add-header h3,
.manage-games-list-head h3 {
    margin-bottom: 6px;
}

.manage-games-week-form {
    margin-top: 12px;
    max-width: 520px;
}

.manage-games-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.manage-games-status-box {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    background: var(--card-solid);
    text-align: center;
}

.status-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-value {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 900;
}

.week-lock-badge,
.week-open-badge,
.week-final-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.week-lock-badge {
    background: rgba(217, 119, 6, 0.14);
    color: #a35403;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.week-open-badge {
    background: rgba(31, 157, 73, 0.14);
    color: #14783a;
    border: 1px solid rgba(31, 157, 73, 0.25);
}

.week-final-badge {
    background: rgba(79, 111, 143, 0.15);
    color: #37516e;
    border: 1px solid rgba(79, 111, 143, 0.25);
}

.manage-games-action-row {
    margin-top: 12px;
}

.add-game-wrap.is-collapsed {
    display: none;
}

.manage-games-add-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 230px auto;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}

.manage-games-card-list {
    display: grid;
    gap: 14px;
}

.admin-game-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    gap: 14px;
}

.game-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.matchup-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 17px;
}

.matchup-team {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
}

.matchup-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.matchup-at {
    color: var(--muted);
    font-weight: 900;
}

.manage-game-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.locked-team-display {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.06);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.locked-team-display img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.manage-game-time-row {
    max-width: 360px;
}

.manage-games-ready {
    font-weight: 900;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.game-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.game-status-pill.scheduled {
    background: rgba(79, 111, 143, 0.14);
    color: #37516e;
}

.game-status-pill.final {
    background: rgba(31, 157, 73, 0.14);
    color: #14783a;
}

.admin-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-result-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    background: rgba(127, 127, 127, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 62px;
}

.admin-result-card.active {
    border-color: var(--primary);
    background: rgba(31, 111, 67, 0.13);
}

.admin-result-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.admin-result-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.admin-result-text {
    display: grid;
    gap: 2px;
}

.admin-result-name {
    font-weight: 900;
}

.admin-result-sub,
.admin-final-note {
    color: var(--muted);
    font-size: 12px;
}

.admin-tie-card {
    justify-content: center;
}

.admin-tie-badge {
    font-weight: 900;
    letter-spacing: 0.08em;
}

@media (prefers-color-scheme: dark) {
    .week-lock-badge {
        color: #fbbf24;
        background: rgba(245, 158, 11, 0.12);
        border-color: rgba(251, 191, 36, 0.24);
    }

    .week-open-badge {
        color: #4ade80;
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(74, 222, 128, 0.24);
    }

    .week-final-badge {
        color: #93c5fd;
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(147, 197, 253, 0.24);
    }

    .game-status-pill.scheduled {
        color: #93c5fd;
        background: rgba(59, 130, 246, 0.12);
    }

    .game-status-pill.final {
        color: #4ade80;
        background: rgba(34, 197, 94, 0.12);
    }
}

@media (max-width: 900px) {
    .manage-games-status-grid {
        grid-template-columns: 1fr;
    }

    .manage-games-add-grid {
        grid-template-columns: 1fr;
    }

    .manage-game-team-grid {
        grid-template-columns: 1fr;
    }

    .manage-game-time-row {
        max-width: none;
    }

    .admin-result-grid {
        grid-template-columns: 1fr;
    }

    .action-row {
        display: grid;
        gap: 10px;
    }

    .action-row .btn,
    .action-row button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .manage-games-header,
    .manage-games-week-head,
    .manage-games-add-header,
    .manage-games-list-head {
        align-items: stretch;
    }

    .manage-games-header .btn,
    .manage-games-week-head .btn,
    .manage-games-add-header .btn {
        width: 100%;
    }

    .admin-game-card {
        padding: 12px;
        border-radius: 16px;
    }

    .game-top-row {
        align-items: flex-start;
    }

    .matchup-title {
        width: 100%;
        font-size: 16px;
    }

    .game-status-pill {
        width: 100%;
    }
}

.finalize-round-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.finalize-round-ready {
    font-weight: 900;
    box-shadow:
        0 0 0 3px rgba(220, 53, 69, 0.25),
        0 0 16px rgba(220, 53, 69, 0.35);
}
.finalize-save-note {
    margin-top: 12px;
}

/* =========================
   VIEW ALL PICKS - ROUND PICK PULSE
   ========================= */

.pick-round-stats-card h2 {
    margin-bottom: 6px;
}

.pick-round-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.pick-round-stat-box {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.pick-round-stat-main {
    min-height: 34px;
}

.pick-round-stat-teams {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pick-round-stat-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-solid);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
}

.pick-round-stat-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
}

.pick-round-stat-note {
    font-size: 0.84rem;
    font-weight: 700;
}

.pick-round-stat-empty {
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 900px) {
    .pick-round-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pick-round-stats-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   VIEW ALL PICKS HEADER CARD
   ========================= */

.all-picks-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.all-picks-title-area {
    min-width: 0;
    flex: 1 1 auto;
}

.all-picks-title-area h1 {
    margin-bottom: 8px;
}

.all-picks-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.all-picks-meta .meta-box {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 230px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-solid);
}

.all-picks-meta .meta-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.all-picks-meta .meta-value {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.25;
   
}

.all-picks-top .week-tools {
    justify-content: flex-end;
    flex: 0 0 auto;
}

.all-picks-title-area .print-note {
    color: var(--muted);
    margin-bottom: 0;
}




@media (max-width: 760px) {
    .all-picks-top {
        display: grid;
        gap: 14px;
    }

    .all-picks-top .week-tools {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }

    .all-picks-meta .meta-box {
        width: 100%;
        min-width: 0;
    }
}

/* =========================
   VIEW ALL PICKS MOBILE VIEW
   ========================= */

.all-picks-deadline-line {
    color: var(--text);
    font-weight: 700;
}

.all-picks-deadline-line b {
    color: var(--text);
    font-weight: 900;
}

.all-picks-mobile-card {
    display: none;
}

.all-picks-mobile-experiment {
    display: grid;
    gap: 14px;
}

.all-picks-mobile-controls {
    display: grid;
    gap: 12px;
}

.all-picks-mobile-mode-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.all-picks-mobile-mode-btn {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-solid);
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    box-shadow: none;
}

.all-picks-mobile-mode-btn.is-active {
    background: var(--primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--primary);
}

.all-picks-mobile-selector-wrap {
    display: grid;
    gap: 6px;
}

.all-picks-mobile-selector-wrap label {
    margin-bottom: 0;
}

.all-picks-mobile-selector-wrap select {
    width: 100%;
}

.all-picks-mobile-panel {
    display: none;
}

.all-picks-mobile-panel.is-active {
    display: block;
}

.all-picks-mobile-subpanel {
    display: none;
}

.all-picks-mobile-subpanel.is-active {
    display: grid;
    gap: 10px;
}

.all-picks-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card-solid);
}

.all-picks-mobile-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 900;
}

.all-picks-mobile-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
}

.all-picks-mobile-time {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.all-picks-mobile-list {
    display: grid;
    gap: 8px;
}

.all-picks-mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-solid);
}

.all-picks-mobile-player-name {
    min-width: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.all-picks-mobile-pick-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.all-picks-mobile-pick-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
}

.all-picks-mobile-picked-team {
    font-weight: 900;
}

.all-picks-mobile-confidence {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(31, 111, 67, 0.12);
    color: var(--success);
    font-weight: 900;
    line-height: 1;
}

/* Mobile confidence badge stays clean: points only */
.all-picks-mobile-confidence.pick-confidence-correct,
.all-picks-mobile-confidence.pick-confidence-incorrect {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Correct finalized mobile picks: checkmark sits before the logo */
.all-picks-mobile-check-before-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    color: #2fbf71 !important;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
    margin-right: -2px;
}

.all-picks-mobile-confidence .pick-check-small {
    margin-right: 0;
}

.all-picks-mobile-missing {
    color: var(--muted);
    font-weight: 800;
}

.all-picks-mobile-correct .all-picks-mobile-picked-team,
.all-picks-mobile-correct .all-picks-mobile-confidence,
.all-picks-mobile-correct .all-picks-mobile-confidence .pick-check-small {
    color: #2fbf71;
}

.all-picks-mobile-incorrect .all-picks-mobile-picked-team,
.all-picks-mobile-incorrect .all-picks-mobile-confidence {
    color: #f0b27a;
}

.all-picks-mobile-player-grid {
    display: grid;
    gap: 8px;
}

.all-picks-mobile-game-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.finalize-ready {
    font-weight: 900;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.manage-games-ready,
.finalize-score-ready {
    font-weight: 900;
}

.manage-games-ready {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.finalize-score-ready {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.28);
}

@media (max-width: 1100px) {
    .all-picks-desktop-card {
        display: none;
    }

    .all-picks-mobile-card {
        display: block;
    }
}

@media print {
    .all-picks-mobile-card {
        display: none !important;
    }

    .all-picks-desktop-card {
        display: block !important;
    }
}

/* Switch to the clean mobile/tablet layout before the desktop table needs horizontal scrolling. */
@media (max-width: 1100px) {
    .all-picks-wrap {
        overflow-x: visible;
    }

    .all-picks-table {
        width: 100%;
        min-width: 0;
    }
}




/* =========================
   EMAIL PLAYERS
   ========================= */

.email-players-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.centered-text {
    text-align: center;
}

.email-recipients-box,
.email-preview-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0;
    background: var(--card-solid);
}

.email-recipients-box h2,
.email-preview-box h2 {
    margin-top: 0;
}

.email-recipient-list {
    margin-top: 12px;
    padding-left: 22px;
    line-height: 1.7;
}

.email-recipient-list li,
.email-recipient-list span,
.email-send-from-note,
.email-send-warning,
.email-placeholder-note {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.email-players-form {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.email-players-form .form-row,
.email-players-form input,
.email-players-form select,
.email-players-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.email-players-form textarea {
    min-height: 360px;
    resize: vertical;
    line-height: 1.5;
}

.email-preview-subject-input {
    width: 100%;
}

.email-preview-message {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 320px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-solid);
    color: var(--text);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
}

.email-preview-message:focus {
    outline: 2px solid rgba(31, 111, 67, 0.18);
    border-color: var(--primary);
}

.email-placeholder-note {
    margin-top: 6px;
    font-size: 0.9rem;
}

.email-preview-box pre {
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    font-family: inherit;
    line-height: 1.5;
    margin: 12px 0 0;
}

.email-action-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-send-warning {
    text-align: center;
    font-weight: 800;
    color: var(--text);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 204, 102, 0.16);
}

@media (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .email-players-card {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        margin-left: 0;
        margin-right: 0;
    }

    .email-players-card .manage-weeks-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .email-players-card .manage-weeks-season-pill {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .email-recipients-box,
    .email-preview-box {
        padding: 12px;
        border-radius: 14px;
        margin: 14px 0;
    }

    .email-recipient-list {
        padding-left: 18px;
    }

    .email-players-form input,
    .email-players-form select,
    .email-players-form textarea {
        width: 100%;
        font-size: 16px;
    }

    .email-players-form textarea {
        min-height: 420px;
        font-size: 0.95rem;
    }

    .email-preview-message {
        min-height: 360px;
        padding: 12px;
        font-size: 0.95rem;
    }

    .email-send-warning {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .email-action-row .btn,
    .email-action-row button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .email-players-card {
        padding: 12px;
    }

    .email-recipients-box,
    .email-preview-box {
        padding: 10px;
    }

    .email-placeholder-note,
    .email-send-warning {
        font-size: 0.86rem;
    }
}

/* Adding Super Bowl Total to VIEW ALL PICKS */

.super-bowl-score-inline {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.82em;
    font-weight: 800;
    color: var(--muted);
    white-space: nowrap;
}

.pick-cell-correct .super-bowl-score-inline,
.all-picks-mobile-correct .super-bowl-score-inline {
    color: inherit;
}

.pick-cell-incorrect .super-bowl-score-inline,
.all-picks-mobile-incorrect .super-bowl-score-inline {
    color: inherit;
}

/* =========================
   SUPER BOWL FINAL STANDINGS TIE / PICK %
   Only applies when the standings table also has:
   .standings-table-superbowl-final
   ========================= */

.tie-pick-stack,
.super-bowl-tie-pick-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.18;
    font-weight: 800;
    white-space: nowrap;
}

.tie-pick-stack > div,
.super-bowl-tie-pick-stack > div {
    display: block;
    white-space: nowrap;
}

.tie-pick-stack .tie-value,
.tie-pick-stack .pick-value,
.super-bowl-tie-pick-stack .tie-value,
.super-bowl-tie-pick-stack .pick-value {
    display: block;
    white-space: nowrap;
}

.standings-table-superbowl-final th.col-tie-pick,
.standings-table-superbowl-final td.col-tie-pick,
.standings-table-superbowl-final th.tie-pick-col,
.standings-table-superbowl-final td.tie-pick-col,
.standings-table-superbowl-final th.col-pick-percent,
.standings-table-superbowl-final td.col-pick-percent {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center !important;
    vertical-align: middle;
}

.standings-table-superbowl-final td.col-tie-pick,
.standings-table-superbowl-final td.tie-pick-col,
.standings-table-superbowl-final td.col-pick-percent {
    padding-top: 12px;
    padding-bottom: 12px;
}

.standings-table-season.standings-table-superbowl-final .col-player {
    width: calc(100% - 90px - 72px - 132px);
}

@media (prefers-color-scheme: dark) {
    .standings-table-superbowl-final th.col-tie-pick,
    .standings-table-superbowl-final th.tie-pick-col,
    .standings-table-superbowl-final th.col-pick-percent {
        background: rgba(97, 58, 26, 0.10);
    }
}

@media (max-width: 700px) {
    .standings-table-superbowl-final th.col-tie-pick,
    .standings-table-superbowl-final td.col-tie-pick,
    .standings-table-superbowl-final th.tie-pick-col,
    .standings-table-superbowl-final td.tie-pick-col,
    .standings-table-superbowl-final th.col-pick-percent,
    .standings-table-superbowl-final td.col-pick-percent {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
        font-size: 13px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .standings-table-superbowl-final td.col-tie-pick,
    .standings-table-superbowl-final td.tie-pick-col,
    .standings-table-superbowl-final td.col-pick-percent {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .tie-pick-stack,
    .super-bowl-tie-pick-stack {
        gap: 4px;
        font-size: 13px;
        line-height: 1.12;
    }

    .standings-table-season.standings-table-superbowl-final .col-player {
        width: calc(100% - 78px - 60px - 104px);
    }
}

@media (max-width: 430px) {
    .standings-table-superbowl-final th.col-tie-pick,
    .standings-table-superbowl-final td.col-tie-pick,
    .standings-table-superbowl-final th.tie-pick-col,
    .standings-table-superbowl-final td.tie-pick-col,
    .standings-table-superbowl-final th.col-pick-percent,
    .standings-table-superbowl-final td.col-pick-percent {
        width: 98px;
        min-width: 98px;
        max-width: 98px;
        font-size: 12px;
    }

    .tie-pick-stack,
    .super-bowl-tie-pick-stack {
        font-size: 12px;
    }

    .standings-table-season.standings-table-superbowl-final .col-player {
        width: calc(100% - 78px - 60px - 98px);
    }
}

/* =========================
   PAYMENT BUTTONS
   PayPal / Apple Pay
   ========================= */

.payment-box,
.paypal-payment-box,
.pay-section {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-top: 18px;
    overflow: hidden;
}

/* PayPal iframe/button area */
#paypal-button-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    overflow: hidden;
}

/* Apple Pay section */
.applepay-section,
.apple-pay-wrap {
    margin-top: 22px;
}

.applepay-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.applepay-container,
#apple-pay-button-container {
    width: 100%;
}

/* Apple Pay button */
.applepay-button {
    display: block;
    width: 100%;
    min-width: 100%;
    height: 56px;
    min-height: 56px;
    cursor: pointer;

    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 56px;
    --apple-pay-button-border-radius: 999px;
}

/* Larger Apple Pay button on wider screens */
@media (min-width: 700px) {
    .applepay-button {
        height: 62px;
        min-height: 62px;

        --apple-pay-button-height: 62px;
    }
}

/* Dark mode cleanup */
@media (prefers-color-scheme: dark) {
    .payment-box,
    .paypal-payment-box,
    .pay-section {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.25);
    }

    /*
       PayPal controls its own iframe.
       Keep this white so the PayPal/Venmo/card buttons render correctly.
    */
    #paypal-button-container {
        background: #ffffff;
        border-radius: 16px;
        padding: 10px;
    }

    .payment-box p,
    .paypal-payment-box p,
    .pay-section p,
    .applepay-label {
        color: #cbd5e1;
    }
}


/* =========================
   STANDINGS PAGE
   Dedicated standings.php layout
   ========================= */

.standings-page-top {
    align-items: flex-start;
}

.standings-page-tools {
    gap: 10px;
}

.standings-view-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-solid);
}

.standings-toggle-btn,
button.standings-toggle-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 13px 20px !important;
    min-height: 46px;
    font-size: 1.05rem !important;
    line-height: 1.1;
    font-weight: 900 !important;
    cursor: pointer;
    background: transparent !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.standings-toggle-btn:hover,
button.standings-toggle-btn:hover {
    transform: translateY(-1px);
    background: rgba(31, 111, 67, 0.10) !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    border-color: rgba(31, 111, 67, 0.20);
}

.standings-toggle-btn.is-active,
button.standings-toggle-btn.is-active {
    background: var(--primary) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: var(--primary);
}

.standings-toggle-btn.is-active:hover,
button.standings-toggle-btn.is-active:hover {
    background: var(--primary-hover) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: var(--primary-hover);
}

.standings-view-panel {
    display: none;
}

.standings-view-panel.is-active {
    display: block;
}

.standings-page-card {
    margin-top: 16px;
}

.standings-page-card .standings-section-title {
    margin: 0;
}

.standings-table-note {
    display: block;
    margin: 6px 0 8px 0;
    min-height: 0;
    line-height: 1.45;
}

.standings-page-card .standings-wrap {
    margin-top: 0;
}

.standings-page-card .table-wrap {
    margin-top: 0;
}

.standings-weekly-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0;
}

.standings-weekly-head > div {
    min-width: 260px;
    flex: 1 1 360px;
}

.standings-week-select-form {
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 16px;
}

.standings-tiebreak-diff {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--muted);
}

@media (prefers-color-scheme: dark) {
    .standings-toggle-btn,
    button.standings-toggle-btn {
        background: transparent !important;
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
    }

    .standings-toggle-btn:hover,
    button.standings-toggle-btn:hover {
        background: rgba(63, 168, 106, 0.14) !important;
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text) !important;
        border-color: rgba(63, 168, 106, 0.28);
    }

    .standings-toggle-btn.is-active,
    button.standings-toggle-btn.is-active {
        background: var(--primary) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: var(--primary);
    }
}

@media (max-width: 700px) {
    .standings-page-top {
        gap: 16px;
    }

    .standings-page-tools,
    .standings-view-toggle,
    .standings-toggle-btn,
    .standings-week-select-form,
    .standings-week-select-form select {
        width: 100%;
    }

    .standings-view-toggle {
        border-radius: 18px;
    }

    .standings-toggle-btn,
    button.standings-toggle-btn {
        flex: 1;
        text-align: center;
        font-size: 1.05rem !important;
        padding: 12px 16px !important;
    }

    .standings-weekly-head {
        display: block;
    }

    .standings-week-select-form {
        margin-left: 0;
        margin-top: 0;
    }
}

@media print {
    .standings-view-panel {
        display: block !important;
    }

    .standings-view-panel:not(.is-active) {
        display: none !important;
    }
}

/* Tighten Season Standings note-to-table spacing */
.standings-view-panel[data-standings-view-panel="season"] p.standings-table-note {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
}

.standings-view-panel[data-standings-view-panel="season"] .page-print-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.standings-view-panel[data-standings-view-panel="season"] .standings-wrap-season {
    margin-top: 0 !important;
    padding-top: 0 !important;
}