/* =====================================================================
   TIKETRADAR × CIREBON RUN 10K — Design System (style.css)
   Mobile-first · Android & iPhone ready (safe-area, 16px input, 44px tap)
   ===================================================================== */

:root {
  --navy-950: #071224;
  --navy-900: #0A1A33;
  --navy-800: #0F2444;
  --navy-700: #16325C;
  --navy-600: #1E4276;
  --teal-400: #2BD4CE;
  --teal-500: #14B8B4;
  --teal-600: #0E9694;
  --teal-050: #E8FAF9;
  --blue-500: #2B6FE3;
  --amber-500: #F59E0B;
  --amber-050: #FEF4E2;
  --green-500: #10B981;
  --green-050: #E7F8F0;
  --red-500: #EF4444;
  --red-050: #FDEDED;
  --ink: #101B2D;
  --muted: #5B6B84;
  --line: #E4EAF3;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --grad-brand: linear-gradient(135deg, #14B8B4 0%, #2B6FE3 100%);
  --grad-navy: linear-gradient(160deg, #0F2444 0%, #0A1A33 60%, #071224 100%);
  --sh-sm: 0 1px 2px rgba(16, 27, 45, .06), 0 1px 3px rgba(16, 27, 45, .08);
  --sh-md: 0 4px 14px rgba(16, 27, 45, .08), 0 2px 4px rgba(16, 27, 45, .05);
  --sh-lg: 0 18px 44px -14px rgba(10, 26, 51, .22);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px;
  --nav-h: 62px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------ reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 15.5px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

main { min-height: 60vh; }

/* --------------------------------------------------------- navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
  padding-top: env(safe-area-inset-top);
}
.navbar.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -12px rgba(10, 26, 51, .25); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; }
.brand img { height: 34px; width: auto; }
@media (min-width: 768px) { .brand img { height: 40px; } }

.menu-btn {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: var(--sh-sm);
  transition: background .2s, transform .15s;
}
.menu-btn:active { transform: scale(.94); }
.menu-btn .bar { display: block; width: 20px; height: 2.2px; border-radius: 2px; background: var(--navy-800); transition: transform .28s, opacity .2s; }
.menu-btn.active .bar:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
.menu-btn.active .bar:nth-child(2) { opacity: 0; }
.menu-btn.active .bar:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }

/* drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(7, 18, 36, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0;
  width: min(330px, 86vw);
  background: #fff; box-shadow: -18px 0 50px rgba(7, 18, 36, .28);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.32, .72, .24, 1);
  display: flex; flex-direction: column;
  padding-top: calc(env(safe-area-inset-top) + 10px);
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior: contain;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 34px; }
.drawer-close { width: 40px; height: 40px; border: none; background: var(--bg); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.drawer-nav { padding: 14px 12px; display: grid; gap: 4px; overflow-y: auto; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px;
  border-radius: 12px; font-weight: 600; color: var(--ink); font-size: 15px;
  transition: background .18s, color .18s;
}
.drawer-nav a .ic { color: var(--teal-600); width: 21px; height: 21px; }
.drawer-nav a:active, .drawer-nav a:hover { background: var(--teal-050); }
.drawer-nav a.current { background: var(--navy-800); color: #fff; }
.drawer-nav a.current .ic { color: var(--teal-400); }
.drawer-foot { margin-top: auto; padding: 14px 18px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.drawer-foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800); }
.drawer-foot .ic { width: 17px; height: 17px; color: var(--teal-600); }

/* --------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border: none; border-radius: 14px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; color: #fff;
  background: var(--grad-brand); background-size: 150% 150%;
  box-shadow: 0 10px 22px -10px rgba(20, 184, 180, .55);
  transition: transform .16s, box-shadow .2s, filter .2s; user-select: none;
}
.btn .ic { width: 19px; height: 19px; }
.btn:hover { filter: brightness(1.05); box-shadow: 0 14px 26px -10px rgba(20, 184, 180, .6); }
.btn:active { transform: scale(.965); }
.btn[disabled], .btn.is-disabled { background: linear-gradient(135deg, #B9C4D4, #9FADC2); box-shadow: none; cursor: not-allowed; }
.btn-navy { background: var(--navy-800); box-shadow: 0 10px 22px -12px rgba(15, 36, 68, .6); }
.btn-navy:hover { box-shadow: 0 14px 26px -12px rgba(15, 36, 68, .65); }
.btn-ghost { background: #fff; color: var(--navy-800); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: #C9D4E4; }
.btn-glass { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 16px; }

/* ---------------------------------------------------------- badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.badge-soon { background: var(--amber-050); color: #B45309; border: 1px solid #F8DDB4; }
.badge-open { background: var(--green-050); color: #047857; border: 1px solid #A9E8CE; }
.badge-eb { background: var(--amber-050); color: #B45309; }
.badge-normal { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-cat { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge-teal { background: var(--teal-050); color: var(--teal-600); }
.badge-navy { background: var(--navy-800); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); color: #EAF2FB;
  font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chip .ic { width: 16px; height: 16px; color: var(--teal-400); }
.chip-light { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--sh-sm); }
.chip-light .ic { color: var(--teal-600); }

/* ---------------------------------------------------------- hero ----- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 85% -12%, rgba(20, 184, 180, .28), transparent 70%),
    radial-gradient(660px 360px at 0% 112%, rgba(43, 111, 227, .20), transparent 70%),
    linear-gradient(160deg, #10294E 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: calc(env(safe-area-inset-top) + 40px) 0 32px; }
@media (min-width: 768px) { .hero-inner { padding-top: 56px; padding-bottom: 46px; } }

/* util aksesibilitas: teks untuk screen reader tanpa tampil visual */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* status panel (countdown) */
.status-panel {
  position: relative; z-index: 3; margin: 26px 0 0;
  background: rgba(10, 26, 51, .62); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); padding: 18px 16px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg);
}
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.status-label { color: #C7D5EA; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.status-label .ic { width: 17px; height: 17px; color: var(--teal-400); }
.cd { display: flex; gap: 8px; }
.cd.is-hidden { display: none; }
.cd-box {
  flex: 1; min-width: 0; max-width: 96px;
  background: linear-gradient(180deg, #16325C, #0F2444);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px; padding: 9px 4px 7px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.cd-num { display: block; color: #fff; font-size: clamp(20px, 5.6vw, 28px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-lab { display: block; margin-top: 3px; color: #8FA5C4; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 768px) { .cd { gap: 12px; } .cd-box { padding: 12px 6px 10px; } }

.status-note { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #9FB3D0; font-size: 12.5px; }
.status-note .ic { width: 15px; height: 15px; flex: none; }
.status-note b { color: #4FE3DE; }

/* hero simple — hanya poster resmi + dua tombol (tanpa teks) */
.hero-solo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-poster { margin: 0; max-width: 330px; width: 100%; position: relative; }
@media (min-width: 768px) { .hero-poster { max-width: 400px; } }
.hero-poster img { width: 100%; display: block; border-radius: 18px; box-shadow: 0 34px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .14); }
.hero-poster::after { content: ''; position: absolute; inset: -16px; background: radial-gradient(62% 55% at 68% 28%, rgba(20, 184, 180, .30), transparent 72%); z-index: -1; filter: blur(8px); pointer-events: none; }
.hero-actions { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; width: 100%; max-width: 330px; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; justify-content: center; width: auto; max-width: none; } }
.hero-actions .btn { min-width: 212px; }

/* ------------------------------------------------------- sections ---- */
.section { padding: 44px 0; }
@media (min-width: 768px) { .section { padding: 58px 0; } }
.section-head { margin-bottom: 22px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-600); font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.kicker::before { content: ''; width: 22px; height: 2.5px; border-radius: 2px; background: var(--grad-brand); }
.section-head h2 { font-size: clamp(21px, 5.4vw, 30px); font-weight: 800; color: var(--navy-900); }
.section-head .sub { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 14.5px; }

/* --------------------------------------------------- kartu tiket ----- */
.ticket-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .ticket-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.ticket-card {
  position: relative; background: var(--card); border-radius: var(--r-md);
  border: 1.5px solid var(--line); box-shadow: var(--sh-md);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.ticket-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-brand); opacity: 0; transition: opacity .25s;
}
.ticket-card.selected { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20, 184, 180, .16), var(--sh-md); }
.ticket-card.selected::before { opacity: 1; }
@media (hover: hover) { .ticket-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); } }
.ticket-card.is-featured { border-color: rgba(20, 184, 180, .5); }

