/* ============================================
   First and Long — style.css
   Location: /var/www/html/assets/css/style.css
   ============================================ */

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f4f4f2;
    min-height: 100vh;
}

a { color: #1a6bc4; text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1 { font-size: 22px; font-weight: 500; }
h2 { font-size: 18px; font-weight: 500; }
h3 { font-size: 16px; font-weight: 500; }

/* ----------------------------------------
   Nav
   ---------------------------------------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid #e8e8e6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img { height: 36px; width: auto; border-radius: 50%; }

.nav-logo-text {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    font-size: 13px;
    color: #666;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover { background: #f4f4f2; color: #1a1a1a; text-decoration: none; }

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
    background: #f4f4f2;
}

.nav-link-admin { color: #b33; }
.nav-link-admin:hover { background: #fff0f0; color: #b33; }
.nav-link-admin.active { background: #fff0f0; color: #b33; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex-shrink: 0;
}

.nav-account { color: #444; text-decoration: none; }
.nav-account:hover { color: #1a1a1a; text-decoration: none; }
.nav-account.active { font-weight: 500; color: #1a1a1a; }

.nav-logout { color: #999; font-size: 12px; }
.nav-logout:hover { color: #b33; text-decoration: none; }

/* ----------------------------------------
   Flash messages
   ---------------------------------------- */
.flash {
    padding: 12px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flash-success { background: #edfaf3; color: #1a7a4a; border-bottom: 1px solid #b2e8cf; }
.flash-error   { background: #fdf2f2; color: #b33;    border-bottom: 1px solid #f5c0c0; }
.flash-info    { background: #eef4fd; color: #1a5ca8; border-bottom: 1px solid #b8d4f5; }

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}

/* ----------------------------------------
   Alerts
   ---------------------------------------- */
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success { background: #edfaf3; color: #1a7a4a; border: 1px solid #b2e8cf; }
.alert-danger  { background: #fdf2f2; color: #b33;    border: 1px solid #f5c0c0; }
.alert-info    { background: #eef4fd; color: #1a5ca8; border: 1px solid #b8d4f5; }

.error-list { padding-left: 16px; list-style: disc; }
.error-list li { margin-bottom: 4px; }

/* ----------------------------------------
   Main content area
   ---------------------------------------- */
.site-main { flex: 1; }

.page-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0 40px;
}

.page-wrap-narrow {
    max-width: 520px;
    margin: 24px auto;
    padding: 0 16px 40px;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
    border-top: 1px solid #e8e8e6;
    background: #fff;
    margin-top: 40px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.field-group label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-link { font-size: 12px; font-weight: 400; color: #1a6bc4; }
.label-optional { font-weight: 400; color: #999; font-size: 11px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    font-size: 14px;
    border: 1px solid #d8d8d6;
    border-radius: 7px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1a6bc4;
    box-shadow: 0 0 0 3px rgba(26, 107, 196, 0.12);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 32px;
}

.field-hint { font-size: 11px; color: #999; }

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

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn-primary {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover { background: #333; text-decoration: none; color: #fff; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.btn-full { width: 100%; text-align: center; }

.btn-secondary {
    background: #fff;
    color: #444;
    border: 1px solid #d8d8d6;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover { background: #f4f4f2; text-decoration: none; color: #1a1a1a; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-danger {
    background: #fff;
    color: #b33;
    border: 1px solid #f5c0c0;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.btn-danger:hover { background: #fdf2f2; }

.btn-danger-sm {
    background: none;
    color: #b33;
    border: 1px solid #f5c0c0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.btn-danger-sm:hover { background: #fdf2f2; }

.btn-warning {
    background: #fff;
    color: #854f0b;
    border: 1px solid #fac775;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.btn-warning:hover { background: #faeeda; }

/* ----------------------------------------
   Toggle switch
   ---------------------------------------- */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0ee;
}

.toggle-row:last-of-type { border-bottom: none; }
.toggle-row-disabled { opacity: 0.45; pointer-events: none; }

.toggle-info { flex: 1; padding-right: 16px; }
.toggle-label { font-size: 13px; color: #1a1a1a; }
.toggle-sub   { font-size: 11px; color: #888; margin-top: 2px; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 11px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: #2a9d5c; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }
.toggle-switch-disabled { pointer-events: none; }

/* ----------------------------------------
   Upload area
   ---------------------------------------- */
.upload-area {
    border: 1.5px dashed #d0d0ce;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fafaf8;
    transition: border-color 0.15s, background 0.15s;
}

.upload-area:hover { border-color: #1a6bc4; background: #eef4fd; }
.upload-icon { font-size: 24px; color: #bbb; margin-bottom: 6px; }
.upload-text { font-size: 13px; color: #555; }
.upload-hint { font-size: 11px; color: #999; margin-top: 3px; }

.photo-preview-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.photo-preview-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0de;
}

.photo-preview-empty {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d6;
}

.photo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ----------------------------------------
   Auth pages
   ---------------------------------------- */
.auth-page {
    background: #f4f4f2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 12px;
    padding: 32px 36px;
    width: 100%;
    max-width: 400px;
}

.auth-card-wide { max-width: 480px; }

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 1px solid #e8e8e6;
}

.auth-logo-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f4f4f2;
    border: 1.5px dashed #d0d0ce;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.auth-logo-placeholder span { font-size: 13px; color: #bbb; }

.auth-title {
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.auth-subtitle {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-bottom: 20px;
    margin-top: -8px;
}

.auth-footer-link {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 16px;
}

.auth-site-footer {
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin-top: 20px;
}

/* ----------------------------------------
   Week bar
   ---------------------------------------- */
.week-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e6;
    position: sticky;
    top: 52px;
    z-index: 90;
}

.week-title { text-align: center; }
.week-label { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.week-sub   { font-size: 11px; color: #888; margin-top: 1px; }

.week-nav { min-width: 90px; }
.week-nav-right { text-align: right; }

.week-btn {
    font-size: 12px;
    color: #555;
    border: 1px solid #e0e0de;
    border-radius: 6px;
    padding: 5px 10px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    transition: background 0.15s;
}

.week-btn:hover { background: #f4f4f2; text-decoration: none; color: #1a1a1a; }
.week-btn-disabled { visibility: hidden; }

/* ----------------------------------------
   Tabs
   ---------------------------------------- */
.tab-bar {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
    background: #fff;
    border-bottom: 1px solid #e8e8e6;
}

.tab {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e8e8e6;
    border-bottom: none;
    color: #888;
    background: #f4f4f2;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: -1px;
}

.tab:hover { background: #eee; text-decoration: none; color: #444; }

.tab-active {
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
}

/* ----------------------------------------
   Day label
   ---------------------------------------- */
.day-label {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ----------------------------------------
   Game cards (picks page)
   ---------------------------------------- */
.game-card {
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 10px;
    margin: 0 12px 10px;
    padding: 14px 14px 12px;
}

.game-card.game-locked { opacity: 0.72; }

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.game-spread {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.game-time { font-size: 11px; color: #999; }

/* Badges */
.badge {
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    display: inline-block;
}

.badge-upcoming { background: #faeeda; color: #854f0b; }
.badge-locked   { background: #f4f4f2; color: #777; }
.badge-final    { background: #f4f4f2; color: #555; }
.badge-live     { background: #fdf2f2; color: #b33; }
.badge-admin    { background: #fdf2f2; color: #b33; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.badge-disabled { background: #f4f4f2; color: #999; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }

/* Teams grid */
.teams-grid {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    align-items: center;
    gap: 6px;
}

.vs-col {
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

.team-btn {
    border: 1px solid #e0e0de;
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    background: #fafaf8;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    width: 100%;
}

.team-btn:hover { background: #f0f0ee; }

.team-btn.selected {
    background: #eef4fd;
    border: 1.5px solid #1a6bc4;
}

.team-btn-locked {
    cursor: default;
    pointer-events: none;
}

.team-logo-wrap { margin-bottom: 6px; }

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 1.5px solid transparent;
    transition: border-color 0.15s;
}

.logo-picked {
    border: 2.5px solid #2a9d5c !important;
    background: #edfaf3;
    padding: 1px;
}

.team-name { font-size: 12px; font-weight: 500; color: #1a1a1a; margin-top: 2px; }

/* Points pills */
.pts-pill {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 4px;
    display: inline-block;
}

.pts-fav { background: #f4f4f2; color: #888; }
.pts-dog { background: #faeeda; color: #854f0b; }

/* Game footer */
.game-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0ee;
    font-size: 11px;
}

.pick-status { color: #888; }
.pick-status-saved  { color: #2a9d5c; }
.pick-status-locked { color: #555; }
.pick-status-none   { color: #ccc; }
.pick-status-pending { color: #aaa; font-style: italic; }

/* Empty state */
.empty-state {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    padding: 40px 20px;
}

/* ----------------------------------------
   Leaderboard
   ---------------------------------------- */
.winner-bar {
    margin: 12px 12px 4px;
    padding: 10px 14px;
    background: #faeeda;
    border: 1px solid #fac775;
    border-radius: 8px;
    font-size: 12px;
    color: #854f0b;
}

.board-wrap {
    margin: 0 12px;
    border: 1px solid #e8e8e6;
    border-radius: 0 10px 10px 10px;
    overflow: hidden;
    background: #fff;
}

.board-header {
    background: #f8f8f6;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 8px 12px;
    border-bottom: 1px solid #e8e8e6;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.board-row, .board-header {
    display: grid;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0ee;
}

.board-row:last-child { border-bottom: none; }
.board-row-week   { grid-template-columns: 32px 1fr 64px 64px 80px; }
.board-row-season { grid-template-columns: 32px 1fr 64px 80px 64px; }

.board-row-me     { background: #eef4fd; }
.board-row-winner { background: #fefbf0; }

.col-rank { text-align: center; font-size: 13px; color: #888; font-weight: 500; }
.rank-trophy { font-size: 15px; }
.col-player { display: flex; align-items: center; gap: 8px; }
.col-stat   { text-align: center; font-size: 13px; color: #444; }
.col-stat-highlight { font-weight: 500; color: #2a9d5c; }

.player-avatar { flex-shrink: 0; }
.player-info   {}
.player-team   { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.player-username { font-size: 11px; color: #999; }

.you-badge {
    font-size: 10px;
    background: #eef4fd;
    color: #1a5ca8;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 400;
}

.tied-badge {
    font-size: 10px;
    background: #faeeda;
    color: #854f0b;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 400;
}

/* Avatar initials */
.avatar-initials {
    border-radius: 50%;
    background: #eef4fd;
    color: #1a5ca8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-shrink: 0;
}

/* ----------------------------------------
   Results page
   ---------------------------------------- */
.result-card { padding: 14px; }

.result-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.result-team { text-align: center; padding: 8px; }
.result-team-away { text-align: center; }
.team-winner { }
.team-loser  { opacity: 0.4; }

.result-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 6px;
    border: 1.5px solid #e8e8e6;
}

.result-team-name { font-size: 12px; font-weight: 500; color: #1a1a1a; }

.result-score { text-align: center; }

.score-line {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.score { font-size: 22px; font-weight: 500; color: #1a1a1a; }
.score-loser { color: #bbb; }
.score-sep   { font-size: 16px; color: #ccc; }
.score-pending { font-size: 14px; color: #bbb; }

.upset-label {
    font-size: 10px;
    background: #faeeda;
    color: #854f0b;
    padding: 2px 7px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.picks-divider { border: none; border-top: 1px solid #f0f0ee; margin: 8px 0; }
.picks-label { font-size: 11px; color: #aaa; margin-bottom: 8px; }

.picks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.pick-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.pick-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e0e0de;
}

.pick-correct { border-color: #2a9d5c; background: #edfaf3; padding: 1px; }
.pick-wrong   { border-color: #c0392b; opacity: 0.6; }
.pick-pending { border-color: #1a6bc4; background: #eef4fd; padding: 1px; }

.pick-name    { font-size: 10px; color: #888; max-width: 40px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-name-me { color: #1a5ca8; font-weight: 500; }

/* Table view */
.table-legend {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    font-size: 11px;
    color: #888;
}

.legend-item { display: flex; align-items: center; gap: 5px; }

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #e0e0de;
    display: inline-block;
}

.legend-correct { background: #edfaf3; border-color: #2a9d5c; }
.legend-wrong   { background: #fdf2f2; border-color: #c0392b; opacity: 0.7; }
.legend-pending { background: #eef4fd; border-color: #1a6bc4; }

.table-scroll { overflow-x: auto; margin: 0 12px 16px; border: 1px solid #e8e8e6; border-radius: 10px; }

.picks-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.picks-table th, .picks-table td { border-bottom: 1px solid #f0f0ee; }
.picks-table tr:last-child td    { border-bottom: none; }

.col-player-th { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 600; color: #888; width: 140px; background: #f8f8f6; }
.col-game-th   { text-align: center; padding: 6px 4px; font-size: 10px; color: #888; width: 48px; background: #f8f8f6; }
.col-pts-th    { text-align: center; padding: 8px 8px; font-size: 11px; font-weight: 600; color: #888; width: 44px; background: #f8f8f6; }

.col-player-td { padding: 8px 12px; }
.col-game-td   { text-align: center; padding: 6px 4px; }
.col-pts-td    { text-align: center; padding: 8px; font-size: 13px; font-weight: 500; color: #1a1a1a; }

.th-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin: 0 auto 2px; border: 1px solid #e0e0de; }
.th-matchup { font-size: 9px; color: #aaa; }
.th-status  { font-size: 9px; color: #aaa; }
.th-live    { color: #b33; }
.th-unlocked { color: #854f0b; }
.th-upset   { font-size: 9px; background: #faeeda; color: #854f0b; padding: 1px 4px; border-radius: 4px; display: inline-block; margin-top: 2px; }

.table-player { display: flex; align-items: center; gap: 6px; }
.table-team   { font-size: 12px; font-weight: 500; color: #1a1a1a; }
.table-username { font-size: 10px; color: #aaa; }

.row-me { background: #f0f5fd; }

.pick-logo-empty { font-size: 12px; color: #ddd; }

/* ----------------------------------------
   Account page
   ---------------------------------------- */
.account-card {
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.account-card-danger { border-color: #f5c0c0; }

.account-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0ee;
}

.account-team { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.account-meta { font-size: 12px; color: #888; margin-top: 2px; }

.card-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0ee;
}

.card-section-title-danger { color: #b33; border-color: #f5c0c0; }

.danger-text { font-size: 13px; color: #777; margin-bottom: 12px; }

/* ----------------------------------------
   Admin layout
   ---------------------------------------- */
.admin-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    max-width: 960px;
    margin: 0 auto;
    min-height: calc(100vh - 52px);
}

.admin-nav {
    border-right: 1px solid #e8e8e6;
    padding: 16px 0;
    background: #fafaf8;
}

.admin-nav-section {
    font-size: 10px;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 16px 4px;
}

.admin-nav-item {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.admin-nav-item:hover { background: #f0f0ee; color: #1a1a1a; text-decoration: none; }
.admin-nav-active { color: #1a1a1a; font-weight: 500; border-left-color: #1a1a1a; background: #f0f0ee; }
.admin-nav-divider { border-top: 1px solid #ececea; margin: 10px 0; }
.admin-nav-back { color: #aaa; font-size: 12px; }

.admin-main { padding: 20px 24px; }

.admin-page-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f8f8f6;
    border-radius: 8px;
    padding: 14px;
}

.stat-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.stat-val   { font-size: 24px; font-weight: 500; color: #1a1a1a; }
.stat-val-sm { font-size: 15px; padding-top: 4px; }
.stat-sub   { font-size: 11px; color: #aaa; margin-top: 2px; }

/* Admin card */
.admin-card {
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0ee;
}

.admin-note {
    font-size: 12px;
    color: #888;
    background: #faeeda;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* Activity rows */
.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0ee;
    font-size: 12px;
    color: #555;
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.activity-dot-success { background: #2a9d5c; }
.activity-dot-info    { background: #1a6bc4; }
.activity-dot-warning { background: #e9a825; }

.activity-time { margin-left: auto; color: #bbb; white-space: nowrap; }

/* Player rows */
.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0ee;
    gap: 12px;
}

.player-row:last-child { border-bottom: none; }
.player-row-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.player-row-avatar { flex-shrink: 0; }
.player-row-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.player-row-meta { font-size: 11px; color: #999; margin-top: 1px; }
.player-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Game admin rows */
.game-admin-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0ee;
}

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

.game-admin-info { flex: 1; }
.game-admin-teams { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.game-vs { color: #bbb; margin: 0 6px; font-weight: 400; }
.game-admin-meta { font-size: 11px; color: #999; margin-top: 3px; }

.game-admin-actions { margin-top: 6px; }

.override-form {
    background: #fafaf8;
    border: 1px solid #e8e8e6;
    border-radius: 7px;
    padding: 12px;
    margin-top: 8px;
}

.override-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #555;
}

.override-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }

/* Log output */
.log-section { margin-bottom: 14px; }
.log-label   { font-size: 11px; font-weight: 600; color: #888; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.log-output {
    background: #1a1a1a;
    color: #ccc;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

/* ----------------------------------------
   Mobile bottom navigation
   ---------------------------------------- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e8e8e6;
    z-index: 200;
    flex-direction: row;
    align-items: stretch;
}

.mobile-nav .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #aaa;
    font-size: 10px;
    padding: 6px 4px;
    transition: color 0.15s;
    border-top: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav .mobile-nav-item:hover { color: #555; text-decoration: none; }
.mobile-nav .mobile-nav-item:active { background: #f4f4f2; }

.mobile-nav .mobile-nav-active {
    color: #1a1a1a !important;
    border-top-color: #1a1a1a;
}

.mobile-nav .mobile-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    display: block;
}

.mobile-nav .mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* Add bottom padding when mobile nav is visible */
body.has-mobile-nav .site-footer { margin-bottom: 60px; }

@media (max-width: 700px) {
    .mobile-nav { display: flex; }
    .nav-links   { display: none; }
    .nav-user    { display: none; }
    body.has-mobile-nav { padding-bottom: 60px; }
}

/* ----------------------------------------
   Responsive — tablet
   ---------------------------------------- */
@media (max-width: 700px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-nav { display: flex; overflow-x: auto; padding: 8px; gap: 4px; border-right: none; border-bottom: 1px solid #e8e8e6; }
    .admin-nav-section { display: none; }
    .admin-nav-item { padding: 6px 12px; border-left: none; border-radius: 6px; white-space: nowrap; }
    .admin-nav-active { border-left: none; }
    .admin-nav-divider { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .board-row-week, .board-row-season { grid-template-columns: 28px 1fr 52px 52px; }
    .board-row-week .col-stat:last-child, .board-row-season .col-stat:last-child { display: none; }
    .auth-card { padding: 24px 20px; }
    .nav-links { display: none; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .teams-grid { grid-template-columns: 1fr 22px 1fr; }
    .result-teams { grid-template-columns: 1fr auto 1fr; }
}
