/* ============================================================
   PutraEduSuite — Purchase theme v2
   Palet diselaraskan ke logo: biru navy (#1b2a6e) sebagai fondasi
   kepercayaan + merah berani (#e11d2e) sebagai aksen aksi.
   Tanpa framework, tanpa dependensi — aman untuk Vercel static.
   Semua halaman (landing, beli, bayar, sukses, admin) memakai
   kelas yang sama; landing menambah kelas .reveal/.stats/.compare.
   ============================================================ */

:root {
  color-scheme: light;

  /* -- identitas logo -- */
  --navy: #1b2a6e;
  --navy-deep: #101a4e;
  --navy-ink: #0d1440;
  --navy-soft: #e8ebf8;
  --red: #e11d2e;
  --red-dark: #ad111f;
  --red-soft: #fde8ea;

  --success: #16a34a;
  --success-light: #dcfce7;
  --success-ink: #14532d;
  --warning-light: #fef3c7;
  --danger: #b91c1c;
  --danger-light: #fee2e2;
  --danger-ink: #7f1d1d;

  --text: #131a36;
  --text-2: #5b6478;
  --on-accent: #ffffff;

  --canvas: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-sunk: #eef0f6;
  --edge: #e1e5ef;
  --hairline: rgba(27, 42, 110, .09);

  --shadow: 0 4px 12px rgba(16, 26, 78, .08);
  --shadow-lg: 0 18px 48px rgba(16, 26, 78, .18);
  --glow-red: rgba(225, 29, 46, .35);

  --r-2: 6px;
  --r-3: 8px;
  --r-4: 10px;
  --r-5: 12px;
  --r-full: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter var", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
  transition: box-shadow .25s ease;
}
.topbar.scrolled { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow); }
.brand .sub { font-size: 12px; font-weight: 600; color: var(--text-2); display: block; line-height: 1.2; }
.topbar .spacer { flex: 1; }
.topnav { display: flex; gap: 16px; font-size: 14px; font-weight: 700; }
.topnav a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.topnav a:hover { color: var(--red); }
.badge-lifetime {
  font-size: 12px; font-weight: 800; color: var(--red);
  background: var(--red-soft); border: 1px solid var(--red);
  padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1020px; margin: 0 auto; padding: 32px 16px 64px; }