.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tc-name { font-size: 17px; font-weight: 800; color: var(--navy-900); }
.tc-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tc-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tc-price .now { font-size: 22px; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.tc-price .strike { color: #9AA9BF; text-decoration: line-through; font-size: 13px; font-weight: 600; }
.tc-save { display: inline-flex; align-self: flex-start; background: var(--green-050); color: #047857; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.tc-req {
  display: flex; gap: 9px; background: var(--bg); border: 1px dashed #D5DEEC;
  padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.tc-req .ic { width: 16px; height: 16px; color: var(--amber-500); margin-top: 2px; }
.tc-foot { margin-top: auto; display: grid; gap: 10px; }
.ticket-card .btn { min-height: 44px; font-size: 14px; border-radius: 12px; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 8px; }
.step-btn {
  width: 40px; height: 40px; flex: none; border-radius: 11px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy-800); display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s, transform .12s;
}
.step-btn .ic { width: 16px; height: 16px; }
.step-btn:active { transform: scale(.92); }
.step-btn:not(:disabled):hover { border-color: var(--teal-500); color: var(--teal-600); background: var(--teal-050); }
.step-btn:disabled { opacity: .4; cursor: not-allowed; }
.step-num { flex: 1; text-align: center; font-weight: 800; font-size: 18px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.step-num small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* pilih ukuran per peserta */
.size-list { display: grid; gap: 8px; }
.size-row { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.size-row .who { font-size: 12.5px; font-weight: 700; color: var(--navy-700); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-row select {
  appearance: none; -webkit-appearance: none; border: 1.5px solid #D5DEEC; background: #fff;
  border-radius: 10px; padding: 8px 30px 8px 12px; font-size: 16px; font-weight: 700; color: var(--navy-800);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6B84' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.size-hint { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.size-hint a { color: var(--teal-600); font-weight: 700; text-decoration: underline; }
.size-hint .ic { width: 14px; height: 14px; }

/* ------------------------------------------------ booth & umkm ------ */
.booth-card { display: grid; overflow: hidden; padding: 0; }
.booth-media { position: relative; background: var(--navy-900); }
.booth-media img { display: block; width: 100%; max-width: 100%; height: auto; }
@media (min-width: 820px) {
  .booth-card { grid-template-columns: 1.15fr 1fr; }
  .booth-media img { height: 100%; object-fit: cover; }
}
.booth-body { padding: 22px 20px 24px; display: grid; gap: 11px; align-content: center; justify-items: start; }
.booth-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.booth-price .now { font-size: 25px; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- fasilitas --- */
.fac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .fac-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.fac-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 18px 10px 15px; box-shadow: var(--sh-sm);
  transition: transform .2s, border-color .2s;
}
.fac-item:hover { transform: translateY(-3px); border-color: rgba(20, 184, 180, .5); }
.fac-item .fic {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-050); color: var(--teal-600);
}
.fac-item .fic .ic { width: 22px; height: 22px; }
.fac-item span { font-size: 13px; font-weight: 700; color: var(--navy-800); }

/* ------------------------------------------------------ info cards --- */
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.card-pad { padding: 20px 18px; }
@media (min-width: 768px) { .card-pad { padding: 26px; } }

.note { display: flex; gap: 11px; border-radius: 14px; padding: 13px 15px; font-size: 13.5px; line-height: 1.55; border: 1px solid; }
.note .ic { width: 19px; height: 19px; margin-top: 1px; }
.note-info { background: var(--teal-050); border-color: #BFEAE8; color: #0B5F5D; }
.note-info .ic { color: var(--teal-600); }
.note-warn { background: var(--amber-050); border-color: #F6E0B5; color: #8A5A0B; }
.note-warn .ic { color: var(--amber-500); }

/* kategori syarat */
.req-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .req-grid { grid-template-columns: repeat(3, 1fr); } }
.req-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm); }
.req-card .ric { width: 44px; height: 44px; border-radius: 13px; background: var(--navy-800); color: var(--teal-400); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.req-card h3 { font-size: 16.5px; color: var(--navy-900); }
.req-card p { color: var(--muted); font-size: 13.5px; margin-top: 7px; line-height: 1.6; }

/* FAQ */
.faq-item { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; font-weight: 700; font-size: 14.5px; color: var(--navy-900); cursor: pointer; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--teal-600); transition: transform .25s; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* ------------------------------------------------------ size chart --- */
.sz-tabs { display: inline-flex; background: #EAEEF6; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.sz-tabs button { border: none; background: transparent; padding: 9px 18px; min-height: 42px; border-radius: 9px; font-weight: 800; font-size: 13.5px; color: var(--muted); transition: all .2s; }
.sz-tabs button.active { background: var(--navy-800); color: #fff; box-shadow: var(--sh-sm); }
.sz-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.sz { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.sz th, table.sz td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sz th { background: var(--navy-800); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .04em; position: sticky; top: 0; }
table.sz tr:last-child td { border-bottom: none; }
table.sz td:first-child { font-weight: 800; color: var(--navy-900); }
table.sz tr:nth-child(even) td { background: #F7FAFD; }

/* --------------------------------------------------- steps indikator - */
.steps { display: flex; align-items: center; gap: 6px; padding: 16px 0 4px; }
.step { display: flex; align-items: center; gap: 8px; min-width: 0; }
.step-n {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; background: #E7ECF4; color: var(--muted); transition: all .25s;
}
.step span.lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.step.done .step-n { background: var(--green-050); color: #047857; }
.step.done span.lbl { color: #047857; }
.step.current .step-n { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(20, 184, 180, .7); }
.step.current span.lbl { color: var(--navy-900); }
.step-line { flex: 1; height: 2px; background: #E2E8F1; border-radius: 2px; min-width: 12px; }
.step-line.done { background: #A9E8CE; }
@media (max-width: 480px) { .step span.lbl { display: none; } }

/* ------------------------------------------------------ timer banner - */
.timer-banner {
  position: sticky; top: calc(env(safe-area-inset-top) + var(--nav-h)); z-index: 40;
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(120deg, #16325C, #0F2444 55%, #1E4276);
  border-radius: var(--r-lg); padding: 14px 16px; color: #fff;
  box-shadow: var(--sh-lg); margin: 18px 0 6px; overflow: hidden;
}
.timer-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120px 60px at 88% 10%, rgba(20, 184, 180, .35), transparent 70%);
  pointer-events: none;
}
.timer-banner .tic {
  width: 44px; height: 44px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.timer-banner .tic .ic { width: 22px; height: 22px; color: var(--teal-400); }
.timer-banner .tmeta { flex: 1; min-width: 0; }
.timer-banner .tlabel { font-size: 12px; color: #A9BAD3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.timer-banner .tval { font-size: clamp(24px, 7vw, 32px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.timer-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin-top: 7px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); transition: width .5s linear; }
.timer-banner.warn { background: linear-gradient(120deg, #92400E, #B45309); animation: tshake 1.2s infinite; }
.timer-banner.warn .timer-bar i { background: #fff; }
.timer-banner.danger { background: linear-gradient(120deg, #B91C1C, #DC2626); }
.timer-banner.danger .timer-bar i { background: #fff; }
@keyframes tshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }

/* ------------------------------------------------------------ forms --- */
.form-grid { display: grid; gap: 16px; }
.duo { display: grid; gap: 16px; }
@media (min-width: 600px) { .duo { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 900px) { .form-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy-900); display: flex; align-items: center; gap: 6px; }
.field label .req { color: var(--red-500); }
.field .hint { font-size: 12px; color: var(--muted); }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap > .ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: #93A5C0; pointer-events: none;
}
.input {
  width: 100%; min-height: 50px; border: 1.5px solid #D5DEEC; border-radius: 14px;
  background: #fff; padding: 12px 16px 12px 44px; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.input.no-ic { padding-left: 16px; }
.input::placeholder { color: #A3B1C7; }
.input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3.5px rgba(20, 184, 180, .16); }
.input.invalid { border-color: var(--red-500); box-shadow: 0 0 0 3.5px rgba(239, 68, 68, .12); }
.affix { display: flex; align-items: center; padding: 0 13px; background: var(--bg); border: 1.5px solid #D5DEEC; border-right: none; border-radius: 14px 0 0 14px; font-weight: 800; color: var(--navy-700); font-size: 15px; }
.affix + .input { border-radius: 0 14px 14px 0; }
.err { display: none; align-items: center; gap: 6px; color: var(--red-500); font-size: 12.5px; font-weight: 600; }
.err .ic { width: 14px; height: 14px; }
.err.show { display: inline-flex; }

.checkline { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.checkline input { width: 21px; height: 21px; margin-top: 1px; accent-color: var(--teal-600); flex: none; }
.checkline span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.checkline a { color: var(--teal-600); font-weight: 700; text-decoration: underline; }

.paymethod { display: flex; align-items: center; gap: 13px; border: 2px solid var(--teal-500); background: var(--teal-050); border-radius: 15px; padding: 14px 15px; }
.paymethod .pic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: var(--teal-400); display: flex; align-items: center; justify-content: center; flex: none; }
.paymethod b { display: block; font-size: 14.5px; color: var(--navy-900); }
.paymethod small { color: var(--muted); font-size: 12.5px; }
.paymethod .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 7px solid var(--teal-500); background: #fff; flex: none; }

/* --------------------------------------------------------- summary --- */
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sum-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; color: var(--navy-900); }
.sum-head h3 .ic { width: 19px; height: 19px; color: var(--teal-600); }
.sum-head a { font-size: 13px; font-weight: 700; color: var(--teal-600); display: inline-flex; align-items: center; }
.sum-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sum-item:last-of-type { border-bottom: none; }
.sum-qty {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.sum-item .s-info { flex: 1; min-width: 0; }
.sum-item .s-info b { font-size: 14px; color: var(--navy-900); display: block; }
.sum-item .s-info small { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; line-height: 1.45; }
.sum-item .s-price { font-weight: 800; font-size: 14px; color: var(--navy-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy-800); border-radius: 14px; padding: 14px 16px; margin-top: 13px; color: #fff; }
.sum-total span { font-size: 13px; color: #A9BAD3; font-weight: 600; }
.sum-total b { font-size: 21px; font-variant-numeric: tabular-nums; }
.sum-total b em { font-style: normal; font-size: 12px; color: #A9BAD3; display: block; font-weight: 600; }

/* ---------------------------------------------------------- qris ----- */
.qris-card { background: #fff; border-radius: var(--r-lg); border: 1.5px solid var(--line); box-shadow: var(--sh-lg); padding: 22px 18px; text-align: center; position: relative; overflow: hidden; }
.qris-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-brand); }
.qris-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.qris-logo { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.qris-logo i { font-style: normal; color: var(--teal-600); }
.qris-top small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.qris-merchant { margin: 12px 0 14px; padding: 11px 13px; background: var(--bg); border-radius: 12px; border: 1px dashed #D5DEEC; }
.qris-merchant b { display: block; font-size: 14px; color: var(--navy-900); }
.qris-merchant small { color: var(--muted); font-size: 12px; }
.qr-frame { position: relative; width: min(272px, 74vw); margin: 0 auto; padding: 12px; border-radius: 18px; border: 2px dashed #C9D4E4; background: #fff; }
.qr-frame img { width: 100%; border-radius: 8px; }
.qr-zoom {
  position: absolute; right: -8px; bottom: -8px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
}
.qr-zoom .ic { width: 19px; height: 19px; }
.qr-tap { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.qr-tap .ic { width: 15px; height: 15px; color: var(--teal-600); }
.qris-apps { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 15px; }
.qris-apps span { background: var(--bg); border: 1px solid var(--line); color: var(--navy-700); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }

.amount-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--green-050); border: 1.5px solid #A9E8CE; border-radius: 15px; padding: 14px 16px; }
.amount-box span { font-size: 12.5px; color: #047857; font-weight: 700; }
.amount-box b { font-size: clamp(20px, 5.6vw, 26px); color: #047857; font-variant-numeric: tabular-nums; }

.orderid { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 13px; flex-wrap: wrap; }
.orderid code { background: var(--bg); border: 1px dashed #C9D4E4; padding: 7px 12px; border-radius: 10px; font-weight: 800; font-size: 13.5px; letter-spacing: .04em; color: var(--navy-900); font-family: inherit; }
.orderid button { border: none; background: var(--teal-050); color: var(--teal-600); width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.orderid button .ic { width: 17px; height: 17px; }

/* how-to steps */
.howto { counter-reset: ht; display: grid; gap: 10px; }
.howto li { counter-increment: ht; display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.howto li::before {
  content: counter(ht); width: 27px; height: 27px; flex: none; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.howto li p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.howto li b { color: var(--navy-900); }

/* -------------------------------------------------------- timeline --- */
.timeline { position: relative; display: grid; gap: 0; margin: 8px 0; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2.5px; border-radius: 2px; background: #E2E8F1; }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: #A9E8CE; }
.tl-dot {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #E7ECF4; color: var(--muted); z-index: 1;
}
.tl-dot .ic { width: 16px; height: 16px; }
.tl-item.done .tl-dot { background: var(--green-500); color: #fff; }
.tl-item.current .tl-dot { background: var(--grad-brand); color: #fff; box-shadow: 0 0 0 5px rgba(20, 184, 180, .18); }
.tl-item.pending .tl-dot { background: #E7ECF4; }
.tl-body b { display: block; font-size: 14.5px; color: var(--navy-900); }
.tl-item.pending .tl-body b { color: var(--muted); }
.tl-body small { color: var(--muted); font-size: 12.5px; line-height: 1.5; display: block; margin-top: 2px; }
.tl-item.current .tl-body b::after {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%;
  background: var(--teal-500); animation: pulse-dot 1.2s infinite; vertical-align: middle;
}

/* status hero kecil */
.status-hero { text-align: center; padding: 34px 0 8px; }
.status-hero .big-ic {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green-050); color: var(--green-500); display: flex; align-items: center; justify-content: center;
  animation: pop-in .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.status-hero .big-ic .ic { width: 40px; height: 40px; }
.status-hero .big-ic.blue { background: var(--teal-050); color: var(--teal-600); }
.status-hero h1 { font-size: clamp(23px, 6vw, 32px); color: var(--navy-900); }
.status-hero p { color: var(--muted); margin-top: 8px; font-size: 14.5px; max-width: 460px; margin-left: auto; margin-right: auto; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------- sticky bar -- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(0); transition: transform .3s;
}
.sticky-bar .sb-info { flex: 1; min-width: 0; }
.sticky-bar .sb-info small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.sticky-bar .sb-info b { font-size: 17.5px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.sticky-bar .btn { flex: none; }
@media (min-width: 900px) { .sticky-bar { display: none; } }
.has-sticky main { padding-bottom: 92px; }
@media (min-width: 900px) { .has-sticky main { padding-bottom: 0; } }

/* ---------------------------------------------------------- modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 18, 36, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .22s; padding: 0;
}
.modal-overlay.show { opacity: 1; }
.modal-card {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 22px 22px 0 0; padding: 24px 22px calc(env(safe-area-inset-bottom) + 22px);
  transform: translateY(30px); transition: transform .26s cubic-bezier(.32, .72, .24, 1);
  max-height: 86dvh; overflow-y: auto;
}
.modal-overlay.show .modal-card { transform: translateY(0); }
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal-card { border-radius: 22px; }
}
.modal-card h3 { font-size: 18px; color: var(--navy-900); display: flex; align-items: center; gap: 10px; }
.modal-card h3 .ic { color: var(--amber-500); width: 23px; height: 23px; }
.modal-card .m-body { color: var(--muted); font-size: 14px; margin: 10px 0 20px; line-height: 1.6; }
.modal-actions { display: grid; gap: 10px; }
.modal-actions.row { grid-template-columns: 1fr 1fr; }
.modal-img img { border-radius: 14px; margin: 0 auto; max-width: 420px; width: 100%; }

/* ---------------------------------------------------------- toast ---- */
.toast-box { position: fixed; z-index: 120; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 86px); display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 480px;
  background: var(--navy-900); color: #fff; border-radius: 14px; padding: 12px 16px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(14px) scale(.97); transition: all .3s cubic-bezier(.32, .72, .24, 1);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast .t-ic { width: 20px; height: 20px; flex: none; }
.toast .t-ic svg { width: 100%; height: 100%; }
.toast-success .t-ic { color: #34D399; }
.toast-warn .t-ic { color: #FBBF24; }
.toast-error .t-ic { color: #F87171; }
.toast-info .t-ic { color: #4FE3DE; }

.fx-confetti { position: fixed; inset: 0; z-index: 130; pointer-events: none; }

/* ---------------------------------------------------------- footer --- */
.footer { background: var(--grad-navy); color: #B9C7DD; margin-top: 30px; position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px;
}
.footer-inner { position: relative; display: grid; gap: 26px; padding: 40px 0 26px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; padding: 52px 0 30px; } }
.footer .logo-card { display: inline-block; background: #fff; border-radius: 14px; padding: 9px 14px; width: max-content; max-width: 100%; }
.footer .logo-card img { height: 34px; }
.footer .tagline { margin-top: 12px; font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 13px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: #4FE3DE; }
.footer-links a .ic { width: 16px; height: 16px; color: var(--teal-400); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 calc(env(safe-area-inset-bottom) + 16px); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 12.5px; }
.footer-bottom a { text-decoration: underline; }

/* ------------------------------------------------------- animasi ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
.reveal-in { opacity: 1; transform: none; }
.flip-in { animation: flipin .85s cubic-bezier(.2, 1.3, .35, 1); }
@keyframes flipin { 0% { transform: scale(.86); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* spinner (loading & timeline) */
.spinner { width: 52px; height: 52px; border-radius: 50%; border: 5px solid #E2E8F1; border-top-color: var(--teal-500); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
