@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --ivory:        oklch(0.985 0.005 80);
  --charcoal:     oklch(0.22  0.012 280);
  --magenta:      oklch(0.45  0.21  340);
  --magenta-deep: oklch(0.32  0.17  335);
  --plum:         oklch(0.24  0.13  315);
  --plum-deep:    oklch(0.16  0.10  310);
  --plum-night:   oklch(0.09  0.05  305);
  --bronze:       oklch(0.66  0.09   70);

  --background:   var(--ivory);
  --foreground:   var(--charcoal);
  --border:       oklch(0.9 0.01 320);
  --muted:        oklch(0.96 0.008 320);
  --muted-fg:     oklch(0.45 0.02 300);

  --radius: 0.625rem;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv01";
  line-height: 1.6;
}
h1,h2,h3,h4,h5 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--magenta); color: var(--ivory); }

/* ── UTILITIES ─────────────────────────────────────────── */
.font-serif { font-family: var(--font-serif); }
.text-bronze { color: var(--bronze); }
.text-plum   { color: var(--plum); }
.text-magenta{ color: var(--magenta); }
.text-muted  { color: var(--muted-fg); }
.italic      { font-style: italic; }

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  width: 8rem;
  margin: 2.5rem 0;
}
.bg-hero-gradient {
  background:
    radial-gradient(ellipse at 25% 15%, oklch(0.30 0.16 320 / 0.65), transparent 55%),
    radial-gradient(ellipse at 80% 85%, oklch(0.20 0.12 310 / 0.70), transparent 60%),
    linear-gradient(160deg, var(--plum-night) 0%, var(--plum-deep) 50%, var(--plum) 100%);
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid oklch(0.9 0.01 320 / 0.6);
  background: oklch(0.985 0.005 80 / 0.85);
  backdrop-filter: blur(12px);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1280px; margin: 0 auto;
}
.site-logo .logo-main { font-family: var(--font-serif); font-size: 1.25rem; color: var(--plum); }
.site-logo .logo-main em { color: var(--magenta); font-style: italic; }
.site-logo .logo-sub { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted-fg); display: block; margin-top: 0.2rem; }

.site-nav { display: flex; gap: 2.25rem; align-items: center; }
.site-nav a {
  font-family: var(--font-serif); font-size: 1.125rem; color: var(--muted-fg);
  transition: color 0.2s; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -0.375rem; left: 0;
  width: 100%; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.site-nav a:hover, .site-nav a.active { color: var(--foreground); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 1.5rem; font-family: var(--font-serif); font-size: 1.125rem; }
.mobile-nav a:hover { background: var(--muted); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
}
.hero-bg-layers { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.08;
  background-image:
    linear-gradient(var(--bronze) 1px, transparent 1px),
    linear-gradient(90deg, var(--bronze) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-orb1 {
  position: absolute; left: -10rem; top: 25%;
  width: 32.5rem; height: 32.5rem; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.30 0.16 320), transparent 70%);
  opacity: 0.3; filter: blur(48px);
}
.hero-orb2 {
  position: absolute; right: -8rem; bottom: 0;
  width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(circle, var(--bronze), transparent 70%);
  opacity: 0.25; filter: blur(40px);
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 12rem;
  max-width: 1152px; margin: 0 auto;
}
.hero-label {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.5em; color: rgba(255,255,255,0.6);
}
.hero-label span { height: 1px; width: 2rem; background: var(--bronze); }
.hero h1 {
  margin-top: 2.5rem;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  line-height: 0.98; letter-spacing: -0.02em;
  animation: fadeUp 0.9s 0.15s both;
}
.hero h1 em { color: var(--bronze); font-style: italic; }
.hero-rule { margin: 3rem auto; }
.hero-sub {
  max-width: 40rem; font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem); line-height: 1.4;
  color: rgba(255,255,255,0.9);
  animation: fadeUp 0.8s 0.6s both;
}
.hero-tagline {
  margin-top: 1rem; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--bronze);
  animation: fadeIn 0.8s 0.85s both;
}
.hero-cta {
  margin-top: 3.5rem;
  display: inline-flex; align-items: center; gap: 1rem;
  border: 1px solid var(--bronze); background: transparent;
  padding: 1.25rem 2.5rem; cursor: pointer;
  font-family: var(--font-serif); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.32em; color: #fff;
  transition: background 0.25s, color 0.25s;
  animation: fadeUp 0.6s 1s both;
}
.hero-cta:hover { background: var(--bronze); color: var(--plum-night); }
.hero-cta svg { transition: transform 0.25s; }
.hero-cta:hover svg { transform: translateY(4px); }

