/* ============================================================
   NURALWALA — Design System
   Hijau tua, emas, dan krem: islami-modern yang tenang.
   ============================================================ */

:root {
  --green-950: #0b231a;
  --green-900: #0f2e23;
  --green-800: #1b4332;
  --green-700: #245741;
  --green-600: #2d6a4f;
  --green-500: #3f8064;
  --green-100: #dcebe3;
  --green-50: #edf5f0;
  --gold-700: #a97c0d;
  --gold-600: #bd8e12;
  --gold: #d4a017;
  --gold-400: #e6bd4f;
  --gold-100: #f7e9bd;
  --gold-50: #fbf4de;
  --cream: #f7f4ec;
  --cream-dark: #efeadd;
  --paper: #fdfcf8;
  --white: #ffffff;
  --ink: #182420;
  --ink-soft: #34443d;
  --muted: #6c7a73;
  --muted-light: #94a09a;
  --line: #e4e0d3;
  --line-soft: #eeebe1;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --success: #0f7a55;
  --success-bg: #ecfdf3;
  --success-line: #abefc6;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --warning-line: #fedf89;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --info-line: #b2ddff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-xs: 0 1px 2px rgba(24, 36, 32, 0.04);
  --shadow-sm: 0 2px 8px rgba(24, 36, 32, 0.06);
  --shadow: 0 12px 32px -12px rgba(24, 36, 32, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(15, 46, 35, 0.35);
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }

svg.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.container-narrow { width: min(860px, calc(100% - 40px)); margin-inline: auto; }

::selection { background: var(--gold-100); color: var(--green-900); }

/* ============================================================
   Boot
   ============================================================ */

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: var(--green-900);
  color: var(--cream);
}

.boot-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 28px;
  animation: pulse 1.6s var(--ease) infinite;
}

.boot-text { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.6; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  --btn-bg: var(--green-800);
  --btn-color: var(--white);
  --btn-border: var(--green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(15, 46, 35, 0.45);
  color: var(--btn-color);
}

.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(212, 160, 23, 0.45); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-gold { --btn-bg: var(--gold); --btn-color: var(--green-950); --btn-border: var(--gold); }
.btn-gold:hover { --btn-bg: var(--gold-400); --btn-border: var(--gold-400); }
.btn-outline {
  --btn-bg: transparent;
  --btn-color: var(--green-800);
  --btn-border: rgba(27, 67, 50, 0.28);
}
.btn-outline:hover { --btn-bg: var(--green-50); --btn-border: var(--green-800); }
.btn-ghost { --btn-bg: transparent; --btn-color: var(--ink-soft); --btn-border: transparent; padding-inline: 12px; }
.btn-ghost:hover { --btn-bg: rgba(27, 67, 50, 0.06); box-shadow: none; }
.btn-light { --btn-bg: var(--white); --btn-color: var(--green-900); --btn-border: var(--white); }
.btn-danger { --btn-bg: var(--danger); --btn-border: var(--danger); }
.btn-danger-soft { --btn-bg: var(--danger-bg); --btn-color: var(--danger); --btn-border: var(--danger-line); }
.btn-success-soft { --btn-bg: var(--success-bg); --btn-color: var(--success); --btn-border: var(--success-line); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; width: 38px; height: 38px; }
.btn-icon.btn-sm { width: 32px; height: 32px; padding: 6px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--green-800);
}
.link-arrow svg { transition: transform 0.2s var(--ease); width: 17px; height: 17px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   Header public
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 24px -24px rgba(24, 36, 32, 0.5);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--green-900);
  flex: none;
}

.brand:hover { color: var(--green-900); }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-800);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active { background: var(--green-50); color: var(--green-800); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 9px;
  color: var(--green-800);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  padding: 12px 20px 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; padding: 12px 10px; }
.mobile-menu .btn { margin-top: 10px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: var(--green-900);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(212, 160, 23, 0.16), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(63, 128, 100, 0.55), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 18px);
}

.hero::after {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  right: -260px;
  top: -300px;
  border: 1px solid rgba(212, 160, 23, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(212, 160, 23, 0.035), 0 0 0 140px rgba(212, 160, 23, 0.025);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 50px;
  align-items: center;
  padding: 72px 0 80px;
  position: relative;
}

.hero-copy { max-width: 620px; animation: rise 0.7s var(--ease) both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-400);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }

.hero .eyebrow { color: var(--gold-400); }
.hero-title { color: var(--cream); margin: 20px 0 20px; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero-title .accent { color: var(--gold-400); display: block; }

.hero-lead {
  color: rgba(247, 244, 236, 0.72);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 530px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
}

.trust-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(247, 244, 236, 0.68); }
.trust-item svg { color: var(--gold-400); width: 17px; height: 17px; }

.hero-art { position: relative; min-height: 460px; display: grid; place-items: center; animation: rise 0.8s 0.1s var(--ease) both; }

.poster-card {
  width: min(370px, 88%);
  border-radius: 20px;
  background: linear-gradient(160deg, #245741, #16392b 60%, #0f2e23);
  border: 1px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transform: rotate(1.5deg);
}

.poster-card::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: 14px;
  pointer-events: none;
}

.poster-arch {
  height: 220px;
  border-radius: 130px 130px 16px 16px;
  background:
    radial-gradient(circle at 50% 32%, rgba(212, 160, 23, 0.24), transparent 36%),
    repeating-conic-gradient(from 0deg at 50% 55%, rgba(212, 160, 23, 0.09) 0 3deg, transparent 3deg 12deg),
    linear-gradient(180deg, rgba(63, 128, 100, 0.5), rgba(11, 35, 26, 0.6));
  border: 1px solid rgba(212, 160, 23, 0.35);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.poster-arch svg { width: 130px; height: 130px; color: var(--gold); opacity: 0.92; }

.poster-kicker {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
}

.poster-title {
  font-family: var(--font-head);
  color: var(--cream);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 7px;
  letter-spacing: -0.02em;
}

.poster-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(247, 244, 236, 0.7);
}

