/* ======================================================
   Two8 Bands — Booking App
   Apple HIG-aligned, glassmorphic dark theme
   ====================================================== */

/* ---- Custom Properties ---- */
:root {
  --bg: #060d14;
  --panel: #0d1620;
  --panel-strong: #121e2b;
  --line: rgba(255,255,255,0.1);
  --soft: #95a5b7;
  --text: #f5f8fb;
  --apple: #9fbc57;
  --aqua: #4fe2ff;
  --shadow: 0 28px 80px rgba(0,0,0,0.36);
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 8px spacing grid */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---- Ambient Background ---- */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(79,226,255,0.16), transparent 30%),
    radial-gradient(circle at 20% 0%, rgba(159,188,87,0.14), transparent 26%),
    linear-gradient(180deg, #07111a 0%, #060d14 100%);
  pointer-events: none;
}

/* ---- App Container ---- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  padding: 48px 20px 64px;
}

/* ---- Screen System ---- */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: inherit;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: opacity, transform;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.screen.exiting {
  opacity: 0;
  transform: translateY(-16px);
}

/* ---- Card (Glassmorphic Panel) ---- */
.card {
  width: 100%;
  max-width: 520px;
  background: rgba(13,22,32,0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 40px 36px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.card--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Wordmark ---- */
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: var(--sp-4);
  justify-content: center;
}

.wordmark__two {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.wordmark__eight {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--aqua);
  letter-spacing: -0.03em;
}

/* ---- Typography ---- */
.hero-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 10px;
  color: var(--text);
}

.hero-sub {
  text-align: center;
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}

.screen-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.screen-sub {
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.screen-sub strong {
  color: var(--text);
  font-weight: 700;
}

/* ---- Back Button ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: var(--sp-3);
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--text);
}

/* ---- Meeting Type Cards ---- */
.meeting-types {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.meeting-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.meeting-card:hover {
  border-color: rgba(159,188,87,0.3);
  background: rgba(18,30,43,0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.meeting-card:active {
  transform: translateY(0);
}

.meeting-card__info {
  flex: 1;
  min-width: 0;
}

.meeting-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  color: var(--text);
}

.meeting-card__desc {
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.meeting-card__duration {
  flex-shrink: 0;
  background: rgba(79,226,255,0.1);
  color: var(--aqua);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.meeting-card__arrow {
  flex-shrink: 0;
  color: var(--soft);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}

.meeting-card:hover .meeting-card__arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--apple);
}

/* ---- Selected Type Badge ---- */
.selected-type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(159,188,87,0.1);
  border: 1px solid rgba(159,188,87,0.2);
  border-radius: 999px;
  padding: 6px var(--sp-2);
  margin-bottom: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--apple);
}

/* ---- Calendar ---- */
.calendar {
  margin-bottom: var(--sp-3);
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.calendar__month {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.calendar__arrow {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.2s;
}

.calendar__arrow:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
  background: rgba(18,30,43,0.9);
}

.calendar__arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: var(--sp-1);
}

.calendar__weekdays span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  opacity: 0.6;
  padding: 4px 0;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
  background: rgba(159,188,87,0.12);
}

.cal-day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua);
}

.cal-day--disabled {
  color: rgba(149,165,183,0.25);
  cursor: not-allowed;
}

.cal-day--empty {
  cursor: default;
}

.cal-day--selected {
  background: var(--apple) !important;
  color: var(--bg) !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(159,188,87,0.3);
}

.cal-day--selected::after {
  display: none;
}

/* ---- Time Slots ---- */
.timeslots {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  min-height: 80px;
}

.timeslots__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 14px;
}

.timeslots__loading {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.85rem;
  padding: 12px 0;
}

.timeslots__loading.visible {
  display: flex;
}

.timeslots__empty {
  display: none;
  color: var(--soft);
  font-size: 0.85rem;
  padding: 12px 0;
  text-align: center;
}

.timeslots__empty.visible {
  display: block;
}

