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

:root {
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --white: #f0f0f0;
    --grey: #888;
    --bg: #000;
    --accent: #f0f0f0;
    --danger: #e74c3c;
    --success: #27ae60;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--white); text-decoration: none; }
a:hover { opacity: 0.7; }

/* ── Nav ── */
.tutoring-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-back {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
}

/* ── Main ── */
.tutoring-main {
    padding: 6rem 2.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Headings: serif for large, sans for small ── */
.heading {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--grey);
    font-weight: 400;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

/* ── Credits Banner ── */
.credits-banner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(240, 240, 240, 0.15);
    border-radius: 6px;
    margin-bottom: 2.5rem;
}

.credits-banner.large {
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.credits-count {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
}

.credits-label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--grey);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--white);
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: var(--white);
    color: var(--bg);
    opacity: 1;
}

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

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

.btn-secondary {
    border-color: var(--grey);
    color: var(--grey);
}

.btn-secondary:hover {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-small {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-full { width: 100%; }

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

/* ── Book Page ── */
.book-section {
    margin-bottom: 3rem;
}

/* ── Flow steps ── */
.flow-step {
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 10px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
}

.flow-step-active {
    border-color: rgba(240, 240, 240, 0.25);
    background: rgba(240, 240, 240, 0.02);
}

.flow-step-done {
    border-color: rgba(39, 174, 96, 0.25);
    background: rgba(39, 174, 96, 0.03);
}

.flow-step-locked {
    opacity: 0.4;
    pointer-events: none;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.step-header:last-child {
    margin-bottom: 0;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(240, 240, 240, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.step-check {
    font-size: 1.1rem;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--success);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-weight: 700;
}

.step-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.step-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--grey);
}

/* ── Buy more (collapsible) ── */
.buy-more {
    margin-top: 1rem;
}

.buy-more-toggle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--grey);
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
}

.buy-more-toggle:hover {
    color: var(--white);
}

.buy-more-toggle::-webkit-details-marker { display: none; }
.buy-more-toggle::before { content: '+ '; }
.buy-more[open] .buy-more-toggle::before { content: '\2212  '; }

.packages-compact {
    margin-top: 1rem;
}

.package-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.package-card-compact .package-top {
    flex: 1;
    margin-bottom: 0;
}

.package-card-compact .package-meta {
    margin-bottom: 0;
}

/* ── Package preview (locked state) ── */
.packages-preview {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.package-card-mini {
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.package-name-mini {
    font-size: 0.85rem;
}

.package-price-mini {
    font-size: 0.85rem;
    font-weight: 600;
}

.package-per-mini {
    font-size: 0.7rem;
    color: var(--success);
}

/* ── Stats bar ── */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(240, 240, 240, 0.03);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--grey);
}

.stats-bar strong {
    color: var(--white);
}

.stat-sep {
    opacity: 0.3;
}

/* ── Package Cards (stacked in right column) ── */
.packages-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-card {
    border: 1px solid rgba(240, 240, 240, 0.12);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
    position: relative;
}

.package-card:hover {
    border-color: rgba(240, 240, 240, 0.4);
}

.package-best-value {
    border-color: rgba(240, 240, 240, 0.35);
    background: rgba(240, 240, 240, 0.03);
}

.package-badge {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    background: var(--white);
    color: var(--bg);
    border-radius: 3px;
}

.package-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.package-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
}

.package-price {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 600;
}

