:root {
    --font-size: 16px;
    /* Primary palette — Navy & Sand (from the wordmark, brand navy #1C3A52) */
    --primary: #1c3a52;
    --primary-light: #38708f;
    --primary-lighter: #5d87a3;
    --primary-50: #eaeef3;
    --primary-100: #dde4ec;
    /* Accent (steel blue) */
    --accent: #38708f;
    --accent-light: #e8f0f5;
    --accent-dark: #2b5872;
    /* Neutrals */
    --gray-50: #f9fbfc;
    --gray-100: #f4f6f8;
    --gray-200: #e6ecf2;
    --gray-300: #dde4ec;
    --gray-400: #8895a5;
    --gray-500: #66788c;
    --gray-600: #47566a;
    --gray-700: #324357;
    --gray-800: #223144;
    --gray-900: #16222e;
    /* Semantic */
    --emerald-500: #2e9e6b;
    --emerald-600: #27865b;
    --emerald-50: #e2f4ec;
    --red-500: #d0434f;
    --red-600: #b93641;
    --red-50: #fbe6e8;
    --yellow-500: #cba035;
    --warning-bg: #f6efd6;
    --white: #ffffff;
    --radius: 0.625rem;
    --border: rgba(28, 58, 82, 0.12);
    --shadow-sm: 0 1px 2px rgba(28, 58, 82, 0.06);
    --shadow: 0 1px 3px rgba(28, 58, 82, 0.1), 0 1px 2px rgba(28, 58, 82, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(28, 58, 82, 0.1), 0 2px 4px -2px rgba(28, 58, 82, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(28, 58, 82, 0.1), 0 4px 6px -4px rgba(28, 58, 82, 0.06);
}

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

html { font-size: var(--font-size); scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 50%, var(--accent-light) 100%);
    background-attachment: fixed;
    line-height: 1.5;
    min-height: 100vh;
    font-weight: 400;
}

h1 { font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
h4 { font-size: 1rem; font-weight: 500; line-height: 1.5; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ====== GRADIENT TEXT ====== */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== NAVBAR ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.navbar-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-top-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ====== USER DROPDOWN MENU ====== */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s;
}

.user-menu-trigger::-webkit-details-marker { display: none; }
.user-menu-trigger:hover { background: rgba(28, 58, 82, 0.05); }

.user-menu-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.user-menu-caret {
    color: var(--gray-500);
    transition: transform 0.18s ease;
}

.user-menu[open] .user-menu-caret { transform: rotate(180deg); }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    z-index: 60;
    animation: user-menu-in 0.14s ease;
}

@keyframes user-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu-head {
    padding: 0.65rem 0.75rem;
}

.user-menu-fullname {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
}

.user-menu-email {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-sep {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: background 0.12s, color 0.12s;
}

.user-menu-item:hover { background: var(--gray-50, #f7f7fa); }

.user-menu-item-danger { color: var(--red-600, #dc2626); }
.user-menu-item-danger:hover { background: rgba(220, 38, 38, 0.08); }

.navbar-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    overflow-x: auto;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-tab:hover {
    color: var(--primary);
    background: rgba(28, 58, 82, 0.04);
}

.nav-tab.active {
    color: var(--primary-light);
    background: var(--primary-50);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    background: var(--red-500);
    border-radius: 999px;
}

.navbar-public {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ====== CONTAINER ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ====== CARDS ====== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card + .card {
    margin-top: 1.5rem;
}

.card-narrow {
    max-width: 480px;
    margin: 2rem auto;
}

.container-narrow {
    max-width: 640px;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-content {
    padding: 1.5rem;
}

.card-content:last-child {
    padding-bottom: 1.5rem;
}

.card-body > h2 {
    margin-bottom: 1rem;
}

.card-header-row h2 {
    margin-bottom: 0;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ====== BADGES ====== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-default { background: var(--gray-900); color: var(--white); }
.badge-secondary { background: #ececf0; color: var(--gray-700); border-color: transparent; }
.badge-success { background: var(--emerald-50); color: var(--emerald-600); }
.badge-success-solid { background: var(--emerald-500); color: var(--white); }
.badge-warning { background: #fef6e0; color: #b58105; }
.badge-error { background: var(--red-50); color: var(--red-600); }
.badge-destructive { background: var(--red-500); color: var(--white); }
.badge-outline { background: transparent; border-color: var(--border); color: var(--gray-700); }
.badge-sky { background: var(--primary-50); color: var(--primary-light); border-color: rgba(28, 58, 82, 0.2); }

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.25rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: var(--white);
}
.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-light), var(--accent-dark));
    color: var(--white);
}

.btn-default {
    background: var(--gray-900);
    color: var(--white);
}
.btn-default:hover {
    background: var(--gray-800);
    color: var(--white);
}

.btn-outline {
    border-color: var(--border);
    background: var(--white);
    color: var(--gray-800);
}
.btn-outline:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}
.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-destructive {
    background: var(--red-500);
    color: var(--white);
}
.btn-destructive:hover {
    background: var(--red-600);
    color: var(--white);
}

.btn-sky {
    background: var(--primary);
    color: var(--white);
}
.btn-sky:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.8rem;
    border-radius: calc(var(--radius) - 2px);
}

.btn-lg {
    height: 2.5rem;
    padding: 0 1.5rem;
}

/* Aliases */
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: var(--red-600); color: var(--white); }
.btn-success { background: var(--emerald-500); color: var(--white); }
.btn-success:hover { background: var(--emerald-600); color: var(--white); }

.btn-action {
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
}

/* ====== DATE BLOCK (shared) ====== */
.practice-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.practice-day {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    line-height: 1;
}

.practice-date-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.practice-month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    line-height: 1;
}

/* ====== TIME & DETAILS (shared) ====== */
.practice-card-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.practice-card-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.2rem;
}

.practice-card-action {
    flex-shrink: 0;
}

/* ====== PRACTICE CARDS (Trainee) ====== */
.practice-card {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: linear-gradient(to right, var(--primary-50), var(--accent-light));
    transition: box-shadow 0.2s;
    scroll-margin-top: 5rem;
}

/* Briefly highlight a card jumped to from the "My schedule" rail */
.practice-card:target,
.coach-practice-card:target {
    box-shadow: 0 0 0 2px var(--accent);
}

.practice-card:hover {
    box-shadow: var(--shadow-md);
}

.practice-card-cancelled {
    opacity: 0.55;
    background: var(--gray-100);
}

.practice-card + .practice-card {
    margin-top: 0.75rem;
}

.practice-card-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.practice-card-body {
    flex: 1;
    min-width: 0;
}

.practice-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

/* ====== PRACTICE PROGRESS BAR ====== */
.practice-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.practice-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
}

.practice-progress-fill {
    height: 100%;
    background: var(--emerald-500);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.practice-progress-fill.high {
    background: var(--yellow-500);
}

.practice-progress-fill.full {
    background: var(--red-500);
}

.practice-progress-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.practice-waitlist-label {
    font-size: 0.7rem;
    color: #b58105;
    font-weight: 500;
    white-space: nowrap;
}

/* ====== WAITLIST CHIPS (coach) ====== */
.attendee-chip-waitlist {
    border-style: dashed;
    opacity: 0.75;
}

.attendee-chip-avatar-waitlist {
    background: var(--warning-bg);
    color: #b58105;
}

/* ====== MONTH DIVIDER ====== */
.month-divider {
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.month-divider:first-child {
    margin-top: 0;
}

.month-divider-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.month-divider-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* ====== COACH PRACTICE CARD ====== */
.coach-practice-card {
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: linear-gradient(to right, var(--primary-50), var(--accent-light));
    margin-bottom: 1rem;
    scroll-margin-top: 5rem;
}

.coach-practice-card-cancelled {
    opacity: 0.55;
    background: var(--gray-100);
}

.coach-practice-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.coach-practice-body {
    flex: 1;
    min-width: 0;
}

.coach-practice-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
}

.coach-practice-footer .signed-up-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Coach leading a session (coach dashboard) */
.coach-lead {
    display: inline-flex;
    flex-direction: column;
    gap: 0.05rem;
    margin-top: 0.35rem;
    line-height: 1.25;
}

.coach-lead-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--gray-500);
}

.coach-lead-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}

.coach-lead-name-mine {
    color: var(--red-600);
}

/* ====== ATTENDEE CHIPS ====== */
.attendee-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attendee-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.attendee-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-100));
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* ====== DAY ROSTER POPOVER (trainee) ====== */
/* The list card must not clip the absolutely-positioned popover */
.card-overflow-visible {
    overflow: visible;
}

.day-roster {
    position: relative;
    display: inline-flex;
}

.day-roster-open {
    z-index: 30;
}

.day-roster-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-600);
    border-bottom: 1px dotted var(--gray-400);
    white-space: nowrap;
}

.day-roster-link:hover {
    color: var(--gray-800);
}

.day-roster-link svg {
    flex-shrink: 0;
}

.day-roster-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    width: 300px;
    max-width: calc(100vw - 2rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(28, 58, 82, 0.16);
    padding: 0.875rem 1rem 0.75rem;
    z-index: 30;
    cursor: default;
    font-weight: 400;
    text-align: left;
    line-height: 1.4;
}

.day-roster-popover-multi {
    /* scale with the number of slot columns so times never wrap */
    width: calc(240px * var(--slot-count, 2) + 2rem);
    max-width: calc(100vw - 3rem);
}

.day-roster-arrow {
    position: absolute;
    top: -6px;
    left: 26px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.day-roster-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.day-roster-subtitle {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 3px;
}

.day-roster-slots {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0.75rem;
}

.day-roster-slots-multi {
    grid-template-columns: repeat(var(--slot-count, 2), 1fr);
}

.day-roster-slot {
    min-width: 0;
}

.day-roster-slots-multi .day-roster-slot:not(:last-child) {
    padding-right: 1rem;
}

.day-roster-slots-multi .day-roster-slot + .day-roster-slot {
    border-left: 1px solid var(--border);
    padding-left: 1rem;
}

.day-roster-slot-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.day-roster-slot-head svg {
    color: var(--gray-500);
    flex-shrink: 0;
}

.day-roster-slot-mine .day-roster-slot-head svg {
    color: var(--emerald-500);
}

.day-roster-slot-time {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--gray-900);
    white-space: nowrap;
}

