/* Sunflower Tutoring — stylesheet */
:root {
  --gold: #F5B800;
  --gold-deep: #D99A00;
  --gold-soft: #FFE694;
  --sky: #2E86C1;
  --sky-deep: #1B5E8F;
  --sky-soft: #BEE1F4;
  --leaf: #2E8540;
  --leaf-deep: #1E5E2A;
  --leaf-soft: #CDE8D1;
  --terracotta: #C85A3E;
  --bg: #FFFDF5;
  --bg-cream: #FBF4DE;
  --card: #FFFFFF;
  --ink: #2A1D10;
  --ink-soft: #5A4A3A;
  --ink-mute: #8A7A68;
  --line: #EADFC5;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --sh-sm: 0 2px 6px rgba(58, 40, 23, 0.08);
  --sh-md: 0 8px 24px rgba(58, 40, 23, 0.10);
  --sh-lg: 0 20px 50px rgba(58, 40, 23, 0.14);

  --font-display: "Bricolage Grotesque", "Recoleta", "Georgia", serif;
  --font-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.2; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: var(--gold);
}
.btn-primary:hover { background: #3A2817; box-shadow: var(--sh-md); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--gold-deep);
}
.btn-gold:hover { box-shadow: 0 6px 0 var(--gold-deep); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--gold); }
.btn-sky {
  background: var(--sky);
  color: white;
}
.btn-sky:hover { background: var(--sky-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--bg-cream); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-lg { padding: 18px 32px; font-size: 1.1rem; }

/* pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-gold { background: var(--gold-soft); color: #6B4A00; }
.pill-sky { background: var(--sky-soft); color: var(--sky-deep); }
.pill-leaf { background: var(--leaf-soft); color: var(--leaf-deep); }
.pill-cream { background: var(--bg-cream); color: var(--ink-soft); }
.pill-ink { background: var(--ink); color: var(--gold); }

/* cards */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--sh-sm);
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  max-width: 1320px; margin: 0 auto;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--bg-cream); text-decoration: none; }
.nav-link.active { color: var(--ink); background: var(--gold-soft); font-weight: 600; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex !important; }
}
.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line);
  background: white; cursor: pointer;
}
.nav-mobile-menu {
  display: none;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line);
  flex-direction: column; gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link { padding: 12px 16px; }

/* footer */
footer {
  background: var(--ink);
  color: #E8D9C0;
  padding: 64px 0 28px;
  margin-top: 96px;
}
footer h4 { color: var(--gold); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
footer a { color: #E8D9C0; font-size: 0.95rem; display: block; padding: 4px 0; }
footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 184, 0, 0.2);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; color: #B8A890; font-size: 0.88rem;
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* utilities */
.stack { display: flex; flex-direction: column; }
.row { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; } .mt-96 { margin-top: 96px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-soft { color: var(--ink-soft); }
.text-mute { color: var(--ink-mute); }

/* section */
section { padding: 80px 0; }
.section-cream { background: var(--bg-cream); }
.section-leaf { background: var(--leaf-soft); }
.section-ink { background: var(--ink); color: #F5E9CD; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #FFFDF5; }
.section-ink p { color: #DCC9A6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

/* hero */
.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 28px 80px;
  max-width: 1320px; margin: 0 auto;
}
.hero-copy { padding-right: 20px; max-width: 620px; }
.hero-headline { margin-bottom: 20px; }
.hero-lede { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-proof { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-proof-item { font-size: 0.9rem; color: var(--ink-soft); }
.hero-proof-item strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-weight: 700; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  justify-self: center;
}
.hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--sh-lg);
}
.hero-art .badge {
  position: absolute;
  background: white;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 20px 60px; }
  .hero-copy { padding: 0; max-width: 100%; }
  .hero-art { max-width: 380px; }
}

/* feature tiles */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 26px;
  background: var(--gold-soft);
}
.feature-icon.sky { background: var(--sky-soft); }
.feature-icon.leaf { background: var(--leaf-soft); }

/* catalog */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 16px;
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  margin-bottom: 32px;
  align-items: center;
}
.filter-label { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); padding: 0 8px; }
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.filter-divider { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.app-thumb {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.app-thumb-emoji { font-size: 3.2rem; z-index: 2; }
.app-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.app-desc { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.app-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.app-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #FDFAEE;
}
.app-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  padding: 32px;
  border-radius: var(--r-xl);
  background: white;
  border: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  color: #F5E9CD;
  border: 2px solid var(--gold);
  transform: scale(1.02);
}
.price-card.featured h3 { color: white; }
.price-card.featured .price-big { color: var(--gold); }
.price-card.featured .price-unit { color: #DCC9A6; }
.price-card.featured li { color: #E8D9C0; }

.price-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--gold);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-big { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price-unit { color: var(--ink-mute); font-size: 0.95rem; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; font-size: 0.95rem; }
.check-icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--leaf); }
.price-card.featured .check-icon { color: var(--gold); }

/* forms */
.input, textarea.input, select.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field { margin-bottom: 16px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .2s ease;
  color: var(--ink-soft);
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 14px;
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--gold); }

/* sunflower decorative icon */
.sun-icon {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
}

/* mini sunflower for logo */
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #6B4A00 0%, #6B4A00 30%, var(--gold) 31%, var(--gold) 100%);
  position: relative;
  flex-shrink: 0;
}

/* overlay / modal */
.overlay {
  position: fixed; inset: 0;
  background: rgba(42, 29, 16, 0.6);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white;
  border-radius: var(--r-xl);
  max-width: 560px;
  width: 100%;
  padding: 36px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg-cream);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* subscriber gate */
.gate {
  max-width: 460px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}

