/* ── Coach by TCG2GO.io – Theme (green & gold) ───────────────────────────── */
:root {
  --c-bg:           #F7F9F5;
  --c-surface:      #FFFFFF;
  --c-surface2:     #EEF4EA;
  --c-surface3:     #E2EDD9;
  --c-accent:       #2E8B34;
  --c-accent-h:     #226827;
  --c-accent-light: #48A84F;
  --c-gold:         #C8900A;
  --c-gold-light:   #E8AA20;
  --c-text:         #111A0E;
  --c-muted:        #5A6E52;
  --c-border:       #CDD9C5;
  --c-border2:      #B8C9AE;
  --c-success:      #2E8B34;
  --c-danger:       #A83428;
  --c-warn:         #C8900A;
  --c-olive:        #4A7A28;
  --c-olive-light:  #6A9E45;
}

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

body.coach-body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.coach-nav {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  height: 60px;        /* your navbar height */
  overflow: visible;   /* allow image to hang below */
  top: 0;
  z-index: 100;
}
.coach-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.coach-brand {
	position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.coach-brand-logo {
  height: 44px;
  width: auto;
  display: block;
  /* Logo has black bg — round it and give a tight crop feel */
  border-radius: 8px;
  object-fit: contain;
}
/* Kept for auth pages that still render the icon fallback */
.coach-brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--c-accent), #1A5C1E);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
}

.nav-logo {
  height: 100px;        /* bigger than navbar */
  width: auto;
    margin-bottom: -30px;
  position: relative;
  top: 0;              /* touches top */
}

.coach-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.coach-nav-links a {
  color: var(--c-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}
.coach-nav-links a:hover { color: var(--c-text); background: var(--c-surface2); }
.coach-nav-links a.active { color: var(--c-accent); font-weight: 600; }
.coach-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.coach-nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-muted);
  font-size: 0.875rem;
  position: relative;
}
.coach-nav-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  color: var(--c-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.coach-nav-user-btn:hover { border-color: var(--c-accent); background: var(--c-surface3); }
.coach-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-surface3);
}
.coach-nav-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  min-width: 190px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(42,26,14,0.12);
  z-index: 200;
}
.coach-nav-popover.open { display: block; }
.coach-nav-popover a,
.coach-nav-popover button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.875rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.1s;
}
.coach-nav-popover a:hover,
.coach-nav-popover button:hover { background: var(--c-surface2); }
.coach-nav-popover-div { height: 1px; background: var(--c-border); margin: 0.25rem 0; }
.coach-nav-popover button { color: var(--c-danger); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.coach-main { flex: 1; }
.coach-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.coach-container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.cbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  white-space: nowrap;
}
.cbtn:active { transform: scale(0.98); }
.cbtn-primary { background: var(--c-accent); color: #fff; }
.cbtn-primary:hover { background: var(--c-accent-h); }
.cbtn-ghost {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}
.cbtn-ghost:hover { background: rgba(46,139,52,0.08); }
.cbtn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.cbtn-danger { background: rgba(168,52,40,0.08); color: var(--c-danger); border: 1px solid rgba(168,52,40,0.25); }
.cbtn-danger:hover { background: rgba(168,52,40,0.15); }
.cbtn-success { background: rgba(78,122,42,0.1); color: var(--c-success); border: 1px solid rgba(78,122,42,0.3); }
.cbtn-success:hover { background: rgba(78,122,42,0.18); }
.cbtn-muted { background: var(--c-surface2); color: var(--c-muted); border: 1px solid var(--c-border); }
.cbtn-muted:hover { color: var(--c-text); border-color: var(--c-border2); background: var(--c-surface3); }
.cbtn:disabled { opacity: 0.45; pointer-events: none; }

/* ── Cards / Panels ───────────────────────────────────────────────────────── */
.c-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 1.5rem;
}
.c-card + .c-card { margin-top: 1rem; }
.c-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.c-card-title i { color: var(--c-accent); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.c-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-bottom: 0.4rem;
}
.c-input, .c-textarea, .c-select {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: 8px;
  color: var(--c-text);
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.c-input:focus, .c-textarea:focus, .c-select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(46,139,52,0.12);
}
.c-textarea { resize: vertical; min-height: 100px; }
.c-select option { background: var(--c-surface); color: var(--c-text); }
.c-field { margin-bottom: 1.1rem; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .c-row { grid-template-columns: 1fr; } }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.c-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.c-alert-error { background: rgba(168,52,40,0.08); border: 1px solid rgba(168,52,40,0.25); color: var(--c-danger); }
.c-alert-success { background: rgba(78,122,42,0.08); border: 1px solid rgba(78,122,42,0.28); color: var(--c-success); }
.c-alert-warning { background: rgba(200,144,10,0.10); border: 1px solid rgba(200,144,10,0.30); color: #C8900A; }

/* ── Stars ────────────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--c-gold); font-size: 0.9rem; }
.star.empty { color: var(--c-border2); }
.rating-text { font-size: 0.85rem; color: var(--c-muted); margin-left: 0.35rem; }

/* ── Legend thumbnails ────────────────────────────────────────────────────── */
.legend-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.legend-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--c-border);
  transition: border-color 0.15s, transform 0.15s;
  background: var(--c-surface2);
}
.legend-thumb:hover { border-color: var(--c-accent-light); transform: scale(1.15); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.legend-thumb-lg { width: 100px; height: 100px; border-radius: 10px; }

/* ── Per-game expertise (listings + profile) ──────────────────────────────── */
.game-expertise-mini-list { display: flex; flex-direction: column; gap: 0.35rem; }
.game-expertise-mini-list.mt-1 { margin-top: 0.4rem; }
.game-expertise-mini { display: flex; align-items: center; gap: 0.4rem; }
.custom-content-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.custom-content-thumb:hover { border-color: var(--c-accent-light); }
.custom-content-label {
  font-size: 0.78rem;
  color: var(--c-text);
  line-height: 1.3;
  max-width: 140px;
}
.custom-content-full {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
  border: 2px solid var(--c-border);
}

/* ── Listings ─────────────────────────────────────────────────────────────── */
.listings-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.listings-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}
.listings-hero p { color: var(--c-muted); font-size: 1rem; }

