/* xB-Radio — dark music-bot landing (inspired by modern bots like Miko Radio) */
:root {
  --bg: #07070c;
  --bg2: #0e0e16;
  --card: rgba(18, 18, 28, 0.72);
  --ink: #f4f4f8;
  --muted: #9b9bb0;
  --line: rgba(255, 255, 255, 0.08);
  --violet: #7c5cff;
  --violet2: #a78bfa;
  --cyan: #22d3ee;
  --blurple: #5865f2;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --radius: 20px;
  --radius-sm: 14px;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: kolom penuh tinggi viewport, footer di ujung bawah */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background ikut tinggi halaman (bukan fixed) biar gak “nempel/ikut” saat scroll */
.mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(7, 7, 12, 0.72) 0%, rgba(7, 7, 12, 0.88) 55%, rgba(7, 7, 12, 0.94) 100%),
    radial-gradient(900px 520px at 12% -8%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(700px 480px at 92% 8%, rgba(34, 211, 238, 0.1), transparent 50%),
    url("/static/img/bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.topbar,
.main,
.footer {
  position: relative;
  z-index: 1;
}
/* Layout utama — flex:1 biar footer selalu di bawah (halaman pendek) */
.main {
  flex: 1 0 auto;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* ── Topbar (rapi: logo | links | 1 CTA + icon) ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 7, 12, 0.82);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 0;
  flex-shrink: 0;
}
.brand-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}
.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.98rem;
}
.topbar-right {
  display: flex;
  align-items: center; /* sejajar vertikal: tip + bendera + avatar */
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  height: 40px;
}
/* Satu tombol tip di kanan — tinggi sama icon 36px */
.topbar-cta {
  flex-shrink: 0;
  white-space: nowrap;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 0.95rem !important;
  font-size: 0.84rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box;
}
.nav-mobile-only { display: none !important; }
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 0.12s ease, background 0.12s ease;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
/* Invite = teks link, bukan tombol warna */
.nav-invite {
  color: var(--violet2);
}
.nav-invite:hover {
  color: #fff;
  background: rgba(124, 92, 255, 0.14);
}

/* User avatar — style sama seperti bendera (bulat, border tipis, hover soft) */
.user-dd {
  position: relative;
  z-index: 60;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.user-dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  line-height: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.user-dd-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.user-dd-av {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.user-dd-name { display: none; }
.user-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  min-width: 13rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 22, 0.98);
  box-shadow: var(--shadow);
  z-index: 70;
}
.user-dd-menu li { margin: 0; }
.user-dd-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem 0.6rem;
}
.user-dd-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-dd-head strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dd-head .muted { display: block; }
.user-dd-sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.15rem 0.4rem 0.35rem;
}
.user-dd-item {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.user-dd-item:hover {
  background: rgba(124, 92, 255, 0.15);
}
.user-dd-logout { color: var(--red); }
.user-dd-logout:hover {
  background: rgba(248, 113, 113, 0.12);
}

/* CSS flags (Windows-safe, no emoji) */
.flag {
  display: inline-block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  vertical-align: middle;
}
/* Indonesia: red over white */
.flag-id {
  background: linear-gradient(to bottom, #e70011 0 50%, #ffffff 50% 100%);
}
/* UK simplified (CSS only — works on Windows) */
.flag-gb {
  background:
    linear-gradient(#c8102e 0 0) center/100% 22% no-repeat,
    linear-gradient(#c8102e 0 0) center/22% 100% no-repeat,
    linear-gradient(#fff 0 0) center/100% 34% no-repeat,
    linear-gradient(#fff 0 0) center/34% 100% no-repeat,
    #012169;
}

/* Language = bendera saja (kecil) */
.lang-dd {
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}
.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  line-height: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.lang-dd-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.lang-dd-btn .flag {
  width: 18px;
  height: 13px;
}
.lang-code { display: none; }
.lang-caret { display: none; }
.lang-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  min-width: 9.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 22, 0.98);
  box-shadow: var(--shadow);
}
.lang-dd-menu li { margin: 0; }
.lang-dd-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.6rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-dd-item:hover {
  background: rgba(124, 92, 255, 0.15);
}
.lang-dd-item.active {
  background: rgba(124, 92, 255, 0.22);
  color: #fff;
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  width: 38px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop */
@media (min-width: 861px) {
  .nav-burger { display: none !important; }
  .nav-mobile-only { display: none !important; }
}

/* Tablet kecil: links tetap, rapat */
@media (max-width: 980px) and (min-width: 861px) {
  .nav-link { padding: 0.35rem 0.55rem; font-size: 0.84rem; }
  .brand-text { max-width: 7.5rem; }
}

/* Mobile: logo + tip + icon + burger */
@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
  }
  .brand-text { max-width: 38vw; font-size: 0.9rem; }
  .nav-burger { display: inline-flex; }
  .topbar-cta { display: none !important; }
  .nav-mobile-only { display: inline-flex !important; width: 100%; justify-content: center; }
  .nav {
    display: none;
    width: 100%;
    order: 10;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.5rem 0 0.2rem;
    border-top: 1px solid var(--line);
    margin-top: 0.2rem;
    justify-content: flex-start;
  }
  .nav.is-open { display: flex; }
  .nav-link {
    padding: 0.72rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .nav .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }
  .main {
    width: min(1080px, calc(100% - 1.1rem));
    padding: 1rem 0 2.5rem;
    gap: 1.75rem;
  }
  .hero-miko h1 {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
  }
  .hero-actions {
    gap: 0.5rem;
  }
  .hero-actions .btn-lg {
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
  }
  .hero-stats {
    gap: 1rem;
  }
  .hero-stats strong { font-size: 1.2rem; }
  .feature-grid {
    grid-template-columns: 1fr !important;
  }
  .steps-miko {
    grid-template-columns: 1fr !important;
  }
  .tip-panel {
    padding: 1.15rem 1rem;
  }
  .tip-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .lb-split { padding: 1.1rem 0.95rem; }
  .lb-split-grid {
    grid-template-columns: 1fr !important;
  }
  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.7rem);
  }
  .cta-banner {
    padding: 1.6rem 1rem;
  }
  .pay-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .brand-text { font-size: 0.88rem; }
  .lang-code { display: none; }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }
}