.poster-meta span {
  border: 1px solid rgba(247, 244, 236, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
}

.poster-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poster-price { font-family: var(--font-head); font-weight: 700; color: var(--cream); font-size: 18px; }
.poster-price small { display: block; font-size: 10px; font-weight: 500; color: rgba(247, 244, 236, 0.5); letter-spacing: 0.05em; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(253, 252, 248, 0.97);
  border-radius: 12px;
  padding: 11px 15px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  color: var(--ink-soft);
  z-index: 2;
}

.float-chip strong { display: block; color: var(--green-900); font-size: 12.5px; font-family: var(--font-head); }
.float-chip .fc-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--success-bg); color: var(--success);
}
.float-chip.one { top: 38px; left: -6px; animation: float 5s ease-in-out infinite; }
.float-chip.two { bottom: 28px; right: -8px; animation: float 5s 1.2s ease-in-out infinite; }
.float-chip.two .fc-icon { background: var(--gold-50); color: var(--gold-700); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Stats strip
   ============================================================ */

.stats-strip { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-block { padding: 28px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat-block:last-child { border-right: 0; }
.stat-value { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--green-800); letter-spacing: -0.03em; line-height: 1.1; }
.stat-value span { color: var(--gold-600); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; letter-spacing: 0.02em; }

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 84px 0; }
.section-alt { background: var(--cream); }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--green-900); color: var(--cream); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.section-head-center { display: block; text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-title { margin-top: 12px; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 560px; }
.section-head-center .section-sub { margin-inline: auto; }
.section-dark .section-title { color: var(--cream); }
.section-dark .section-sub { color: rgba(247, 244, 236, 0.62); }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  animation: rise 0.5s var(--ease) both;
}

.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-100); }

.program-cover {
  height: 176px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-800), var(--green-950));
  display: flex;
  align-items: flex-end;
  padding: 18px;
  isolation: isolate;
}

.program-cover.offline { background: linear-gradient(145deg, #6c4b12, #3b2a0d); }
.program-cover.hybrid { background: linear-gradient(145deg, #1b4332, #513d12); }

.program-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 20%, rgba(212, 160, 23, 0.25), transparent 34%),
    repeating-conic-gradient(from 0deg at 78% 20%, rgba(255, 255, 255, 0.035) 0 2deg, transparent 2deg 14deg),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 16px);
}

.cover-star {
  position: absolute;
  right: -18px;
  top: -22px;
  width: 150px;
  height: 150px;
  color: rgba(212, 160, 23, 0.22);
}

.type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 35, 26, 0.45);
  border: 1px solid rgba(247, 244, 236, 0.2);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-date {
  color: rgba(247, 244, 236, 0.72);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cover-date svg { width: 15px; height: 15px; }

.program-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.program-title { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.program-title a { color: var(--ink); }
.program-title a:hover { color: var(--green-700); }
.program-desc {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meta-item svg { width: 15px; height: 15px; color: var(--green-600); }

.quota-wrap { margin-top: 18px; }
.quota-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.quota-label strong { color: var(--green-700); font-weight: 600; }
.progress { height: 5px; background: var(--cream-dark); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); border-radius: 99px; transition: width 0.6s var(--ease); }
.progress-bar.hot { background: linear-gradient(90deg, var(--gold-600), var(--gold)); }

.program-foot {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--green-900); letter-spacing: -0.02em; }
.price small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.price .free { color: var(--success); }

/* Generic cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-title { font-size: 16px; font-weight: 700; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 18px 0; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step-no {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-800); font-family: var(--font-head); font-weight: 800; font-size: 15px;
  margin-bottom: 18px;
}
.step-card:nth-child(2) .step-no { background: var(--gold-50); color: var(--gold-700); }
.step-card h3 { font-size: 15.5px; }
.step-card p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.step-card::after {
  content: ''; position: absolute; top: 44px; right: -10px; width: 18px; height: 1px;
  background: var(--line); display: block;
}
.step-card:last-child::after { display: none; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 18px;
}
.feature-card:nth-child(3n + 2) .feature-icon { background: var(--gold-50); color: var(--gold-700); }
.feature-card h3 { font-size: 16px; }
.feature-card p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.quote-mark { font-family: Georgia, serif; font-size: 54px; line-height: 0.6; color: var(--gold); height: 28px; }
.quote-text { color: var(--ink-soft); font-size: 14px; line-height: 1.75; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 11px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; flex: none;
}
.avatar.gold { background: var(--gold-100); color: var(--gold-700); }
.quote-author strong { display: block; font-size: 13px; }
.quote-author span { display: block; font-size: 11.5px; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 14px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.faq-q svg { transition: transform 0.25s var(--ease); color: var(--green-700); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--muted); font-size: 13.5px; }
.faq-item.open .faq-a { display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green-900), var(--green-800) 60%, #2b5c43);
  border-radius: var(--radius-xl);
  padding: 50px;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -80px; top: -110px; width: 340px; height: 340px;
  border: 1px solid rgba(212, 160, 23, 0.25); border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(212, 160, 23, 0.05), 0 0 0 92px rgba(212, 160, 23, 0.03);
}
.cta-band h2 { color: var(--cream); max-width: 560px; position: relative; }
.cta-band p { color: rgba(247, 244, 236, 0.66); margin-top: 10px; position: relative; }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(247, 244, 236, 0.62); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { color: var(--cream); }
.footer-brand .brand-name small { color: rgba(247, 244, 236, 0.4); }
.footer-brand p { margin-top: 16px; font-size: 13px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { color: var(--cream); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(247, 244, 236, 0.62); font-size: 13px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold-400); }
.footer-contact-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; margin-bottom: 10px; }
.footer-contact-row svg { width: 16px; height: 16px; color: var(--gold-400); margin-top: 3px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 244, 236, 0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11.5px;
}
.footer-bottom .dot { color: var(--gold); }

/* ============================================================
   Page hero (catalog / generic)
   ============================================================ */

.page-hero { background: var(--green-900); color: var(--cream); padding: 58px 0 52px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(212, 160, 23, 0.14), transparent 34%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 20px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--cream); font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 12px; }
.page-hero p { color: rgba(247, 244, 236, 0.66); margin-top: 12px; max-width: 620px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: rgba(247, 244, 236, 0.55); }
.breadcrumb a { color: rgba(247, 244, 236, 0.72); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span.sep { opacity: 0.4; }

/* Catalog */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: -30px 0 34px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid transparent; background: transparent; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; color: var(--muted); font-weight: 500; transition: 0.15s;
}
.chip:hover { background: var(--cream); color: var(--ink); }
.chip.active { background: var(--green-800); color: var(--white); }
.search-box { position: relative; min-width: 240px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search-box input { width: 100%; padding: 10px 14px 10px 39px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13.5px; }
.search-box input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .empty-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--cream); color: var(--muted); display: grid; place-items: center; margin: 0 auto 18px; }
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; max-width: 380px; margin: 0 auto; }