/* ── SCORECARD SECTION ──────────────────────────────────── */
.scorecard-section { padding: 5rem 1.5rem 7rem; max-width: 64rem; margin: 0 auto; }

#scorecard-wrap { min-height: 480px; }

/* Intro form */
.sc-intro { max-width: 32rem; margin: 0 auto; text-align: center; }
.sc-intro .sc-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--muted-fg); }
.sc-intro h2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.sc-intro .sc-privacy { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-fg); }
.sc-form { margin-top: 2.5rem; text-align: left; }
.sc-field { margin-bottom: 1.5rem; }
.sc-field label { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-fg); }
.sc-field input {
  width: 100%; border: none; border-bottom: 1px solid var(--border);
  background: transparent; padding: 0.75rem 0;
  font-family: var(--font-serif); font-size: 1.5rem; outline: none;
  transition: border-color 0.2s; color: var(--foreground);
}
.sc-field input:focus { border-color: var(--magenta); }
.sc-btn-primary {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--plum); color: #fff; border: none; cursor: pointer;
  border-radius: 9999px; padding: 1rem 2rem;
  font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em;
  transition: background 0.2s;
}
.sc-btn-primary:hover { background: var(--magenta-deep); }
.sc-btn-primary svg { transition: transform 0.2s; }
.sc-btn-primary:hover svg { transform: translateX(4px); }