.timeslots__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.timeslot {
  background: var(--panel-strong);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.timeslot:hover {
  border-color: rgba(79,226,255,0.3);
  background: rgba(18,30,43,0.95);
}

.timeslot--selected {
  border-color: var(--aqua) !important;
  box-shadow: 0 0 0 2px rgba(79,226,255,0.25), 0 8px 24px rgba(79,226,255,0.12);
  color: var(--aqua);
  background: rgba(79,226,255,0.06);
}

.timeslots__continue {
  margin-top: var(--sp-3);
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: var(--panel);
}

/* ---- Spinner ---- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--aqua);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Primary Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: var(--apple);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  box-shadow: 0 16px 36px rgba(159,188,87,0.24);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(159,188,87,0.32);
  filter: brightness(1.08);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---- Ghost / Calendar Button ---- */
.btn--ghost {
  background: rgba(79,226,255,0.08);
  border: 1px solid rgba(79,226,255,0.2);
  color: var(--aqua);
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(79,226,255,0.14);
  border-color: rgba(79,226,255,0.35);
}

.btn--ghost:active:not(:disabled) {
  transform: translateY(0);
}

/* ---- Link Button ---- */
.link-btn {
  background: none;
  border: none;
  color: var(--aqua);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: var(--sp-1) 0;
  transition: opacity 0.2s;
  margin-top: var(--sp-1);
}

.link-btn:hover {
  opacity: 0.75;
}

/* ---- Booking Summary (Screen 3) ---- */
.booking-summary {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) 20px;
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-summary__type {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--apple);
  letter-spacing: 0.02em;
}

.booking-summary__datetime {
  font-size: 0.88rem;
  color: var(--soft);
  font-weight: 500;
}

/* ---- Form Fields ---- */
.details-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-field {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.field__optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.field__input {
  background: var(--panel-strong);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field__input::placeholder {
  color: var(--soft);
  opacity: 0.5;
}

.field__input:focus {
  border-color: rgba(79,226,255,0.4);
  box-shadow: 0 0 0 3px rgba(79,226,255,0.08);
}

.field__input--textarea {
  resize: vertical;
  min-height: 80px;
}

.field__input--invalid {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 3px rgba(229,72,77,0.1);
}

.field__error {
  font-size: 0.75rem;
  color: #e5484d;
  font-weight: 600;
  min-height: 0;
  overflow: hidden;
  transition: all 0.2s;
}

.booking-error {
  font-size: 0.85rem;
  color: #e5484d;
  font-weight: 600;
  text-align: center;
  padding: 12px var(--sp-2);
  border-radius: var(--radius-sm);
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.2);
  display: none;
  margin-bottom: 12px;
}
.booking-error.visible {
  display: block;
}

/* ---- Verification Code Input ---- */
.verify-icon {
  margin-bottom: 20px;
  opacity: 0.9;
}

.code-input {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  justify-content: center;
  margin: var(--sp-3) 0 var(--sp-2);
}

.code-box {
  width: 44px;
  height: 52px;
  background: var(--panel-strong);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--aqua);
}

.code-box:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(79,226,255,0.12);
}

.code-dash {
  color: var(--soft);
  opacity: 0.3;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 2px;
}

/* ---- Success Checkmark Animation ---- */
.success-check {
  width: 80px;
  height: 80px;
  margin-bottom: var(--sp-3);
}

.success-check__svg {
  width: 100%;
  height: 100%;
}

.success-check__circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: circle-draw 0.6s 0.2s var(--ease) forwards;
}

.success-check__tick {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: tick-draw 0.4s 0.7s var(--ease) forwards;
}

@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes tick-draw {
  to { stroke-dashoffset: 0; }
}

/* ---- Confirmed Summary ---- */
.confirmed-summary {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin: var(--sp-1) 0 var(--sp-3);
  width: 100%;
  max-width: 360px;
}