/* ============================================================
   Program detail
   ============================================================ */

.detail-wrap { padding: 34px 0 80px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; align-items: start; }
.detail-hero-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.detail-cover {
  height: 260px; background: linear-gradient(135deg, var(--green-800), var(--green-950)); position: relative;
  display: flex; justify-content: space-between; padding: 28px; color: var(--cream); overflow: hidden;
}
.detail-cover::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(212, 160, 23, 0.3), transparent 36%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px);
}
.detail-cover .cover-content { position: relative; align-self: flex-end; }
.detail-cover h1 { color: var(--cream); font-size: clamp(1.8rem, 3.3vw, 2.7rem); max-width: 600px; }
.detail-cover .detail-type { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-cover .detail-date { color: rgba(247, 244, 236, 0.7); font-size: 13px; margin-top: 12px; display: flex; align-items: center; gap: 7px; }
.detail-cover .cover-star { position: relative; width: 160px; height: 160px; color: rgba(212, 160, 23, 0.5); flex: none; }

.detail-body { padding: 30px; }
.detail-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.detail-tab {
  border: 0; background: none; padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.detail-tab.active { color: var(--green-800); border-bottom-color: var(--gold); }
.tab-panel { display: none; animation: fade 0.25s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prose { color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }

.syllabus-list { display: grid; gap: 10px; }
.syllabus-item { display: flex; gap: 14px; padding: 14px 16px; background: var(--cream); border-radius: 10px; font-size: 13.5px; }
.syllabus-no { width: 24px; height: 24px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--green-700); flex: none; }

.session-list { display: grid; gap: 0; }
.session-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.session-row:last-child { border-bottom: 0; }
.session-date {
  width: 58px; flex: none; text-align: center; background: var(--cream); border-radius: 9px; padding: 7px 4px;
}
.session-date strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--green-800); line-height: 1.1; }
.session-date span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.session-info strong { display: block; font-size: 14px; }
.session-info span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.session-info svg { width: 14px; height: 14px; }

.instructor-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--cream); border-radius: 12px; }
.instructor-card .avatar { width: 56px; height: 56px; font-size: 18px; }
.instructor-card h4 { font-size: 15px; }
.instructor-card p { font-size: 13px; color: var(--muted); margin-top: 5px; }

.side-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.signup-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.signup-price { display: flex; align-items: flex-end; gap: 8px; }
.signup-price .price { font-size: 30px; }
.signup-price span { font-size: 12px; color: var(--muted); padding-bottom: 5px; }
.signup-rows { margin: 20px 0; display: grid; gap: 12px; }
.signup-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.signup-row span { color: var(--muted); display: flex; align-items: center; gap: 7px; }
.signup-row strong { font-weight: 600; text-align: right; }
.signup-row svg { width: 15px; height: 15px; color: var(--green-600); }
.signup-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 13px; line-height: 1.5; }
.trust-box { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.trust-line { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--muted); }
.trust-line svg { width: 15px; height: 15px; color: var(--success); margin-top: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge-green { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }
.badge-gold { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-100); }
.badge-red { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.badge-amber { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-line); }
.badge-blue { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-line); }
.badge-gray { background: var(--cream); color: var(--muted); border: 1px solid var(--line); }

/* ============================================================
   Auth
   ============================================================ */

.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 0.95fr 1.05fr; }
.auth-visual {
  background: var(--green-900); color: var(--cream); padding: 60px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 160, 23, 0.2), transparent 32%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 20px);
}
.auth-visual > * { position: relative; }
.auth-quote { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.32; font-weight: 500; max-width: 460px; }
.auth-quote em { color: var(--gold-400); font-style: normal; }
.auth-quote-by { margin-top: 18px; font-size: 12px; letter-spacing: 0.08em; color: rgba(247, 244, 236, 0.55); text-transform: uppercase; }
.auth-benefits { display: grid; gap: 12px; margin-top: 34px; }
.auth-benefit { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(247, 244, 236, 0.72); }
.auth-benefit svg { width: 17px; height: 17px; color: var(--gold-400); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px 28px; background: var(--paper); }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 30px; letter-spacing: -0.03em; }
.auth-card > p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.auth-tabs { display: flex; background: var(--cream); border-radius: 10px; padding: 4px; margin: 26px 0 22px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth-tab.active { background: var(--white); color: var(--green-800); box-shadow: var(--shadow-xs); }
.demo-box { margin-top: 24px; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--cream); }
.demo-box p { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   Forms
   ============================================================ */

.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: flex; gap: 4px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--white); font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-light); }
.field-help { font-size: 11.5px; color: var(--muted); }
.field-error { font-size: 11.5px; color: var(--danger); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger-line); background: var(--danger-bg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 16px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; background: var(--white); }
.radio-pill input:checked + span { border-color: var(--green-700); background: var(--green-50); color: var(--green-800); font-weight: 600; }

.input-with-action { position: relative; }
.input-with-action input { padding-right: 42px; }
.input-action { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 7px; color: var(--green-700); border-radius: 6px; }
.input-action:hover { background: var(--green-50); }

/* Stepper */
.reg-page { background: var(--cream); min-height: calc(100vh - var(--header-h)); padding: 40px 0 80px; }
.reg-wrap { width: min(880px, calc(100% - 40px)); margin-inline: auto; }
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 30px; }
.stepper-step { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); flex: none; }
.stepper-no { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--white); }
.stepper-step.active { color: var(--green-800); font-weight: 600; }
.stepper-step.active .stepper-no { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.stepper-step.done .stepper-no { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.stepper-line { flex: 1; height: 1px; background: var(--line); margin: 0 14px; }
.stepper-line.done { background: var(--gold); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-card + .form-card { margin-top: 20px; }
.form-card-head { margin-bottom: 24px; }
.form-card-head h2 { font-size: 21px; }
.form-card-head p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); }

.review-grid { display: grid; gap: 0; }
.review-item { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.review-item:last-child { border-bottom: 0; }
.review-item span { color: var(--muted); flex: none; }
.review-item strong { text-align: right; font-weight: 500; }
.review-program { display: flex; gap: 15px; padding: 16px; background: var(--cream); border-radius: 10px; margin-bottom: 20px; }
.review-program .cover-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--green-800); color: var(--gold); display: grid; place-items: center; flex: none; }
.review-program strong { display: block; font-size: 14.5px; }
.review-program span { font-size: 12px; color: var(--muted); }