.package-desc {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.package-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.package-sessions {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-per-session {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

/* ══════════════════════════════════
   CALENDAR
   ══════════════════════════════════ */

.calendar-container {
    margin-top: 0.5rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.cal-nav-btn {
    background: none;
    border: 1px solid rgba(240, 240, 240, 0.15);
    color: var(--white);
    font-size: 1.1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cal-nav-btn:hover {
    border-color: var(--white);
}

.cal-month-label {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
}

.calendar-grid {
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(240, 240, 240, 0.04);
    border-bottom: 1px solid rgba(240, 240, 240, 0.1);
}

.cal-header-row span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey);
    text-align: center;
    padding: 0.7rem 0;
}

.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 280px;
}

.cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border: 1px solid rgba(240, 240, 240, 0.04);
    padding: 0.2rem;
    position: relative;
}

.cal-day-num {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
}

.cal-empty {
    background: transparent;
}

.cal-past {
    opacity: 0.2;
}

.cal-today .cal-day-num {
    background: var(--white);
    color: var(--bg);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.cal-has-slots {
    cursor: pointer;
    transition: background 0.2s;
}

.cal-has-slots:hover {
    background: rgba(240, 240, 240, 0.1);
}

/* Heat map: slot density */
.cal-heat-low {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.15);
}
.cal-heat-med {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.15);
}
.cal-heat-high {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.25);
}

.cal-slot-count {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 240, 240, 0.12);
    color: var(--white);
}

.cal-heat-low .cal-slot-count {
    background: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

.cal-heat-med .cal-slot-count {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success);
}

.cal-heat-high .cal-slot-count {
    background: rgba(39, 174, 96, 0.3);
    color: var(--success);
}

.cal-urgency {
    font-family: var(--font-sans);
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e74c3c;
    font-weight: 600;
}

.cal-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--grey);
}

/* Legend */
.cal-legend {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--grey);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot-few { background: rgba(231, 76, 60, 0.4); }
.legend-dot-some { background: rgba(39, 174, 96, 0.4); }
.legend-dot-many { background: rgba(39, 174, 96, 0.7); }

/* ── Day Detail Panel ── */
.day-detail {
    margin-top: 0.5rem;
}

.day-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.day-detail-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
}

/* ── Slot block (one per unique time) ── */
.slot-block {
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}

.slot-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.slot-block-time {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
}

.slot-block-dur {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
}

/* ── Recurrence picker ── */
.recurrence-picker {
    margin-top: 0.6rem;
}

.freq-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.freq-btn {
    flex: 1;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(240, 240, 240, 0.15);
    border-radius: 6px;
    background: transparent;
    color: var(--grey);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.freq-btn:hover {
    border-color: rgba(240, 240, 240, 0.4);
    color: var(--white);
}

.freq-btn-active {
    background: var(--white);
    color: var(--bg);
    border-color: var(--white);
    font-weight: 500;
}

.count-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.count-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    white-space: nowrap;
}

.count-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(240, 240, 240, 0.15);
    border-radius: 2px;
    outline: none;
}

.count-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.count-display {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

/* ── Booking preview (date chips) ── */
.booking-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.preview-chip {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 4px;
    color: var(--success);
    background: rgba(39, 174, 96, 0.06);
}

.slot-block-note {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--grey);
    margin-top: 0.5rem;
}

.note-group {
    margin-bottom: 0.8rem;
}

.note-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(240, 240, 240, 0.04);
    border: 1px solid rgba(240, 240, 240, 0.12);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    resize: vertical;
    min-height: 50px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s;
}

.note-input:focus {
    border-color: rgba(240, 240, 240, 0.4);
}

.note-input::placeholder {
    color: rgba(240, 240, 240, 0.2);
}

/* ── Auth Page ── */
.auth-page {
    max-width: 400px;
    margin: 4rem auto 0;
    text-align: center;
}

.auth-form-container {
    text-align: left;
    margin-top: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(240, 240, 240, 0.15);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--grey);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--white);
    border-bottom-color: var(--white);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(240, 240, 240, 0.06);
    border: 1px solid rgba(240, 240, 240, 0.15);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: rgba(240, 240, 240, 0.5);
}

.form-group input::placeholder {
    color: rgba(240, 240, 240, 0.25);
}

.auth-error {
    color: var(--danger);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

/* ── Success Hero ── */
.success-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(240, 240, 240, 0.08);
}