/* ── Scroll / load reveal (halus, 1–1 — bukan clone Luna) ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 75ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-soft {
  transform: translateY(10px);
}
.reveal-scale {
  transform: translateY(12px) scale(0.97);
}
.reveal-scale.is-in {
  transform: translateY(0) scale(1);
}
/* Hero: sedikit lebih cepat di load */
.hero-miko .reveal {
  transition-duration: 0.65s;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .msg-ticker-track,
  .hero-orb,
  .live-dot,
  .dot.pulse {
    animation: none !important;
  }
  .mesh {
    background-attachment: scroll, scroll, scroll, scroll;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* History */
/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2rem;
}
.legal-page .page-hero-title { margin-bottom: 0.35rem; }
.legal-updated { margin: 0 0 1rem; }
.legal-intro {
  color: var(--muted);
  margin: 0 0 1.4rem;
  line-height: 1.6;
}
.legal-block {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.legal-block:last-of-type { border-bottom: none; }
.legal-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.legal-links { margin: 1.25rem 0 0; }
.legal-links a,
.footer-legal a {
  color: var(--violet2);
  text-decoration: none;
  font-weight: 600;
}
.legal-links a:hover,
.footer-legal a:hover { text-decoration: underline; }
.footer-legal { margin-top: 0.45rem !important; }

/* Riwayat tip — grid 3 kolom, max 9 / halaman */
.history-wrap { width: 100%; }
.history-card { padding: 1rem 1.1rem 1.15rem; }
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.history-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 22, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  min-height: 0;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.history-tile:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.history-tile.status-paid {
  border-color: rgba(52, 211, 153, 0.26);
  background:
    linear-gradient(160deg, rgba(52, 211, 153, 0.08), transparent 50%),
    rgba(14, 14, 22, 0.78);
}
.history-tile.status-pending {
  border-color: rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(160deg, rgba(251, 191, 36, 0.08), transparent 50%),
    rgba(14, 14, 22, 0.78);
}
.history-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.history-date {
  white-space: nowrap;
  font-size: 0.75rem !important;
}
.history-amount {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.history-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.15rem;
}
.history-tip-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet2);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.18);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}
.btn-xs {
  padding: 0.28rem 0.55rem !important;
  font-size: 0.75rem !important;
  border-radius: 999px !important;
}
.history-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.history-badge-paid {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}
.history-badge-pending {
  color: var(--yellow);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}