.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; }
.coupon-note { font-size: 11.5px; margin-top: 6px; }
.coupon-note.ok { color: var(--success); }
.coupon-note.bad { color: var(--danger); }

.terms-box { padding: 14px; background: var(--cream); border-radius: 9px; margin-top: 18px; }

/* ============================================================
   Payment
   ============================================================ */

.payment-page { background: var(--cream); min-height: calc(100vh - var(--header-h)); padding: 36px 0 80px; }
.payment-head { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.payment-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 8px; }
.payment-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.pay-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pay-card + .pay-card { margin-top: 20px; }
.pay-card-body { padding: 28px; }
.pay-card-head { padding: 20px 28px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--paper); }
.pay-card-head h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.pay-card-head h3 svg { color: var(--green-700); }

.countdown-bar {
  background: var(--green-900); color: var(--cream); padding: 16px 22px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.countdown-bar.urgent { background: #7a2318; }
.countdown-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.countdown-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.countdown-bar .icon { color: var(--gold-400); width: 24px; height: 24px; }

.bank-card { background: linear-gradient(135deg, var(--green-800), var(--green-950)); color: var(--cream); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.bank-card::after {
  content: ''; position: absolute; right: -50px; bottom: -90px; width: 220px; height: 220px;
  border: 1px solid rgba(212, 160, 23, 0.2); border-radius: 50%; box-shadow: 0 0 0 30px rgba(212, 160, 23, 0.04);
}
.bank-name { font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: 0.03em; color: var(--gold-400); }
.bank-account { font-family: var(--font-head); font-size: 29px; font-weight: 800; letter-spacing: 0.03em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.bank-holder { font-size: 11.5px; color: rgba(247, 244, 236, 0.6); margin-top: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.bank-card .copy-btn { position: absolute; right: 18px; top: 18px; background: rgba(247, 244, 236, 0.1); border: 1px solid rgba(247, 244, 236, 0.18); color: var(--cream); border-radius: 7px; padding: 6px 10px; font-size: 11px; display: flex; align-items: center; gap: 5px; z-index: 1; }
.bank-card .copy-btn:hover { background: rgba(247, 244, 236, 0.18); }
.bank-card .copy-btn svg { width: 13px; height: 13px; }

.amount-box {
  border: 1px solid var(--gold-100); background: var(--gold-50); border-radius: 12px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px;
}
.amount-box .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-700); font-weight: 600; }
.amount-value { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--green-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amount-breakdown { margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.code-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px dashed var(--gold-600); color: var(--gold-700); padding: 4px 9px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }

.warn-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--warning); background: var(--warning-bg); border: 1px solid var(--warning-line); padding: 12px 14px; border-radius: 9px; margin-top: 16px; line-height: 1.55; }
.warn-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

.upload-zone {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 34px 20px; text-align: center;
  background: var(--paper); transition: 0.18s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--green-600); background: var(--green-50); }
.upload-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 14px; }
.upload-zone strong { font-size: 14px; display: block; }
.upload-zone p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.file-input { display: none; }
.preview-file { display: none; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.preview-file.show { display: block; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.preview-head span { display: flex; align-items: center; gap: 7px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body { padding: 12px; display: grid; place-items: center; background: var(--cream); max-height: 340px; overflow: auto; }
.preview-body img { max-height: 310px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.preview-body iframe { width: 100%; height: 310px; border: 0; border-radius: 6px; background: var(--white); }

.status-banner { border-radius: 12px; padding: 18px; display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; border: 1px solid; }
.status-banner .sb-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.status-banner strong { display: block; font-family: var(--font-head); font-size: 14.5px; }
.status-banner p { font-size: 12.5px; margin-top: 3px; line-height: 1.55; }
.status-banner.green { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }
.status-banner.green .sb-icon { background: #d3f8e4; }
.status-banner.amber { background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning); }
.status-banner.amber .sb-icon { background: #fef0c7; }
.status-banner.red { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.status-banner.red .sb-icon { background: #fee4e2; }
.status-banner.blue { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.status-banner.blue .sb-icon { background: #d1e9ff; }
.status-banner.gray { background: var(--cream); border-color: var(--line); color: var(--ink-soft); }
.status-banner.gray .sb-icon { background: var(--white); }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 24px 1fr; gap: 13px; position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: 11px; top: 22px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--muted-light); z-index: 1; }
.timeline-dot svg { width: 12px; height: 12px; }
.timeline-item.done .timeline-dot { background: var(--success); border-color: var(--success); color: var(--white); }
.timeline-item.current .timeline-dot { background: var(--gold); border-color: var(--gold); color: var(--green-950); box-shadow: 0 0 0 4px var(--gold-50); }
.timeline-body strong { display: block; font-size: 13px; margin-top: 1px; }
.timeline-body span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.help-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.help-card + .help-card { margin-top: 16px; }
.help-card h4 { font-size: 14px; margin-bottom: 10px; }
.help-card p { font-size: 12.5px; color: var(--muted); }
.help-list { display: grid; gap: 8px; margin-top: 12px; }
.help-list a { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--green-700); }
.help-list svg { width: 15px; height: 15px; }

.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 7px 0; }
.summary-line span { color: var(--muted); }
.summary-line strong { font-weight: 600; text-align: right; }

/* ============================================================
   Dashboard shell
   ============================================================ */

.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; background: var(--cream); }

.sidebar {
  background: var(--green-950); color: var(--cream); padding: 22px 16px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30;
}
.sidebar .brand { padding: 4px 8px 22px; color: var(--cream); }
.sidebar .brand-name small { color: rgba(247, 244, 236, 0.35); }
.sidebar .brand-mark { background: rgba(247, 244, 236, 0.06); border: 1px solid rgba(212, 160, 23, 0.3); }
.sidebar-section { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 244, 236, 0.32); padding: 16px 12px 7px; }
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px;
  color: rgba(247, 244, 236, 0.65); font-size: 13px; font-weight: 500; transition: 0.15s; position: relative;
}
.sidebar-link svg { width: 18px; height: 18px; opacity: 0.8; }
.sidebar-link:hover { background: rgba(247, 244, 236, 0.06); color: var(--cream); }
.sidebar-link.active { background: rgba(212, 160, 23, 0.14); color: var(--gold-400); }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--gold); border-radius: 2px; }
.sidebar-link .count { margin-left: auto; background: var(--gold); color: var(--green-950); border-radius: 999px; font-size: 9.5px; font-weight: 700; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(247, 244, 236, 0.09); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.sidebar-user .avatar { background: rgba(212, 160, 23, 0.18); color: var(--gold-400); }
.sidebar-user strong { display: block; font-size: 12px; color: var(--cream); }
.sidebar-user span { display: block; font-size: 10px; color: rgba(247, 244, 236, 0.4); }
.sidebar-user .logout {
  margin-left: auto;
  color: rgba(247, 244, 236, 0.4);
  padding: 5px;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
}
.sidebar-user .logout:hover { color: var(--gold-400); background: rgba(247, 244, 236, 0.06); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; background: rgba(253, 252, 248, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 20; gap: 18px;
}
.topbar-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-bell { position: relative; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); display: grid; place-items: center; }
.topbar-bell:hover { background: var(--cream); }
.topbar-checkin { background: var(--green-950); border-color: var(--green-950); color: var(--gold-400); }
.topbar-checkin:hover { background: var(--green-900, #123a2b); color: var(--gold-400); }
.mobile-checkin-fab { display: none; }
.bell-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); border: 1px solid var(--white); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; }
.user-chip .avatar { width: 29px; height: 29px; font-size: 10px; }
.user-chip strong { font-size: 11.5px; display: block; line-height: 1.2; }
.user-chip span { font-size: 9.5px; color: var(--muted); display: block; text-transform: capitalize; }
.sidebar-toggle { display: none; }

.page { padding: 30px 28px 60px; width: 100%; max-width: 1380px; margin-inline: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.stat-icon.gold { background: var(--gold-50); color: var(--gold-700); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-card .sc-label { font-size: 11px; color: var(--muted); }
.stat-card .sc-value { font-family: var(--font-head); font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-top: 2px; }
.stat-card .sc-sub { font-size: 10.5px; color: var(--muted-light); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-grid .span-2 { grid-column: 1 / -1; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { padding: 17px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 14.5px; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.panel-link { font-size: 11.5px; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 4px; }
.panel-link svg { width: 13px; height: 13px; }

.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 13px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
.list-item .li-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--cream); display: grid; place-items: center; color: var(--green-700); flex: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-main strong { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-main span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-time { font-size: 10.5px; color: var(--muted-light); flex: none; }

.notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--green-50); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: none; }
.notif-item.read .notif-dot { background: var(--line); }
.notif-main { flex: 1; min-width: 0; }
.notif-main strong { font-size: 12.5px; display: block; }
.notif-main p { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.notif-main time { font-size: 10px; color: var(--muted-light); display: block; margin-top: 4px; }

/* Charts */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--green-500), var(--green-700)); border-radius: 5px 5px 2px 2px; min-height: 2px; position: relative; transition: height 0.5s var(--ease); }
.chart-bar:hover { background: var(--gold); }
.chart-bar .tip { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); background: var(--green-950); color: var(--white); font-size: 9.5px; padding: 3px 6px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; }
.chart-bar:hover .tip { opacity: 1; }
.chart-label { font-size: 9px; color: var(--muted-light); white-space: nowrap; }
.chart-legend { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 11px; color: var(--muted); }

.hbar-list { display: grid; gap: 13px; }
.hbar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; margin-bottom: 4px; }
.hbar-head strong { font-weight: 600; font-size: 11.5px; }
.hbar-track { height: 7px; background: var(--cream-dark); border-radius: 99px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.hbar-fill.gold { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }

/* Program mini card in dashboard */
.reg-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.reg-card + .reg-card { margin-top: 14px; }
.reg-card-top { display: flex; gap: 15px; padding: 18px; }
.reg-cover { width: 54px; height: 54px; border-radius: 11px; background: var(--green-800); color: var(--gold); display: grid; place-items: center; flex: none; }
.reg-main { flex: 1; min-width: 0; }
.reg-main strong { display: block; font-size: 14px; font-family: var(--font-head); }
.reg-main span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; }
.reg-card-foot { padding: 12px 18px; background: var(--paper); border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reg-card-foot .amount { font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.reg-progress { margin-top: 10px; }

.empty {
  text-align: center; padding: 44px 20px; color: var(--muted);
}
.empty svg { width: 38px; height: 38px; color: var(--muted-light); margin-bottom: 10px; }
.empty h4 { font-size: 14px; margin-bottom: 4px; }
.empty p { font-size: 12px; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card { text-align: center; padding: 28px; }
.profile-card .avatar { width: 76px; height: 76px; font-size: 26px; margin: 0 auto 14px; }
.profile-card h3 { font-size: 18px; }
.profile-card p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile-meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; text-align: left; }
.profile-meta div { display: flex; justify-content: space-between; font-size: 11.5px; }
.profile-meta span { color: var(--muted); }

/* ============================================================
   Tables, filters, admin
   ============================================================ */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; padding: 11px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(247, 244, 236, 0.45); }
.table .cell-main { display: flex; align-items: center; gap: 10px; }
.table .cell-main strong { display: block; font-size: 12.5px; font-weight: 600; }
.table .cell-main span { display: block; font-size: 10.5px; color: var(--muted); }
.table .amount-cell { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.table .actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-empty { text-align: center; color: var(--muted); padding: 40px; font-size: 13px; }

.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .search-box { flex: 1; min-width: 200px; }
.filter-select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 12.5px; color: var(--ink-soft); }
.tabs-pill { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--line); padding: 4px; border-radius: 9px; overflow-x: auto; }
.tabs-pill button { border: 0; background: transparent; padding: 7px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs-pill button.active { background: var(--green-800); color: var(--white); }
.tabs-pill .tab-count { font-size: 9.5px; opacity: 0.7; margin-left: 3px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted); }
.pagination .pages { display: flex; gap: 4px; }
.page-btn { min-width: 28px; height: 28px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; font-size: 11px; color: var(--ink-soft); display: grid; place-items: center; }
.page-btn.active { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.page-btn:disabled { opacity: 0.4; }

.proof-thumb { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); background: var(--cream); cursor: zoom-in; }
.proof-thumb.placeholder { display: grid; place-items: center; font-size: 9px; color: var(--muted-light); }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(11, 35, 26, 0.45); backdrop-filter: blur(2px); z-index: 100; opacity: 0; transition: opacity 0.2s; }
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper);
  z-index: 101; box-shadow: -20px 0 60px -20px rgba(11, 35, 26, 0.4); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--white); }
