/* ========================================
   KLAVIA Design System v5 — Modern & Clean
   ======================================== */

/* ─── Tokens ─── */
:root {
  --c-primary: #7c3aed;
  --c-primary-dk: #5b21b6;
  --c-primary-lt: #ede9fe;
  --c-secondary: #06b6d4;
  --c-secondary-lt: #cffafe;
  --c-accent: #10b981;
  --c-accent-lt: #d1fae5;
  --c-warning: #f59e0b;
  --c-warning-lt: #fef3c7;
  --c-danger: #ef4444;
  --c-danger-lt: #fee2e2;
  --c-bg: #f8f7ff;
  --c-surface: #ffffff;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-faint: #9ca3af;
  --c-line: #e5e7eb;
  --c-line-lt: #f3f4f6;
  --text-soft: var(--c-muted);
  --sh-xs: 0 1px 3px rgba(0,0,0,.04);
  --sh-sm: 0 2px 8px rgba(0,0,0,.06);
  --sh-md: 0 8px 28px rgba(0,0,0,.08);
  --sh-lg: 0 20px 56px rgba(109,40,217,.12);
  --r: 16px;
  --r-sm: 10px;
  --r-full: 999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: .2s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--c-text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }

/* ─── SVG icon base ─── */
svg.i { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ─── Layout ─── */
.container { width: min(1140px, 92%); margin: 0 auto; }
.section   { padding: 80px 0; }
.bg-muted  { background: var(--c-bg); }
.bg-white  { background: #fff; }
.text-center { text-align: center; }

/* ─── Grid ─── */
.g1  { display: grid; grid-template-columns: 1fr; gap: 20px; }
.g2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.g3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g2-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

/* ─── Typography ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-primary-lt); color: var(--c-primary-dk);
  font-weight: 700; padding: 6px 14px; border-radius: var(--r-full);
  font-size: .78rem; letter-spacing: .3px;
}
.eyebrow.teal { background: var(--c-secondary-lt); color: #0e7490; }
.eyebrow.white { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.sec-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.sec-sub { color: var(--c-muted); font-size: 1rem; max-width: 540px; margin: 0 auto 32px; line-height: 1.75; }
.hl { color: var(--c-primary); }
.hl-teal { color: var(--c-secondary); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-sm); font-weight: 700;
  font-size: .92rem; line-height: 1.2; border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dk));
  color: #fff; box-shadow: 0 6px 20px rgba(124,58,237,.3);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(124,58,237,.4); }
.btn-teal { background: linear-gradient(135deg, var(--c-secondary), #0e7490); color: #fff; }
.btn-outline { background: #fff; color: var(--c-primary); border-color: #ddd6fe; }
.btn-outline:hover { background: var(--c-primary-lt); border-color: var(--c-primary); }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line); }
.btn-ghost:hover { background: var(--c-primary-lt); }
.btn-sm  { padding: 7px 14px; font-size: .84rem; border-radius: 8px; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-group.center { justify-content: center; }

/* ─── Card / Panel ─── */
.card {
  background: var(--c-surface); border: 1.5px solid var(--c-line-lt);
  border-radius: var(--r); padding: 22px; box-shadow: var(--sh-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card-static { background: var(--c-surface); border: 1.5px solid var(--c-line-lt); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-sm); }
.panel { background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--r); padding: 22px; }

/* ─── Badge ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: .76rem; font-weight: 700; text-transform: capitalize;
}
.badge.pending    { background: #fff7ed; color: #b45309; }
.badge.contacted  { background: #dbeafe; color: #1d4ed8; }
.badge.registered { background: #f0fdf4; color: #15803d; }
.badge.paid, .badge.active { background: var(--c-accent-lt); color: #166534; }
.badge.cancelled, .badge.inactive { background: var(--c-danger-lt); color: #b91c1c; }

/* ─── Navbar ─── */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(109,40,217,.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 1.35rem; letter-spacing: -.5px; }
.logo .dot { color: var(--c-secondary); }
#mainNav { display: flex; gap: 2px; align-items: center; }
#mainNav a {
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .9rem;
  color: #374151; transition: all var(--transition);
}
#mainNav a:hover { color: var(--c-primary); background: var(--c-primary-lt); }
.nav-cta { margin-left: 6px; }
.hamburger {
  display: none; align-items: center; gap: 6px;
  border: 1.5px solid var(--c-line); background: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: .88rem;
}

/* ─── HERO ─── */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-blob.a { top: -160px; right: -160px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(124,58,237,.08) 0%, transparent 70%); }
.hero-blob.b { bottom: -120px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(6,182,212,.06) 0%, transparent 70%); }