/* sub-plans */
.plan-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: white;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.plan-card:hover { box-shadow: var(--sh-md); }
.plan-thumb {
  aspect-ratio: 4/3;
  background: var(--bg-cream);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  position: relative;
  overflow: hidden;
}
.plan-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(245,184,0,0.08) 10px 20px);
}

/* rainbow strip */
.rainbow-strip {
  height: 6px;
  background: linear-gradient(90deg, #E74C3C 0%, #F39C12 20%, #F5B800 40%, #2E8540 60%, #2E86C1 80%, #8E44AD 100%);
}

/* toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--gold);
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--sh-lg);
  z-index: 200;
  font-weight: 500;
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* standards table */
.std-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.std-table th, .std-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.std-table th { font-family: var(--font-display); font-weight: 600; background: var(--bg-cream); }
.std-table code { font-family: var(--font-mono); font-size: 0.85rem; background: var(--gold-soft); padding: 2px 8px; border-radius: 6px; }

/* hide / show based on route */
.page { display: none; }
.page.active { display: block; }

/* pretty scrollbars */
html { scroll-behavior: smooth; }

/* ---------- Sub-plan: builder flow ---------- */

/* Classroom info form grid */
.sp-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
.sp-form-grid .field { margin-bottom: 0; }
.sp-form-grid .full { grid-column: 1 / -1; }

/* Subject slot cards */
.sp-slot {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.sp-slot-locked {
  border-left: 4px solid var(--leaf);
}
.sp-slot-building {
  border: 2px solid var(--gold);
  background: #FFFCF0;
}

/* Final packet cover preview */
.sp-packet-cover {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-top: 18px;
}
.sp-cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 0.95rem;
  margin-top: 12px;
}
.sp-cover-grid > div { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.sp-cover-note {
  background: white;
  border-left: 4px solid var(--gold-deep);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* Download rows */
.sp-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.sp-download-row:hover { background: var(--bg-cream); border-color: var(--gold); }

/* Print-only cover page (screen hides it; print shows only it) */
.sp-print-cover-only { display: none; }
@media print {
  body > *:not(.sp-print-cover-only-wrapper) { visibility: hidden; }
  nav, footer, .overlay, .toast { display: none !important; }
  .sp-print-cover-only {
    display: block !important;
    visibility: visible !important;
    position: absolute; left: 0; top: 0; width: 100%;
    padding: 0.5in 0.6in;
    background: white; color: #111;
    font-family: var(--font-body);
  }
  .sp-print-cover-only * { visibility: visible !important; }
  @page { margin: 0; size: letter; }
}

/* ---------- Admin page (non-public, same brand, denser layout) ---------- */
.admin-shell { background: var(--bg-cream); min-height: 100vh; }

.admin-bar {
  background: var(--ink);
  color: white;
  padding: 14px 0;
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.admin-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.admin-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: white; }
.admin-brand em { color: var(--gold); font-style: normal; font-weight: 600; font-size: 0.95rem; }
.admin-bar-right { display: flex; align-items: center; gap: 14px; }
.admin-whoami { color: #DCC9A6; font-size: 0.9rem; }
.admin-whoami strong { color: white; }
.admin-bar-right .btn-outline { border-color: #DCC9A6; color: white; }
.admin-bar-right .btn-outline:hover { background: white; color: var(--ink); }

.admin-body { padding: 32px 24px 64px; max-width: 1200px; margin: 0 auto; }

.admin-mock-banner {
  background: #FFF8E1;
  border: 1px solid var(--gold-soft);
  border-left: 4px solid var(--gold-deep);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.admin-mock-banner code { font-family: var(--font-mono); font-size: 0.85rem; }

.admin-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}
.admin-tab {
  background: transparent; border: none;
  padding: 12px 18px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--ink-mute); cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.admin-panel { min-height: 300px; }

.admin-kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 32px;
}
.admin-kpi {
  background: white;
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--sh-sm);
  border-top: 4px solid var(--gold);
}
.admin-kpi-leaf { border-top-color: var(--leaf); }
.admin-kpi-sky { border-top-color: #2E86C1; }
.admin-kpi-terracotta { border-top-color: #C85A3E; }
.admin-kpi-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.1rem; line-height: 1.1; color: var(--ink);
}
.admin-kpi-label {
  font-size: 0.82rem; color: var(--ink-mute);
  margin-top: 6px; letter-spacing: 0.03em;
}

.admin-section { background: white; border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--sh-sm); }
.admin-section h3 { margin-top: 0; font-family: var(--font-display); font-size: 1.15rem; }
.admin-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-checklist li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--ink-soft); align-items: flex-start; }
.admin-checklist li svg { color: var(--leaf); flex-shrink: 0; margin-top: 2px; }

.admin-table-wrap {
  background: white; border-radius: var(--r-md); box-shadow: var(--sh-sm);
  overflow-x: auto;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table thead { background: var(--bg-cream); }
.admin-table th {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute);
}
.admin-table tbody tr:hover { background: #FFFCF0; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-mute); }

.admin-status {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.admin-status-completed { background: var(--leaf-soft); color: var(--leaf-deep); }
.admin-status-refunded  { background: #F5D4C8; color: #8B2E17; }
.admin-status-disputed  { background: #FFE694; color: var(--ink); }
.admin-status-pending   { background: var(--bg-cream); color: var(--ink-mute); }

.admin-empty {
  padding: 40px; text-align: center;
  background: white; border-radius: var(--r-md); color: var(--ink-mute);
  box-shadow: var(--sh-sm);
}

/* Admin login card */
.admin-login-shell {
  min-height: 100vh; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-login-card {
  background: white; border-radius: var(--r-xl);
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.admin-login-error {
  background: #FFE8E0; color: #8B2E17;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.9rem; margin-bottom: 14px;
}