.success-hero .heading {
    color: var(--success);
    margin-bottom: 0.8rem;
}

.success-msg {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--grey);
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ── Account Page ── */
.account-section {
    margin-bottom: 3rem;
}

.booking-card {
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
}

.booking-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.btn-meet {
    border-color: var(--success);
    color: var(--success);
    margin-bottom: 0.5rem;
}

.btn-meet:hover {
    background: var(--success);
    color: var(--bg);
}

.booking-note {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    font-style: italic;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(240, 240, 240, 0.03);
    border-radius: 4px;
}

.admin-booking-note {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    font-style: italic;
    padding: 0.3rem 0 0.6rem 112px;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
}

.booking-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
}

.booking-row.faded { opacity: 0.5; }

.booking-info {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.booking-date, .booking-time {
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.booking-status, .purchase-status, .slot-status {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

.status-confirmed { color: var(--success); border: 1px solid var(--success); }
.status-completed { color: var(--grey); border: 1px solid var(--grey); }
.status-cancelled { color: var(--danger); border: 1px solid var(--danger); }
.status-pending { color: #f39c12; border: 1px solid #f39c12; }
.status-available { color: var(--success); border: 1px solid var(--success); }
.status-booked { color: #3498db; border: 1px solid #3498db; }

/* ── Purchase rows ── */
.purchase-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.purchase-package { flex: 1; }
.purchase-amount { font-weight: 500; }

/* ── Admin ── */
.admin-section {
    margin-bottom: 3rem;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-slot-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.admin-slot-row .slot-date { min-width: 100px; }
.admin-slot-row .slot-booker { color: var(--grey); font-size: 0.8rem; }

.avail-list { margin-top: 0.5rem; }

.avail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.avail-day { min-width: 90px; font-weight: 500; }
.avail-time { flex: 1; }
.avail-dur { color: var(--grey); font-size: 0.8rem; }

.admin-booking-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.admin-booking-date { min-width: 100px; color: var(--grey); }
.admin-booking-time { min-width: 120px; }
.admin-booking-email { flex: 1; }
.admin-booking-no-meet { font-size: 0.8rem; color: var(--grey); font-style: italic; }

/* ── Checkbox group ── */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--white);
}

/* ── Cart panel (sticky bottom) ── */
.cart-panel {
    position: sticky;
    bottom: 0;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 240, 240, 0.15);
    border-radius: 10px 10px 0 0;
    padding: 1.2rem 1.5rem;
    margin: 2rem -1rem 0;
    z-index: 50;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.cart-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
}

.cart-credits-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
}

.cart-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0.8rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.06);
    font-family: var(--font-sans);
    font-size: 0.8rem;
}

.cart-item-date {
    min-width: 110px;
    color: var(--grey);
}