.hero > .container { position: relative; z-index: 1; }
.hero-copy { max-width: 580px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--c-primary-lt), var(--c-secondary-lt));
  color: var(--c-primary-dk); font-weight: 700;
  padding: 8px 16px; border-radius: var(--r-full); font-size: .8rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1.12; margin-bottom: 16px; color: #1a0b2e; }
.hero-sub { font-size: 1.05rem; color: var(--c-muted); margin-bottom: 28px; max-width: 480px; line-height: 1.75; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--c-muted); font-weight: 600; }

.hero-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--sh-lg); }
.hero-media img { width: 100%; height: 440px; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(124,58,237,.1), rgba(17,24,39,.35)); z-index: 1; }
.hero-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dk));
  color: #fff; padding: 8px 16px; border-radius: var(--r-full);
  font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 20px rgba(124,58,237,.35);
}
.hero-info-card {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(124,58,237,.1); border-radius: 12px; padding: 14px 16px;
}
.hero-info-card h4 { font-size: .9rem; margin-bottom: 8px; color: #1a0b2e; }
.hero-info-card ul { padding-left: 18px; list-style: disc; }
.hero-info-card li { font-size: .85rem; color: #374151; margin-bottom: 2px; }

/* ─── Stats ─── */
.stats-strip { background: #fff; border-top: 1px solid var(--c-line-lt); border-bottom: 1px solid var(--c-line-lt); padding: 32px 0; }
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.1rem; font-weight: 900; margin-bottom: 2px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--c-muted); font-size: .88rem; }

/* ─── About ─── */
.about-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.feature-pill {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--c-line-lt);
  border-radius: var(--r-sm); background: #fff; margin-bottom: 10px;
  transition: border-color var(--transition);
}
.feature-pill:hover { border-color: #ddd6fe; }
.fp-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.fp-icon.purple { background: var(--c-primary); }
.fp-icon.teal   { background: var(--c-secondary); }
.fp-icon.green  { background: var(--c-accent); }
.feature-pill strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.feature-pill p { font-size: .85rem; color: var(--c-muted); }

/* ─── Value cards ─── */
.vcard {
  background: #fff; border: 1.5px solid var(--c-line-lt); border-radius: var(--r);
  padding: 24px; box-shadow: var(--sh-xs); position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.vcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.vcard-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: #fff;
}
.vcard-icon.purple { background: var(--c-primary); }
.vcard-icon.teal   { background: var(--c-secondary); }
.vcard-icon.green  { background: var(--c-accent); }
.vcard h3 { font-size: .98rem; margin-bottom: 6px; }
.vcard p  { font-size: .87rem; color: var(--c-muted); line-height: 1.6; }

/* ─── Programs ─── */
.prog-card { background: #fff; border: 1.5px solid var(--c-line-lt); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); transition: transform var(--transition), box-shadow var(--transition); }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.prog-thumb { width: 100%; height: 200px; object-fit: cover; }
.prog-body { padding: 20px; }
.prog-duration {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: var(--c-primary-lt); border-radius: var(--r-full);
  color: var(--c-primary-dk); font-size: .78rem; font-weight: 700; margin-bottom: 10px;
}
.prog-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.prog-body > p { color: var(--c-muted); font-size: .88rem; margin-bottom: 12px; line-height: 1.6; }
.prog-benefits { margin: 0 0 14px; }
.prog-benefits li {
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
  font-size: .86rem; border-bottom: 1px solid var(--c-line-lt); color: #374151;
}
.prog-benefits li svg { color: var(--c-accent); flex-shrink: 0; }
.price-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-accent-lt); border: 1px solid #a7f3d0; color: #065f46;
  padding: 5px 12px; border-radius: var(--r-full); font-weight: 700; font-size: .88rem;
  margin-bottom: 14px;
}

