/* ── Custom Properties ──────────────────────────────────── */
:root {
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Nunito Sans', sans-serif;

    --color-primary:        #f59e0b;
    --color-primary-dark:   #d97706;
    --color-primary-light:  #fef9ec;
    --color-primary-border: #fde68a;

    --color-nav:            #15192a;

    --color-bg:             #f7f6f3;
    --color-surface:        #ffffff;
    --color-border:         #e2e5ea;
    --color-border-strong:  #c4c8d0;

    --color-text:           #0f1117;
    --color-text-muted:     #6b7280;

    --color-success:        #059669;
    --color-success-bg:     #d1fae5;
    --color-success-border: #6ee7b7;
    --color-success-text:   #065f46;

    --color-danger:         #dc2626;
    --color-danger-bg:      #fee2e2;
    --color-danger-border:  #fca5a5;
    --color-danger-text:    #991b1b;

    --color-info:           #1d4ed8;
    --color-info-bg:        #eff6ff;
    --color-info-border:    #bfdbfe;
    --color-info-text:      #1e40af;

    --color-warning-text:   #92400e;
    --color-warning-bg:     #fffbeb;
    --color-warning-border: #fde68a;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:  0 8px 24px rgba(0,0,0,0.10);

    --radius:    6px;
    --radius-lg: 10px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.65rem; margin: 1.2rem 0 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
h4 { font-size: 1.05rem; margin: 0.75rem 0 0.3rem; }

a { color: var(--color-info); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 0.5rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    background: var(--color-nav);
    color: #fff;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 56px;
    border-bottom: 3px solid var(--color-primary);
    position: relative;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.nav-brand .brand-accent { color: var(--color-primary); }
.nav-brand:hover { text-decoration: none; color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-links a {
    color: rgba(255,255,255,0.80);
    padding: 6px 11px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.10);
    text-decoration: none;
}
.nav-user {
    color: var(--color-primary);
    font-weight: 700;
    padding: 6px 11px;
    font-size: 0.875rem;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}
.nav-separator { color: rgba(255,255,255,0.18); margin: 0 2px; }

/* ── Container ───────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--color-nav);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
    color: var(--color-nav);
    box-shadow: 0 3px 8px rgba(0,0,0,0.14);
}
.btn-sm { padding: 5px 13px; font-size: 0.82rem; }
.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-success { background: var(--color-success); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.30);
    box-shadow: none;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover, .btn[disabled]:hover { background: inherit; }

/* ── Tables ──────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 12px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.table th, .table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.table th {
    background: #f3f4f6;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: #fafbfc; }

/* ── Forms ───────────────────────────────────────────────── */
form p { margin-bottom: 14px; }
form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 5px;
    color: var(--color-text);
    letter-spacing: 0.01em;
}
form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form input[type="time"],
form select,
form textarea {
    width: 100%;
    max-width: 420px;
    padding: 9px 13px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
    outline: none;
}

form input.no-spinner::-webkit-outer-spin-button,
form input.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
form input.no-spinner { -moz-appearance: textfield; }

.errorlist {
    color: var(--color-danger);
    list-style: none;
    padding: 0;
    margin: 5px 0;
    font-size: 0.875rem;
}
.hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 6px 0;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: 0.925rem;
    border: 1px solid;
    border-left-width: 4px;
}
.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-color: var(--color-success-border);
    border-left-color: var(--color-success);
}
.alert-error {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
    border-color: var(--color-danger-border);
    border-left-color: var(--color-danger);
}
.alert-info {
    background: var(--color-info-bg);
    color: var(--color-info-text);
    border-color: var(--color-info-border);
    border-left-color: var(--color-info);
}
.alert-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border-color: var(--color-warning-border);
    border-left-color: var(--color-primary);
}
.messages { margin-bottom: 16px; }

