@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:          #0A0A0A;
  --bg-card:     #141414;
  --bg-card-2:   #1C1C1C;
  --orange:      #FF5722;
  --orange-light:#FF7043;
  --orange-dark: #E64A19;
  --text:        #F0F0F0;
  --text-muted:  #9E9E9E;
  --text-dim:    #5A5A5A;
  --border:      rgba(255,255,255,0.08);
  --success:     #4CAF50;
  --radius:      10px;
  --radius-lg:   16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.5px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--orange); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-danger {
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: #a93226; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-headline span { color: var(--orange); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Category Grid ───────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.category-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.category-icon { font-size: 32px; margin-bottom: 10px; }
.category-label { font-size: 14px; font-weight: 600; }

/* ── Class Cards ─────────────────────────────────────────────────────── */
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.class-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.class-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.class-title {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 6px;
  line-height: 1.3;
}
.class-expert { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.class-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.class-price { font-size: 18px; font-weight: 700; color: var(--orange); }
.class-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.class-spots { font-size: 12px; color: var(--text-dim); }

/* ── Category Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-fitness  { background: rgba(255,87,34,0.15);  color: #FF7043; }
.badge-yoga     { background: rgba(156,39,176,0.15); color: #CE93D8; }
.badge-nutrition{ background: rgba(76,175,80,0.15);  color: #81C784; }
.badge-pregnancy{ background: rgba(233,30,99,0.15);  color: #F48FB1; }
.badge-wellness { background: rgba(33,150,243,0.15); color: #90CAF9; }

/* ── Expert Card ─────────────────────────────────────────────────────── */
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.expert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  overflow: hidden;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.expert-spec { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.expert-bio  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── How It Works ────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-desc  { font-size: 14px; color: var(--text-muted); }

/* ── Expert CTA Strip ────────────────────────────────────────────────── */
.expert-cta-strip {
  background: var(--orange-dark);
  padding: 64px 24px;
  text-align: center;
}
.expert-cta-strip h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.expert-cta-strip p  { font-size: 16px; opacity: 0.85; margin-bottom: 28px; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.form-card.wide { max-width: 560px; }
.form-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.form-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
}
select option { background: var(--bg-card-2); }
textarea { resize: vertical; min-height: 100px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 14px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.checkbox-label:hover { border-color: var(--orange); }
.checkbox-label input { accent-color: var(--orange); }

.form-error {
  background: rgba(211,47,47,0.12);
  border: 1px solid rgba(211,47,47,0.3);
  color: #ef9a9a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

.form-link { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 20px; }
.form-link a { color: var(--orange); }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.tab:hover  { color: var(--text); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Dashboard List ──────────────────────────────────────────────────── */
.dashboard-list { display: flex; flex-direction: column; gap: 12px; }
.booking-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.booking-info { flex: 1; min-width: 200px; }
.booking-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.booking-meta  { font-size: 13px; color: var(--text-muted); }

/* ── Success Card ────────────────────────────────────────────────────── */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.success-sub   { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.success-detail {
  background: var(--bg-card-2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}
.success-detail-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.success-detail-row:last-child { margin-bottom: 0; }
.success-detail-label { color: var(--text-muted); }
.success-detail-value { font-weight: 500; }

.join-link-box {
  background: rgba(255,87,34,0.08);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}
.join-link-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--orange); margin-bottom: 8px; }
.join-link-url   { color: var(--orange-light); word-break: break-all; font-size: 14px; }
.join-link-note  { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Alert ───────────────────────────────────────────────────────────── */
.alert-cancelled {
  background: rgba(255,87,34,0.1);
  border: 1px solid rgba(255,87,34,0.3);
  color: var(--orange-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ── Class Detail ────────────────────────────────────────────────────── */
.detail-page { max-width: 1000px; margin: 0 auto; padding: 40px 24px; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.detail-title { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin: 12px 0 16px; }
.detail-desc  { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.detail-info  { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.detail-info-row { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.detail-info-label { color: var(--text-muted); min-width: 90px; }
.detail-info-value { font-weight: 500; }
.detail-price { font-size: 32px; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.detail-spots { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.detail-sidebar { position: sticky; top: 80px; }

/* ── Browse Filter Bar ───────────────────────────────────────────────── */
.filter-bar {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.filter-tabs { display: flex; gap: 0; overflow-x: auto; }
.filter-tab {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.filter-tab:hover  { color: var(--text); }
.filter-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ── Expert Profile ──────────────────────────────────────────────────── */
.profile-page { max-width: 1000px; margin: 0 auto; padding: 40px 24px; }
.profile-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.profile-spec { font-size: 15px; color: var(--orange); margin-bottom: 12px; font-weight: 500; }
.profile-bio  { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── Dashboard Page ──────────────────────────────────────────────────── */
.dashboard-page { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dashboard-title { font-size: 28px; font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-icon  { font-size: 48px; margin-bottom: 16px; }
.empty-text  { font-size: 16px; margin-bottom: 8px; }
.empty-sub   { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* ── Expert Dashboard Class List ─────────────────────────────────────── */
.class-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.class-item-info { flex: 1; min-width: 200px; }
.class-item-title{ font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.class-item-meta { font-size: 13px; color: var(--text-muted); }
.class-item-actions { display: flex; gap: 8px; }

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-scheduled { background: rgba(76,175,80,0.15);  color: #81C784; }
.status-cancelled { background: rgba(211,47,47,0.15);  color: #ef9a9a; }

/* ── Create Class Form ───────────────────────────────────────────────── */
.create-form { max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-logo    { font-size: 20px; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.footer-tagline { font-size: 14px; color: var(--text-dim); max-width: 300px; }
.footer-links   { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ── Loading ─────────────────────────────────────────────────────────── */
.loading-spinner {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .class-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid    { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost:not(:last-child):not(:nth-last-child(2)) { display: none; }
}