/* ─── Testimonials ─── */
.testi-card { background: #fff; border: 1.5px solid var(--c-line-lt); border-radius: var(--r); padding: 24px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 14px; transition: transform var(--transition), box-shadow var(--transition); }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.testi-stars { color: #f59e0b; display: flex; gap: 2px; }
.testi-quote { font-size: .92rem; color: #374151; line-height: 1.75; flex: 1; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--c-primary-lt); flex-shrink: 0; }
.testi-author strong { display: block; font-size: .9rem; }
.testi-author span { font-size: .8rem; color: var(--c-muted); }

/* ─── FAQ ─── */
.faq-item { border: 1.5px solid var(--c-line-lt); border-radius: var(--r-sm); margin-bottom: 8px; background: #fff; transition: border-color var(--transition); }
.faq-item:hover { border-color: #ddd6fe; }
.faq-item summary {
  font-weight: 700; cursor: pointer; padding: 16px 20px; font-size: .95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none; color: #1a0b2e;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--c-primary); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--c-primary); }
.faq-item .faq-answer { padding: 0 20px 18px; font-size: .9rem; color: var(--c-muted); line-height: 1.75; }

/* ─── CTA Final ─── */
.cta-final {
  background: linear-gradient(135deg, #1e0a3c, #6d28d9 50%, #0891b2);
  color: #fff; position: relative; overflow: hidden;
}
.cta-final::before, .cta-final::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.cta-final::before { top: -100px; right: -60px; width: 380px; height: 380px; }
.cta-final::after  { bottom: -80px; left: -40px; width: 260px; height: 260px; }
.cta-final .sec-sub { color: rgba(255,255,255,.8); }
.cta-final .btn-outline { background: #fff; color: var(--c-primary); border-color: #fff; }

/* ─── Floating WA ─── */
.float-wa {
  position: fixed; right: 20px; bottom: 22px; z-index: 70;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; padding: 12px 18px; border-radius: var(--r-full);
  font-weight: 800; box-shadow: 0 8px 24px rgba(37,211,102,.35);
  display: flex; align-items: center; gap: 8px; font-size: .88rem;
  transition: transform var(--transition);
}
.float-wa:hover { transform: scale(1.05); }
.sticky-cta { display: none; }

/* ─── Forms (frontend) ─── */
.form-wrap { max-width: 800px; }
.form-card {
  background: #fff; border: 1.5px solid var(--c-line-lt);
  border-radius: var(--r); padding: 28px; box-shadow: var(--sh-md);
}
.form-card h3 { margin-bottom: 22px; color: #1a0b2e; }
label, .form-label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: #374151; }
input, select, textarea {
  width: 100%; padding: 10px 14px; margin: 0 0 16px;
  border: 1.5px solid #d7dbef; border-radius: 8px;
  background: #fff; font-size: .93rem; font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Footer ─── */
.footer { background: #0f0a1e; color: #d1d5db; padding: 52px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.footer-brand p  { font-size: .88rem; color: #9ca3af; margin-bottom: 16px; line-height: 1.7; }
.footer a:hover  { color: #fff; }
.footer-col h4   { color: #fff; font-size: .92rem; margin-bottom: 12px; }
.footer-col li   { margin-bottom: 8px; font-size: .88rem; }
.footer-col a    { color: #c4b5fd; transition: color var(--transition); }
.footer-divider  { border: none; border-top: 1px solid #1e1535; margin: 28px 0 16px; }
.footer-bottom   { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: #6b7280; flex-wrap: wrap; gap: 8px; }

/* ─── Page hero (inner pages) ─── */
.page-hero { padding: 44px 0 32px; background: linear-gradient(135deg, #f5f3ff, #e0f2fe); }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin: 10px 0 8px; }
.back-link { color: var(--c-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }

/* ─── Program detail ─── */
.detail-thumb { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--r); margin-bottom: 20px; }
.detail-list li { padding: 8px 0; border-bottom: 1px solid var(--c-line-lt); display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.detail-list li svg { color: var(--c-accent); flex-shrink: 0; }
.detail-info { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-sm); }
.detail-info .di-icon { font-size: 1.2rem; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.detail-info .di-label { font-size: .78rem; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.detail-info .di-value { font-weight: 800; font-size: 1rem; }

/* ─── Thank you ─── */
.thankyou-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-accent-lt); color: var(--c-accent); margin: 0 auto 16px; }

/* ─── Reveal (progressive enhancement) ─── */
html.js-ready [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ─── Mobile slider ─── */
.mobile-slider { scrollbar-width: thin; }

/* ================================================
   ADMIN
   ================================================ */
.admin-body { background: var(--c-bg); }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: linear-gradient(170deg, #1e0a3c 0%, #5b21b6 100%);
  color: #fff; display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
}
.sb-logo { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-logo h2 { font-size: 1.1rem; font-weight: 900; color: #fff; margin: 0; }
.sb-logo p  { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 3px; }
.sb-group { padding: 18px 14px 6px; font-size: .66rem; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(255,255,255,.28); font-weight: 700; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; color: rgba(255,255,255,.7);
  font-size: .87rem; font-weight: 600; border-radius: 8px;
  transition: all .15s;
}
.sb-link:hover, .sb-link.active { background: rgba(255,255,255,.12); color: #fff; }
.sb-link svg { flex-shrink: 0; }
.sb-foot { margin-top: auto; padding: 12px 6px 16px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 2px; }
.sb-foot a {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  color: rgba(255,255,255,.5); font-size: .84rem; font-weight: 600;
  border-radius: 8px; transition: all .15s;
}
.sb-foot a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-foot a.danger:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

/* Main area */
.admin-main { margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; flex: 1; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--c-line);
  padding: 0 24px; height: 56px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: var(--sh-xs);
  position: sticky; top: 0; z-index: 40;
}
.admin-topbar-title { font-weight: 800; font-size: 1rem; color: #1a0b2e; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .82rem; flex-shrink: 0;
}
.admin-user { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: #374151; }
.admin-content { padding: 24px; flex: 1; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi {
  background: #fff; border-radius: var(--r); padding: 20px;
  box-shadow: var(--sh-sm); border: 1.5px solid var(--c-line-lt);
  position: relative; overflow: hidden;
}
.kpi::after { content: ''; position: absolute; top: -24px; right: -24px; width: 90px; height: 90px; border-radius: 50%; opacity: .1; }
.kpi.purple::after { background: var(--c-primary); }
.kpi.teal::after   { background: var(--c-secondary); }
.kpi.green::after  { background: var(--c-accent); }
.kpi.yellow::after { background: var(--c-warning); }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #fff; }
.kpi-icon.purple { background: var(--c-primary); }
.kpi-icon.teal   { background: var(--c-secondary); }
.kpi-icon.green  { background: var(--c-accent); }
.kpi-icon.yellow { background: var(--c-warning); }
.kpi h3 { font-size: 1.8rem; font-weight: 900; margin: 0 0 2px; color: #1a0b2e; }
.kpi p  { font-size: .84rem; color: var(--c-muted); margin: 0; }
.kpi-tag { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 700; margin-top: 6px; padding: 2px 8px; border-radius: var(--r-full); }
.kpi-tag.up   { background: var(--c-accent-lt); color: #166534; }
.kpi-tag.down { background: var(--c-danger-lt); color: #b91c1c; }

/* Admin chart */
.chart-title { font-size: .95rem; font-weight: 800; margin-bottom: 14px; color: #1a0b2e; display: flex; align-items: center; gap: 8px; }
.mini-chart { display: flex; gap: 12px; align-items: flex-end; height: 180px; padding: 6px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 44px; }
.bar { width: 100%; max-width: 36px; background: linear-gradient(180deg, #a78bfa, #6d28d9); border-radius: 6px 6px 3px 3px; min-height: 4px; transition: height .3s; }
.bar-val { font-weight: 800; color: #5b21b6; font-size: .82rem; }
.bar-lbl { font-size: .68rem; color: var(--c-muted); white-space: nowrap; }

/* Admin table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table thead { background: var(--c-bg); }
.admin-table th { padding: 10px 14px; border-bottom: 2px solid #ede9fe; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--c-muted); font-weight: 700; white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--c-line-lt); vertical-align: middle; font-size: .9rem; }
.admin-table tbody tr:hover { background: #faf8ff; }
.actions { display: flex; gap: 6px; align-items: center; }
.act-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; border: 1.5px solid var(--c-line); font-weight: 700; font-size: .78rem; color: var(--c-text); transition: all .15s; background: #fff; }
.act-btn:hover { background: var(--c-primary-lt); color: var(--c-primary-dk); border-color: #ddd6fe; }
.act-btn.danger:hover { background: var(--c-danger-lt); color: #b91c1c; border-color: #fecaca; }

/* Admin form */
.admin-form label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; color: #374151; }
.admin-form .form-row { margin-bottom: 14px; }
.admin-form input, .admin-form select, .admin-form textarea { font-size: .92rem; }
.field-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; background: #fff; border: 1.5px solid var(--c-line-lt);
  border-radius: var(--r-sm); margin-bottom: 16px;
}
.filter-bar input, .filter-bar select { margin-bottom: 0; padding: 8px 12px; font-size: .88rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-size: 1.25rem; font-weight: 900; color: #1a0b2e; }
.empty-state { padding: 24px; text-align: center; color: var(--c-muted); font-size: .9rem; border: 1.5px dashed #d7dbef; border-radius: var(--r-sm); }

/* Pagination */
.pagination { display: flex; gap: 5px; flex-wrap: wrap; margin: 16px 0; }
.pagination a {
  padding: 7px 12px; border: 1.5px solid var(--c-line); border-radius: 8px;
  color: #374151; background: #fff; font-weight: 600; font-size: .85rem;
  transition: all .15s;
}
.pagination a.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination a:hover:not(.active) { background: var(--c-primary-lt); border-color: #ddd6fe; color: var(--c-primary); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f3ff, #e0f2fe); padding: 24px; }
.login-card { background: #fff; border-radius: 20px; padding: 38px 32px; box-shadow: 0 24px 60px rgba(109,40,217,.12); width: 100%; max-width: 400px; }
.login-card .logo { display: block; margin-bottom: 4px; }
.login-card input { font-size: .94rem; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  html.js-ready [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .vcard:hover, .prog-card:hover, .testi-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* ─── <=1100 ─── */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── <=920 ─── */
@media (max-width: 920px) {
  .g2-hero, .g2 { grid-template-columns: 1fr; }
  .hero-media img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hamburger { display: inline-flex; }
  #mainNav {
    display: none; position: absolute; top: 64px; right: 0;
    background: #fff; padding: 10px; border-radius: var(--r-sm);
    border: 1.5px solid var(--c-line-lt); flex-direction: column;
    min-width: 200px; box-shadow: var(--sh-lg); z-index: 100;
  }
  #mainNav.open { display: flex; }
  #mainNav a { width: 100%; }
  .nav-cta { margin-left: 0; }
  .form-grid, .field-grid, .field-grid-2 { grid-template-columns: 1fr; }

  /* Admin responsive */
  .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; padding: 4px 6px; }
  .sb-link { padding: 7px 10px; font-size: .82rem; }
  .sb-group { display: none; }
  .sb-foot { flex-direction: row; margin-top: 0; border-top: none; border-left: 1px solid rgba(255,255,255,.08); padding: 4px 6px; }
  .admin-main { margin-left: 0; }
}

/* ─── <=640 ─── */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .g3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero-media img { height: 260px; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 10px 14px; background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px); border-top: 1px solid var(--c-line); z-index: 65;
  }
  .section:last-of-type { padding-bottom: 88px; }
  .mobile-slider { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .mobile-slider > * { min-width: 85%; scroll-snap-align: start; flex-shrink: 0; }
  .admin-content { padding: 14px; }
  .login-card { padding: 28px 20px; }
}