.listings-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.listings-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.listings-search-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}
.listings-search { padding-left: 2.4rem !important; }
.listings-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--c-muted);
  font-size: 0.875rem;
}
.listings-sort .c-select { width: auto; min-width: 170px; }

/* ── Coach card list (listings) ───────────────────────────────────────────── */
.coach-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 0 0.5rem;
}
.coach-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  display: grid;
  /* identity | rating | game | accomplishment | proficiency | price | book */
  grid-template-columns:
    minmax(180px, 1.2fr)
    auto
    auto
    minmax(0, 1.4fr)
    minmax(0, 1.2fr)
    auto
    auto;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.coach-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 2px 14px rgba(46,139,52,0.08);
}

/* Identity column (avatar + name link) */
.coach-card-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.coach-card-identity-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.coach-card-name {
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coach-card-identity:hover .coach-card-name { text-decoration: underline; }
.coach-card-handle {
  color: var(--c-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coach-card-rating {
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.coach-card-rating i { color: var(--c-gold); }
.coach-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-surface2);
  border: 2px solid var(--c-border);
}

/* Generic column wrapper */
.coach-card-col {
  min-width: 0;
  display: flex;
  align-items: center;
}
.coach-card-col-rating { justify-content: flex-start; }
.coach-card-col-game { justify-content: flex-start; }
.coach-card-col-accomplishment {
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--c-muted);
  overflow: hidden;
}
.coach-card-col-accomplishment i { color: var(--c-gold); flex-shrink: 0; }
.coach-card-col-accomplishment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coach-card-col-proficiency {
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow: hidden;
  min-width: 0;
}
.legend-scroll-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border2) transparent;
  padding-bottom: 2px;
  min-width: 0;
  max-width: 100%;
}
.legend-scroll-strip::-webkit-scrollbar { height: 4px; }
.legend-scroll-strip::-webkit-scrollbar-track { background: transparent; }
.legend-scroll-strip::-webkit-scrollbar-thumb { background: var(--c-border2); border-radius: 4px; }
.coach-card-col-proficiency .legend-thumb-sm {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex-shrink: 0;
}
.coach-card-col-proficiency .custom-content-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  cursor: pointer;
}
.coach-card-col-price { justify-content: flex-end; }
.coach-card-action { justify-content: flex-end; flex-shrink: 0; }

