/* ============================================================
   TrackHW — Modern Restyle
   Aesthetic: Clean editorial with warm slate tones & amber accents
   Fonts: DM Sans (body) + Instrument Serif (display)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=Instrument+Serif:ital@0;1&display=swap');

/* ── 1. Design Tokens ───────────────────────────────────────── */
:root {
    --accent:       #f59e0b;
    --accent-dim:   #fbbf24;
    --accent-muted: rgba(245,158,11,.1);

    --danger:   #ef4444;
    --success:  #22c55e;
    --info:     #38bdf8;

    --bg:         #f8f7f4;
    --bg-card:    #ffffff;
    --bg-raised:  #f1efe9;
    --border:     #e5e2d9;
    --text:       #1c1917;
    --text-muted: #78716c;
    --text-dim:   #a8a29e;
    --nav-bg:     #fffefb;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.10);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

[data-bs-theme="dark"] {
    --bg:         #131211;
    --bg-card:    #1e1c1a;
    --bg-raised:  #272422;
    --border:     #302e2b;
    --text:       #f5f0eb;
    --text-muted: #a8a29e;
    --text-dim:   #6b6560;
    --nav-bg:     #1a1816;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
    --shadow-md:  0 4px 16px rgba(0,0,0,.35);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.5);
}

/* ── 2. Base Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

/* ── 3. Navbar ──────────────────────────────────────────────── */
.navbar {
    background-color: var(--nav-bg) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 1.25rem;
    min-height: 60px;
}

.navbar-brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: -.01em;
    color: var(--text) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.brand-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-bottom: 1px;
    flex-shrink: 0;
}

.nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: .45rem .75rem !important;
    border-radius: 8px;
    transition: color .15s, background .15s;
    letter-spacing: .01em;
}

.nav-link:hover {
    color: var(--text) !important;
    background: var(--bg-raised);
}

/* ── 4. Main container ──────────────────────────────────────── */
main.container-fluid {
    padding: 2rem !important;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeUp .3s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 5. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.02em;
    color: var(--text);
}

h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 2.2rem;
}

/* ── 6. Cards (generic Bootstrap override) ──────────────────── */
.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
}

/* ── 7. Stat Cards ──────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
}

.stat-card.danger::before  { background: var(--danger); }
.stat-card.today::before   { background: var(--accent); }
.stat-card.success::before { background: var(--success); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-dim);
    margin-bottom: .4rem;
}

.stat-value {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 400;
}

.stat-card.danger  .stat-value { color: var(--danger); }
.stat-card.today   .stat-value { color: var(--accent); }
.stat-card.success .stat-value { color: var(--success); }

/* ── 8. Focus Timer ─────────────────────────────────────────── */
.timer-card {
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    border: 1px solid #3d3632;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.6rem;
    color: #f5f0eb;
}

[data-bs-theme="dark"] .timer-card {
    background: linear-gradient(135deg, #0f0e0d 0%, #1a1816 100%);
    border-color: #2a2623;
}

.timer-card h5 { color: #f5f0eb; margin: 0; }

.timer-display-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#timer-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--accent) !important;
    font-family: 'Instrument Serif', Georgia, serif !important;
    font-size: 2.5rem !important;
    width: 72px !important;
    text-align: center;
    outline: none !important;
    padding: 0 !important;
    line-height: 1;
}

#timer-colon {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: .5;
    line-height: 1;
}

#timer-seconds {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: .8;
    line-height: 1;
    min-width: 50px;
}

#timer-label {
    display: block;
    font-size: .78rem;
    color: #78716c;
    margin-top: .15rem;
}

.btn-timer {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #e7e5e4;
    font-size: .8rem;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: 6px;
    transition: all .15s;
    cursor: pointer;
}

.btn-timer:hover { background: rgba(255,255,255,.15); }

.btn-timer-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #1c1917;
    font-size: .8rem;
    font-weight: 700;
    padding: .4rem .9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
}

.btn-timer-primary:hover { background: var(--accent-dim); }

/* ── 9. Table ───────────────────────────────────────────────── */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    margin: 0;
    color: var(--text);
}

.table thead th {
    background: var(--bg-raised) !important;
    border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
    color: var(--text-dim) !important;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: .9rem 1.1rem;
}

.table tbody td {
    border-bottom: 1px solid var(--border) !important;
    padding: .85rem 1.1rem;
    vertical-align: middle;
    font-size: .9rem;
    color: var(--text);
}

.table tbody tr:last-child td { border-bottom: none !important; }

.table-hover tbody tr { transition: background .12s; }
.table-hover tbody tr:hover { background: var(--bg-raised) !important; }

