/* ═══════════════════════════════════════════════════
   GRIND & GROW — Blue & White Design System
   ═══════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

/* ── Design Tokens ──────────────────────────────── */
:root {
  --bg:         #06090f;
  --surface:    #0d1117;
  --surface-2:  #141b28;
  --surface-3:  #1c2740;
  --text:       #eef2ff;
  --muted:      #6b7a99;
  --line:       #1e2d47;
  --brand:      #3b82f6;
  --brand-dark: #2563eb;
  --brand-glow: rgba(59, 130, 246, 0.24);
  --accent:     #ffb347;
  --brand-light: rgba(59, 130, 246, 0.1);
  --success:       #22c55e;
  --success-bg:    rgba(34, 197, 94, 0.12);
  --warning:       #f59e0b;
  --warning-bg:    rgba(245, 158, 11, 0.12);
  --danger:        #ef4444;
  --danger-bg:     rgba(239, 68, 68, 0.12);
  --radius:    10px;
  --radius-sm:  6px;
  --shadow:    0 2px 16px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.7);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, .brand {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { line-height: 1.06; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 16px; }
h2 { line-height: 1.15; margin: 0 0 14px; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
p  { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ── Header / Nav ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 9, 15, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 16px;
  position: relative;
}

.brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-wrap .brand { color: var(--brand); }
.nav-wrap .brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.84rem;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active  { background: var(--surface-2); color: var(--brand); }

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: "Inter", sans-serif;
}
.nav-toggle:hover { background: var(--surface-3); }

/* ── Page body ──────────────────────────────────── */
.page-body {
  padding: 32px 0 68px;
  min-height: 70vh;
  animation: rise 300ms ease-out;
}

/* ── Card ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition);
}
.card:hover { border-color: #2a3d5c; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.87rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all var(--transition);
}
.btn:hover  { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 0 var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 0 22px var(--brand-glow);
  color: #fff;
}

.btn-light {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-light:hover { background: var(--surface-3); border-color: #2a3d5c; color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-accent { background: var(--accent); color: #06090f; font-weight: 700; }
.btn-accent:hover { background: #ffaa2e; color: #06090f; }

.btn-mini { padding: 5px 12px; font-size: 0.77rem; }

/* ── Forms ──────────────────────────────────────── */
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: "Inter", sans-serif;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}
select option { background: var(--surface-2); color: var(--text); }

/* ── Grid ───────────────────────────────────────── */
.grid   { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Pill / Badge ───────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.amber    { background: var(--warning-bg);  color: var(--warning); border-color: rgba(245,158,11,0.3); }
.pill.live     { background: var(--success-bg);  color: var(--success); border-color: rgba(34,197,94,0.3); }
.pill.upcoming { background: rgba(99,102,241,.12); color: #818cf8; border-color: rgba(99,102,241,0.3); }
.pill.past     { background: var(--surface-2); color: var(--muted); }

.chip {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── Typography utilities ───────────────────────── */
.muted      { color: var(--muted); }
.meta       { font-size: 0.82rem; color: var(--muted); }
.eyebrow    { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--brand); font-weight: 700; margin: 0 0 12px; }
.eyebrow-dark { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--brand); font-weight: 700; margin: 0 0 8px; }

/* ── Layout utilities ───────────────────────────── */
.narrow  { width: min(520px, 100%); }
.stack   { display: grid; gap: 12px; }
.kpi     { font-size: 2rem; font-weight: 800; color: var(--brand); margin: 8px 0 0; line-height: 1; font-family: "Plus Jakarta Sans", sans-serif; }
.big     { font-size: 2rem; font-weight: 800; margin: 8px 0 0; font-family: "Plus Jakarta Sans", sans-serif; }
.right   { text-align: right; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Section utilities ──────────────────────────── */
section { margin-top: 32px; animation: rise 360ms ease-out; }

.page-header            { margin-bottom: 24px; }
.page-header h1         { margin: 0 0 6px; }
.page-header .muted     { font-size: 0.95rem; margin: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; }

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* section header: h2 + optional muted subtitle (no action button) */
.section-header { margin-bottom: 20px; }
.section-header h2 { margin: 0 0 4px; }
.section-header .muted { font-size: 0.95rem; margin: 0; }

/* flex row – title/chip on left, action on right */
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Build-With-G&G opt-in card */
.build-opt-in {
  background: var(--surface-2);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 40px;
  border-radius: 14px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -50% auto auto -5%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(59,130,246,0.10), transparent 65%);
  pointer-events: none;
}
.hero h1  { font-size: clamp(2.1rem, 4vw, 3.5rem); margin: 10px 0; max-width: 14ch; }
.hero p   { max-width: 70ch; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ── Home hero v3 ───────────────────────────────── */
.home-hero-v2,
.home-hero-v3 {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px;
  overflow: hidden;
}
.home-hero-v2::before,
.home-hero-v3::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -5%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(59,130,246,0.10), transparent 65%);
  pointer-events: none;
}

.home-hero-copy,
.home-hero-panel { position: relative; z-index: 1; }

.home-subcopy {
  font-size: 1rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.75;
}

