/* ============ GeoLearn — shared styles ============ */

:root {
  --paper: #EFE7D5;
  --paper-card: #FBF8EF;
  --ink: #1C2B24;
  --ink-soft: #4B5A50;
  --pine: #2C4A3B;
  --pine-dark: #17281F;
  --ochre: #B9860C;
  --teal: #3D6B70;
  --line: rgba(28, 43, 36, 0.16);
  --green-tint: #B9C4BB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Public Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; margin: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--pine); }

button, input { font-family: 'Public Sans', system-ui, sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 64px; }

/* ---------- Nav ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a, .nav-links span.active {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
span.active { color: var(--pine); border-bottom: 2px solid var(--ochre); padding-bottom: 4px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-fill-ochre { background: var(--ochre); color: var(--paper-card); }
.btn-fill-pine { background: var(--pine); color: var(--paper-card); }
.btn-outline-pine { background: transparent; color: var(--pine); border: 1.5px solid var(--pine); }
.btn-outline-light { background: transparent; color: var(--paper-card); border: 1.5px solid var(--green-tint); }
.btn-small { padding: 10px 18px; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark);
  padding: 56px 64px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.site-footer .brand span { color: var(--paper-card); }
.site-footer p { font-size: 14px; color: #8CA398; line-height: 1.6; max-width: 340px; }
.footer-cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .label { font-size: 13px; color: #8CA398; font-weight: 600; }
.footer-col a, .footer-col span.value { font-size: 14px; color: var(--paper-card); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.hero-rings {
  position: absolute;
  right: -180px;
  top: -60px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-text { flex: 1; display: flex; flex-direction: column; gap: 28px; z-index: 1; max-width: 620px; }
.hero-text h1 { font-size: clamp(32px, 4.5vw, 58px); line-height: 1.1; font-weight: 600; }
.hero-text p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 520px; }
.hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hero-media { width: 460px; max-width: 100%; flex-shrink: 0; z-index: 1; }

.map-card {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--pine);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(28, 43, 36, 0.25);
  display: block;
}
.map-card svg.terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-btn .disc {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(251, 248, 239, 0.95);
  display: flex; align-items: center; justify-content: center;
}
.tag-free {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--ochre); color: var(--paper-card);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 3px;
}
.card-caption { position: absolute; right: 16px; bottom: 16px; color: var(--paper-card); font-size: 13px; }

/* ---------- Free strip ---------- */
.strip {
  background: var(--pine-dark);
  padding: 72px 64px;
}
.strip h2 { font-size: 34px; color: var(--paper-card); font-weight: 600; line-height: 1.25; }
.strip .lede { font-size: 17px; color: var(--green-tint); margin-top: 12px; line-height: 1.6; max-width: 640px; }
.chapter-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.chapter-card { display: flex; flex-direction: column; gap: 14px; color: inherit; }
.chapter-thumb {
  width: 100%; aspect-ratio: 5 / 3;
  background: #24402F; border-radius: 6px; position: relative; overflow: hidden;
}
.chapter-thumb .num {
  position: absolute; top: 12px; left: 12px; color: var(--ochre);
  font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600;
}
.chapter-thumb .play-mini {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.chapter-thumb .play-mini .disc {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 248, 239, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.chapter-title { color: var(--paper-card); font-size: 16px; font-weight: 600; line-height: 1.35; }
.chapter-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.chapter-meta .dur { color: #8CA398; font-size: 13px; }
.chapter-meta .free { color: var(--ochre); font-size: 13px; font-weight: 600; }
.chapter-meta .locked { color: var(--ink-soft); font-size: 13px; font-weight: 600; }

.chapter-thumb.on-paper { background: var(--pine); }
.chapter-lock-overlay {
  position: absolute; inset: 0; background: rgba(23, 40, 31, 0.72);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- How it works ---------- */
.steps-section { padding: 80px 64px; display: flex; flex-direction: column; gap: 48px; }
.steps-section h2 { font-size: 32px; font-weight: 600; max-width: 500px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step {
  display: flex; flex-direction: column; gap: 16px;
  border-left: 2px solid var(--ochre); padding-left: 24px;
}
.step .n { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 600; color: var(--ochre); }
.step .t { font-size: 20px; font-weight: 600; }
.step .d { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Plans ---------- */
.plans-section { background: var(--paper-card); padding: 80px 64px; display: flex; flex-direction: column; gap: 44px; }
.plans-section h2 { font-size: 32px; font-weight: 600; }
.plans-section .lede { font-size: 16px; color: var(--ink-soft); margin-top: 10px; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 900px; }
.plan-card {
  border-radius: 8px; padding: 40px; display: flex; flex-direction: column; gap: 24px;
  text-align: left; font-family: inherit; cursor: pointer;
}
.plan-card.light { border: 1.5px solid var(--line); background: transparent; }
.plan-card.dark { background: var(--pine); border: 1.5px solid var(--pine); }
.plan-card .plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-card .plan-name { font-size: 18px; font-weight: 600; }
.plan-card.light .plan-name { color: var(--ink); }
.plan-card.dark .plan-name { color: var(--paper-card); }
.plan-card .save-tag { font-size: 13px; color: var(--ochre); font-weight: 600; }
.plan-card .price { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan-card.light .price { color: var(--ink); }
.plan-card.dark .price { color: var(--paper-card); }
.plan-card .price small { font-size: 15px; font-weight: 400; }
.plan-card.light .price small { color: var(--ink-soft); }
.plan-card.dark .price small { color: var(--green-tint); }
.plan-features { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.plan-card.light .plan-features { color: var(--ink); }
.plan-card.dark .plan-features { color: var(--paper-card); }
.plan-card .cta { margin-top: auto; text-align: center; padding: 14px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.plan-card.light .cta { border: 1.5px solid var(--pine); color: var(--pine); }
.plan-card.dark .cta { background: var(--ochre); color: var(--paper-card); }
.plan-card[aria-pressed="true"] { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* ---------- Generic page header ---------- */
.page-head { padding: 64px 64px 0 64px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: 38px; font-weight: 600; }
.page-head p { font-size: 16px; color: var(--ink-soft); margin: 0; max-width: 560px; }

/* ---------- Player page ---------- */
.player-toolbar { padding: 20px 64px 0 64px; display: flex; align-items: center; gap: 10px; }
.player-toolbar .label { font-size: 13px; color: var(--ink-soft); }
.toggle-btn {
  padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; background: rgba(28,43,36,0.08); color: var(--ink);
}
.toggle-btn.active { background: var(--pine); color: var(--paper-card); }

.player-wrap { padding: 32px 64px 64px 64px; display: flex; flex-direction: column; gap: 28px; }
.player-stage {
  width: 100%; aspect-ratio: 16 / 9; max-height: 740px;
  background: var(--pine-dark); border-radius: 8px; position: relative; overflow: hidden;
}
.player-stage svg.terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.progress-row { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 28px; display: flex; flex-direction: column; gap: 10px; }
.progress-track { width: 100%; height: 4px; background: rgba(251,248,239,0.25); border-radius: 2px; }
.progress-fill { width: 38%; height: 100%; background: var(--ochre); border-radius: 2px; }
.progress-times { display: flex; justify-content: space-between; color: var(--paper-card); font-size: 13px; }
.lock-overlay {
  position: absolute; inset: 0; background: rgba(23, 40, 31, 0.85);
  display: flex; align-items: center; justify-content: center;
}
.lock-box { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 380px; padding: 0 20px; }
.lock-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ochre); display: flex; align-items: center; justify-content: center; }
.lock-box h3 { color: var(--paper-card); font-size: 20px; font-weight: 600; }
.lock-box p { color: var(--green-tint); font-size: 14px; line-height: 1.6; margin: 0; }

.player-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.player-meta .info { max-width: 700px; display: flex; flex-direction: column; gap: 10px; }
.player-meta h1 { font-size: 26px; font-weight: 600; }
.player-meta p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.badge { padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.badge.free { background: var(--ochre); color: var(--paper-card); }
.badge.locked { background: rgba(28,43,36,0.1); color: var(--ink-soft); }

/* ---------- Auth card ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 440px; max-width: 100%;
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 44px; display: flex; flex-direction: column; gap: 28px;
}
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); }
.auth-tab {
  flex: 1; padding: 14px; background: transparent; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--pine); border-bottom-color: var(--ochre); }
.auth-card h1 { font-size: 24px; font-weight: 600; }
.auth-card .sub { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px;
}
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 0; }

/* ---------- Subscribe page ---------- */
.subscribe-wrap { padding: 56px 64px; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.subscribe-head { max-width: 620px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.subscribe-head h1 { font-size: 32px; font-weight: 600; }
.subscribe-head p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.payment-card {
  width: 440px; max-width: 100%; background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.payment-card .title { font-size: 15px; font-weight: 600; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.pay-btn {
  background: var(--pine); color: var(--paper-card); border: none; text-align: center;
  padding: 14px; border-radius: 4px; font-weight: 600; font-size: 15px; margin-top: 8px; cursor: pointer;
}
.success-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.success-box { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; max-width: 420px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); display: flex; align-items: center; justify-content: center; }
.success-box h1 { font-size: 26px; font-weight: 600; }
.success-box p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.hidden { display: none !important; }

/* ---------- Dashboard ---------- */
.dash-wrap { padding: 56px 64px; display: flex; flex-direction: column; gap: 36px; }
.dash-wrap h1 { font-size: 32px; font-weight: 600; }
.dash-wrap .sub { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.plan-banner {
  background: var(--pine); border-radius: 8px; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.plan-banner .label { color: var(--green-tint); font-size: 13px; font-weight: 600; }
.plan-banner .value { color: var(--paper-card); font-size: 20px; font-weight: 600; font-family: 'Fraunces', serif; margin-top: 4px; }
.cw-title { font-size: 18px; font-weight: 600; }
.cw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.cw-card { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.cw-thumb { width: 100%; aspect-ratio: 16/10; background: #24402F; border-radius: 6px; position: relative; overflow: hidden; }
.cw-progress-track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(251,248,239,0.25); }
.cw-progress-fill { height: 100%; background: var(--ochre); }
.cw-title-text { font-size: 14px; font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .container, .navbar, .hero, .strip, .steps-section, .plans-section,
  .page-head, .player-toolbar, .player-wrap, .subscribe-wrap, .dash-wrap, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .nav-links { gap: 20px; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .hero-rings { display: none; }
  .hero-media { width: 100%; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .plans-grid { grid-template-columns: 1fr; }
  .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .navbar { padding-top: 16px; padding-bottom: 16px; }
  .nav-links a:not(.always-show) { display: none; }
  .brand span { font-size: 19px; }
  .hero-text h1 { font-size: 30px; }
  .hero-text p { font-size: 16px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .cw-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 40px; }
  .player-meta { flex-direction: column; }
}

/* ============ Simple content pages ============ */
.simple-wrap { padding: 56px 64px; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.simple-wrap h1 { font-size: 32px; font-weight: 600; }
.simple-wrap h2 { font-size: 20px; font-weight: 600; margin-top: 20px; }
.simple-wrap p, .simple-wrap li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.simple-wrap .updated { font-size: 13px; color: var(--ink-soft); }

/* ---------- Search + filters (chapters page) ---------- */
.filter-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.search-input {
  flex: 1; min-width: 220px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 4px; font-size: 14px; background: var(--paper-card);
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.chip.active { background: var(--pine); color: var(--paper-card); border-color: var(--pine); }
.empty-state { padding: 48px 0; text-align: center; color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--ochre); font-weight: 400; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; }

/* ---------- Forms (contact / profile / forgot password) ---------- */
.form-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 110px; }
.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); display: flex; align-items: center; justify-content: center; color: var(--paper-card); font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; flex-shrink: 0; }

/* ---------- Billing table ---------- */
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.data-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { font-size: 14px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.status-pill { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-pill.paid { background: rgba(44,74,59,0.1); color: var(--pine); }
.status-pill.active { background: rgba(185,134,12,0.15); color: var(--ochre); }
.danger-zone { border: 1px solid rgba(178,58,46,0.35); border-radius: 8px; padding: 24px; margin-top: 8px; }
.danger-zone h3 { font-size: 15px; font-weight: 600; color: #8A3324; }
.danger-zone p { font-size: 13px; color: var(--ink-soft); margin: 8px 0 16px 0; }
.btn-danger { background: transparent; border: 1.5px solid #B23A2E; color: #B23A2E; }

/* ---------- Quiz ---------- */
.quiz-wrap { padding: 56px 64px; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.quiz-progress { font-size: 13px; color: var(--ink-soft); }
.quiz-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.quiz-card h2 { font-size: 19px; font-weight: 600; margin-bottom: 20px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 6px; margin-bottom: 10px; cursor: pointer; font-size: 15px; background: transparent;
}
.quiz-option.selected { border-color: var(--pine); background: rgba(44,74,59,0.06); }
.quiz-option.correct { border-color: var(--pine); background: rgba(44,74,59,0.1); }
.quiz-option.incorrect { border-color: #B23A2E; background: rgba(178,58,46,0.06); }
.quiz-result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.quiz-score { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 600; color: var(--pine); }

/* ============ Admin ============ */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--pine-dark); padding: 28px 20px;
  display: flex; flex-direction: column; gap: 32px;
}
.admin-sidebar .brand span { color: var(--paper-card); font-size: 20px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  padding: 11px 14px; border-radius: 6px; font-size: 14px; font-weight: 500;
  color: var(--green-tint); display: flex; align-items: center; gap: 10px;
}
.admin-nav a.active { background: rgba(251,248,239,0.1); color: var(--paper-card); font-weight: 600; }
.admin-main { flex: 1; padding: 40px 48px; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.admin-header h1 { font-size: 26px; font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.stat-card .label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.stat-card .value { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; margin-top: 8px; }
.stat-card .delta { font-size: 12px; color: var(--pine); margin-top: 6px; }
.admin-panel { background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px; padding: 28px; margin-bottom: 28px; }
.admin-panel h2 { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.admin-form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.admin-form-row .field { flex: 1; min-width: 140px; }
.select-input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; background: var(--paper-card); width: 100%; }
.row-actions { display: flex; gap: 14px; }
.row-actions a, .row-actions button { font-size: 13px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; color: var(--teal); }
.row-actions .del { color: #B23A2E; }
.toggle-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; }
.toggle-pill.free { background: rgba(185,134,12,0.15); color: var(--ochre); }
.toggle-pill.locked { background: rgba(28,43,36,0.08); color: var(--ink-soft); }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; align-items: center; padding: 16px 20px; overflow-x: auto; }
  .admin-nav { flex-direction: row; }
  .admin-main { padding: 28px 20px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr; }
  .simple-wrap, .quiz-wrap { padding: 40px 24px; }
}