.drawer-head h3 { font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--white); display: flex; gap: 9px; flex-wrap: wrap; }
.drawer-close { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; display: grid; place-items: center; color: var(--muted); }

.detail-block { margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row strong { text-align: right; font-weight: 600; }
.detail-label { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 7px; font-weight: 600; }
.proof-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--cream); max-height: 330px; display: grid; place-items: center; }
.proof-frame img { max-height: 328px; width: auto; }
.proof-frame iframe { width: 100%; height: 328px; border: 0; }
.proof-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--muted); }

.dup-warning { border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger); border-radius: 9px; padding: 11px 13px; font-size: 11.5px; margin-top: 10px; display: flex; gap: 8px; }

.checklist { display: grid; gap: 9px; }
.check-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white); }
.check-item input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--green-700); }
.check-item.checked { background: var(--green-50); border-color: var(--green-100); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 35, 26, 0.5); backdrop-filter: blur(3px); z-index: 120; display: grid; place-items: center; padding: 20px; animation: fade 0.18s ease; }
.modal {
  background: var(--paper); border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 40px);
  overflow-y: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); animation: modalIn 0.25s var(--ease);
}
.modal.modal-lg { width: min(760px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; background: var(--white); border-radius: 16px 16px 0 0; }
.modal-head h3 { font-size: 17px; }
.modal-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 15px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; background: var(--white); border-radius: 0 0 16px 16px; }

