/* ==========================================================================
   HELGA JOKI — Design tokens
   Palette: cool light surface, indigo primary (trust + energy),
   gold accent used sparingly for "achievement/rank" moments.
   Type: Sora (display) + Plus Jakarta Sans (body) + JetBrains Mono (data)
   Signature element: the rank-ladder motif (see .ladder / .rank-step)
   ========================================================================== */

:root {
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1FA;
  --ink: #10142B;
  --ink-soft: #3A3F58;
  --muted: #6B7280;
  --border: #E4E7F0;

  --primary: #3653F5;
  --primary-dark: #1E35B0;
  --primary-tint: #EAEDFE;
  --gold: #F0A93B;
  --gold-tint: #FDF2DF;
  --success: #1FA97D;
  --success-tint: #E7F7F1;
  --danger: #E5484D;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 20, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 20, 43, 0.12);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.accent { color: var(--primary); }
.gold-text { color: var(--gold); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.promo-bar b { color: var(--gold); }
.promo-bar span#countdown-timer {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(246, 247, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  white-space: nowrap;
}
.logo .accent { color: var(--primary); }
.logo .dot { color: var(--gold); }

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.search-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
}
.search-wrapper input:focus { border-color: var(--primary); }
.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); border-color: var(--primary); }

.btn-status-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
}
.btn-status-nav:hover { background: #dfe4fd; }

@media (max-width: 860px) {
  .search-wrapper { display: none; }
  .navbar { padding: 12px 18px; }
  .nav-menu { gap: 12px; }
  .nav-link span.long { display: none; }
}

/* ---------- Buttons ---------- */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(54, 83, 245, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(54, 83, 245, 0.34); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1FA97D;
  color: #fff;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}
.btn-wa:hover { background: #178e69; }

/* ==========================================================================
   HERO — signature "rank ladder" motif
   ========================================================================== */
.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow i { color: var(--gold); }

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 18px 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-trust .t-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-trust .t-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* The ladder */
.ladder-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.ladder {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}
.rank-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transform: translateX(calc(var(--i) * 14px));
}
.rank-step .r-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.9rem;
}
.rank-step .r-name { font-weight: 700; font-size: 0.88rem; }
.rank-step .r-sub { font-size: 0.72rem; color: var(--muted); }
.rank-step.top {
  background: linear-gradient(135deg, var(--primary), #5A72FF);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(54,83,245,0.32);
}
.rank-step.top .r-icon { background: rgba(255,255,255,0.2); color: var(--gold); }
.rank-step.top .r-name, .rank-step.top .r-sub { color: #fff; }
.rank-step.top .r-sub { opacity: 0.85; }

.ladder-badge {
  position: absolute;
  top: -14px;
  right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 42px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-header p { color: var(--muted); max-width: 50ch; margin: 10px auto 0; }

/* ---------- Feature / why-us cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.feature-card .f-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Game category grid (index) ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.game-card .g-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
}
.game-card h4 { font-size: 1rem; margin-bottom: 4px; }
.game-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---------- How it works ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps-row { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-left: 4px; }
.step-num-big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-tint);
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 6px;
  display: block;
}
.step-card h4 { font-size: 1.02rem; }
.step-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.testi-card .stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 10px; }
.testi-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 14px; }
.testi-user { display: flex; align-items: center; gap: 10px; }
.testi-user img { width: 34px; height: 34px; border-radius: 50%; }
.testi-user h5 { margin: 0; font-size: 0.85rem; }
.testi-user span { font-size: 0.74rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink), #262c4d);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 46ch; margin: 10px auto 26px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
footer h3 { font-family: var(--font-display); color: var(--ink); }

/* ==========================================================================
   ETALASE / CATALOG PAGE
   ========================================================================== */
.etalase-section { padding-top: 30px; }
.container-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
  align-items: start;
}
@media (max-width: 960px) { .container-grid { grid-template-columns: 1fr; } }

.section-title { font-size: 1.6rem; margin-bottom: 18px; }

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.cat-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.card-img-placeholder {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.prod-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 8px; }
.prod-price { font-family: var(--font-mono); font-weight: 700; color: var(--primary-dark); font-size: 0.95rem; }
.coret-price { text-decoration: line-through; color: var(--muted); font-size: 0.78rem; margin-right: 8px; }

/* Help column */
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.help-card h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.step-list { list-style: none; padding: 0; margin: 16px 0 0; }
.step-list li { display: flex; gap: 12px; margin-bottom: 18px; }
.step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 43, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.close-btn {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
}
.close-btn:hover { color: var(--ink); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-right: 20px; }
.modal-header h2 { font-size: 1.2rem; }
.badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--success-tint);
  color: var(--success);
}
.price-box {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}
.price-box h3 { font-family: var(--font-mono); }
.btn-pay {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-pay:hover { background: var(--primary-dark); }

.joki-list { display: flex; flex-direction: column; gap: 12px; }
.joki-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.jp-info h4 { font-size: 0.92rem; margin-bottom: 4px; }
.jp-info p { font-size: 0.78rem; color: var(--muted); margin: 0 0 8px; }
.jp-price { font-family: var(--font-mono); font-weight: 700; color: var(--primary-dark); }
.btn-pick-package {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.btn-pick-package:hover { background: var(--primary); }

/* ==========================================================================
   CHECKOUT / PAYMENT / REDEEM / HISTORY / SUCCESS
   ========================================================================== */
.simple-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}
.checkout-container {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.checkout-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.header-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.checkout-header h1 { font-size: 1.2rem; margin-bottom: 2px; }
.checkout-header p { font-size: 0.84rem; color: var(--muted); margin: 0; }

.order-summary-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 16px;
}
.product-icon-box {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.item-details .label { font-size: 0.72rem; color: var(--muted); }
.item-details h2 { font-size: 0.98rem; margin: 2px 0; }
.item-price h2 { font-family: var(--font-mono); font-size: 1.1rem; color: var(--primary-dark); margin: 0; }

.warn-box {
  background: var(--gold-tint);
  border: 1px solid #F3D9A6;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.82rem;
  color: #8A6416;
  line-height: 1.5;
}

.qr-frame {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.qr-frame img { width: 200px; height: 200px; object-fit: contain; }

.transfer-card {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}
.transfer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.transfer-row .label { font-size: 0.78rem; color: var(--muted); }
.transfer-number {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 4px 0 2px;
}
.transfer-name { font-size: 0.8rem; color: var(--ink-soft); }
.btn-copy {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.btn-copy:hover { background: var(--primary); }
@media (max-width: 380px) {
  .transfer-row { flex-direction: column; align-items: flex-start; }
  .btn-copy { width: 100%; justify-content: center; }
}

.btn-confirm {
  width: 100%;
  background: #1FA97D;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.btn-confirm:hover { background: #178e69; }

.divider-text {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.78rem;
  margin: 22px 0;
}
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.field-wrap { position: relative; margin-bottom: 6px; }
.field-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.field-wrap input:focus { border-color: var(--primary); }
.field-wrap i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}
.field-error {
  color: var(--danger);
  font-size: 0.84rem;
  margin: 10px 0 0;
  display: none;
  align-items: center;
  gap: 6px;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
}
.status-row { display: flex; justify-content: space-between; font-size: 0.86rem; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.status-row:last-child { border-bottom: none; }
.status-row .k { color: var(--muted); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.status-pill.progress { background: var(--gold-tint); color: #8A6416; }
.status-pill.done { background: var(--success-tint); color: var(--success); }
.status-pill.waiting { background: var(--surface-2); color: var(--muted); }

.history-list-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.history-list-item .h-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--success-tint); color: var(--success);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.history-list-item h4 { font-size: 0.9rem; margin: 0 0 2px; }
.history-list-item span { font-size: 0.74rem; color: var(--muted); }
.empty-state { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: var(--border); margin-bottom: 10px; }

.success-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 22px;
}

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; color: var(--muted); margin-top: 18px;
}
.back-link:hover { color: var(--primary); }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }