:root {
    --font-size: 16px;
    /* Primary palette (from logo #33345D) */
    --primary: #33345D;
    --primary-light: #4a4b7a;
    --primary-lighter: #6e6f9a;
    --primary-50: #eeeef5;
    --primary-100: #dcdce9;
    /* Accent (vibrant purple) */
    --accent: #7c5cbf;
    --accent-light: #f3eeff;
    --accent-dark: #5e3fa3;
    /* Neutrals */
    --gray-50: #f8f8fb;
    --gray-100: #f0f0f5;
    --gray-200: #e4e4eb;
    --gray-300: #d1d1db;
    --gray-400: #9d9dac;
    --gray-500: #6e6e80;
    --gray-600: #52526a;
    --gray-700: #3d3d55;
    --gray-800: #2a2a42;
    --gray-900: #1a1a2e;
    /* Semantic */
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-50: #ecfdf5;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-50: #fef2f2;
    --yellow-500: #eab308;
    --warning-bg: #fef6e0;
    --white: #ffffff;
    --radius: 0.625rem;
    --border: rgba(51, 52, 93, 0.12);
    --shadow-sm: 0 1px 2px rgba(51, 52, 93, 0.06);
    --shadow: 0 1px 3px rgba(51, 52, 93, 0.1), 0 1px 2px rgba(51, 52, 93, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(51, 52, 93, 0.1), 0 2px 4px -2px rgba(51, 52, 93, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(51, 52, 93, 0.1), 0 4px 6px -4px rgba(51, 52, 93, 0.06);
}

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

html { font-size: var(--font-size); }

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-brand {
    display: flex;
    align-items: center;
}

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

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

.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.navbar-user-info strong {
    font-weight: 600;
    color: var(--primary);
}

.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;
}

.navbar-nav {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
}

.navbar-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
}

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

.nav-tab:hover {
    color: var(--primary);
    background: rgba(51, 52, 93, 0.04);
}

.nav-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--accent);
    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: #d4183d; 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(51, 52, 93, 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-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: #d4183d;
    color: var(--white);
}
.btn-destructive:hover {
    background: #b31535;
    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: #d4183d; color: var(--white); }
.btn-danger:hover { background: #b31535; 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;
}

.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;
}

.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;
}

/* ====== 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;
}

.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) ====== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 0.75rem;
    padding: 1.25rem 1.75rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.welcome-banner-top {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.welcome-banner-top h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.welcome-banner-group {
    font-size: 0.85rem;
    opacity: 0.8;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-banner-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ====== 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 {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
}

.landing-brand h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.landing-brand p {
    font-size: 1.05rem;
    color: var(--gray-500);
}

.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 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); }

/* ====== 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; }

.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;
}

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

.checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    padding: 0.75rem;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
}

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

.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(51, 52, 93, 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 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-nav-inner { padding: 0 0.5rem; }
    .navbar-top { padding: 0 0.75rem; }
    .practice-card-inner { flex-direction: column; }
    .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; }
    .navbar-user-info { display: none; }
}