.history-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.history-pager-info { font-weight: 600; }
@media (max-width: 860px) {
  .history-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .history-grid { grid-template-columns: 1fr; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.84rem; }
.btn-lg { padding: 0.9rem 1.35rem; font-size: 1rem; }
.btn-block { width: 100%; border-radius: 14px; }
.btn-discord {
  background: var(--blurple);
  color: #fff;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.35);
}
.btn-tip {
  background: linear-gradient(135deg, var(--violet), #5b21b6);
  color: #fff;
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.35);
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), #5b21b6);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ── Hero Miko-style ── */
.hero-miko {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
}
@media (max-width: 860px) {
  .hero-miko { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet2);
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
}
.hero-miko h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
}
.grad {
  background: linear-gradient(105deg, var(--violet2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-stats span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  filter: blur(8px);
  animation: pulse-orb 4s ease-in-out infinite;
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-mascot {
  position: relative;
  width: min(280px, 70vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  z-index: 1;
}
.float-card {
  position: absolute;
  bottom: 12%;
  left: 4%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 14, 22, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: blink 1.4s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Sections ── */
.section { scroll-margin-top: 5rem; }
.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet2);
}
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.15;
}
.section-sub {
  margin: 0 0 1.4rem;
  max-width: 36rem;
}
.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.link-more {
  color: var(--violet2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.empty { padding: 0.75rem 0; }

/* Cards / features */
.card {
  background: rgba(14, 14, 22, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.1rem;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.06);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.45rem; margin-bottom: 0.5rem; }
.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Steps */
.steps-miko {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .steps-miko { grid-template-columns: 1fr; } }
.steps-miko li {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), #4c1d95);
  color: #fff;
  flex-shrink: 0;
}
.steps-miko h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.steps-miko p { margin: 0; font-size: 0.9rem; }

/* Commands */
.cmd-grid { display: flex; flex-direction: column; gap: 0.45rem; }
.cmd-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.cmd-grid-pretty .cmd-row:hover {
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.08);
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .cmd-row { grid-template-columns: 1fr; gap: 0.35rem; }
}
.cmd-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.cmd-slash {
  color: var(--violet2);
  font-weight: 800;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.95rem;
  opacity: 0.85;
}
.cmd-name {
  font-weight: 700;
  color: var(--violet2);
  background: rgba(124, 92, 255, 0.14);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid rgba(124, 92, 255, 0.18);
}
.cmd-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.cmd-full .cmd-row:nth-child(odd) { background: rgba(255,255,255,0.035); }
.cmd-page-card { padding: 1.15rem 1.15rem 1.25rem; }
.cmd-notes-card { margin-top: 0; }
.cmd-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 800px) {
  .cmd-tips-grid { grid-template-columns: 1fr; }
}
.cmd-tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.cmd-tip p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.cmd-tip-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, var(--violet), #4c1d95);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.3);
}

/* Page hero (commands / leaderboard) */
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}
.page-hero-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.page-hero-sub {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
}
.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-block-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
}
.pill-soft {
  background: rgba(124, 92, 255, 0.12);
  color: var(--violet2);
  border-color: rgba(124, 92, 255, 0.22);
}
.pill-xs {
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
}
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Tip panel — scroll normal, TIDAK sticky/fixed (biar gak “ngikut” ke atas) */
.tip-panel,
.tip-panel-grid,
.tip-board,
.tip-board .section-row {
  position: static;
  top: auto;
  bottom: auto;
  transform: none;
}
.tip-panel {
  z-index: 1;
  overflow: hidden;
  /* solid-ish (tanpa backdrop-filter) — blur + fixed bg sering bikin panel “nempel” */
  background:
    linear-gradient(135deg, rgba(28, 22, 48, 0.92), rgba(14, 18, 28, 0.94)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.tip-panel-top { margin-bottom: 1.25rem; }
.tip-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) { .tip-panel-grid { grid-template-columns: 1fr; } }
.tip-board {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.tip-board h3 { margin: 0; font-size: 1rem; }

/* Leaderboard split: kiri rank · kanan pesan — tinggi sama */
.lb-split { padding: 1.4rem 1.35rem 1.5rem; }
.lb-page-card {
  background:
    linear-gradient(160deg, rgba(28, 22, 48, 0.55), transparent 42%),
    rgba(14, 14, 22, 0.82);
  border: 1px solid rgba(124, 92, 255, 0.16);
}
.lb-split-grid,
.home-tip-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
@media (max-width: 800px) {
  .lb-split-grid,
  .home-tip-split { grid-template-columns: 1fr; }
}
.lb-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lb-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.lb-col-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.lb-msg-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.lb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
  min-height: 200px;
}
.lb-empty-sm {
  min-height: 160px;
  flex: 1;
}
.lb-empty-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: grayscale(0.15);
}
.lb-empty p { margin: 0; max-width: 16rem; }
.lb-podium-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.rank-1 .lb-podium-tag {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
}
.rank-2 .lb-podium-tag {
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.28);
  background: rgba(203, 213, 225, 0.08);
}
.rank-3 .lb-podium-tag {
  color: #fdba74;
  border-color: rgba(253, 186, 116, 0.3);
  background: rgba(253, 186, 116, 0.1);
}
.msg-ticker-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  flex-shrink: 0;
}
.lb-list.lb-full {
  flex: 1;
}
.lb-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.lb-pager-info { font-weight: 600; }