.day-roster-group {
    margin-bottom: 11px;
}

.day-roster-group-head {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.day-roster-group-count {
    font-weight: 600;
}

.day-roster-people {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-roster-person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.day-roster-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    border: 1.5px solid var(--white);
    flex-shrink: 0;
}

.day-roster-avatar-0 { background: var(--primary); }
.day-roster-avatar-1 { background: var(--primary-light); }
.day-roster-avatar-2 { background: var(--emerald-500); }
.day-roster-avatar-3 { background: var(--primary-lighter); }
.day-roster-avatar-4 { background: #b58105; }
.day-roster-avatar-5 { background: var(--gray-600); }

.day-roster-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-roster-person-me .day-roster-name {
    color: var(--gray-500);
}

.day-roster-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 0.72rem;
    color: var(--gray-500);
}

.day-roster-footer svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .day-roster-popover,
    .day-roster-popover-multi {
        left: 50%;
        transform: translateX(-50%);
        width: min(300px, calc(100vw - 2rem));
    }

    .day-roster-arrow {
        left: 50%;
        margin-left: -5px;
    }

    .day-roster-slots-multi {
        grid-template-columns: 1fr;
    }

    .day-roster-slots-multi .day-roster-slot:not(:last-child) {
        padding-right: 0;
    }

    .day-roster-slots-multi .day-roster-slot + .day-roster-slot {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 12px;
        margin-top: 4px;
    }
}

.mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-100));
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid var(--white);
}

/* ====== HERO (Welcome Banner) ====== */
.welcome-hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-hero-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 3rem 2rem;
}