/* Quiz */
.sc-quiz { animation: fadeIn 0.35s; }
.sc-progress-bar { margin-bottom: 3rem; }
.sc-progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted-fg); }
.sc-progress-track { margin-top: 0.75rem; height: 1px; background: var(--border); }
.sc-progress-fill { height: 1px; background: var(--magenta); transition: width 0.4s ease; }
.sc-question-wrap { max-width: 48rem; margin: 0 auto; text-align: center; animation: fadeUp 0.35s; }
.sc-q-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--bronze); }
.sc-question-wrap h3 { margin-top: 1.5rem; font-size: clamp(1.75rem, 3.5vw, 3.75rem); line-height: 1.2; }
.sc-btns { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.sc-btns-row { display: flex; gap: 1rem; }
.sc-answer {
  flex: 1; max-width: 13.75rem; border-radius: 1rem;
  border: 2px solid var(--plum); padding: 1.5rem 3rem;
  font-family: var(--font-serif); font-size: 1.875rem; background: none;
  cursor: pointer; transition: background 0.2s, color 0.2s; color: var(--plum);
}
.sc-answer:hover { background: var(--plum); color: #fff; }
.sc-answer.no { border-color: var(--charcoal); color: var(--foreground); }
.sc-answer.no:hover { background: var(--foreground); color: var(--background); }
.sc-honesty { margin-top: 2.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted-fg); }

/* Result */
.sc-result { max-width: 48rem; margin: 0 auto; text-align: center; animation: fadeUp 0.5s; }
.sc-verdict-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid oklch(0.66 0.09 70 / 0.4); border-radius: 9999px;
  padding: 0.375rem 1rem; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.28em; color: var(--bronze);
}
.sc-result h2 { margin-top: 2rem; font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.2; }
.sc-result .sc-subhead { margin-top: 1.5rem; font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: var(--plum); }
.sc-result-body { max-width: 40rem; margin: 2.5rem auto 0; text-align: left; }
.sc-result-body p { margin-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-fg); }
.sc-cta-btn {
  margin-top: 3rem; display: inline-flex; align-items: center; gap: 0.75rem;
  background: linear-gradient(135deg, var(--plum), var(--magenta-deep));
  color: #fff; border: none; cursor: pointer; border-radius: 9999px;
  padding: 1.25rem 2.5rem; font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; text-decoration: none;
  transition: opacity 0.2s;
}
.sc-cta-btn:hover { opacity: 0.88; }
.sc-cta-btn svg { transition: transform 0.2s; }
.sc-cta-btn:hover svg { transform: translateX(4px); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); background: var(--charcoal); color: var(--ivory); }
.site-footer .inner { max-width: 1280px; margin: 0 auto; padding: 4rem 1.5rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.5rem; }
.footer-brand-name em { color: var(--bronze); font-style: normal; }
.footer-desc { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 24rem; }
.footer-heading { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(255,255,255,0.6); }
.footer-links { list-style: none; margin-top: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-links a:hover { color: var(--bronze); }
.footer-contact-email, .footer-contact-url { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.85); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-contact-email:hover, .footer-contact-url:hover { color: var(--bronze); }
.footer-socials { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-social {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social:hover { border-color: var(--bronze); color: var(--bronze); }
.footer-social svg { width: 1rem; height: 1rem; fill: currentColor; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
}

/* ── FLOATING WIDGETS ───────────────────────────────────── */
.wa-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px oklch(0.3 0.15 150 / 0.25);
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

.ai-btn {
  position: fixed; bottom: 1.5rem; right: 6rem; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: linear-gradient(135deg, var(--plum), var(--magenta));
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 24px oklch(0.24 0.13 315 / 0.35);
  transition: transform 0.2s;
}
.ai-btn:hover { transform: scale(1.08); }
.ai-btn svg { width: 1.5rem; height: 1.5rem; }

.chat-panel {
  position: fixed; bottom: 6rem; right: 1.5rem; z-index: 50;
  width: min(92vw, 380px); height: 520px;
  border-radius: 1rem; border: 1px solid var(--border);
  background: var(--background); box-shadow: 0 24px 64px oklch(0.09 0.05 305 / 0.3);
  display: flex; flex-direction: column; overflow: hidden;
  animation: fadeUp 0.2s;
}
.chat-panel.hidden { display: none; }
.chat-header { padding: 1rem 1.25rem; color: #fff; }
.chat-header-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,0.8); }
.chat-header-title { margin-top: 0.25rem; font-family: var(--font-serif); font-size: 1.125rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem 1rem; background: var(--muted); display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 85%; border-radius: 1rem; padding: 0.625rem 1rem;
  font-size: 0.875rem; line-height: 1.55; white-space: pre-wrap;
}
.chat-msg.user .chat-bubble { background: var(--plum); color: #fff; border-bottom-right-radius: 0.25rem; }
.chat-msg.bot .chat-bubble { background: #fff; color: var(--foreground); border-bottom-left-radius: 0.25rem; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.chat-input-row {
  display: flex; align-items: center; gap: 0.5rem;
  border-top: 1px solid var(--border); background: var(--background); padding: 0.75rem;
}
.chat-input {
  flex: 1; border: 1px solid var(--border); border-radius: 9999px;
  background: var(--muted); padding: 0.5rem 1rem; font-size: 0.875rem;
  outline: none; transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--magenta); }
.chat-send {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: var(--magenta-deep); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: opacity 0.2s;
}
.chat-send:disabled { opacity: 0.5; }
.chat-send svg { width: 1rem; height: 1rem; }

/* ── PAGE CONTENT ───────────────────────────────────────── */
.page-wrap { padding: 6rem 1.5rem 8rem; }
.page-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--bronze); }
.page-title { margin-top: 1.25rem; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.1; }
.page-desc { margin-top: 1.5rem; max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-fg); }

/* Blog */
.blog-grid { margin-top: 5rem; display: flex; flex-direction: column; gap: 6rem; }
.blog-article .essay-num { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted-fg); }
.blog-article h2 { margin-top: 0.75rem; font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.2; }
.blog-article .article-meta { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted-fg); }
.blog-article .article-body { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.blog-article .article-body p { font-size: 1.0625rem; line-height: 1.75; color: oklch(0.22 0.012 280 / 0.9); }
.blog-article .read-more { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--magenta); font-weight: 500; transition: gap 0.2s; }
.blog-article .read-more:hover { gap: 0.75rem; }

/* FAQ */
.faq-list { margin-top: 3.5rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding: 1.75rem 0; background: none; border: none; cursor: pointer; text-align: left;
}
.faq-q h3 { font-family: var(--font-serif); font-size: clamp(1.125rem, 2vw, 1.875rem); line-height: 1.3; }
.faq-icon { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 9999px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-top: 0.25rem; transition: background 0.2s, border-color 0.2s; }
.faq-item.open .faq-icon { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.faq-a { display: none; padding-bottom: 1.75rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-fg); }
.faq-item.open .faq-a { display: block; }