.cart-item-time {
    flex: 1;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

.cart-item-remove:hover {
    opacity: 0.7;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ── Calendar in-cart day ── */
.cal-in-cart {
    outline: 2px solid var(--success);
    outline-offset: -2px;
    border-radius: 4px;
}

/* ── Section note ── */
.section-note {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    margin-top: -0.8rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* ── Empty state ── */
.empty-state {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--grey);
    padding: 1.5rem 0;
}

.empty-state a { color: var(--white); text-decoration: underline; }

/* ── Alert ── */
.alert {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.alert-success {
    color: var(--success);
    border: 1px solid var(--success);
    background: rgba(39, 174, 96, 0.08);
}

/* ══════════════════════════════════
   CURRICULUM / LESSON PLANS
   ══════════════════════════════════ */
.curriculum {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(240, 240, 240, 0.08);
}

.curriculum-head {
    margin-bottom: 2rem;
}

.curriculum-heading {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.curriculum-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.6;
    max-width: 560px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.plan-card {
    border: 1px solid rgba(240, 240, 240, 0.12);
    border-radius: 10px;
    padding: 1.5rem 1.4rem;
    height: 100%;
}

.plan-card-featured {
    border-color: rgba(240, 240, 240, 0.3);
    background: rgba(240, 240, 240, 0.02);
}

.plan-card-active {
    border-color: rgba(39, 174, 96, 0.3);
    background: rgba(39, 174, 96, 0.03);
}

.plan-card-head {
    margin-bottom: 1.2rem;
}

.plan-tier {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
}

.plan-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.3rem 0 0.4rem;
}

.plan-tagline {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--grey);
    line-height: 1.5;
}

.plan-lessons {
    list-style: none;
    counter-reset: none;
    margin: 0;
    padding: 0;
}

.plan-lesson {
    display: flex;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(240, 240, 240, 0.07);
}

.plan-lesson:first-child {
    border-top: none;
    padding-top: 0;
}

.plan-lesson-marker {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(240, 240, 240, 0.5);
    flex-shrink: 0;
    width: 4.7rem;
    padding-top: 0.1rem;
}

.plan-lesson-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.plan-lesson-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-lesson-detail {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.45;
}

.plan-lesson-project {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(240, 240, 240, 0.45);
    font-style: italic;
    margin-top: 0.1rem;
}

/* Account page: booked lessons get a green marker + date */
.plan-lesson-booked .plan-lesson-marker {
    color: var(--success);
}

.plan-lesson-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.plan-lesson-join {
    border-bottom: 1px solid rgba(39, 174, 96, 0.4);
}

.plan-lesson-join:hover {
    opacity: 0.7;
}

/* ── Teaching notes ── */
.teaching-notes {
    margin-top: 2rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 10px;
}

.teaching-notes-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    text-transform: lowercase;
}

.teaching-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.teaching-note {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.teaching-note-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
}

.teaching-note-detail {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .tutoring-main { padding: 5.5rem 2rem 3rem; }
    .heading { font-size: 2.5rem; }
    .cal-month-label { font-size: 1.3rem; }
    .flow-step { padding: 1.4rem; }
    .plan-grid { grid-template-columns: 1fr; }
    .curriculum-heading { font-size: 2.1rem; }
}

@media (max-width: 640px) {
    .tutoring-nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.2rem; font-size: 0.9rem; }
    .tutoring-main { padding: 5rem 1.2rem 2rem; }
    .heading { font-size: 2rem; }
    .flow-step { padding: 1.2rem; }
    .booking-row, .admin-slot-row { flex-wrap: wrap; }
    .booking-info { flex-direction: column; gap: 0.3rem; }
    .admin-form .form-row { grid-template-columns: 1fr 1fr; }
    .day-detail-header { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
    .day-detail-title { font-size: 1.4rem; }
    .freq-row { flex-wrap: wrap; }
    .freq-btn { font-size: 0.75rem; padding: 0.4rem 0.5rem; }
    .count-row { flex-wrap: wrap; }
    .booking-preview { gap: 0.25rem; }
    .preview-chip { font-size: 0.65rem; }
    .cal-day-num { font-size: 0.8rem; }
    .cal-urgency { display: none; }
    .stats-bar { flex-direction: column; gap: 0.3rem; text-align: center; }
    .stat-sep { display: none; }
    .teaching-notes-grid { grid-template-columns: 1fr; }
    .curriculum-heading { font-size: 1.9rem; }
}

@media (max-width: 380px) {
    .tutoring-nav { padding: 0.8rem 1rem; }
    .nav-links { gap: 0.8rem; font-size: 0.8rem; }
    .tutoring-main { padding: 4.5rem 1rem 2rem; }
    .admin-form .form-row { grid-template-columns: 1fr; }
    .cal-header-row span { font-size: 0.65rem; }
    .cal-day-num { font-size: 0.7rem; }
    .cal-slot-count { width: 0.9rem; height: 0.9rem; font-size: 0.5rem; }
}