.welcome-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.welcome-hero p {
    color: rgba(224, 242, 254, 0.9);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.welcome-hero .badge {
    margin-right: 0.5rem;
}

/* ====== WELCOME BANNER (trainee) — labeled facts strip ====== */
.welcome-banner {
    background: linear-gradient(110deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1.125rem;
    padding: 1.5rem 1.625rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* greeting row */
.wb-greeting {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.wb-greeting-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--white);
}

.wb-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wb-crest { display: block; }

.wb-group-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* facts row */
.wb-facts {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    row-gap: 1.125rem;
}

.wb-facts-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wb-facts-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wb-cell { padding-right: 0; }

.wb-cell-div {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1.5rem;
}

.wb-micro {
    font-size: 0.656rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.wb-value-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.wb-value {
    font-size: 1.125rem;
    font-weight: 800;
}

.wb-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.wb-dot-green { background: var(--emerald-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }
.wb-dot-amber { background: var(--yellow-500); box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.3); }
.wb-dot-mute { background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }

/* "next month not set" nudge — subtle amber hint */
.wb-dot-pulse {
    background: var(--yellow-400, #facc15);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.6);
    animation: wb-pulse 2.4s infinite;
}

@keyframes wb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5); }
    70% { box-shadow: 0 0 0 5px rgba(250, 204, 21, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.wb-nudge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.wb-nudge .wb-value { color: var(--yellow-200, #fef08a); }
.wb-nudge:hover .wb-value { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .wb-dot-pulse { animation: none; }
}

/* banner buttons */
.wb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.44rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 9px;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
}

.wb-btn-glass {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.wb-btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

.wb-btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--border);
}

.wb-btn-white:hover { background: var(--gray-50); }

.wb-btn:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 640px) {
    .wb-facts { align-items: flex-start; }
    .wb-cell-div { border-right: none; padding-right: 0; }
    .wb-facts-left { flex-wrap: wrap; gap: 1rem 1.25rem; }
}

/* ====== MY SCHEDULE RAIL (trainee) ====== */
.schedule-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.schedule-sticky {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.schedule-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.schedule-past-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.schedule-past-link:hover {
    color: var(--accent);
}

.next-practice-card {
    display: block;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s, box-shadow 0.15s;
}

.next-practice-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.next-practice-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.next-practice-countdown {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 0.15rem;
}

.next-practice-date {
    font-size: 0.9rem;
    opacity: 0.92;
    margin-top: 0.1rem;
}

.next-practice-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0.85rem 0;
}

.next-practice-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.next-practice-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.95;
}

.next-practice-meta-row svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.next-practice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.next-practice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    background: var(--emerald-500);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    flex-shrink: 0;
}

.next-practice-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
}

.later-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.later-header {
    padding: 0.7rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--border);
}

.later-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.later-row + .later-row {
    border-top: 1px solid var(--border);
}

.later-row:hover {
    background: var(--gray-50);
}

.later-row .practice-card-date {
    min-width: 46px;
    padding: 0.35rem 0.2rem;
}

.later-row .practice-date-num {
    font-size: 1.15rem;
}

.later-row .practice-day,
.later-row .practice-month {
    font-size: 0.6rem;
}

.later-row-body {
    flex: 1;
    min-width: 0;
}

.later-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
}

.later-loc {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.later-countdown {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--emerald-600);
    white-space: nowrap;
}

.later-more {
    border-top: 1px solid var(--border);
}

.later-more .later-row {
    border-top: 1px solid var(--border);
}

.later-more-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.later-more-toggle::-webkit-details-marker {
    display: none;
}

.later-more-toggle:hover {
    background: var(--gray-50);
}

.later-more-toggle svg {
    transition: transform 0.15s;
}

.later-more[open] .later-more-toggle svg {
    transform: rotate(180deg);
}

.later-more[open] .later-more-show {
    display: none;
}

.later-more:not([open]) .later-more-hide {
    display: none;
}

.schedule-empty {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.schedule-empty-icon {
    font-size: 1.6rem;
}

.schedule-empty-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 0.35rem;
}

.schedule-empty-text {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ====== LANDING PAGE ====== */
.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem - 1px);
    padding: 2rem 1rem;
}

.landing-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 800px;
    width: 100%;
}

.landing-brand {
    flex: 1;
    text-align: left;
}

