:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --ink: #0c1a2e;
  --ink-2: #26364d;
  --muted: #5b6b82;
  --faint: #94a3b8;
  --line: #e4e9f1;
  --brand: #0e9f6e;
  --brand-600: #0b8a5f;
  --brand-50: #e8f7f0;
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --gold: #f2b134;
  --gold-50: #fff6e0;
  --danger: #e5484d;
  --danger-50: #fdecec;
  --warn: #c27c0e;
  --warn-50: #fff4dc;
  --info: #2f6fdb;
  --info-50: #e8f0fd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 26, 46, 0.04), 0 8px 24px -12px rgba(12, 26, 46, 0.12);
  --shadow-lg: 0 24px 48px -20px rgba(12, 26, 46, 0.3);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: 600 14.5px var(--font); cursor: pointer;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #3b2600; }
.btn-gold:hover { background: #e6a21f; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: #cfd8e5; }
.btn-danger { background: var(--danger-50); color: var(--danger); }
.btn-danger:hover { background: #fadada; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef3f9; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; height: 66px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none !important; }
.brand b { color: var(--brand); font-weight: 800; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--navy), var(--navy-2)); display: grid; place-items: center; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 9px; text-decoration: none; }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a.active { color: var(--brand-600); background: var(--brand-50); }
.nav-links .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; font-size: 18px; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 6px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(14, 159, 110, 0.28), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(242, 177, 52, 0.18), transparent 60%), linear-gradient(160deg, var(--navy), #0a1830 70%); color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 72px 20px 84px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #b7f0d8; background: rgba(14, 159, 110, 0.16); border: 1px solid rgba(14, 159, 110, 0.35); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #4ee0a8, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #c9d5e6; max-width: 560px; }
.hero .row { margin-top: 28px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #c9d5e6; font-size: 14px; }
.hero-points span::before { content: '✓'; color: #4ee0a8; font-weight: 800; margin-right: 7px; }
.hero-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; padding: 26px; backdrop-filter: blur(6px); }
.hero-card h3 { font-size: 18px; margin-bottom: 6px; }
.hero-card .big { font-size: 44px; font-weight: 800; color: var(--gold); letter-spacing: -0.03em; }
.hero-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.hero-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #d6e0ee; }
.hero-steps li b { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(242, 177, 52, 0.18); color: var(--gold); display: grid; place-items: center; font-size: 13px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; padding: 48px 20px 56px; gap: 30px; } }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 20px; }
.trust-item { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.trust-item .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; font-size: 19px; flex: none; }
.trust-item b { display: block; color: var(--ink); }
@media (max-width: 820px) { .trust-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-in { grid-template-columns: 1fr; } }

/* ---------- course cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d6dfeb; }
.ccard-cover { --c: var(--brand); height: 150px; position: relative; display: grid; place-items: center; background: radial-gradient(120px 90px at 75% 30%, color-mix(in srgb, var(--c) 45%, transparent), transparent), linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 38%, #fff)); }
.ccard-cover.has-img { height: auto; aspect-ratio: 16 / 9; background-color: var(--surface-2); background-size: cover; background-position: center; }
.ccard-emoji { font-size: 58px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.15)); }
.ccard .tag { position: absolute; top: 12px; left: 12px; }
.ccard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ccard-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ccard h3 { font-size: 17.5px; font-weight: 700; }
.ccard p { font-size: 14px; color: var(--muted); }
.ccard-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.mrp { font-size: 14px; color: var(--faint); text-decoration: line-through; }
.off { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: 4px 9px; border-radius: 99px; }

.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 99px; }
.tag-gold { background: var(--gold); color: #3b2600; }
.tag-free { background: var(--brand); color: #fff; }
.tag-navy { background: var(--navy); color: #fff; }

/* ---------- generic cards / forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card h3 { font-size: 17px; font-weight: 700; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h3 { margin-right: auto; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
label.f > span { display: block; margin-bottom: 6px; }
label.f small { font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 11px; border: 1px solid #d5dde8; background: #fff;
  font: 500 14.5px var(--font); color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.14); }
.input-sm { height: 34px; font-size: 13px; border-radius: 9px; padding: 0 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(12, 26, 46, 0.12); }

/* ---------- badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #eef2f7; color: var(--ink-2); white-space: nowrap; text-transform: capitalize; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill-green, .st-paid, .st-processed, .st-available, .st-active { background: var(--brand-50); color: var(--brand-600); }
.pill-amber, .st-pending, .st-requested, .st-on_hold { background: var(--warn-50); color: var(--warn); }
.pill-blue, .st-processing, .st-in_payout { background: var(--info-50); color: var(--info); }
.pill-red, .st-refunded, .st-failed, .st-reversed, .st-blocked { background: var(--danger-50); color: var(--danger); }
.st-created, .st-rejected { background: #eef2f7; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fbfcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .em { font-size: 40px; display: block; margin-bottom: 8px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .lbl { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .val { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--brand-50); }
.kpi.hl { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border-color: transparent; }
.kpi.hl .lbl, .kpi.hl .sub { color: #b9c6da; }
.kpi.hl .ic { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .kpis { grid-template-columns: 1fr; } .kpi .val { font-size: 24px; } }

/* ---------- chart ---------- */
.chart { width: 100%; height: 240px; display: block; }
.chart .bar { fill: var(--brand); transition: fill 0.15s; }
.chart .bar.partner { fill: var(--gold); }
.chart .bar:hover { fill: var(--brand-600); }
.chart text { font: 500 11px var(--font); fill: var(--faint); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 18, 34, 0.55); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade 0.15s; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop 0.18s; }
.modal-lg { max-width: 860px; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-size: 18px; margin-right: auto; }
.modal-x { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop 0.2s; display: flex; gap: 10px; align-items: center; }
.toast.error { background: #b42318; }
.toast.ok::before { content: '✓'; color: #4ee0a8; font-weight: 800; }

/* ---------- misc ---------- */
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--warn-50); color: #7a4d06; border: 1px solid #f6dfa8; flex-wrap: wrap; }
.banner.info { background: var(--info-50); color: #1d4d9f; border-color: #cfe0fb; }
.banner.ok { background: var(--brand-50); color: #0a6e4c; border-color: #bfe9d6; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--surface-2); }
.skeleton { background: linear-gradient(90deg, #eef2f7, #f7f9fc, #eef2f7); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 12px; }
@keyframes sh { to { background-position: -200% 0; } }
.footer { background: var(--navy); color: #9fb0c8; padding: 46px 0 30px; margin-top: 40px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a { color: #c9d5e6; display: block; margin-bottom: 8px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 30px; padding-top: 20px; font-size: 12.5px; line-height: 1.6; color: #7f92ad; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin-top: 10px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { width: 36px; height: 36px; border-radius: 11px; background: var(--gold-50); color: #9a6400; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }
.partner-cta { background: linear-gradient(140deg, #0f2b52, var(--navy)); color: #fff; border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.partner-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.partner-cta p { color: #c3d0e3; margin-top: 10px; }
@media (max-width: 820px) { .partner-cta { grid-template-columns: 1fr; padding: 28px 22px; } }