/* Toast */
.toast-root { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: grid; gap: 9px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
  background: var(--green-950); color: var(--cream); border-radius: 10px; padding: 13px 16px;
  box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.4); display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; animation: toastIn 0.3s var(--ease);
}
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--gold-400); }
.toast.success svg { color: #6ce9a6; }
.toast.error { background: #5e1b13; }
.toast.error svg { color: #fda29b; }
.toast.out { animation: toastOut 0.25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* Reconcile */
.recon-upload { border: 1.5px dashed var(--line); border-radius: 12px; padding: 28px; background: var(--paper); }
.recon-upload.drag { border-color: var(--green-600); background: var(--green-50); }
.recon-sample { background: var(--green-950); color: #cfe5d9; border-radius: 9px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; overflow-x: auto; line-height: 1.8; margin-top: 12px; }
.match-row.matched td { background: rgba(236, 253, 243, 0.55); }
.match-row.similar td { background: rgba(255, 250, 235, 0.6); }
.match-row.unmatched td { background: rgba(254, 243, 242, 0.5); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { display: grid; gap: 3px; position: sticky; top: 90px; }
.settings-nav button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.settings-nav button.active { background: var(--white); color: var(--green-800); font-weight: 600; box-shadow: var(--shadow-xs); }

/* Certificate */
.cert-page { background: #e9e4d6; min-height: 100vh; padding: 40px 20px; }
.cert-toolbar { width: min(1000px, 100%); margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cert-toolbar .btn { background: var(--green-800); }
.certificate {
  width: min(1000px, 100%); margin: 0 auto; aspect-ratio: 1.414 / 1; background: var(--paper);
  position: relative; box-shadow: var(--shadow-lg); overflow: hidden; padding: 14px;
}
.cert-inner {
  border: 2px solid var(--green-800); height: 100%; position: relative; padding: 46px 60px;
  display: flex; flex-direction: column; text-align: center; background:
    radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.08), transparent 30%),
    var(--paper);
}
.cert-inner::before {
  content: ''; position: absolute; inset: 9px; border: 1px solid var(--gold); pointer-events: none;
}
.cert-inner::after {
  content: ''; position: absolute; inset: 16px; border: 1px solid rgba(27, 67, 50, 0.25); pointer-events: none;
}
.cert-ornament { position: absolute; color: var(--gold); opacity: 0.22; }
.cert-ornament.tl { top: 18px; left: 18px; width: 90px; height: 90px; }
.cert-ornament.br { bottom: 18px; right: 18px; width: 90px; height: 90px; transform: rotate(180deg); }
.cert-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-700); }
.cert-logo { width: 34px; height: 34px; border-radius: 50%; background: var(--green-800); color: var(--gold); display: grid; place-items: center; font-size: 16px; }
.cert-title { font-family: var(--font-head); font-size: clamp(22px, 3.2vw, 36px); font-weight: 800; color: var(--green-900); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 22px; }
.cert-sub { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.cert-given { font-size: 11px; color: var(--muted); margin-top: 30px; letter-spacing: 0.04em; }
.cert-name { font-family: 'Georgia', 'Times New Roman', serif; font-size: clamp(28px, 4.4vw, 52px); color: var(--green-900); margin-top: 5px; font-weight: 600; position: relative; display: inline-block; padding-bottom: 10px; }
.cert-name::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cert-for { font-size: 11px; color: var(--muted); margin-top: 16px; }
.cert-program { font-family: var(--font-head); font-size: clamp(16px, 2.3vw, 23px); font-weight: 700; color: var(--green-800); margin-top: 6px; }
.cert-desc { font-size: 11px; color: var(--muted); margin-top: 10px; max-width: 620px; margin-inline: auto; line-height: 1.7; }
.cert-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.cert-sign { text-align: center; }
.cert-sign .sign-space { height: 38px; }
.cert-sign strong { display: block; font-family: var(--font-head); font-size: 12px; border-top: 1px solid var(--ink-soft); padding-top: 6px; min-width: 180px; }
.cert-sign span { font-size: 9px; color: var(--muted); display: block; }
.cert-qr { display: flex; align-items: center; gap: 11px; }
.cert-qr .qr-box { width: 72px; height: 72px; background: var(--white); padding: 4px; border: 1px solid var(--line); }
.cert-qr .qr-box img, .cert-qr .qr-box svg { width: 100%; height: 100%; }
.cert-qr .qr-meta { font-size: 8.5px; color: var(--muted); line-height: 1.5; max-width: 115px; }
.cert-qr .qr-meta strong { display: block; font-size: 9px; color: var(--ink-soft); }
.cert-number { position: absolute; left: 60px; bottom: 26px; font-size: 8.5px; letter-spacing: 0.08em; color: var(--muted); }

.verify-page { min-height: 100vh; background: var(--cream); padding: 50px 20px; }
.verify-card { width: min(620px, 100%); margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.verify-top { background: var(--green-900); padding: 30px; color: var(--cream); text-align: center; }
.verify-top .check-ring { width: 58px; height: 58px; border-radius: 50%; background: rgba(108, 233, 166, 0.14); border: 1px solid rgba(108, 233, 166, 0.35); color: #6ce9a6; display: grid; place-items: center; margin: 0 auto 12px; }
.verify-top h1 { font-size: 22px; color: var(--cream); }
.verify-top p { font-size: 12px; color: rgba(247, 244, 236, 0.6); margin-top: 5px; }
.verify-body { padding: 30px; }
.verify-name { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--green-900); text-align: center; }
.verify-program { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.verify-rows { margin-top: 24px; }
.verify-foot { padding: 16px 30px; background: var(--paper); border-top: 1px solid var(--line-soft); text-align: center; font-size: 11px; color: var(--muted); }

/* Invoice */
.invoice-page { background: var(--cream); min-height: 100vh; padding: 40px 20px; }
.invoice { width: min(780px, 100%); margin: 0 auto; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 44px; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--green-800); }
.invoice-head h1 { font-size: 22px; }
.invoice-meta { text-align: right; font-size: 11.5px; color: var(--muted); }
.invoice-meta strong { display: block; color: var(--ink); font-size: 13px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.invoice-parties h4 { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.invoice-parties p { font-size: 12.5px; line-height: 1.7; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.invoice-table th { text-align: left; background: var(--green-50); color: var(--green-800); padding: 10px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.invoice-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.invoice-total { margin-left: auto; width: 300px; margin-top: 20px; }
.invoice-total .summary-line { font-size: 12.5px; }
.invoice-total .grand { border-top: 2px solid var(--green-800); margin-top: 8px; padding-top: 10px; font-size: 15px; }
.invoice-total .grand strong { font-family: var(--font-head); font-size: 18px; color: var(--green-900); }
.invoice-note { margin-top: 30px; padding: 14px; background: var(--cream); border-radius: 8px; font-size: 10.5px; color: var(--muted); }
.invoice-sign { margin-top: 36px; display: flex; justify-content: flex-end; }
.invoice-sign div { text-align: center; font-size: 11px; }
.invoice-sign .space { height: 48px; }
.invoice-sign strong { display: block; border-top: 1px solid var(--ink-soft); padding-top: 5px; min-width: 170px; }

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 26px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.text-muted { color: var(--muted); }
.text-small { font-size: 12px; }
.text-smaller { font-size: 11px; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--gold-700); }
.font-head { font-family: var(--font-head); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skeleton { background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Alert */
.alert { display: flex; gap: 10px; padding: 12px 15px; border-radius: 9px; font-size: 12.5px; border: 1px solid; line-height: 1.55; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.alert-warn { background: var(--warning-bg); border-color: var(--warning-line); color: var(--warning); }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }

/* ============================================================
   Responsive
   ============================================================ */

.sidebar-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 35, 26, 0.45);
  backdrop-filter: blur(1px);
  z-index: 85;
  display: none;
}

.sidebar-scrim.show { display: block; }

.badge-soft { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }

.repeat-row > .field { min-width: 0; }
.repeat-row input,
.repeat-row select { padding: 8px 10px; font-size: 12.5px; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 400px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .auth-visual { padding: 44px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .mobile-toggle { display: flex; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%);
    transition: transform 0.28s var(--ease); z-index: 90;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: grid; place-items: center; }
  .mobile-checkin-fab { position: fixed; right: 16px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 7px; padding: 12px 16px; border-radius: 999px; background: var(--green-950); color: var(--gold-400); box-shadow: 0 10px 28px rgba(11,35,26,.32); font-size: 12px; font-weight: 700; }
  .mobile-checkin-fab svg { width: 18px; height: 18px; }
  .topbar { padding: 0 18px; }
  .page { padding: 24px 18px 50px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .signup-card { position: sticky; bottom: 0; z-index: 10; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-head { margin-bottom: 18px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .profile-grid { grid-template-columns: 1fr; }
  .stepper { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .stepper-step span { display: none; }
  .stepper-line { min-width: 24px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .container { width: calc(100% - 32px); }
  .hero-inner { padding: 48px 0 56px; }
  .hero-title { font-size: 2.35rem; }
  .hero-actions .btn { flex: 1; }
  .hero-trust { gap: 12px 18px; }
  .float-chip.one { left: -4px; top: 10px; }
  .float-chip.two { right: -4px; bottom: 10px; }
  .poster-card { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: 0; }
  .stat-block { border-bottom: 1px solid var(--line); padding: 20px 10px; }
  .stat-block:nth-child(3), .stat-block:nth-child(4) { border-bottom: 0; }
  .program-grid, .feature-grid, .testimonial-grid, .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
  .section { padding: 56px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 26px; }
  .cta-band { padding: 30px 24px; flex-direction: column; align-items: flex-start; border-radius: var(--radius-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .detail-body { padding: 22px; }
  .detail-cover { height: 220px; padding: 20px; }
  .detail-cover .cover-star { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .form-nav { flex-direction: column-reverse; align-items: stretch; }
  .form-nav .btn { width: 100%; }
  .stepper { margin-bottom: 22px; }
  .bank-account { font-size: 24px; }
  .amount-box { flex-direction: column; align-items: flex-start; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-card .sc-value { font-size: 19px; }
  .topbar-title { font-size: 13px; }
  .user-chip div { display: none; }
  .user-chip { padding: 4px; border: 0; background: none; }
  .page { padding: 20px 14px 44px; }
  .panel-head { padding: 14px 16px; }
  .panel-body { padding: 16px; }
  .list-item { padding: 12px 16px; }
  .notif-item { padding: 12px 16px; }
  .table th, .table td { padding: 10px 12px; }
  .cert-page { padding: 20px 10px; }
  .cert-inner { padding: 24px 20px; }
  .cert-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cert-number { position: static; margin-top: 10px; text-align: left; }
  .certificate { aspect-ratio: auto; min-height: 620px; }
  .invoice { padding: 24px; }
  .invoice-parties { grid-template-columns: 1fr; }
  .auth-form-wrap { padding: 30px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .drawer-body { padding: 18px; }
  .modal-body { padding: 18px; }
  .profile-grid { grid-template-columns: 1fr; }
  .repeat-row { grid-template-columns: 1fr 1fr !important; }
  .repeat-row > .field:first-child { grid-column: 1 / -1; }
  .repeat-row > .field[style*="grid-column"] { grid-column: 1 / -1 !important; }
  .toast-root { bottom: 14px; right: 14px; left: 14px; max-width: none; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  .header-actions .btn { padding: 9px 13px; font-size: 12.5px; }
  .stat-grid { grid-template-columns: 1fr; }
  .cert-qr { display: none; }
}

/* ============================================================
   E-ticket & check-in QR
   ============================================================ */

.ticket-page { max-width: 980px; margin: 0 auto; padding: 28px 18px 48px; }
.ticket-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ticket-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 45px rgba(22, 32, 24, .09); overflow: hidden; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: var(--green-950); color: var(--cream); }
.ticket-brand { display: flex; align-items: center; gap: 10px; }
.ticket-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(212, 160, 23, .16); color: var(--gold-400); font-family: var(--font-head); font-size: 20px; }
.ticket-brand strong { display: block; font-family: var(--font-head); font-size: 16px; }
.ticket-brand span:not(.ticket-mark) { font-size: 8.5px; letter-spacing: .14em; color: rgba(247, 244, 236, .5); }
.ticket-body { display: grid; grid-template-columns: 1fr 220px; gap: 24px; padding: 26px 28px; }
.ticket-info h1 { font-family: var(--font-head); font-size: 26px; line-height: 1.25; margin: 8px 0 18px; }
.ticket-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ticket-person .avatar { width: 42px; height: 42px; }
.ticket-person strong { display: block; font-size: 15px; }
.ticket-person span { font-size: 11.5px; color: var(--muted); }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 16px; }
.ticket-meta span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ticket-meta strong { font-size: 12.5px; }
.ticket-sessions { margin-top: 18px; }
.ticket-sessions > strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ticket-session { display: grid; grid-template-columns: 100px 110px 1fr; gap: 8px; font-size: 11.5px; padding: 5px 0; border-top: 1px dashed var(--line-soft); }
.ticket-note { display: flex; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: var(--cream); font-size: 11.5px; color: var(--muted); }
.ticket-note svg { width: 15px; flex: none; }
.ticket-qr { border-left: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-left: 22px; text-align: center; }
.ticket-qr svg { background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.ticket-qr strong { font-family: monospace; font-size: 11px; word-break: break-all; }
.ticket-qr span { font-size: 10px; color: var(--muted); }
.qr-fallback { width: 160px; height: 160px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.ticket-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 28px; border-top: 1px solid var(--line-soft); background: var(--cream); font-size: 10px; color: var(--muted); }
.ticket-unpaid .ticket-head { background: var(--danger); }
.checkin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 18px; }
.checkin-grid-single { grid-template-columns: minmax(0, 1fr); }
.checkin-result { display: flex; gap: 14px; padding: 16px; border-radius: 10px; margin-top: 8px; border: 1px solid; }
.checkin-valid { background: var(--success-bg); border-color: var(--success-line); }
.checkin-done { background: var(--cream); border-color: var(--line); }
.checkin-status { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; flex: none; }
.checkin-done .checkin-status { background: var(--muted); }
.checkin-detail { display: grid; gap: 3px; font-size: 12px; }
.checkin-detail strong { font-family: var(--font-head); font-size: 17px; }
.checkin-detail span { color: var(--muted); }
.checkin-detail .badge { justify-self: start; }
.scanner-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--cream); }
.scanner-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 320px; border-radius: 10px; overflow: hidden; background: #0b1a14; display: grid; place-items: center; }
.scanner-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame.active video { display: block; }
.scanner-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: rgba(247,244,236,.55); font-size: 12px; }
.scanner-placeholder svg { width: 34px; height: 34px; }
.scanner-guide { position: absolute; inset: 14%; pointer-events: none; }
.scanner-guide span { position: absolute; width: 32px; height: 32px; border: 3px solid var(--gold-400); }
.scanner-guide span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scanner-guide span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scanner-guide span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scanner-guide span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scanner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scanner-actions .btn { cursor: pointer; }
.scanner-placeholder[hidden], .scanner-actions [hidden] { display: none !important; }
#camera-status { margin: 8px 0 0; }
@media (max-width: 860px) {
  .checkin-grid { grid-template-columns: 1fr; }
  .ticket-body { grid-template-columns: 1fr; }
  .ticket-qr { border-left: 0; border-top: 1px dashed var(--line); padding: 20px 0 0; }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .cert-toolbar, .no-print, .toast-root, .sidebar, .topbar { display: none !important; }
  .cert-page, .invoice-page, .ticket-page { padding: 0; background: #fff; }
  .certificate, .invoice, .ticket-card { box-shadow: none; margin: 0 auto; width: 100%; border: 0; }
  .ticket-page { page: ticket; }
  .certificate { width: 297mm; height: 210mm; padding: 8mm; }
  .cert-inner { padding: 14mm 20mm; }
  .invoice { border: 0; }
  @page { size: A4 landscape; margin: 0; }
  @page ticket { size: A4 portrait; margin: 8mm; }
  .invoice-page { @page { size: A4 portrait; } }
}