/* Brand Story */
.brand-body { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1.75rem; font-size: 1.125rem; line-height: 1.8; color: oklch(0.22 0.012 280 / 0.9); }
.brand-pullquote { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: var(--plum); }

/* Institute redirect */
.institute-wrap { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--muted-fg); border-top-color: var(--magenta); border-radius: 9999px; animation: spin 0.8s linear infinite; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes spin    { to { transform: rotate(360deg); } }
.animate-fade-in { animation: fadeIn  0.6s both; }
.animate-fade-up { animation: fadeUp  0.7s both; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .hamburger { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sc-btns { flex-direction: row; justify-content: center; }
  .site-logo .logo-main { font-size: 1.5rem; }
}
@media (max-width: 767px) {
  .site-nav { display: none; }
  .hamburger { display: block; }
}

/* ── ADMIN PANEL (kept separate but same brand) ─────────── */
.admin-body {
  font-family: var(--font-sans);
  background: oklch(0.12 0.04 285);
  color: #e2e8f0;
  min-height: 100vh;
}
.admin-sidebar {
  position: fixed; top:0; left:0; width:16rem; height:100vh;
  background: var(--plum-night); border-right: 1px solid oklch(1 0 0 / 0.07);
  display: flex; flex-direction: column; overflow-y: auto; z-index: 30;
}
.admin-sidebar-brand { padding: 1.5rem 1.25rem; border-bottom: 1px solid oklch(1 0 0 / 0.07); }
.admin-sidebar-brand .brand-title { font-family: var(--font-serif); font-size: 1rem; color: #fff; }
.admin-sidebar-brand .brand-sub { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }
.admin-nav { padding: 1rem 0.75rem; flex: 1; }
.admin-nav-section { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(255,255,255,0.3); padding: 0.75rem 0.5rem 0.375rem; margin-top: 0.5rem; }
.admin-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  transition: background 0.15s, color 0.15s; margin-bottom: 0.125rem;
}
.admin-nav a:hover, .admin-nav a.active { background: oklch(1 0 0 / 0.07); color: #fff; }
.admin-nav a svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.admin-main { margin-left: 16rem; min-height: 100vh; }
.admin-topbar {
  background: oklch(0.14 0.04 285); border-bottom: 1px solid oklch(1 0 0 / 0.07);
  padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
}
.admin-topbar-title { font-size: 1.125rem; font-weight: 600; color: #f1f5f9; }
.admin-content { padding: 2rem; }
.admin-card {
  background: oklch(0.16 0.04 285); border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 0.75rem; padding: 1.5rem;
}
.admin-card-title { font-size: 0.875rem; font-weight: 600; color: #cbd5e1; margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: oklch(0.16 0.04 285); border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 0.75rem; padding: 1.25rem;
}
.stat-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { font-size: 2rem; font-weight: 700; color: #f1f5f9; }
.stat-sub { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; border-bottom: 1px solid oklch(1 0 0 / 0.07); }
.admin-table td { padding: 0.875rem 1rem; border-bottom: 1px solid oklch(1 0 0 / 0.05); color: #cbd5e1; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: oklch(1 0 0 / 0.03); }
.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.625rem; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-green { background: oklch(0.5 0.15 150 / 0.2); color: oklch(0.75 0.15 150); }
.badge-amber { background: oklch(0.7 0.15 70 / 0.2);  color: oklch(0.8  0.12 70); }
.badge-red   { background: oklch(0.55 0.2 25 / 0.2);  color: oklch(0.75 0.18 25); }

/* Admin forms */
.admin-form-group { margin-bottom: 1.25rem; }
.admin-label { display: block; font-size: 0.8125rem; font-weight: 500; color: #94a3b8; margin-bottom: 0.5rem; }
.admin-input, .admin-textarea, .admin-select {
  width: 100%; background: oklch(0.12 0.04 285); border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 0.5rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; color: #e2e8f0;
  outline: none; transition: border-color 0.2s; font-family: var(--font-sans);
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus { border-color: var(--magenta); }
.admin-textarea { min-height: 200px; resize: vertical; }
.admin-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 500; cursor: pointer; border: none; transition: opacity 0.2s;
}
.admin-btn:hover { opacity: 0.85; }
.admin-btn-primary { background: var(--magenta-deep); color: #fff; }
.admin-btn-secondary { background: oklch(1 0 0 / 0.1); color: #e2e8f0; }
.admin-btn-danger { background: oklch(0.55 0.22 25); color: #fff; }
.admin-btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

/* Login page */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, oklch(0.30 0.16 320 / 0.5), transparent 55%),
    radial-gradient(ellipse at 75% 80%, oklch(0.20 0.12 310 / 0.6), transparent 60%),
    oklch(0.09 0.05 305);
}
.login-card {
  width: min(90vw, 420px); background: oklch(0.14 0.04 285 / 0.95);
  border: 1px solid oklch(1 0 0 / 0.1); border-radius: 1rem;
  padding: 2.5rem; box-shadow: 0 32px 80px oklch(0.05 0.03 300 / 0.7);
  backdrop-filter: blur(16px);
}
.login-logo { font-family: var(--font-serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.5rem; }
.login-logo em { color: var(--bronze); font-style: italic; }
.login-subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.28em; color: rgba(255,255,255,0.4); margin-bottom: 2rem; }
.login-title { font-size: 1.5rem; font-weight: 600; color: #f1f5f9; margin-bottom: 1.75rem; }
.login-input {
  width: 100%; background: oklch(0.1 0.03 285); border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.9375rem; color: #e2e8f0;
  outline: none; margin-bottom: 1rem; transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--magenta); }
.login-btn {
  width: 100%; background: linear-gradient(135deg, var(--plum), var(--magenta-deep));
  color: #fff; border: none; border-radius: 0.5rem; padding: 0.875rem;
  font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; margin-top: 0.5rem;
}
.login-btn:hover { opacity: 0.88; }
.login-error { color: oklch(0.75 0.18 25); font-size: 0.8125rem; margin-top: 0.75rem; text-align: center; }
.login-footer { text-align: center; margin-top: 2rem; font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* Rich text editor toolbar */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.625rem; background: oklch(0.12 0.04 285); border: 1px solid oklch(1 0 0 / 0.12); border-bottom: none; border-radius: 0.5rem 0.5rem 0 0; }
.editor-btn { padding: 0.375rem 0.75rem; border-radius: 0.375rem; background: oklch(1 0 0 / 0.08); border: none; color: #cbd5e1; cursor: pointer; font-size: 0.8125rem; font-weight: 500; transition: background 0.15s; }
.editor-btn:hover { background: oklch(1 0 0 / 0.15); }
#blog-content-editor { border-radius: 0 0 0.5rem 0.5rem; border-top: none; }

/* Alerts */
.alert { padding: 0.875rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-success { background: oklch(0.5 0.15 150 / 0.15); border: 1px solid oklch(0.5 0.15 150 / 0.3); color: oklch(0.75 0.15 150); }
.alert-error   { background: oklch(0.55 0.2 25 / 0.15);  border: 1px solid oklch(0.55 0.2 25 / 0.3);  color: oklch(0.75 0.18 25); }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.5rem; }
.page-btn { padding: 0.375rem 0.875rem; border-radius: 0.375rem; background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.1); color: #94a3b8; cursor: pointer; font-size: 0.8125rem; transition: background 0.15s; }
.page-btn:hover, .page-btn.active { background: var(--magenta-deep); color: #fff; border-color: var(--magenta-deep); }

/* SEO Panel */
.seo-score-circle { width: 5rem; height: 5rem; border-radius: 9999px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid; }
.seo-score-circle.good { border-color: oklch(0.65 0.18 150); }
.seo-score-circle.ok   { border-color: oklch(0.75 0.15 70); }
.seo-score-circle.bad  { border-color: oklch(0.65 0.2 25); }
.seo-score-num { font-size: 1.5rem; font-weight: 700; }
.seo-score-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; }
.seo-checklist { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1rem; }
.seo-checklist li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: #94a3b8; }
.seo-checklist li.pass { color: oklch(0.75 0.15 150); }
.seo-checklist li.fail { color: oklch(0.75 0.18 25); }
.seo-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; flex-shrink: 0; }
.seo-dot.pass { background: oklch(0.65 0.18 150); }
.seo-dot.fail { background: oklch(0.65 0.2 25); }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid oklch(1 0 0 / 0.1); margin-bottom: 1.5rem; }
.tab-btn { padding: 0.75rem 1.25rem; background: none; border: none; border-bottom: 2px solid transparent; color: #64748b; cursor: pointer; font-size: 0.875rem; font-weight: 500; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.tab-btn.active { color: #f1f5f9; border-bottom-color: var(--magenta); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