.price-text { font-weight: 600; color: var(--c-text); white-space: nowrap; font-size: 0.95rem; }
.price-unit { font-weight: 400; color: var(--c-muted); font-size: 0.78rem; }
.listings-empty { text-align: center; padding: 3rem; color: var(--c-muted); }
.listings-count {
  font-size: 0.8rem;
  color: var(--c-muted);
  padding: 0.6rem 0.25rem;
  border-top: 1px solid var(--c-border);
  margin-top: 0.5rem;
}
.no-rating { color: var(--c-muted); font-size: 0.8rem; }

/* ── Profile page ─────────────────────────────────────────────────────────── */
.profile-hero {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-accent);
  flex-shrink: 0;
  background: var(--c-surface2);
}
.profile-hero-info { flex: 1; }
.profile-hero-name { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--c-text); }
.profile-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.profile-rate { font-size: 1.1rem; font-weight: 600; color: var(--c-accent); }
.profile-hero-actions {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--c-accent); }

.about-text { color: var(--c-muted); line-height: 1.65; font-size: 0.925rem; }
.about-text p + p { margin-top: 0.75rem; }

/* ── Slots view toggle ────────────────────────────────────────────────────── */
.slots-view-toggle { display: flex; gap: 0.35rem; }
.slots-toggle-btn {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 7px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  color: var(--c-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.slots-toggle-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.slots-toggle-btn.active { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ── Session calendar ─────────────────────────────────────────────────────── */
.session-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.session-cal-month-label { font-weight: 600; font-size: 1rem; color: var(--c-text); }
.session-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.2rem;
}
.session-cal-weekdays > div {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.2rem 0;
}
.session-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.75rem;
}
.session-cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.85rem;
  color: var(--c-muted);
  transition: background 0.1s;
  user-select: none;
}
.session-cal-day.has-slots { color: var(--c-text); cursor: pointer; font-weight: 600; }
.session-cal-day.has-slots:hover { background: rgba(46,139,52,0.1); }
.session-cal-day.selected { background: var(--c-accent) !important; color: #fff !important; }
.session-cal-day.selected .session-cal-dot { background: rgba(255,255,255,0.85); color: var(--c-accent); }
.session-cal-day.past { opacity: 0.3; }
.session-cal-day.empty { background: none; cursor: default; }
.session-cal-day-num { line-height: 1; }
.session-cal-dot {
  background: var(--c-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  margin-top: 2px;
  min-width: 14px;
  text-align: center;
}
.session-cal-panel {
  border-top: 1px solid var(--c-border);
  padding-top: 1rem;
  margin-top: 0.25rem;
}
.session-cal-panel-header {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--c-text);
}
.slot-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
}
.slot-page-label { font-size: 0.85rem; color: var(--c-muted); }