.confirmed-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.confirmed-summary__row + .confirmed-summary__row {
  border-top: 1px solid var(--line);
}

.confirmed-summary__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.confirmed-summary__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---- Focus-visible ---- */
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

/* ---- Booking Summary Questions ---- */
.booking-summary__questions {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

.booking-summary__questions-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua);
  margin-bottom: 10px;
}

.booking-summary__questions-list {
  list-style: none;
  padding: 0;
}

.booking-summary__questions-list li {
  font-size: 0.88rem;
  color: var(--soft);
  padding: 6px 0 6px var(--sp-2);
  position: relative;
  line-height: 1.5;
}

.booking-summary__questions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apple);
}

/* ---- Questionnaire Screen ---- */
.screen--questionnaire .card {
  max-width: 520px;
}

#questionnaireForm {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#questionnaireForm .field {
  margin-bottom: 20px;
}

#questionnaireForm .field:last-of-type {
  margin-bottom: 0;
}

/* ---- Loading overlay for booking ---- */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(6,13,20,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}


/* ---- Timezone Indicator & Override ---- */
.timezone-indicator {
  font-size: 0.75rem;
  color: var(--soft);
  opacity: 0.7;
  margin-top: 12px;
  text-align: center;
}

.tz-change-link {
  color: var(--aqua);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tz-change-link:hover {
  opacity: 0.75;
}

.tz-dropdown {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  overflow: hidden;
}

.tz-dropdown.visible {
  display: flex;
}

.tz-option {
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.tz-option:hover {
  background: rgba(79,226,255,0.08);
  color: var(--aqua);
}

/* ---- Skeleton Loading (US-B3) ---- */
.skeleton-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.skeleton-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line--title {
  width: 60%;
  height: 18px;
  margin-bottom: 10px;
}

.skeleton-line--text {
  width: 85%;
  margin-bottom: 8px;
}

.skeleton-pill {
  width: 60px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  animation: skeleton-pulse 1.5s ease-in-out infinite 0.2s;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Timeslot skeleton pills */
.skeleton-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.skeleton-slot {
  width: 80px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-slot:nth-child(2) { animation-delay: 0.1s; width: 72px; }
.skeleton-slot:nth-child(3) { animation-delay: 0.2s; width: 84px; }
.skeleton-slot:nth-child(4) { animation-delay: 0.3s; width: 76px; }
.skeleton-slot:nth-child(5) { animation-delay: 0.4s; width: 80px; }
.skeleton-slot:nth-child(6) { animation-delay: 0.5s; width: 68px; }

/* ---- Coach Avatar & Social Proof (US-B7) ---- */
.coach-avatar {
  text-align: center;
  margin-bottom: var(--sp-2);
}

.coach-avatar__img {
  border: 2px solid rgba(159,188,87,0.25);
}

.coach-credential {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  opacity: 0.8;
}

/* ---- Action-First Welcome (BP1) ---- */
.welcome-top {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.wordmark--hero {
  margin-bottom: 8px;
  justify-content: center;
}

.welcome-footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.coach-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-2);
}

.coach-byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coach-byline__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.coach-byline__cred {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.privacy-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--soft);
  opacity: 0.65;
  margin-top: var(--sp-2);
  font-weight: 500;
}

.testimonial {
  text-align: center;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.testimonial__quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--soft);
  line-height: 1.5;
  margin-bottom: 6px;
}

.testimonial__author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--apple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Error Recovery (US-B4) ---- */
.booking-error .retry-btn {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #e5484d;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.booking-error .retry-btn:hover {
  background: rgba(229, 72, 77, 0.1);
  border-color: rgba(229, 72, 77, 0.6);
}

/* ==============================================================
   MOBILE-FIRST: 560px and below
   Apple HIG: 8px grid, 44px tap targets, safe-area-insets,
   no iOS zoom, native feel
   ============================================================== */

@media (max-width: 560px) {
  /* -- Safe area insets for notched phones -- */
  .app {
    padding:
      calc(var(--sp-2) + env(safe-area-inset-top))
      calc(var(--sp-2) + env(safe-area-inset-right))
      calc(var(--sp-4) + env(safe-area-inset-bottom))
      calc(var(--sp-2) + env(safe-area-inset-left));
  }

  .card {
    padding: var(--sp-3) var(--sp-2);
    border-radius: 20px;
  }

  /* -- Typography tightened -- */
  .hero-heading {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
    margin-bottom: var(--sp-1);
  }

  .hero-sub {
    font-size: 0.88rem;
    margin-bottom: var(--sp-3);
    line-height: 1.45;
  }

  .wordmark {
    margin-bottom: var(--sp-3);
  }

  /* BP1: Compact welcome footer on mobile */
  .welcome-footer {
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
  }

  .screen-heading {
    font-size: 1.5rem;
    margin-bottom: var(--sp-1);
  }

  .screen-sub {
    font-size: 0.85rem;
    margin-bottom: var(--sp-2);
  }


  /* ============================================
     MEETING CARDS — Horizontal layout
     Title + duration pill on same row (right-aligned),
     description below title, max 2 lines, left-aligned
     ============================================ */
  .meeting-types {
    gap: var(--sp-1);
  }

  .meeting-card {
    padding: var(--sp-2);
    gap: var(--sp-1);
    min-height: 44px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .meeting-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .meeting-card__title {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin-bottom: 0;
  }

  .meeting-card__desc {
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Duration pill sits in the top-right, inline with the title row */
  .meeting-card__duration {
    font-size: 0.68rem;
    padding: 3px var(--sp-1);
    align-self: flex-start;
    margin-top: 2px;
  }

  /* Hide arrow on mobile — cards are clearly tappable */
  .meeting-card__arrow {
    display: none;
  }


  /* ============================================
     CALENDAR — compact for mobile
     ============================================ */
  .calendar {
    margin-bottom: var(--sp-2);
  }

  .calendar__nav {
    margin-bottom: var(--sp-1);
  }

  .calendar__arrow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .calendar__grid {
    gap: 2px;
  }

  .cal-day {
    font-size: 0.82rem;
    border-radius: 10px;
    min-height: 40px;
    min-width: 40px;
  }


  /* ============================================
     TIME SLOTS — 44px tap targets
     ============================================ */
  .timeslots {
    padding-top: var(--sp-2);
    min-height: 64px;
  }

  .timeslots__label {
    margin-bottom: var(--sp-1);
  }

  .timeslots__grid {
    gap: 12px;
  }

  .timeslot {
    padding: 10px var(--sp-2);
    font-size: 0.85rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .timeslots__continue {
    margin-top: var(--sp-2);
  }


  /* ============================================
     FORM / DETAILS — prevent iOS zoom, 44px targets
     ============================================ */
  .details-form {
    gap: var(--sp-2);
  }

  .field__input {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    padding: 12px 14px;
    border-radius: 10px;
  }

  .field__input--textarea {
    min-height: 88px;
  }

  .booking-summary {
    padding: 12px var(--sp-2);
    margin-bottom: var(--sp-2);
    border-radius: 12px;
  }

  .booking-summary__type {
    font-size: 0.88rem;
  }

  .booking-summary__datetime {
    font-size: 0.82rem;
  }

  .booking-error {
    margin-bottom: var(--sp-1);
    font-size: 0.82rem;
    padding: 10px 12px;
    border-radius: 10px;
  }


  /* ============================================
     BUTTONS — 48px min height on mobile
     ============================================ */
  .btn {
    min-height: 48px;
    font-size: 0.85rem;
    padding: 14px var(--sp-3);
    width: 100%;
  }

  .btn--primary {
    box-shadow: 0 12px 28px rgba(159,188,87,0.2);
  }

  .back-btn {
    min-height: 44px;
    padding: 10px 0;
  }

  .link-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }


  /* ============================================
     VERIFICATION CODE — tighter for mobile
     ============================================ */
  .verify-icon {
    margin-bottom: var(--sp-2);
  }

  .code-input {
    margin: var(--sp-2) 0 var(--sp-1);
    gap: 6px;
  }

  .code-box {
    width: 42px;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 10px;
    font-size: 16px; /* Prevents iOS zoom */
  }


  /* ============================================
     CONFIRMED SCREEN — tighter, integrated feel
     ============================================ */
  .success-check {
    width: 64px;
    height: 64px;
    margin-bottom: var(--sp-2);
  }

  .confirmed-summary {
    padding: 14px var(--sp-2);
    margin: var(--sp-1) 0 var(--sp-2);
    max-width: 100%;
    border-radius: 12px;
  }

  .confirmed-summary__row {
    padding: var(--sp-1) 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .confirmed-summary__label {
    font-size: 0.7rem;
  }

  .confirmed-summary__value {
    font-size: 0.85rem;
  }

  /* Calendar add button — glassmorphic feel on mobile */
  #addToCalendar {
    background: rgba(79,226,255,0.08);
    border: 1px solid rgba(79,226,255,0.2);
    color: var(--aqua);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #addToCalendar:hover:not(:disabled) {
    background: rgba(79,226,255,0.14);
    border-color: rgba(79,226,255,0.35);
    box-shadow: none;
    filter: none;
  }

  /* Selected type badge */
  .selected-type-badge {
    padding: 5px 12px;
    font-size: 0.72rem;
    margin-bottom: var(--sp-2);
  }
}


/* ==============================================================
   EXTRA SMALL: 360px and below (iPhone SE, small Android)
   ============================================================== */

@media (max-width: 360px) {
  .card {
    padding: var(--sp-2) 14px;
    border-radius: 16px;
  }

  .hero-heading {
    font-size: 1.35rem;
  }

  .coach-avatar-sm {
    width: 34px;
    height: 34px;
  }

  .coach-avatar-sm__initials {
    font-size: 12px;
  }

  .cal-day {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.78rem;
  }

  .calendar__weekdays span {
    font-size: 0.62rem;
  }

  .code-box {
    width: 38px;
    height: 46px;
  }

  .code-dash {
    margin: 0;
  }

  .meeting-card {
    padding: 12px;
  }

  .meeting-card__title {
    font-size: 0.88rem;
  }
}

/* ==============================================================
   EXTRA SMALL: 380px and below — full-width timeslots
   ============================================================== */

@media (max-width: 380px) {
  .timeslots__grid {
    flex-direction: column;
  }

  .timeslot {
    width: 100%;
  }
}

/* ---- Calendar Buttons (US-B6) ---- */
.calendar-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  width: 100%;
  max-width: 360px;
}

/* ---- Aqua Button Variant (US-B6) ---- */
.btn--aqua {
  background: rgba(79,226,255,0.12);
  border: 1px solid rgba(79,226,255,0.25);
  color: var(--aqua);
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--aqua:hover:not(:disabled) {
  background: rgba(79,226,255,0.2);
  border-color: rgba(79,226,255,0.4);
}

/* ---- Meet Link (US-B6) ---- */
.meet-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  width: 100%;
  max-width: 360px;
  margin-bottom: var(--sp-2);
}

.meet-link .btn--aqua {
  flex: 1;
}

.btn--copy {
  background: none;
  border: 1px solid var(--line);
  color: var(--soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--copy:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

/* ---- Confirmed Actions (US-B6) ---- */
.confirmed-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.confirmed-actions__divider {
  color: var(--soft);
  opacity: 0.4;
  font-size: 1rem;
}

.confirmed-actions .link-btn {
  margin-top: 0;
  font-size: 0.82rem;
  text-decoration: none;
}

/* (BP1 styles moved above — old welcome-header block removed) */

.coach-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 2px solid rgba(159,188,87,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.coach-avatar-sm__initials {
  font-size: 14px;
  font-weight: 800;
  color: var(--apple);
  font-family: 'Barlow Condensed', sans-serif;
}

/* (Old BP1 styles: coach-credential--eyebrow, hero-sub--inline, wordmark--inline removed) */

/* ============================================================
   BOOKING CONFIRMATION MODAL (CM1 + BP2) — Glassmorphic
   ============================================================ */
.booking-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,13,20,0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.booking-modal-overlay.visible { display: flex; opacity: 1; }

.booking-modal {
  background: rgba(13,22,32,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  max-width: 460px; width: 100%;
  padding: 36px 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  transform: translateY(30px) scale(0.94);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  opacity: 0;
  max-height: 85vh; overflow-y: auto;
}
.booking-modal-overlay.visible .booking-modal {
  transform: translateY(0) scale(1); opacity: 1;
}

.booking-modal__heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 24px;
  text-align: center;
  text-shadow: 0 0 30px rgba(79,226,255,0.15);
}

.booking-modal__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.booking-modal__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.booking-modal__row:last-child {
  border-bottom: none;
}

.booking-modal__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  flex-shrink: 0;
  padding-top: 2px;
}

.booking-modal__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  padding-left: 12px;
  word-break: break-word;
}

.booking-modal__section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua);
  margin-top: 8px;
  margin-bottom: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.booking-modal__qa {
  padding: 6px 0;
}

.booking-modal__question {
  font-size: 0.75rem;
  color: var(--soft);
  font-weight: 500;
  margin-bottom: 2px;
}

.booking-modal__answer {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.booking-modal__confirm {
  width: 100%;
  padding: 14px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 700;
  background: var(--apple); color: var(--bg);
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-bottom: 10px;
  font-family: 'Manrope', sans-serif;
}
.booking-modal__confirm:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 30px rgba(159,188,87,0.25);
}

.booking-modal__confirm.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.booking-modal__confirm.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(6,13,20,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.booking-modal__edit {
  width: 100%;
  padding: 12px; border-radius: 14px;
  font-size: 0.85rem; font-weight: 600;
  background: none; color: var(--soft);
  border: 1px solid var(--line);
  cursor: pointer; transition: all 0.2s;
  font-family: 'Manrope', sans-serif;
}
.booking-modal__edit:hover {
  border-color: var(--text); color: var(--text);
}

/* Modal mobile adjustments */
@media (max-width: 560px) {
  .booking-modal {
    padding: 28px 20px;
    border-radius: 22px;
    max-height: 90vh;
  }

  .booking-modal__heading {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .booking-modal__confirm {
    min-height: 48px;
    border-radius: 12px;
  }

  .booking-modal__edit {
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: 380px;
}
.toast.visible { transform: translateX(0); opacity: 1; }
.toast.exiting { transform: translateX(120%); opacity: 0; }

.toast--success { border-color: rgba(159,188,87,0.3); }
.toast--success .toast__icon { color: var(--apple); }
.toast--error { border-color: rgba(242,92,92,0.3); }
.toast--error .toast__icon { color: #f25c5c; }
.toast--warning { border-color: rgba(245,166,35,0.3); }
.toast--warning .toast__icon { color: #f5a623; }
.toast--info { border-color: rgba(79,226,255,0.3); }
.toast--info .toast__icon { color: var(--aqua); }

.toast__icon { flex-shrink: 0; width: 18px; height: 18px; }
.toast__text { flex: 1; line-height: 1.4; }
.toast__close {
  flex-shrink: 0; background: none; border: none;
  color: var(--soft); cursor: pointer; padding: 2px;
  font-size: 1.1rem; line-height: 1; transition: color 0.2s;
}
.toast__close:hover { color: var(--text); }

@media (max-width: 480px) {
  .toast-container { top: auto; bottom: 24px; right: 12px; left: 12px; }
  .toast { max-width: none; transform: translateY(120%); }
  .toast.visible { transform: translateY(0); }
  .toast.exiting { transform: translateY(120%); }
}
