/* ============================================================
   Dashboard styles — per-client member area
   ============================================================ */

/* ─── LOCKED VIEW ───────────────────────────────────────── */
.dash-locked, .dash-error {
  padding: 160px 0 100px;
  text-align: center;
  background: var(--bg);
  min-height: 80vh;
}
.dash-locked .label, .dash-error .label { display: block; margin-bottom: 20px; }
.dash-locked h1, .dash-error h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.15;
}
.dash-locked p, .dash-error p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.dash-locked__note {
  background: var(--warm);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 36px auto;
  font-size: 0.95rem;
  text-align: left;
  max-width: 520px;
}
.dash-locked__note strong { color: var(--text); display: block; margin-bottom: 6px; }
.dash-locked__contact {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
}
.dash-locked__contact a { color: var(--accent); font-weight: 500; }

/* ─── HERO ──────────────────────────────────────────────── */
.dash-hero {
  padding: 140px 0 40px;
  background: var(--bg);
}
.dash-hero .label { display: block; margin-bottom: 14px; }
.dash-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 8px;
}
.dash-hero h1 span { color: var(--accent); font-style: normal; font-weight: 400; }
.dash-hero p { color: var(--muted); font-size: 1.05rem; }

/* ─── STATUS GRID ───────────────────────────────────────── */
.dash-status { padding: 30px 0 60px; background: var(--bg); }
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.dash-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 32px;
}
.dash-card--primary {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}
.dash-card--accent {
  background: var(--white);
  border-color: var(--accent);
}
.dash-card__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.dash-card--primary .dash-card__label { color: #D4895E; }
.dash-card__title {
  font-family: var(--f-head);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: inherit;
  line-height: 1.2;
}
.dash-card__sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.dash-card--primary .dash-card__sub { color: rgba(255,255,255,0.7); }

/* ─── PROGRESS BAR ──────────────────────────────────────── */
.dash-progress { margin: 18px 0 8px; }
.dash-progress__bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.dash-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #D4895E);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.dash-progress__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.dash-progress__text span { font-family: var(--f-head); font-size: 1.1rem; color: var(--white); font-weight: 400; }

/* ─── DASH SECTIONS ─────────────────────────────────────── */
.dash-section { padding: 70px 0; }
.dash-section__header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.dash-section__header .label { display: block; margin-bottom: 14px; }
.dash-section__header h2 {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.dash-section__header p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; }

/* ─── RESOURCES (exercises) ─────────────────────────────── */
.dash-resources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.resource-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.resource-card__icon { font-size: 1.4rem; margin-bottom: 6px; }
.resource-card h3 {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.resource-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.resource-card__link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* ─── PROGRAMS ──────────────────────────────────────────── */
.dash-programs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.program-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: relative;
}
.program-card__tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(193,113,74,0.08);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.program-card h3 {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.program-card__progress {
  font-size: 0.82rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 10px;
  font-weight: 500;
}
.program-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.program-card__next {
  font-size: 0.85rem;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  margin-bottom: 0 !important;
}
.program-card__next strong { color: var(--accent); }

/* ─── PERSONAL NOTE ─────────────────────────────────────── */
.dash-note {
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 28px 32px;
  font-family: var(--f-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  box-shadow: var(--shadow);
}

/* ─── EMPTY STATE ───────────────────────────────────────── */
.dash-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 30px;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  font-size: 0.92rem;
}

/* ─── QUICK ACTIONS ─────────────────────────────────────── */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── BOOKING EMBED ─────────────────────────────────────── */
.booking-embed-frame {
  background: var(--warm);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow);
}
.booking-embed-frame iframe {
  display: block;
  background: var(--white);
  border-radius: 12px;
  min-height: 640px;
}
.booking-embed-fallback {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.booking-embed-fallback a { color: var(--accent); font-weight: 500; }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-actions { grid-template-columns: 1fr; }
}