.wrap.narrow { max-width: 560px; }
.card, .hero, .price-card { scroll-margin-top: 84px; }

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(34rem 22rem at 88% -10%, rgba(225, 29, 46, .38), transparent 62%),
    radial-gradient(30rem 24rem at 8% 108%, rgba(225, 29, 46, .16), transparent 60%),
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 58%, #2a3a8f 100%);
  color: #eef0fa;
  border-radius: 20px;
  padding: 48px 36px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center;
  margin-bottom: 24px;
}
.hero::after {
  /* sapuan merah khas logo */
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 34px solid rgba(225, 29, 46, .28);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.hero h1 .red { color: #ff5b6a; }
.hero p { margin: 0 0 20px; color: #c3c9e4; font-size: 16px; }
.hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(225, 29, 46, .9);
  border-radius: var(--r-full); padding: 6px 14px; margin-bottom: 14px;
  box-shadow: 0 6px 18px var(--glow-red);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
.trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.trust span {
  font-size: 12px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-full);
  padding: 4px 12px; background: rgba(255, 255, 255, .07);
}
.price-card {
  position: relative; z-index: 1;
  background: var(--surface); color: var(--text);
  border-radius: var(--r-5); padding: 26px; text-align: center;
  box-shadow: var(--shadow-lg); border-top: 5px solid var(--red);
  animation: cardIn .7s ease both .15s;
}
.price-card .lbl { font-size: 13px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.price-card .price { font-size: 38px; font-weight: 800; color: var(--navy); margin: 6px 0; }
.price-card .per { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.guarantee { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; font-size: 13px; color: var(--text-2); }
.guarantee li { padding: 4px 0 4px 26px; position: relative; }
.guarantee li::before { content: "✓"; position: absolute; left: 4px; color: var(--success); font-weight: 800; }

/* ---------- Statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-4);
  padding: 18px 12px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat b { display: block; font-size: 30px; color: var(--red); line-height: 1.1; }
.stat span { font-size: 12px; color: var(--text-2); font-weight: 600; }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: var(--r-5); padding: 28px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; color: var(--navy-ink); }
.card h2 { font-size: 22px; }
/* Judul halaman alur (h1 SEO) tampil identik dengan h2 kartu. */
.card h1.page-title { margin-top: 0; color: var(--navy-ink); font-size: 22px; }
.sec-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.muted { color: var(--text-2); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chips span { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--navy-soft); border-radius: var(--r-full); padding: 6px 14px; }

/* ---------- Masalah vs solusi ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pain {
  border-radius: var(--r-4); padding: 20px;
  border: 1px solid var(--edge); background: var(--surface-2);
}
.pain.bad { border-left: 5px solid var(--text-2); }
.pain.good { border-left: 5px solid var(--red); background: linear-gradient(180deg, var(--red-soft), #fff 70%); }
.pain h3 { margin: 0 0 10px; font-size: 16px; }
.pain ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.pain.good ul { color: var(--text); }
.pain li { margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps .step {
  flex: 1; text-align: center; padding: 10px 8px; border-radius: var(--r-2);
  background: var(--surface-2); border: 1px solid var(--hairline);
  color: var(--text-2); font-size: 12px; font-weight: 700;
}
.steps .step.active { background: var(--red-soft); border-color: var(--red); color: var(--red-dark); }
.steps .step.done { background: var(--success-light); border-color: var(--success); color: var(--success-ink); }

/* ---------- Fitur grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.feat {
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-4);
  padding: 22px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feat::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--navy)); }
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.feat .ico-badge {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), #35479f); color: #fff;
  box-shadow: var(--shadow);
}
.feat:nth-child(even) .ico-badge { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.feat .ico-badge svg { width: 24px; height: 24px; }
.feat b { display: block; margin-bottom: 4px; color: var(--navy-ink); }
.feat p { margin: 0; font-size: 13px; color: var(--text-2); }

/* ---------- Cara beli ---------- */
.howto { counter-reset: h; list-style: none; padding: 0; margin: 0; }
.howto li { counter-increment: h; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; align-items: flex-start; }
.howto li:last-child { border-bottom: 0; }
.howto li::before {
  content: counter(h); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px var(--glow-red);
}

/* ---------- Perbandingan ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 12px; text-align: left; border-bottom: 1px solid var(--hairline); }
.compare thead th { font-size: 13px; }
.compare thead th:last-child { color: var(--red); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--success); font-weight: 800; }
.compare .no { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--edge); border-radius: var(--r-3); margin-bottom: 8px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--red); }
.faq summary { padding: 12px 16px; font-weight: 700; cursor: pointer; font-size: 14px; color: var(--navy-ink); }
.faq details p { padding: 0 16px 14px; margin: 0; font-size: 14px; color: var(--text-2); }

/* ---------- CTA akhir ---------- */
.cta-final {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #2a3a8f);
  color: #fff; border-radius: 20px; padding: 44px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.cta-final::before {
  content: ""; position: absolute; bottom: -90px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 28px solid rgba(225, 29, 46, .3);
  animation: float 8s ease-in-out infinite reverse;
}
.cta-final h2 { color: #fff; margin: 0 0 8px; font-size: 26px; }
.cta-final p { color: #c3c9e4; margin: 0 0 20px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; color: var(--text-2); font-weight: 700; }
.field input {
  padding: 12px; border: 1px solid var(--edge); border-radius: var(--r-2);
  font-size: 16px; background: var(--surface-sunk); font-family: inherit; color: var(--text); width: 100%;
}
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); outline: none; }
.radio { display: block; margin: 6px 0; font-size: 14px; cursor: pointer; }
.radio input { accent-color: var(--red); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-2);
  border: 1px solid var(--edge); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-color: var(--red-dark); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary::after {
  /* kilau lewat saat hover */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; left: -60px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine .7s ease; }
.btn-navy { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-color: var(--navy-deep); color: #fff; }
.btn-navy:hover { filter: brightness(1.12); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.94); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Info rows ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-2); }
.kv .v { font-weight: 700; text-align: right; word-break: break-all; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* ---------- Key box ---------- */
.key {
  font-family: ui-monospace, Consolas, monospace; font-size: 19px; font-weight: 700;
  background: var(--success-light); color: var(--success-ink);
  border: 1px solid var(--success); padding: 14px; border-radius: var(--r-3);
  word-break: break-all; text-align: center; margin: 12px 0;
}
.err { color: var(--danger); margin-top: 12px; font-size: 14px; }
.ok { color: var(--success-ink); }
.spin {
  width: 34px; height: 34px; border-radius: 50%; margin: 8px auto;
  border: 3px solid var(--edge); border-top-color: var(--red);
  animation: spin 0.9s linear infinite;
}

/* ---------- Footer ---------- */
.footer { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 32px; }
.footer a { color: var(--red); font-weight: 700; }

.back { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--red); font-weight: 700; text-decoration: none; }

/* ---------- Tabel admin ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--r-2); background: var(--surface-2); }
table.tbl { width: 100%; border-collapse: collapse; background: transparent; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hairline); font-size: 13px; white-space: nowrap; }
.tbl thead th { background: var(--surface-sunk); color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(27, 42, 110, .045); }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 800; }
.pill-AWAITING { background: var(--warning-light); color: #78350f; }
.pill-PENDING { background: var(--surface-sunk); color: var(--text-2); }
.pill-PAID { background: var(--success-light); color: var(--success-ink); }
.pill-REJECTED { background: var(--danger-light); color: var(--danger-ink); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs .tab { padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--edge); background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-2); transition: all .2s; }
.tabs .tab.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 12px var(--glow-red); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input { flex: 1; min-width: 160px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--r-2); font-size: 14px; background: var(--surface-sunk); font-family: inherit; }
.toolbar input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); outline: none; }

/* ============================================================
   Animasi masuk saat scroll (diaktifkan JS via .in).
   .reveal dipakai di landing; elemen di bawahnya diberi
   --d (delay) untuk efek beruntun.
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .65s ease var(--d, 0s), transform .65s ease var(--d, 0s);
}
.hero .reveal.in { transition-duration: .8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes shine {
  to { left: 130%; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 30px 22px; }
  .hero::after { width: 190px; height: 190px; border-width: 22px; top: -50px; right: -50px; }
  .hero h1 { font-size: 26px; }
  .wrap { padding: 20px 12px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
}

/* HP kecil (360px): topbar brand + tombol + badge muat tanpa scroll
   horizontal; toolbar menumpuk penuh; modal dan tabel lebih ramping. */
@media (max-width: 480px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .badge-lifetime { display: none; }
  .hero .price, .price-card .price { font-size: 32px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .btn { width: 100%; }
  .search-wrap { min-width: 0; }
  .modal { padding: 20px; }
  .tbl th, .tbl td { padding: 8px 10px; font-size: 12px; }
  .seg-row { flex-direction: column; align-items: stretch; }
}

/* Gerak dimatikan total bagi yang sensitif (aksesibilitas). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Admin dashboard (admin.html saja)
   Profesional: ringkasan klik, toolbar filter, tabel sticky,
   modal + toast ganti alert()/confirm() native, skeleton,
   empty-state, login berlogo. Tanpa framework tambahan.
   ============================================================ */
.sess-badge {
  font-size: 12px; font-weight: 800; color: var(--success-ink);
  background: var(--success-light); border: 1px solid var(--success);
  padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap;
}
.login-card { text-align: center; }
.login-logo { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.login-card h2 { margin-bottom: 4px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; }

.wrap.dash { max-width: 1080px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 26px; color: var(--navy-ink); letter-spacing: -.01em; }
.dash-head p { margin: 4px 0 0; }
.dash-actions { display: flex; align-items: center; gap: 10px; }
.sm { font-size: 12px; }

.stats .stat-click { cursor: pointer; font: inherit; text-align: center; }
.stats .stat-click:hover { border-color: var(--red); }
.stats .stat-click b { color: var(--navy); }
.stats .stat-click:first-child b { color: var(--red); }

.seg-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tabs-sec .tab:not(.active) { background: transparent; }

.search-wrap { position: relative; flex: 1; min-width: 200px; display: flex; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.search-wrap input { flex: 1; min-width: 0; padding: 10px 36px 10px 34px; border: 1px solid var(--edge); border-radius: var(--r-2); font-size: 14px; background: var(--surface-sunk); font-family: inherit; color: var(--text); }
.search-wrap input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); outline: none; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-sunk); color: var(--text-2); font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.search-clear:hover { background: var(--edge); color: var(--text); }
.toolbar select { padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--r-2); font-size: 13px; font-weight: 700; background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer; }
.toolbar select:focus { border-color: var(--red); outline: none; }
.count { margin-left: auto; white-space: nowrap; }
.tbl-card { padding: 0; overflow: hidden; }
.tbl-card .tbl-wrap { border: 0; border-radius: 0; }
.tbl thead th { position: sticky; top: 0; z-index: 1; }
.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.tbl td.td-act { white-space: normal; min-width: 170px; }
.chip { display: inline-block; font-size: 11px; font-weight: 800; background: var(--navy-soft); color: var(--navy); border-radius: var(--r-full); padding: 2px 10px; white-space: nowrap; }
.key-inline { font-size: 12px; background: var(--success-light); border: 1px solid var(--success); border-radius: 6px; padding: 2px 8px; }
.mini-copy { border: 1px solid var(--edge); background: var(--surface); border-radius: 6px; cursor: pointer; font-size: 12px; padding: 1px 7px; color: var(--text-2); }
.mini-copy:hover { color: var(--red); border-color: var(--red); }
.tbl-foot { padding: 10px 16px; border-top: 1px solid var(--hairline); }
.pill-ACTIVE { background: var(--success-light); color: var(--success-ink); }
.pill-REVOKED { background: var(--danger-light); color: var(--danger-ink); }
.pill-EXPIRED { background: var(--surface-sunk); color: var(--text-2); }
.pill-SEMUA { background: var(--navy-soft); color: var(--navy); }
.ok { color: var(--success); font-weight: 800; }

.sk-row td { padding: 14px 12px; }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-sunk) 25%, var(--edge) 50%, var(--surface-sunk) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty b { font-size: 15px; color: var(--navy-ink); }

.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(13, 20, 64, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-5); padding: 26px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 8px; color: var(--navy-ink); font-size: 18px; }
.modal p { margin: 0 0 12px; }
.modal-key { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 40px)); }
.toast { background: var(--navy-ink); color: #fff; border-radius: var(--r-3); padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.toast-ok { background: var(--success-ink); }
.toast-err { background: var(--danger-ink); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px) {
  .dash-head h1 { font-size: 21px; }
  .seg-row { flex-direction: column; align-items: stretch; }
  .toolbar .count { margin-left: 0; }
  .tbl td.td-act { min-width: 150px; }
  .toast-wrap { left: 12px; right: 12px; max-width: none; }
}