.landing-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.landing-login {
    flex: 0 0 340px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* ====== STAT CARDS ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ====== FEATURES (landing) ====== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.feature {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    text-align: center;
}

.feature h3 { color: var(--primary-light); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature p { color: var(--gray-600); font-size: 0.875rem; }

/* ====== LANDING RESPONSIVE ====== */
@media (max-width: 700px) {
    .landing-inner {
        flex-direction: column;
        gap: 2rem;
    }
    .landing-brand {
        text-align: center;
    }
    .landing-login {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
}

/* ====== SOCIAL LOGIN ====== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 0.75rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-social {
    width: 100%;
    height: 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-google {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--gray-800);
}

.btn-google:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.btn-facebook {
    background: #1877F2;
    border: 1px solid #1877F2;
    color: var(--white);
}

.btn-facebook:hover {
    background: #166FE5;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* ====== STATUS ====== */
.status-pending {
    background: #fef6e0;
    border: 1px solid #feefc3;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: #7a6520;
}

.status-pending h2 { color: #7a6520; margin-bottom: 0.5rem; }

/* ====== AUTH ====== */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.form-group-inline {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password-link {
    font-size: 0.875rem;
    font-weight: 400;
}

.remember-me-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    font-weight: 400;
}

.auth-error {
    background: var(--red-50);
    color: var(--red-600);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* ====== FORMS ====== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--gray-900);
}

.form-group label.form-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.hiit-flame {
    font-size: 0.9em;
    line-height: 1;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="datetime-local"],
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 1rem;
    font-weight: 400;
    background: #f3f3f5;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.2);
    background: var(--white);
}

.form-group .form-error {
    color: var(--red-600);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Symfony form_errors renders a <ul> */
.form-group ul {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

.form-group ul li {
    color: var(--red-600);
    font-size: 0.8rem;
}

.has-error input[type="text"],
.has-error input[type="email"],
.has-error input[type="password"],
.has-error input[type="number"],
.has-error input[type="datetime-local"],
.has-error select {
    border-color: var(--red-500) !important;
    background: var(--red-50) !important;
}

.has-error input[type="text"]:focus,
.has-error input[type="email"]:focus,
.has-error input[type="password"]:focus,
.has-error input[type="number"]:focus,
.has-error input[type="datetime-local"]:focus,
.has-error select:focus {
    border-color: var(--red-500) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.phone-input {
    display: flex;
    align-items: stretch;
}

.phone-input .phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px);
    background: #ececef;
    color: var(--text-muted, #555);
    font-size: 1rem;
    line-height: 1.5;
    user-select: none;
}

.phone-input input[type="text"],
.phone-input input[type="tel"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ====== FLASH MESSAGES ====== */
.flash-messages {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem 0;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.flash-success { background: var(--emerald-50); color: var(--emerald-600); border: 1px solid rgba(16, 185, 129, 0.2); }
.flash-error { background: var(--red-50); color: var(--red-600); border: 1px solid rgba(220, 38, 38, 0.2); }
.flash-warning { background: #fef6e0; color: #b58105; border: 1px solid rgba(234, 179, 8, 0.2); }

/* ====== IMPERSONATION BANNER ====== */
.impersonation-banner {
    background: #fef6e0;
    color: #b58105;
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.impersonation-banner a {
    color: #b58105;
    text-decoration: underline;
}

/* ====== TABLES ====== */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-header-row h2 { margin-bottom: 0; }

.header-actions { display: flex; gap: 0.5rem; align-items: center; }

.filter-tabs { display: flex; gap: 0.5rem; align-items: center; }

.table-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.table-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
}

.table-responsive { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.table th,
.table td {
    padding: 0.7rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table tbody tr:hover { background: var(--gray-50); }
.table tfoot td { border-top: 2px solid var(--border); }
.table .text-center { text-align: center; }
.table .col-highlight { background: rgba(124, 92, 191, 0.06); }
.table .row-highlight { background: rgba(124, 92, 191, 0.06); }
.table .row-today { background: rgba(16, 185, 129, 0.12); border-left: 3px solid var(--emerald-500); }
.table .row-today:hover { background: rgba(16, 185, 129, 0.18); }

/* ====== UTILITIES ====== */
.promote-form { display: flex; gap: 0.4rem; align-items: center; }

.select-sm {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.8rem;
    background: var(--white);
}

.text-muted { color: var(--gray-500); }

.roles-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.role-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
}

/* month heading in the attendance-plan form */
.plan-month-label {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--gray-900) !important;
    letter-spacing: 0.2px;
}

/* chip-style single-choice selector (attendance plan) */
.chip-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

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

.chip span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    transition: all 0.12s ease;
    user-select: none;
}

.chip:hover span { border-color: var(--accent); }

.chip:has(input:checked) span {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.chip input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* read-only variant — shows the locked-in choice, not editable */
.chip-group-readonly .chip { cursor: default; }
.chip-group-readonly .chip:hover span { border-color: var(--border); }
.chip-group-readonly .chip:has(input:checked):hover span { border-color: var(--accent); }
.chip-group-readonly .chip:not(:has(input:checked)) span { opacity: 0.5; }

.chip-danger:has(input:checked) span {
    background: var(--red-600, #dc2626);
    border-color: var(--red-600, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.actions-cell { display: flex; gap: 0.4rem; align-items: center; }
.inline-form { display: inline; }

.checkbox-list-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: -0.15rem 0 0.4rem;
}

.checkbox-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    scrollbar-gutter: stable;
    /* Scroll shadows: fades at top/bottom show only while more content can be scrolled */
    background:
        linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) center top,
        linear-gradient(rgba(255, 255, 255, 0), #fff 70%) center bottom,
        radial-gradient(farthest-side at 50% 0, rgba(28, 58, 82, 0.18), rgba(28, 58, 82, 0)) center top,
        radial-gradient(farthest-side at 50% 100%, rgba(28, 58, 82, 0.18), rgba(28, 58, 82, 0)) center bottom;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 100% 24px, 100% 24px, 100% 10px, 100% 10px;
    background-attachment: local, local, scroll, scroll;
}

.checkbox-list::-webkit-scrollbar {
    width: 10px;
}

.checkbox-list::-webkit-scrollbar-track {
    background: transparent;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
    border: 2px solid #fff;
}

.checkbox-list .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--gray-900);
    cursor: pointer;
    transition: background 0.15s;
}

.checkbox-list .checkbox-item:hover {
    background: var(--primary-50);
}

.checkbox-list .checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.month-label {
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0.5rem;
    color: var(--gray-900);
}

/* Month filter chips (pending applications overview) */
.month-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.month-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.month-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.month-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.season-selector { display: inline-flex; align-items: center; }

/* Attendee details */
.attendee-details summary {
    cursor: pointer;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.attendee-list {
    list-style: none;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.attendee-list li { padding: 0.15rem 0; }

/* Two-column grid for coach dashboard */
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* ====== LEGAL CONTENT ====== */
.legal-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.legal-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.legal-content p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.legal-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.legal-content li {
    margin-bottom: 0.25rem;
}

.legal-updated {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* ====== TERMS LABEL ====== */
.terms-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 400;
}

/* ====== FOOTER ====== */
.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.site-footer a {
    color: var(--gray-500);
}

.site-footer a:hover {
    color: var(--primary);
}

.footer-sep {
    margin: 0 0.35rem;
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(28, 58, 82, 0.1);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
}

.cookie-banner a {
    color: var(--accent);
}

/* ====== PAYMENT CELLS ====== */
.payment-cell {
    cursor: pointer;
    transition: opacity 0.15s;
    min-width: 4.5rem;
}

.payment-cell:hover {
    opacity: 0.8;
}

.payment-paid {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.payment-unpaid {
    background: var(--red-50);
    color: var(--red-600);
}

.payment-future {
    background: var(--gray-100);
    color: var(--gray-400);
}

/* ====== MODAL ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 26, 46, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
}

.modal-dialog-wide { max-width: 440px; }

.modal-dialog h3 {
    margin-bottom: 0.25rem;
}

.modal-dialog .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}

.modal-dialog .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.95rem;
}

.modal-dialog .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .card-body { padding: 1rem; }
    .card-content { padding: 1rem; }
    .navbar-top { padding: 0 0.75rem; }
    .practice-card-inner,
    .coach-practice-header { flex-wrap: wrap; align-items: flex-start; gap: 0.85rem 1rem; }
    .practice-card-time { flex-wrap: wrap; }
    .practice-card-action { flex-basis: 100%; }
    .practice-card-action .btn { width: 100%; }
    .container { padding: 1.25rem 0.75rem; }
    .welcome-hero-bg { padding: 2rem 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1 { grid-template-columns: 1fr; }
    .schedule-layout { grid-template-columns: 1fr; }
    .schedule-sticky { position: static; }
    .user-menu-name { display: none; }
}