/* Row state overrides (replaces table-success / table-danger) */
tr.row-done td { opacity: .55; }
tr.row-done .fw-bold { text-decoration: line-through; }
tr.row-overdue { border-left: 3px solid var(--danger); }

/* ── 10. Badges ─────────────────────────────────────────────── */
.badge-subject {
    display: inline-block;
    padding: .22rem .65rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--accent-muted);
    color: #d97706;
    border: 1px solid rgba(245,158,11,.18);
}

[data-bs-theme="dark"] .badge-subject { color: var(--accent); }

.badge-subject.muted {
    background: var(--bg-raised);
    color: var(--text-dim);
    border-color: var(--border);
}

.badge-pill {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-overdue { background: rgba(239,68,68,.1);  color: #dc2626; }
.badge-today   { background: rgba(245,158,11,.1); color: #d97706; }
.badge-soon    { background: rgba(56,189,248,.1);  color: #0284c7; }

[data-bs-theme="dark"] .badge-overdue { color: #f87171; }
[data-bs-theme="dark"] .badge-today   { color: #fbbf24; }
[data-bs-theme="dark"] .badge-soon    { color: #38bdf8; }

/* ── 11. Action Buttons (table row) ─────────────────────────── */
.btn-done {
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.2);
    color: #16a34a;
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .65rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.btn-done:hover { background: rgba(34,197,94,.18); }

.btn-undo {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .65rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all .15s;
}

.btn-edit {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 500;
    padding: .28rem .65rem;
    border-radius: 7px;
    text-decoration: none;
    display: inline-block;
    transition: all .15s;
}

.btn-edit:hover { background: var(--bg-raised); color: var(--text); }

.btn-del {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-size: .875rem;
    font-weight: 700;
    padding: .28rem .55rem;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1;
    transition: all .15s;
}

.btn-del:hover {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.18);
    color: var(--danger);
}

/* ── 12. Primary Button ─────────────────────────────────────── */
.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #1c1917 !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    transition: all .15s;
}

.btn-primary:hover {
    background: var(--accent-dim) !important;
    border-color: var(--accent-dim) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.2) !important;
}

.btn-primary:focus { box-shadow: 0 0 0 3px rgba(245,158,11,.25) !important; }

.btn-outline-primary {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .875rem;
}

.btn-outline-primary:hover {
    background: var(--accent-muted) !important;
    color: #d97706 !important;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-link {
    color: var(--text-muted) !important;
    font-size: .875rem;
}

/* ── 13. Forms ──────────────────────────────────────────────── */
.form-control, .form-select {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    font-size: .9rem;
    padding: .6rem .85rem;
    transition: border-color .15s, box-shadow .15s;
    font-family: 'DM Sans', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15) !important;
    outline: none;
}

.form-control::placeholder { color: var(--text-dim) !important; }

.form-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
}

.form-control-lg {
    font-size: 1rem !important;
    padding: .7rem 1rem !important;
}

.form-select-lg {
    font-size: 1rem !important;
    padding: .7rem 1rem !important;
}

/* Number/time input fix */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input[type="time"], input[type="number"] { padding-right: 10px !important; }

/* ── 14. Notification Toggle ────────────────────────────────── */
.form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* ── 15. Auth Cards ─────────────────────────────────────────── */
.auth-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: .25rem;
}

.auth-sub {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: 2rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 .75rem;
    font-size: .78rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── 16. Google Sign-In ─────────────────────────────────────── */
.gsi-material-button {
    -webkit-user-select: none;
    user-select: none;
    appearance: none;
    background-color: var(--bg-card);
    background-image: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    height: 46px;
    letter-spacing: .01em;
    outline: none;
    padding: 0 16px;
    width: 100%;
    transition: background .15s, box-shadow .15s;
    position: relative;
}

.gsi-material-button:hover { background: var(--bg-raised); box-shadow: var(--shadow-sm); }

.gsi-material-button .gsi-material-button-icon { height: 18px; margin-right: 10px; min-width: 18px; width: 18px; }
.gsi-material-button .gsi-material-button-content-wrapper { align-items: center; display: flex; height: 100%; justify-content: center; }
.gsi-material-button .gsi-material-button-contents { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.gsi-material-button .gsi-material-button-state { transition: opacity .2s; bottom:0; left:0; opacity:0; position:absolute; right:0; top:0; }
.gsi-material-button:disabled { opacity: .45; cursor: default; }
.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state { background-color: #303030; opacity: 10%; }
.gsi-material-button:not(:disabled):hover .gsi-material-button-state { background-color: #303030; opacity: 6%; }

/* ── 17. Landing Page ───────────────────────────────────────── */
.hero {
    background: linear-gradient(155deg, #1c1917 0%, #292524 60%, #1c1917 100%);
    color: #f5f0eb;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -5%;
    width: 550px; height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    padding: .3rem .85rem;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.22);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #f5f0eb;
    margin-bottom: 1.25rem;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero .lead {
    color: #a8a29e;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.btn-hero {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9rem;
    padding: .85rem 2rem;
    text-decoration: none;
    transition: all .2s;
    display: inline-block;
    cursor: pointer;
}

.btn-hero.primary {
    background: var(--accent);
    color: #1c1917;
}

.btn-hero.primary:hover {
    background: var(--accent-dim);
    color: #1c1917;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,158,11,.28);
}

.btn-hero.ghost {
    background: rgba(255,255,255,.05);
    color: #f5f0eb;
    border: 1px solid rgba(255,255,255,.12);
}

.btn-hero.ghost:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.feature-grid {
    padding: 5rem 0;
    background: var(--bg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card:hover::after { opacity: 1; }

.feature-icon { font-size: 1.6rem; margin-bottom: .85rem; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.feature-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

.cta-strip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.cta-strip h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: .5rem;
}

.cta-strip p { color: var(--text-muted); margin-bottom: 1.75rem; font-size: .925rem; }

/* ── 18. Calendar ───────────────────────────────────────────── */
#calendar { padding: 1.5rem; background: transparent; color: inherit; }

.fc-toolbar-title {
    font-family: 'Instrument Serif', Georgia, serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    letter-spacing: -.01em !important;
}

.fc-button-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    border-radius: var(--radius-sm) !important;
    color: #1c1917 !important;
    font-weight: 600 !important;
    font-size: .8rem !important;
    padding: .4rem .9rem !important;
    box-shadow: none !important;
}

.fc-button-primary:hover {
    background-color: var(--accent-dim) !important;
    border-color: var(--accent-dim) !important;
}

.fc-button-primary:focus { box-shadow: 0 0 0 3px rgba(245,158,11,.2) !important; }

.fc td, .fc th { border-color: var(--border) !important; }
.fc-day-today { background-color: var(--accent-muted) !important; }

.fc-col-header-cell-cushion, .fc-daygrid-day-number {
    color: var(--text); text-decoration: none;
    font-size: .8rem; font-weight: 500;
}

.fc-event {
    border-radius: 5px !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    border: none !important;
    background: var(--accent) !important;
    color: #1c1917 !important;
    padding: 1px 5px !important;
}

/* ── 19. Modals ─────────────────────────────────────────────── */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
}

.modal-header { border-bottom: 1px solid var(--border) !important; padding: 1.25rem 1.5rem !important; }
.modal-footer { border-top: 1px solid var(--border) !important; padding: 1rem 1.5rem !important; }
.modal-title { font-size: .975rem !important; font-weight: 600 !important; color: var(--text) !important; }
.btn-close { filter: var(--bs-btn-close-white-filter, none); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ── 20. Alerts ─────────────────────────────────────────────── */
.alert-primary {
    background: rgba(245,158,11,.08) !important;
    border: 1px solid rgba(245,158,11,.22) !important;
    color: #92400e !important;
    border-radius: var(--radius-sm) !important;
}

[data-bs-theme="dark"] .alert-primary { color: var(--accent) !important; }

.alert-warning {
    background: rgba(245,158,11,.08) !important;
    border: 1px solid rgba(245,158,11,.22) !important;
    border-radius: var(--radius-sm) !important;
    color: #92400e !important;
}

[data-bs-theme="dark"] .alert-warning { color: #fbbf24 !important; }

/* ── 21. Empty States ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.empty-icon { font-size: 2.2rem; opacity: .35; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: .4rem; }
.empty-state p { color: var(--text-dim); font-size: .875rem; margin-bottom: 1.5rem; }

/* ── 22. Schedule Page ──────────────────────────────────────── */
.day-badge {
    display: inline-flex;
    align-items: center;
    padding: .28rem .85rem;
    background: var(--accent-muted);
    border: 1px solid rgba(245,158,11,.18);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #d97706;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .day-badge { color: var(--accent); }

/* Table-light in dark mode */
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th {
    background-color: var(--bg-raised) !important;
    color: var(--text-dim) !important;
    --bs-table-bg: var(--bg-raised) !important;
}

/* ── 23. Footer ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border) !important;
    background: var(--nav-bg);
    padding: 2rem 0;
}

.footer-brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.1rem;
    color: var(--text);
    display: block;
    margin-bottom: .35rem;
}

.footer a { color: var(--text-muted); text-decoration: none; font-size: .825rem; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer p { margin: 0; }

/* ── 24. Register centering ─────────────────────────────────── */
.register-wrap {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}