/* ── Slots ────────────────────────────────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.slot-card {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.slot-card-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.slot-card-time { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.1rem; color: var(--c-text); }
.slot-card-duration { font-size: 0.75rem; color: var(--c-muted); margin-bottom: 0.6rem; }
.slot-card.booked { opacity: 0.6; }
.slot-card.booked .slot-card-date { color: var(--c-muted); }

/* ── Availability builder ─────────────────────────────────────────────────── */
.avail-builder-controls { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.avail-builder-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.avail-builder-month-label { font-weight: 600; font-size: 1rem; color: var(--c-text); }
.avail-builder-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.2rem;
}
.avail-builder-weekdays > div {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.2rem 0;
}
.avail-builder-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 1rem;
}
.avail-builder-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.85rem;
  color: var(--c-text);
  cursor: pointer;
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  transition: all 0.12s;
  user-select: none;
}
.avail-builder-day:hover:not(.past):not(.empty) { border-color: var(--c-accent); background: rgba(46,139,52,0.07); }
.avail-builder-day.selected { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.avail-builder-day.past { opacity: 0.3; cursor: default; pointer-events: none; }
.avail-builder-day.empty { background: none; border-color: transparent; cursor: default; }
.avail-builder-day.has-slot { border-color: var(--c-accent); }
.avail-builder-dot {
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  border-radius: 50%;
  position: absolute;
  bottom: 3px;
}
.avail-builder-day.selected .avail-builder-dot { background: rgba(255,255,255,0.75); }
.avail-builder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Availability Tabs ──────────────────────────────────────────────────── */
.avail-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.avail-tab {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 7px 7px 0 0;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--c-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  font-weight: 500;
}
.avail-tab:hover { border-color: var(--c-accent); color: var(--c-accent); }
.avail-tab.active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.avail-tab-panel { display: none; }
.avail-tab-panel.active { display: block; }

/* ── Week Grid ──────────────────────────────────────────────────────────── */
.week-grid-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.week-grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.75rem;
}
.week-grid {
  display: grid;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 520px;
  user-select: none;
  -webkit-user-select: none;
}
.wg-corner {
  background: var(--c-surface);
  padding: 0.3rem;
}
.wg-day-header {
  background: var(--c-surface);
  padding: 0.35rem 0.2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text);
}
.wg-day-header.today {
  background: rgba(46,139,52,0.12);
}
.wg-day-name { display: block; font-size: 0.7rem; color: var(--c-muted); text-transform: uppercase; }
.wg-day-num { display: block; font-size: 0.85rem; line-height: 1.2; }
.wg-hour-label {
  background: var(--c-surface);
  padding: 0.25rem 0.3rem;
  text-align: right;
  font-size: 0.7rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
}
.wg-cell {
  background: var(--c-surface2);
  min-height: 28px;
  cursor: pointer;
  transition: background 0.08s;
}
.wg-cell:hover:not(.disabled) {
  background: rgba(46,139,52,0.12);
}
.wg-cell.selected {
  background: var(--c-accent);
}
.wg-cell.disabled {
  background: var(--c-surface);
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.wg-cell.has-slot {
  background: rgba(200,144,10,0.18);
  border-left: 3px solid #C8900A;
}
.wg-cell.has-slot.selected {
  background: var(--c-accent);
  border-left-color: var(--c-accent);
}
/* Existing scheduled block marked for removal */
.wg-cell.has-slot.to-remove {
  background: rgba(168,52,40,0.22);
  border-left: 3px solid #a83428;
}
/* Existing block that is booked — locked, cannot be removed */
.wg-cell.has-slot.booked {
  background: rgba(78,122,42,0.20);
  border-left: 3px solid var(--c-success, #4e7a2a);
  cursor: not-allowed;
}
/* New cell selected past the free-tier limit — won't be created */
.wg-cell.selected.over-limit {
  background: repeating-linear-gradient(45deg, #b45309, #b45309 5px, #7c3f06 5px, #7c3f06 10px);
}

/* ── Week grid legend ─────────────────────────────────────────────────────── */
.wg-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-bottom: 0.6rem;
  align-items: center;
}
.wg-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.wg-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.wg-swatch-empty    { background: var(--c-surface2); border: 1px solid var(--c-border); }
.wg-swatch-scheduled { background: rgba(200,144,10,0.18); border-left: 3px solid #C8900A; }
.wg-swatch-selecting { background: var(--c-accent); }
.wg-swatch-remove   { background: rgba(168,52,40,0.22); border-left: 3px solid #a83428; }
.wg-swatch-booked   { background: rgba(78,122,42,0.20); border-left: 3px solid #4e7a2a; }
.wg-swatch-over     { background: repeating-linear-gradient(45deg, #b45309, #b45309 4px, #7c3f06 4px, #7c3f06 8px); }
.wg-swatch-past     { background: var(--c-surface); opacity: 0.35; border: 1px solid var(--c-border); }

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { padding-bottom: 1rem; border-bottom: 1px solid var(--c-border); }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.review-author { font-size: 0.85rem; font-weight: 600; }
.review-date { font-size: 0.75rem; color: var(--c-muted); }
.review-text { color: var(--c-muted); font-size: 0.875rem; line-height: 1.5; }
.review-empty { color: var(--c-muted); font-size: 0.875rem; }

/* ── Payment methods ──────────────────────────────────────────────────────── */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; }
.payment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.payment-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.pay-venmo { background: #008CFF; }
.pay-paypal { background: #0070ba; }
.pay-cashapp { background: #00C244; }
.pay-zelle { background: #6d1ed4; }
.pay-other { background: #7A6455; }
.payment-method-name { font-size: 0.75rem; font-weight: 600; }
.payment-method-name.pay-name-venmo  { color: #008CFF; }
.payment-method-name.pay-name-paypal { color: #0070ba; }
.payment-method-name.pay-name-cashapp { color: #00C244; }
.payment-method-name.pay-name-zelle  { color: #6d1ed4; }
.payment-method-name.pay-name-other  { color: var(--c-muted); }
.payment-handle { font-size: 0.9rem; font-weight: 500; color: var(--c-text); }

/* ── Profile editor legend picker ────────────────────────────────────────── */
.legend-picker-search-wrap { position: relative; margin-bottom: 0.6rem; }
.legend-picker-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.5rem;
}
.legend-picker-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.legend-picker-item img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.legend-picker-item:hover { border-color: var(--c-accent-light); }
.legend-picker-item.selected { border-color: var(--c-accent); }
.legend-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 40px;
  margin-top: 0.6rem;
}
.legend-selected-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 0.2rem 0.6rem 0.2rem 0.25rem;
  font-size: 0.8rem;
  color: var(--c-text);
}
.legend-selected-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.legend-selected-chip button {
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
  margin-left: 2px;
}
.legend-selected-chip button:hover { color: var(--c-danger); }

/* ── Payment editor ───────────────────────────────────────────────────────── */
.payment-editor-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.payment-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.payment-row .c-select { flex: 0 0 130px; }
.payment-row .c-input { flex: 1; }
.payment-row button { flex-shrink: 0; }

/* ── Availability page ────────────────────────────────────────────────────── */
.avail-add-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.avail-add-form .c-field { margin-bottom: 0; }
.slot-list { display: flex; flex-direction: column; gap: 0.6rem; }
.slot-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.slot-row-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}
.slot-row-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--c-border);
}
.slot-row-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-accent);
}
.slot-row-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
}
.slot-row-dur {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--c-muted);
}
.slot-row-status {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.slot-status-available { background: rgba(78,122,42,0.12); color: var(--c-success); }
.slot-status-booked { background: rgba(160,120,32,0.12); color: var(--c-warn); }
.slot-row-student {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--c-muted);
}
.slot-row-student i { color: var(--c-accent-light); }
.slot-row-action { margin-left: auto; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dash-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-booking-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dash-booking-card + .dash-booking-card { margin-top: 0.5rem; }
.dash-booking-when { min-width: 120px; }
.dash-booking-date { font-size: 0.8rem; color: var(--c-accent); font-weight: 600; text-transform: uppercase; }
.dash-booking-time { font-size: 0.95rem; font-weight: 600; color: var(--c-text); }
.dash-booking-who { flex: 1; font-size: 0.9rem; color: var(--c-text); }
.dash-booking-who small { display: block; color: var(--c-muted); font-size: 0.75rem; }
.dash-booking-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-confirmed { background: rgba(107,122,58,0.15); color: var(--c-olive); }
.badge-completed { background: rgba(78,122,42,0.15); color: var(--c-success); }
.badge-cancelled { background: rgba(168,52,40,0.12); color: var(--c-danger); }
.badge-pending { background: rgba(200,144,10,0.16); color: #C8900A; }
.dash-empty { color: var(--c-muted); font-size: 0.875rem; padding: 1rem 0; }

/* ── Booking modal ────────────────────────────────────────────────────────── */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,26,14,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.booking-modal {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 1.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(42,26,14,0.18);
}
.booking-modal h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--c-text); }
.booking-modal-slot { font-size: 0.85rem; color: var(--c-accent); margin-bottom: 1rem; }

/* ── Review modal ─────────────────────────────────────────────────────────── */
.star-picker { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.star-pick-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--c-border2);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}
.star-pick-btn.active, .star-pick-btn:hover { color: var(--c-gold); }
.star-pick-btn.active { transform: scale(1.15); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.coach-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-muted);
}
.coach-footer a { color: var(--c-muted); text-decoration: none; }
.coach-footer a:hover { color: var(--c-accent); }
.coach-footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.5rem; }

/* ── Analytics cards ──────────────────────────────────────────────────────── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.analytics-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-align: center;
}
.analytics-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}
.analytics-label {
  font-size: 0.72rem;
  color: var(--c-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Dashboard two-col grid ───────────────────────────────────────────────── */
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .dash-grid-2 { grid-template-columns: 1fr; } }

/* ── Game badges ──────────────────────────────────────────────────────────── */
.game-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.game-badge {
  background: rgba(107,122,58,0.12);
  border: 1px solid rgba(107,122,58,0.3);
  color: var(--c-olive);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.game-badges-mini { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.game-badge-mini {
  background: rgba(107,122,58,0.10);
  border: 1px solid rgba(107,122,58,0.25);
  color: var(--c-olive);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Games picker ─────────────────────────────────────────────────────────── */
.games-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.game-toggle {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.game-toggle .fa-check { display: none; margin-right: 0.3rem; }
.game-toggle.active {
  background: rgba(46,139,52,0.1);
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.game-toggle.active .fa-check { display: inline; }
.game-toggle:hover { border-color: var(--c-accent); color: var(--c-text); }

/* ── Seminar cards ────────────────────────────────────────────────────────── */
.seminar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.seminar-card {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.seminar-card-game { font-size: 0.72rem; color: var(--c-olive); text-transform: uppercase; letter-spacing: 0.05em; }
.seminar-card-title { font-weight: 600; color: var(--c-text); font-size: 0.92rem; }
.seminar-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; font-size: 0.78rem; color: var(--c-muted); }
.seminar-price { color: var(--c-success); font-weight: 600; }
.seminar-seats { color: var(--c-muted); }
.seminar-full { color: var(--c-danger); }

/* ── Seminar detail ───────────────────────────────────────────────────────── */
.seminar-detail-game { font-size: 0.78rem; color: var(--c-olive); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.seminar-detail-title { font-size: 1.4rem; font-weight: 700; color: var(--c-text); margin: 0 0 0.35rem; }
.seminar-detail-coach { font-size: 0.88rem; color: var(--c-muted); margin-bottom: 1rem; }
.seminar-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  background: var(--c-surface2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

/* ── Favorites grid ───────────────────────────────────────────────────────── */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.favorite-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.favorite-card:hover { border-color: var(--c-accent); box-shadow: 0 2px 8px rgba(46,139,52,0.1); }
.favorite-card-info { flex: 1; min-width: 0; }
.favorite-card-name { font-weight: 600; color: var(--c-text); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Settings page ────────────────────────────────────────────────────────── */
.settings-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.settings-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.settings-section-title i { color: var(--c-accent); }
.settings-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-border);
  background: var(--c-surface2);
  flex-shrink: 0;
}
.settings-avatar-info { flex: 1; }
.linked-account-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
}
.linked-account-row:last-child { border-bottom: none; }
.linked-account-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.linked-account-label { flex: 1; font-size: 0.875rem; color: var(--c-text); }
.linked-account-sublabel { font-size: 0.75rem; color: var(--c-muted); display: block; }
.linked-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: rgba(78,122,42,0.12);
  color: var(--c-success);
  border: 1px solid rgba(78,122,42,0.25);
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--c-muted); }
.text-sm { font-size: 0.875rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.justify-between { justify-content: space-between; }

/* Tablet: drop the less-pertinent accomplishment + game-badge columns,
   keep identity/rating/proficiency/price/book in a balanced row. */
@media (max-width: 1000px) {
  .coach-card {
    grid-template-columns:
      minmax(180px, 1.4fr)
      auto
      minmax(0, 1fr)
      auto
      auto;
    gap: 1rem;
  }
  .coach-card-col-game,
  .coach-card-col-accomplishment { display: none; }
}
/* Narrow: stack into compact 2-row layout — identity row (avatar+name+rating)
   and a details row (proficiency + price + book). */
@media (max-width: 700px) {
  .coach-card {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "ident  ident  rating"
      "prof   price  action";
    gap: 0.6rem 0.75rem;
    padding: 0.85rem 1rem;
  }
  .coach-card-identity { grid-area: ident; }
  .coach-card-col-rating { grid-area: rating; justify-content: flex-end; }
  .coach-card-col-proficiency { grid-area: prof; }
  .coach-card-col-price { grid-area: price; }
  .coach-card-action { grid-area: action; }
  .coach-card-col-game,
  .coach-card-col-accomplishment { display: none; }
  .coach-avatar { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .coach-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "ident  rating"
      "prof   prof"
      "price  action";
    gap: 0.5rem 0.75rem;
  }
  .coach-card-action .cbtn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .profile-hero { flex-direction: column; }
  .profile-hero-actions { position: static; margin-top: 0.75rem; }
  .coach-nav-inner { gap: 0.75rem; }
  .avail-builder-controls { gap: 0.75rem; }
  .slots-grid { grid-template-columns: 1fr 1fr; }
  .avail-tabs { gap: 0.25rem; }
  .avail-tab { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .profile-hero { flex-direction: column; }
  .profile-hero-actions { position: static; margin-top: 0.75rem; }
  .coach-nav-inner { gap: 0.75rem; }
}

/* ── Auth pages (login / register) ───────────────────────────────────────── */
.coach-auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.coach-auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(42,26,14,0.07);
}
.coach-auth-brand { text-align: center; margin-bottom: 1.75rem; }
.coach-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.3rem;
}
.coach-auth-sub { font-size: 0.875rem; color: var(--c-muted); }

.coach-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--c-border2);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 1.25rem;
}
.coach-google-btn:hover { background: var(--c-surface2); border-color: var(--c-border2); }

.coach-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}
.coach-auth-divider::before,
.coach-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.coach-auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}
.coach-auth-links a { color: var(--c-accent); text-decoration: none; }
.coach-auth-links a:hover { text-decoration: underline; }