/* Vertical message ticker — isi penuh tinggi kolom (sejajar top 10) */
.msg-ticker {
  position: relative;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.msg-ticker-sm {
  min-height: 200px;
  max-height: 240px;
}
.msg-ticker-track {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  animation: msg-scroll-down 28s linear infinite;
}
.msg-ticker:hover .msg-ticker-track {
  animation-play-state: paused;
}
.msg-ticker-static {
  mask-image: none;
  -webkit-mask-image: none;
  overflow-y: auto;
}
.msg-ticker-static .msg-ticker-track {
  animation: none;
}
@keyframes msg-scroll-down {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.msg-ticker-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.msg-ticker-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.msg-ticker-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}
.msg-ticker-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  font-style: italic;
}

/* Leaderboard */
.lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lb-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.lb-full .lb-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}
.lb-row.rank-1 {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.02));
  border-color: rgba(251, 191, 36, 0.32);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.08);
}
.lb-row.rank-2 {
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.12), transparent);
  border-color: rgba(203, 213, 225, 0.28);
}
.lb-row.rank-3 {
  background: linear-gradient(90deg, rgba(253, 186, 116, 0.12), transparent);
  border-color: rgba(253, 186, 116, 0.28);
}
.lb-rank {
  font-weight: 800;
  color: var(--muted);
  min-width: 1.85rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1;
}
.rank-1 .lb-rank,
.rank-2 .lb-rank,
.rank-3 .lb-rank { font-size: 1.2rem; }
.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.lb-full .lb-avatar { width: 44px; height: 44px; }
.rank-1 .lb-avatar { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45); }
.rank-2 .lb-avatar { box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.4); }
.rank-3 .lb-avatar { box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.4); }
.lb-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
}
.lb-meta { display: flex; flex-direction: column; min-width: 0; }
.lb-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-total { font-weight: 800; color: var(--green); white-space: nowrap; font-size: 0.95rem; }
.lb-full .lb-row {
  grid-template-columns: auto auto 1fr auto;
}
.lb-pager {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(124, 92, 255, 0.25), transparent 70%),
    rgba(18, 18, 28, 0.6);
}
.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}
.cta-banner .hero-actions { justify-content: center; margin-top: 1.1rem; margin-bottom: 0; }

/* Forms / pay (kept) */
.user-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  margin-bottom: 1.15rem;
}
.user-bar-av { border-radius: 50%; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span:first-child { font-weight: 600; font-size: 0.9rem; }
.field input[type="text"],
.field textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.char-hint { align-self: flex-end; font-size: 0.8rem; color: var(--muted); }
.amount-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 0.5rem;
}
.step-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.step-btn:hover { background: rgba(124, 92, 255, 0.2); }
.amount-mid {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
}
.amount-mid em { font-style: normal; color: var(--muted); font-weight: 700; }
.amount-mid input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.75rem 0 !important;
  width: 100%;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover, .chip.active {
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.18);
}
.form-error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0;
  font-size: 0.92rem;
}
.banner {
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.banner-demo {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--yellow);
}
.banner-ok {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 700px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-qr-wrap { text-align: center; }
.pay-qr {
  width: min(280px, 100%);
  height: auto;
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
  margin: 0 auto;
  display: block;
}
.pay-qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto;
  font-weight: 800;
  font-size: 1.5rem;
  color: #333;
  letter-spacing: 0.1em;
  background: #fff;
  border-radius: 16px;
}