/* ── Priority List ───────────────────────────────────────── */
.priority-list {
    list-style: none;
    max-width: 600px;
    margin: 14px 0;
}
.priority-item {
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    margin-bottom: 5px;
    border-radius: var(--radius);
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.priority-item:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.priority-touch-controls { display: none; gap: 6px; }
.priority-touch-controls .btn { min-width: 40px; min-height: 36px; padding: 6px 8px; }
body.touch-priority-reorder .priority-item { cursor: default; }
body.touch-priority-reorder .priority-item:active { cursor: default; }
body.touch-priority-reorder .drag-handle { display: none; }
body.touch-priority-reorder .priority-touch-controls { display: inline-flex; }
.priority-item:active { cursor: grabbing; }
.priority-item.dragging { opacity: 0.4; }
.priority-item .priority-label { flex: 1; }
.drag-handle { color: var(--color-text-muted); font-size: 1.2em; }
.priority-rank {
    font-weight: 700;
    color: var(--color-text-muted);
    min-width: 30px;
    font-family: var(--font-display);
    font-size: 1.05rem;
}
.excluded-item { cursor: default; background: #f9fafb; border-color: var(--color-border); color: var(--color-text-muted); }
.priority-empty { padding: 14px; color: var(--color-text-muted); font-style: italic; }
.text-muted { color: var(--color-text-muted); font-size: 0.9rem; }

.priority-layout {
    display: grid;
    gap: 24px;
    margin-top: 16px;
}
.priority-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (min-width: 1100px) {
    .priority-layout {
        grid-template-columns: minmax(360px, 1fr) minmax(480px, 1.3fr);
        align-items: start;
    }
    .priority-layout #game-selector-container {
        position: sticky;
        top: 12px;
    }
}

.btn-link {
    background: none;
    border: 0;
    color: var(--color-info);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: inherit;
}
.icon-edit {
    margin-left: 6px;
    font-size: 0.95em;
    text-decoration: none;
}
.inline-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px solid var(--color-border);
}
.inline-editor-row { background: #f7f8fa; }
.td-edit-action { text-align: right; white-space: nowrap; width: 1%; }
.inline-game-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.inline-game-form input { width: auto; max-width: none; }
.inline-game-form select { width: auto; }

dialog {
    position: fixed;
    inset: 0;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 680px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    width: calc(100% - 32px);
    margin: auto;
    box-shadow: var(--shadow-lg);
}
dialog::backdrop {
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(2px);
}

/* ── Home Links ──────────────────────────────────────────── */
.home-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ── Member Actions ──────────────────────────────────────── */
.member-actions { display: flex; gap: 10px; margin-bottom: 14px; }

/* ── Draft Info ──────────────────────────────────────────── */
.draft-info {
    background: var(--color-surface);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.draft-actions { margin-top: 14px; display: flex; gap: 10px; }

/* ── Member Summary (results) ────────────────────────────── */
.member-summary {
    background: var(--color-surface);
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.member-summary h3 { margin-bottom: 5px; }
.member-summary ul { margin: 8px 0 0 20px; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-text); text-decoration: none; }

/* ── Info Card ───────────────────────────────────────────── */
.info-card {
    background: var(--color-surface);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 16px 0;
    border: 1px solid var(--color-border);
}
.info-card h3 { margin-bottom: 8px; }
.info-card p { margin-bottom: 6px; }

/* ── Section Header (heading + action on one line) ──────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.section-header h2,
.section-header h3,
.section-header h4 { margin: 0; }

/* ── Card Section (inner divider within an info-card) ────── */
.card-section {
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    margin-top: 14px;
}
.card-section h4 { margin-bottom: 8px; }

/* ── Draft Status Row ────────────────────────────────────── */
.draft-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.draft-status-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.draft-status-value {
    font-weight: 600;
    font-size: 1rem;
}
.draft-status-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Contact Details (inline member contact, replaces nested info-card) */
.contact-details {
    padding: 10px 14px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.contact-details strong { margin-bottom: 4px; }

/* ── Help Text ───────────────────────────────────────────── */
.help-text {
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 18px;
    margin: 12px 0;
    font-size: 0.925rem;
    line-height: 1.6;
}
.help-text ul { margin: 6px 0 0 20px; }
.help-text li { margin-bottom: 3px; }

/* ── Highlight row ───────────────────────────────────────── */
.table tr.highlight-row { background: var(--color-primary-light); }
.table tr.highlight-row:hover { background: #fef3c7; }

/* ── Inline roster ───────────────────────────────────────── */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.roster-item {
    background: var(--color-surface);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--color-border);
    font-size: 0.925em;
}
.roster-item strong { display: block; margin-bottom: 2px; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin: 16px 0; }
.pick-log-dashboard {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* ── Posts ───────────────────────────────────────────────── */
.posts-section { margin: 16px 0; }
.posts-section h2 { margin-bottom: 12px; }
.pinned-post { border-left: 3px solid var(--color-primary); }

.post-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.post-item-pinned {
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
    margin-left: -10px;
}
.post-item-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.post-item-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.post-item-body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}
.post-item-body p { margin-bottom: 0.4rem; }
.post-item-body p:last-child { margin-bottom: 0; }
.post-item-body ul, .post-item-body ol { margin: 0.3rem 0 0.4rem 1.4rem; }
.post-item-body strong { font-weight: 700; }
.post-item-body em { font-style: italic; }
.post-item-body a { color: var(--color-info); }
.post-item-body code { font-size: 0.85em; background: #f3f4f6; padding: 1px 4px; border-radius: 3px; }
.post-item .post-actions { margin-top: 6px; }

.new-post-inline {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1.5px solid var(--color-border);
}
.new-post-inline .new-post-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    margin-bottom: 8px;
}
.new-post-inline form p { margin-bottom: 8px; }

/* ── Carousel ────────────────────────────────────────────── */
.carousel {
    position: relative;
    max-width: 500px;
    margin: 14px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; display: block; border-radius: var(--radius-lg); }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.50);
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: var(--radius);
    line-height: 1;
    transition: background 0.15s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.80); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { text-align: center; padding: 8px 0; position: absolute; bottom: 0; width: 100%; }
.carousel-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.50);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.carousel-dot.active { background: var(--color-primary); }
.carousel-caption {
    text-align: center;
    color: #fff;
    padding: 6px;
    background: rgba(0,0,0,0.45);
    font-size: 0.875em;
    position: absolute;
    bottom: 30px;
    width: 100%;
}

/* ── Google Button ───────────────────────────────────────── */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #dadce0;
    color: #3c4043;
    font-weight: 600;
    box-shadow: none;
}
.btn-google:hover { background: #f8f9fa; color: #202124; }
.google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-weight: 700;
}

/* ── Focus Styles ────────────────────────────────────────── */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.btn:focus-visible {
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.30);
}
form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
    outline: none;
}

/* ── Icon Classes ────────────────────────────────────────── */
.icon-pin { color: var(--color-primary); font-size: 1em; }
.icon-close { font-size: 1.1em; line-height: 1; }

/* ── Misc Extracted Styles ───────────────────────────────── */
.seat-photo-standalone { margin: 14px 0; }
.seat-photo-standalone img { max-width: 400px; border-radius: var(--radius-lg); }
.image-gallery { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.image-gallery-item { position: relative; display: inline-block; }
.image-gallery-item img { max-width: 200px; border-radius: var(--radius); }
.post-actions { margin-top: 8px; display: flex; gap: 6px; }
.pledge-summary {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.email-verify-banner { display: flex; align-items: center; justify-content: space-between; }
.email-verify-banner form { display: inline; margin-left: 1rem; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 24px; }
.new-post-card { padding: 14px; }
.new-post-label {
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.copy-btn { margin-left: 6px; }

/* ── Season Tabs ─────────────────────────────────────────── */
.season-tabs {
    display: flex;
    gap: 6px;
    margin: 14px 0 0;
    flex-wrap: wrap;
    align-items: flex-end;
    border-bottom: 2px solid #9a9690;
}
.season-tab {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid #9a9690;
    border-bottom-width: 2px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #c8c4bb;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: -2px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.season-tab:hover { color: var(--color-text); background: #b8b4ab; text-decoration: none; }
.season-tab.active {
    background: var(--color-surface);
    border-color: #9a9690;
    border-bottom-color: var(--color-surface);
    color: var(--color-text);
    font-weight: 700;
}
.season-tab.add-tab {
    border: 1.5px dashed #9a9690;
    border-bottom: none;
    margin-bottom: 0;
    color: var(--color-text);
    background: var(--color-bg);
    align-self: center;
}
.draft-status-schedule {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: underline;
}
#season-panel {
    margin-top: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
}
.archive-tab-wrapper {
    position: relative;
    display: inline-flex;
    margin-bottom: -2px;
}
.archive-tab-wrapper .season-tab { margin-bottom: 0; }
.archive-tab[aria-expanded="true"] {
    background: var(--color-surface);
    border-color: #9a9690;
    border-bottom-color: var(--color-surface);
    color: var(--color-text);
}
.archive-tab-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 100;
}
.archive-dropdown-item {
    display: block;
    padding: 9px 14px;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.875rem;
}
.archive-dropdown-item:hover { background: var(--color-bg); text-decoration: none; }
.archive-dropdown-item.active {
    background: var(--color-primary-light);
    font-weight: 600;
}

/* ── Game Selector ───────────────────────────────────────── */
.game-selector { margin: 16px 0; }

.gs-tabs { display: flex; gap: 0; margin-bottom: 14px; }
.gs-tab {
    padding: 8px 18px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.15s;
}
.gs-tab:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.gs-tab:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.gs-tab.active { background: var(--color-nav); color: #fff; border-color: var(--color-nav); }
.gs-panel { display: none; }
.gs-panel.active { display: block; }

.gs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
}
.gs-filter-select {
    padding: 6px 10px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font-body);
    background: var(--color-surface);
}
.gs-day-group { display: flex; gap: 8px; }
.gs-day-label {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    font-size: 0.85em;
    font-weight: normal !important;
    cursor: pointer;
}
.gs-price-group { display: flex; align-items: center; gap: 4px; }
.gs-price-input {
    width: 80px !important;
    padding: 6px 8px !important;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* Calendar */
.gs-calendar {
    margin-bottom: 16px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px;
    max-width: 350px;
}
.gs-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.gs-cal-title {
    font-weight: 700;
    font-size: 1.05em;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}
.gs-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.78em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.gs-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.gs-cal-cell {
    text-align: center;
    padding: 6px 2px;
    font-size: 0.875em;
    position: relative;
    border-radius: var(--radius);
}
.gs-cal-cell.empty { visibility: hidden; }
.gs-cal-cell.has-games {
    background: #dbeafe;
    cursor: pointer;
    font-weight: 700;
}
.gs-cal-cell.has-games:hover { background: #bfdbfe; }
.gs-cal-badge {
    position: absolute;
    top: 1px;
    right: 2px;
    font-size: 0.65em;
    background: var(--color-info);
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
}

/* Calendar price tiers (colorblind-safe: blue → yellow → orange) */
.gs-cal-cell.has-games.gs-price-low { background: #abd9e9; }
.gs-cal-cell.has-games.gs-price-low:hover { background: #91cde0; }
.gs-cal-cell.has-games.gs-price-mid { background: #ffffbf; }
.gs-cal-cell.has-games.gs-price-mid:hover { background: #f0f0a0; }
.gs-cal-cell.has-games.gs-price-high { background: #fdae61; }
.gs-cal-cell.has-games.gs-price-high:hover { background: #f59b42; }

.gs-price-legend {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.8em;
    color: var(--color-text-muted);
}
.gs-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.gs-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.10);
}
.gs-legend-swatch.gs-price-low { background: #abd9e9; }
.gs-legend-swatch.gs-price-mid { background: #ffffbf; }
.gs-legend-swatch.gs-price-high { background: #fdae61; }

.gs-results-table { font-size: 0.9em; }
.gs-result-row { cursor: pointer; }
.gs-result-row:hover { background: #fffbeb !important; }
.gs-result-row td:last-child { white-space: nowrap; }
.gs-result-row td:last-child .btn { min-width: 72px; }
.gs-clear-date { margin-left: auto; }

/* ── Priority Stats ──────────────────────────────────────── */
.priority-stats { font-size: 0.9em; color: var(--color-text-muted); margin: 6px 0; }

/* ── Draft Room ──────────────────────────────────────────── */
.practice-banner {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.1em;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}
.draft-layout { display: grid; grid-template-columns: 250px 1fr 280px; gap: 20px; }
.draft-layout .main-area { min-width: 0; }
.sidebar { position: sticky; top: 20px; }
.timer {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    letter-spacing: 0.04em;
}
.timer.urgent { color: var(--color-danger); }
.current-turn {
    background: var(--color-primary-light);
    border: 1.5px solid var(--color-primary-border);
    padding: 15px;
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
}
.pick-log { max-height: 300px; overflow-y: auto; }
.pick-log-item { padding: 5px 10px; border-bottom: 1px solid var(--color-border); font-size: 0.875em; }
.pick-log-item.auto { color: var(--color-text-muted); font-style: italic; }
.member-budget { padding: 5px 0; display: flex; justify-content: space-between; font-size: 0.875em; }
.member-budget.inactive { text-decoration: line-through; color: var(--color-text-muted); }
.member-budget.done { color: var(--color-success); font-style: italic; }
.member-budget.current {
    font-weight: 700;
    background: var(--color-primary-light);
    padding: 5px 10px;
    border-radius: var(--radius);
    border-left: 3px solid var(--color-primary);
}
.auto-draft-toggle { margin: 12px 0; padding: 10px 14px; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius); }
.auto-draft-toggle label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin: 0; }
.priority-panel { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 14px; }
.priority-panel .section-header { margin-bottom: 10px; }
.sidebar-heading { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin: 18px 0 6px; }
.priority-item-live { padding: 7px 10px; border-bottom: 1px solid var(--color-border); cursor: grab; display: flex; align-items: center; gap: 8px; font-size: 0.875em; }
.priority-item-live:hover { background: var(--color-primary-light); }
.priority-item-live.dragging { opacity: 0.4; }
.priority-item-live.drag-over { border-top: 2px solid var(--color-primary); }
.priority-item-live .drag-handle { color: var(--color-text-muted); cursor: grab; font-size: 1.1em; }
.priority-item-live .priority-label { flex: 1; cursor: pointer; }
.priority-item-live .priority-remove { background: none; border: none; color: var(--color-danger); cursor: pointer; font-size: 1.2em; padding: 0 4px; }
.priority-item-live.picked { cursor: default; opacity: 0.55; background: #f7f7f7; }
.priority-item-live.picked.picked-by-me { opacity: 0.7; background: var(--color-success-bg); }
.priority-item-live.picked:hover { background: #f0f0f0; }
.priority-item-live.picked.picked-by-me:hover { background: #c6f6d5; }
.priority-item-live.picked .priority-label { text-decoration: line-through; color: #888; cursor: default; }
.priority-item-live.picked.picked-by-me .priority-label { color: var(--color-success-text); }
.picked-by { display: inline-block; font-size: 0.78em; font-weight: 600; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--color-border); color: var(--color-text-muted); text-decoration: none; }
.picked-by.picked-by-me-label { background: var(--color-success); color: #fff; }
.priority-picked-separator {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 10px 4px;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
    font-family: var(--font-display);
}
.countdown-overlay { text-align: center; padding: 60px 20px; }
.countdown-overlay .countdown-timer {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.04em;
}
.done-picking-section {
    padding: 12px 18px;
    text-align: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.done-picking-section.eligible {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}
.btn-done-picking {
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--color-primary);
    color: var(--color-nav);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}
.btn-done-picking:hover:not(:disabled) { background: var(--color-primary-dark); }
.btn-done-picking:disabled { opacity: 0.4; cursor: not-allowed; background: var(--color-text-muted); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover, .btn[disabled]:hover { background: inherit; }
.chat-panel { border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 260px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px; font-size: 0.85em; }
.chat-msg { padding: 3px 0; }
.chat-msg .chat-name { font-weight: 700; }
.chat-msg .chat-time { color: var(--color-text-muted); font-size: 0.82em; margin-left: 4px; }
.chat-input-bar { display: flex; border-top: 1.5px solid var(--color-border); }
.chat-input-bar input { flex: 1; border: none; padding: 10px; font-size: 0.9em; font-family: var(--font-body); outline: none; }
.chat-input-bar button { border-radius: 0; }

/* ── WebSocket Status Banner ─────────────────────────────── */
.ws-status-banner { padding: 8px 18px; text-align: center; font-weight: 600; border-radius: var(--radius); margin-bottom: 12px; font-size: 0.875rem; }
.ws-status-connecting { background: var(--color-warning-bg); color: var(--color-warning-text); border: 1px solid var(--color-warning-border); }
.ws-status-reconnecting { background: var(--color-danger-bg); color: var(--color-danger-text); border: 1px solid var(--color-danger-border); }

/* ── Draft Participants Table ────────────────────────────── */
.draft-pos {
    width: 40px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}
.badge-you {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-nav);
    margin-left: 6px;
    vertical-align: middle;
}
.nonq-divider-row { pointer-events: none; }
.nonq-divider-row td {
    background: #f3f4f6;
    padding: 5px 16px;
    border-top: 1.5px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.nonq-divider-row:hover { background: #f3f4f6 !important; }
.nonq-divider-label {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-text-muted);
}
.nonq-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
    border: 1px solid var(--color-danger-border);
    margin-left: 5px;
    vertical-align: middle;
    white-space: nowrap;
}
.table tr.draft-order-nonq { background: #fafafa; }
.table tr.draft-order-nonq:hover { background: #f5f5f4; }
.table tr.draft-order-nonq td { opacity: 0.7; }
.table tr.draft-order-nonq.highlight-row { background: var(--color-primary-light); opacity: 1; }
.table tr.draft-order-nonq.highlight-row td { opacity: 1; }
.table tr.draft-order-nonq.highlight-row:hover { background: #fef3c7; }

/* ── Table Footer ────────────────────────────────────────── */
.table tfoot td {
    font-weight: 700;
    background: #f3f4f6;
    border-top: 2px solid var(--color-border);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

/* ── Mobile Responsive Navbar ────────────────────────────── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-nav);
        padding: 14px 24px;
        gap: 6px;
        z-index: 100;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .navbar { position: relative; flex-wrap: wrap; }
    .nav-links form { display: inline; }
    .container { padding: 0 16px; margin: 20px auto; }
}

/* ── Mobile Responsive Tables ────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 600px) {
    .table th, .table td { padding: 8px 10px; font-size: 0.82em; }
}

/* ── Mobile Responsive Draft Room ────────────────────────── */
@media (max-width: 900px) {
    .draft-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .draft-layout .sidebar { order: 1; position: static; }
    .draft-layout .main-area { order: 2; }
    .draft-layout .priority-panel { order: 3; }
    .current-turn { position: sticky; top: 0; z-index: 50; }
}
@media (max-width: 600px) {
    .draft-layout { gap: 12px; }
    .timer { font-size: 1.8rem; }
}

/* ── Touch-Friendly Buttons ──────────────────────────────── */
@media (pointer: coarse) {
    .btn-sm { min-height: 40px; padding: 8px 14px; }
    .priority-touch-controls .btn { min-width: 44px; min-height: 44px; }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    margin-top: 2.5rem;
    border-top: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 24px 1.5rem;
}
.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-text); text-decoration: none; }
.footer-meta { margin: 0; }

/* ── Hero Section (home page) ────────────────────────────── */
.hero {
    padding: 48px 0 36px;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}
.hero-headline .accent { color: var(--color-primary); }
.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-how {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.hero-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.hero-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: var(--color-nav);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}
.hero-step h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--color-text);
}
.hero-step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Auth Card ───────────────────────────────────────────── */
.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    max-width: 440px;
    box-shadow: var(--shadow-md);
    margin: 20px 0;
}
.auth-card h1 {
    margin-bottom: 1.25rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