/* ── Search clear ("×") button ──────────────────────────────────────────── */
.search-clear-wrap {
  position: relative;
}
.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted, #8b949e);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.12s, color 0.12s;
}
.search-clear-btn:hover {
  background: rgba(139, 148, 158, 0.18);
  color: var(--c-text, #e1e4e8);
}
.search-clear-wrap.has-value .search-clear-btn {
  display: flex;
}

/* ── Booking time picker ─────────────────────────────────────────────────── */
.booking-time-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.booking-time-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  color: var(--c-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.12s;
}
.booking-time-btn:hover:not(:disabled) {
  border-color: var(--c-accent);
  background: rgba(46,139,52,0.08);
}
.booking-time-btn.selected {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  font-weight: 600;
}
.booking-time-btn.booked {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}
.booking-time-btn.pending {
  border-color: #C8900A;
  background: rgba(200,144,10,0.10);
  color: #C8900A;
}
.booking-time-btn.pending.selected {
  background: #C8900A;
  border-color: #C8900A;
  color: #fff;
}

/* ── Legend preview modal ────────────────────────────────────────────────── */
.legend-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.legend-preview-overlay.hidden { display: none; }
.legend-preview-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.legend-preview-modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.legend-preview-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* ── Calendar: full/available indicators ─────────────────────────────────── */
.session-cal-day.has-slots {
  background: rgba(46,139,52,0.08);
  border: 1px solid rgba(46,139,52,0.3);
}
.session-cal-day.full {
  background: rgba(180,50,50,0.06);
  border-color: rgba(180,50,50,0.3);
  opacity: 0.6;
}
.session-cal-day.full .session-cal-dot { background: var(--c-danger, #d63031); }
.session-cal-dot.dot-full {
  background: var(--c-danger, #d63031);
  font-size: 0.55rem;
}