/* QR expired: abu + silang + stamp EXPIRED */
.pay-qr-expired {
  position: relative;
  width: min(280px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}
.pay-qr-expired .pay-qr,
.pay-qr-expired .pay-qr-placeholder {
  width: 100%;
  margin: 0;
  filter: grayscale(1) brightness(0.72);
  opacity: 0.55;
}
.pay-qr-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.12);
}
.pay-qr-stamp::before,
.pay-qr-stamp::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 4px;
  background: #ed4245;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.pay-qr-stamp::before { transform: rotate(28deg); }
.pay-qr-stamp::after { transform: rotate(-28deg); }
.pay-qr-stamp span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  letter-spacing: 0.18em;
  color: #ed4245;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #ed4245;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  transform: rotate(-12deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pay-info { display: flex; flex-direction: column; gap: 0.75rem; }
.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.pay-row span { color: var(--muted); }
.pay-amount { font-size: 1.35rem; color: var(--green); }
.pay-msg {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--violet);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}
/* Status bayar — kartu cantik: waiting + timer */
.pay-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(22, 18, 36, 0.95), rgba(12, 14, 24, 0.92));
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}
.pay-status::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: pay-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pay-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.pay-status-orb {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.pay-status-orb-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet2);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.25), 0 0 18px rgba(167, 139, 250, 0.55);
  animation: pay-orb-pulse 1.4s ease-in-out infinite;
  z-index: 1;
}
.pay-status-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.45);
  animation: pay-orb-ring 1.6s ease-out infinite;
}
@keyframes pay-orb-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.75; }
}
@keyframes pay-orb-ring {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 0; }
}
.pay-status-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}
.pay-status-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}
.pay-status-sep {
  color: rgba(167, 139, 250, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
  line-height: 1;
}
.pay-status-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}
.pay-status-timer-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
}
.pay-status-timer-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #e9d5ff;
  min-width: 2.4rem;
  text-align: left;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.pay-status.ok {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(52, 211, 153, 0.2), transparent 55%),
    linear-gradient(145deg, rgba(14, 28, 24, 0.95), rgba(12, 18, 16, 0.92));
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--green);
}
.pay-status.ok .pay-status-orb-core {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22), 0 0 18px rgba(52, 211, 153, 0.45);
  animation: none;
}
.pay-status.ok .pay-status-orb-ring { display: none; }
.pay-status.ok .pay-status-label { color: #a7f3d0; }
.pay-status.ok .pay-status-timer {
  border-color: rgba(52, 211, 153, 0.3);
}
.pay-status.ok .pay-status-timer-val { color: #6ee7b7; }
.pay-status.err {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(248, 113, 113, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(32, 16, 18, 0.95), rgba(18, 12, 14, 0.92));
  border-color: rgba(248, 113, 113, 0.35);
}
.pay-status.err .pay-status-orb-core {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2), 0 0 16px rgba(248, 113, 113, 0.4);
  animation: none;
}
.pay-status.err .pay-status-orb-ring { display: none; }
.pay-status.err .pay-status-label { color: #fecaca; }
.pay-status.err .pay-status-timer {
  border-color: rgba(248, 113, 113, 0.3);
}
.pay-status.err .pay-status-timer-val { color: #fca5a5; }
.pay-status.err::after,
.pay-status.ok::after { animation: none; opacity: 0; }
.pay-code-line { margin: 0.25rem 0 0; }
@media (prefers-reduced-motion: reduce) {
  .pay-status::after,
  .pay-status-orb-core,
  .pay-status-orb-ring { animation: none !important; }
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet2);
  display: inline-block;
}
.dot.pulse { animation: pulse 1.2s ease infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.success-card { padding: 2.5rem 1.5rem; }
.success-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.tips-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.tips-list li { margin: 0.45rem 0; }
.tips-list code {
  color: var(--violet2);
  background: rgba(124, 92, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.footer {
  flex: 0 0 auto;
  margin-top: auto; /* dorong ke bawah kalau konten pendek */
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 12, 0.92);
  position: relative;
  z-index: 2;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.footer-brand img { border-radius: 8px; width: 28px; height: 28px; object-fit: cover; }
.footer p { margin: 0.2rem 0; }
.footer a { color: var(--violet2); text-decoration: none; }

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
h1 { margin: 0 0 0.45rem; letter-spacing: -0.03em; }
h2 { margin: 0; letter-spacing: -0.02em; }
.lead { color: var(--muted); margin: 0 0 1rem; }