.home-metrics {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.home-metrics div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
}
.home-metrics span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-metrics strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.home-hero-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.home-panel-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
}
.home-panel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.lead-magnet {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.lead-magnet p { margin: 0; font-size: 0.87rem; color: var(--muted); }

.home-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  margin-top: 14px;
}
.home-strip p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.home-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.home-loop-card span {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.8rem;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.home-loop-card h3 { margin: 10px 0 6px; }

.home-feature-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; }
.home-feature-main h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.home-feature-list { display: grid; gap: 12px; }
.home-feature-item h3 { margin-top: 2px; margin-bottom: 6px; font-size: 1.03rem; }

.home-media-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 14px; align-items: start; }
.home-newsletter  { background: var(--surface); }
.home-community-grid .home-community-card { background: var(--surface); }
.home-community-card .btn { margin-top: 8px; }

.value-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
}
.value-strip h2 { text-align: center; margin-bottom: 20px; }
.value-strip .card { background: var(--surface-2); }

.monetization-hook .card {
  background: var(--surface);
  border: 1px solid var(--brand);
  text-align: center;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.monetization-hook .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,.08), transparent 60%);
  pointer-events: none;
}
.monetization-hook .card h2 { margin-bottom: 10px; color: var(--brand); }
.monetization-hook .card p  { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }

.email-capture {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
}
.email-capture-card { max-width: 560px; margin: 0 auto; background: transparent; border: none; padding: 0; }
.email-capture-card h2 { margin-bottom: 8px; }
.email-capture-card p  { color: var(--muted); margin-bottom: 16px; }
.email-capture-card form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.email-capture-card form input { flex: 1 1 240px; }
.email-capture-card .small { font-size: 0.8rem; color: var(--muted); margin-top: 10px; margin-bottom: 0; }

/* ── Episode / Blog media ───────────────────────── */
.episode-thumb-link  { display: block; }
.episode-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.detail-thumb { max-width: 900px; }

.video-shell { padding: 0; overflow: hidden; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.podcast-platform-card { display: flex; flex-direction: column; gap: 10px; }
.platform-frame-wrap   { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.platform-frame        { width: 100%; min-height: 352px; border: 0; display: block; }

.tiktok-grid .card { padding: 10px; }
.tiktok-card blockquote.tiktok-embed { margin: 0 auto; width: 100%; }
.tiktok-live-card {
  display: flex;
  justify-content: center;
  background: var(--surface-2);
  border-color: var(--line);
}
.tiktok-live-card blockquote.tiktok-embed { margin: 0 auto; width: 100%; }

/* ── Blog cards ─────────────────────────────────── */
.blog-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.blog-card h2 { font-size: 1.18rem; margin: 0 0 8px; line-height: 1.3; }

/* ── Blog detail ─────────────────────────────────── */
.blog-detail           { max-width: 800px; margin: 0 auto; }
.blog-detail-meta      { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.9rem; }
.blog-detail-title     { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 0 0 24px; line-height: 1.2; }
.blog-detail-body      { line-height: 1.9; }
.blog-detail-body h2   { margin-top: 28px; }
.blog-detail-footer    { margin-top: 24px; }

/* ── Episode detail ──────────────────────────────── */
.episode-detail-head   { margin-bottom: 20px; }
.episode-detail-layout { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 20px; align-items: start; margin-bottom: 16px; }

/* ── Course ──────────────────────────────────────── */
.course-grid        { align-items: stretch; }
.course-card        { display: flex; flex-direction: column; gap: 10px; }
.course-card form   { margin: 0; }
.course-card .btn   { margin-top: auto; }
.course-meta        { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.course-price       { font-size: 1.5rem; font-weight: 800; color: var(--brand); margin: 4px 0 10px; line-height: 1.1; font-family: "Plus Jakarta Sans", sans-serif; }
.course-requirements { margin: 0; padding-left: 18px; color: var(--muted); }
.course-requirements li + li { margin-top: 6px; }

/* ── Sponsors ────────────────────────────────────── */
.sponsor-grid        { align-items: stretch; }
.sponsor-banner-card { display: flex; flex-direction: column; gap: 8px; }
.sponsor-banner      { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.sponsor-tier-card   { border-top: 3px solid var(--line); }
.sponsor-tier        { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; border-radius: 999px; padding: 3px 10px; display: inline-block; margin-bottom: 8px; }
.sponsor-tier.bronze { background: var(--warning-bg);           color: var(--warning); }
.sponsor-tier.silver { background: var(--surface-3);            color: var(--muted); }
.sponsor-tier.gold   { background: rgba(255,179,71,.15);         color: var(--accent); }

/* ── Auth pages ──────────────────────────────────── */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.auth-card {
  width: min(440px, 100%);
  padding: 40px 36px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.auth-brand {
  text-align: center;
  margin-bottom: 30px;
}
.auth-brand .brand {
  font-size: 1.65rem;
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
}
.auth-brand .muted { font-size: 0.9rem; }
.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  margin-top: 14px;
  color: var(--muted);
}

/* ── Dashboard / KPI ─────────────────────────────── */
.kpi-card            { border-left: 3px solid var(--brand); }
.kpi-card.green      { border-left-color: var(--success); }
.kpi-card.green .kpi { color: var(--success); }
.kpi-card.amber      { border-left-color: var(--warning); }
.kpi-card.amber .kpi { color: var(--warning); }
.kpi-card.red        { border-left-color: var(--danger); }
.kpi-card.red .kpi   { color: var(--danger); }

/* ── Admin KPI grid ──────────────────────────────── */
.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.admin-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.admin-kpi h3 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.admin-kpi .kpi-value { font-size: 1.9rem; font-weight: 800; color: var(--text); font-family: "Plus Jakarta Sans", sans-serif; line-height: 1; }

/* ── Admin nav bar ───────────────────────────────── */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ── Admin back link ─────────────────────────────── */
.admin-back {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: color var(--transition);
}
.admin-back:hover { color: var(--brand); }

/* ── Flash messages ──────────────────────────────── */
.flash-wrap { margin-bottom: 18px; display: grid; gap: 8px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash.success { background: var(--success-bg); color: var(--success); border-color: rgba(34,197,94,.3); }
.flash.error   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(239,68,68,.3); }

/* ── Tables ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th    { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
td    { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }

/* ── Value list ──────────────────────────────────── */
.value-list    { padding: 0; list-style: none; margin: 0; }
.value-list li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.value-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.value-list li:last-child { border-bottom: none; }

/* ── Filters ─────────────────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ── Status pills ────────────────────────────────── */
.status-pill         { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; }
.status-pill.pending  { background: var(--warning-bg); color: var(--warning); }
.status-pill.approved { background: var(--success-bg); color: var(--success); }
.status-pill.rejected { background: var(--danger-bg);  color: var(--danger); }
.status-pill.paid     { background: var(--success-bg); color: var(--success); }
.status-pill.failed   { background: var(--danger-bg);  color: var(--danger); }

/* ── Contact layout ──────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.2fr; gap: 20px; align-items: start; }
.contact-info   { display: grid; gap: 14px; }

/* ── About CTA ───────────────────────────────────── */
.about-cta { text-align: center; padding: 36px; border-color: var(--brand); position: relative; overflow: hidden; }
.about-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(59,130,246,.07), transparent 60%); pointer-events: none; }
.about-cta h2 { color: var(--brand); }

/* ── Payment ─────────────────────────────────────── */
.payment-status-icon { font-size: 2.5rem; text-align: center; margin-bottom: 8px; line-height: 1; }

/* ── Callback box ────────────────────────────────── */
.callback-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.86rem; line-height: 1.7; margin-bottom: 16px; color: var(--muted); word-break: break-all; }

/* ── Code block ──────────────────────────────────── */
.code { background: var(--surface-2); color: var(--accent); padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-family: monospace; font-size: 0.88rem; }

/* ── Error page ──────────────────────────────────── */
.error-page  { min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.error-inner { max-width: 480px; }
.error-code  { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--brand); opacity: 0.15; line-height: 1; margin: 0; font-family: "Plus Jakarta Sans", sans-serif; }

/* ── Networking / People ─────────────────────────── */
.person-card { display: flex; flex-direction: column; gap: 8px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head h1, .profile-head h2, .profile-head h3, .profile-head p { margin: 0; }

.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}
.avatar-lg { width: 80px !important; height: 80px !important; border-radius: 50%; object-fit: cover; }

/* ── Chat ────────────────────────────────────────── */
.chat-shell { display: flex; flex-direction: column; gap: 16px; }
.chat-feed  {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.chat-row        { display: flex; }
.chat-row.mine   { justify-content: flex-end; }
.chat-row.theirs { justify-content: flex-start; }
.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-row.mine   .chat-bubble { background: var(--brand);    color: #fff;           border-bottom-right-radius: 3px; }
.chat-row.theirs .chat-bubble { background: var(--surface-3); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 3px; }
.chat-bubble p    { margin: 0 0 3px; }
.chat-bubble span { font-size: 0.74rem; opacity: 0.55; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 52px 0 0;
  margin-top: 60px;
}
.site-footer .brand { color: var(--brand); }
.site-footer .muted { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.footer-col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.footer-grid a { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ── Animations ──────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive 860px ───────────────────────────── */
@media (max-width: 860px) {
  .home-hero-v2, .home-hero-v3 { grid-template-columns: 1fr; padding: 24px; }
  .home-metrics { grid-template-columns: repeat(2, 1fr); }
  .home-loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature-layout, .home-media-grid { grid-template-columns: 1fr; }
  .platform-frame { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .episode-detail-layout { grid-template-columns: 1fr; }
}

/* ── Responsive 720px ───────────────────────────── */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 52px;
    z-index: 50;
    gap: 2px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a    { padding: 9px 12px; font-size: 0.9rem; border-radius: var(--radius-sm); }
  .home-loop-grid { grid-template-columns: 1fr; }
  .home-metrics   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .hero           { padding: 26px; }
  .hero h1        { max-width: none; }
}
