/* ============================================================
   FUNRUN 5K McD KARTINI CIREBON × KELUYURUN — Design System
   Clone responsif (Android & iPhone) — mobile-first
   ============================================================ */

:root {
  /* Warna brand */
  --red: #087b45;
  --red-bright: #109653;
  --red-deep: #075d36;
  --red-dark: #064528;
  --red-darker: #032f1c;
  --yellow: #d7f34b;
  --yellow-deep: #b9d92d;
  --cream: #f7f1ea;
  --card-cream: #fdf9f3;
  --card-line: #efe4d6;
  --ink: #241d18;
  --ink-soft: #5c544c;
  --ink-mute: #8a8078;
  --taupe: #6b645d;
  --dark-card: #3b140b;
  --white: #ffffff;

  /* Font */
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-display: 'Anton', 'Arial Narrow', 'Poppins', sans-serif;
  --font-black: 'Archivo Black', 'Arial Black', 'Poppins', sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 16px 40px rgba(72, 32, 8, 0.10), 0 2px 8px rgba(72, 32, 8, 0.05);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.22);
  --nav-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: #430902;
  color: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* Kerangka aplikasi: kolom maks 520px (dinamika mobile, rapi di desktop) */
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(178deg, #e23223 0%, #d8281c 34%, #cd2114 78%, #c11d10 100%);
  position: relative;
  overflow-x: clip;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}
.app--cream { background: var(--cream); color: var(--ink); }
.app--red { color: var(--white); }

.container { padding: 0 20px; }

/* ============================ NAVBAR ============================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: env(safe-area-inset-top, 0);
  background: #d8281c;
  box-shadow: 0 2px 14px rgba(40, 4, 0, 0.18);
}
.app--cream .topbar { background: #d8281c; }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img.logo-mcd { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.nav-logo .logo-x { color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; margin: 0 -1px; }
.nav-logo img.logo-kly { height: 15px; width: auto; object-fit: contain; }

.nav-menu-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.nav-menu-btn:active { background: rgba(255,255,255,.14); }
.nav-menu-btn .bars { display: flex; flex-direction: column; gap: 5px; }
.nav-menu-btn .bars span { display: block; width: 20px; height: 2.6px; border-radius: 3px; background: #fff; transition: transform .25s, opacity .2s; }
.nav-menu-btn.open .bars span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-menu-btn.open .bars span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open .bars span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Timer di dalam topbar (form & qris) */
.timer-row { padding: 0 20px 12px; }
.timer-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.timer-chip .t-ico { font-size: 15px; }
.timer-chip b {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--yellow);
}
.timer-chip.warn { background: rgba(0,0,0,.42); border-color: rgba(255, 199, 44, .55); animation: chipPulse 1s infinite; }
.timer-chip.warn b { color: #ffd45e; }
@keyframes chipPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }

/* ============================ DRAWER MENU ============================ */
.drawer {
  position: fixed; inset: 0; z-index: 120;
  visibility: hidden; pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(30, 4, 1, 0.62);
  opacity: 0; transition: opacity .28s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(310px, 85vw);
  background: linear-gradient(168deg, #a01509 0%, #7c0f05 55%, #5c0a02 100%);
  box-shadow: -18px 0 50px rgba(0,0,0,.4);
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.22,.9,.3,1);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0) + 18px) 22px calc(env(safe-area-inset-bottom, 0) + 22px);
  max-width: 100vw;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head .d-logo { display: flex; align-items: center; gap: 8px; }
.drawer-head img.logo-mcd { width: 34px; height: 34px; }
.drawer-head img.logo-kly { height: 12px; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 17px; display: grid; place-items: center; }
.drawer-label { font-size: 10.5px; letter-spacing: .22em; font-weight: 700; color: rgba(255,255,255,.55); margin: 6px 0 10px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15.5px;
  padding: 12px 14px; border-radius: 14px;
  transition: background .18s, color .18s;
}
.drawer-nav a .d-ico { width: 22px; text-align: center; opacity: .9; }
.drawer-nav a:active, .drawer-nav a:hover { background: rgba(255,255,255,.12); }
.drawer-nav a.active { background: var(--yellow); color: #4a1505; }
.drawer-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.drawer-foot .d-event { font-size: 12px; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.drawer-foot .d-event b { color: var(--yellow); }
.wa-mini {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #23b33a; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 11px 16px;
}

/* ============================ TOMBOL ============================ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border-radius: 999px;
  font-weight: 700; font-size: 16.5px;
  padding: 16px 22px;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  text-decoration: none;
  user-select: none;
}
.btn:active { transform: scale(.975); }
.btn-yellow { background: linear-gradient(180deg, #ffd23f 0%, var(--yellow) 55%, #f7b717 100%); color: #4a1505; box-shadow: 0 10px 24px rgba(247, 183, 23, .35); }
.btn-red { background: linear-gradient(180deg, #ee3323 0%, #d8281c 100%); color: #fff; box-shadow: 0 10px 22px rgba(184, 22, 8, .32); }
.btn-ghost { background: transparent; color: inherit; border: 1.6px solid rgba(255,255,255,.4); font-weight: 600; font-size: 15px; padding: 13px 22px; }
.btn-outline { background: transparent; color: var(--ink); border: 1.6px solid #ddcfbd; font-weight: 600; font-size: 15px; padding: 13px 22px; }
.btn-disabled { background: #e9dfd2; color: var(--taupe); cursor: not-allowed; box-shadow: none; }
.btn-disabled:active { transform: none; }
.btn[disabled] { pointer-events: none; }

/* ============================ HERO (index) ============================ */
.hero { text-align: center; padding: 34px 20px 26px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  color: rgba(255,255,255,.92);
}
.hero-title {
  font-family: var(--font-black);
  font-size: clamp(34px, 10.6vw, 54px);
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 4px 0 rgba(0,0,0,.14);
}
.hero-title .line2 {
  display: block;
  color: var(--yellow);
  font-size: clamp(30px, 9vw, 42px);
  margin-top: 6px;
}
.hero-date {
  margin-top: 14px;
  font-weight: 800; font-size: 17px; letter-spacing: .16em;
}
.hero-tag {
  margin-top: 12px;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.94);
  max-width: 40ch; margin-inline: auto;
}

/* ============================ KARUSEL SLIDE ============================ */
.slides-wrap { position: relative; margin: 8px 0 4px; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 14px;
  padding: 6px 20px 4px;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: center;
  flex: 0 0 100%;
  background: linear-gradient(150deg, #471708 0%, var(--dark-card) 52%, #2c0d05 100%);
  border-radius: var(--radius-lg);
  min-height: 212px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31, 5, 0, .35);
}
.slide::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.slide-route { display: grid; grid-template-columns: 1.05fr .95fr; }
.route-info { padding: 22px 8px 20px 22px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.route-chip { font-size: 10.5px; letter-spacing: .24em; font-weight: 700; color: rgba(255,255,255,.85); }
.route-km {
  font-family: var(--font-display);
  font-size: clamp(34px, 10.5vw, 46px);
  color: var(--yellow);
  line-height: 1.04;
  margin: 6px 0 8px;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.route-sf { font-size: 13.5px; color: rgba(255,255,255,.92); line-height: 1.45; }
.route-sf b { display: block; font-size: 14.5px; }
.route-map { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px; }
.route-map svg { width: 100%; max-height: 178px; }
.arch-deco {
  position: absolute; left: -30px; bottom: -38px; width: 104px; opacity: .5; pointer-events: none;
}
.slide-media { display: flex; flex-direction: column; }
.slide-media img { flex: 1; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.slide-caption { padding: 12px 18px 14px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.slide-caption b { color: var(--yellow); }
.slide-list { padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.slide-list h3 { font-family: var(--font-display); letter-spacing: .04em; font-size: 22px; color: var(--yellow); margin-bottom: 2px; }
.slide-list ul { list-style: none; display: grid; gap: 7px; }
.slide-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.slide-list li .tick {
  width: 19px; height: 19px; border-radius: 50%; flex: 0 0 auto;
  background: var(--yellow); color: #4a1505;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.agenda { padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.agenda h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; color: var(--yellow); }
.agenda .ag-row { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; }
.agenda .ag-time { font-weight: 800; color: var(--yellow); min-width: 62px; font-variant-numeric: tabular-nums; }

.dots { display: flex; justify-content: center; gap: 7px; padding: 14px 0 2px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.38); transition: all .25s; padding: 0; }
.dots button.active { width: 26px; background: var(--yellow); }

/* ============================ COUNTDOWN ============================ */
.count-card {
  margin: 16px 20px 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 20px 10px 18px;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.count-title { font-size: 12.5px; font-weight: 700; letter-spacing: .3em; color: rgba(255,255,255,.92); margin-bottom: 14px; }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.count-cell { position: relative; }
.count-cell + .count-cell::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: rgba(255,255,255,.22);
}
.count-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 10.5vw, 46px);
  color: var(--yellow);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.count-lab { margin-top: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.9); }

/* ============================ CTA ============================ */
.cta-zone { padding: 26px 20px 8px; }
.cta-sub { text-align: center; margin-top: 16px; font-size: 15px; }
.cta-sub a { display: inline-block; margin-top: 4px; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: rgba(255,199,44,.85); }
.cta-note { text-align: center; margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.6; padding: 0 12px; }

/* ============================ POSTER & SEKSI UMUM ============================ */
.section { padding: 30px 20px 0; }
.section-head { text-align: center; margin-bottom: 18px; }
.section-head .sec-kicker { font-size: 11px; font-weight: 800; letter-spacing: .26em; color: var(--yellow); }
.app--cream .section-head .sec-kicker { color: var(--red); }
.section-head h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: .03em; margin-top: 4px; }
.app--cream .section-head h2 { color: var(--ink); }

.poster-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31, 5, 0, .3);
  border: 1px solid rgba(255,255,255,.16);
}
.poster-card img { width: 100%; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px;
  font-weight: 700; font-size: 14.5px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-x {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  transition: transform .25s;
}
.faq-item[open] summary .faq-x { transform: rotate(45deg); background: var(--yellow); color: #4a1505; }
.faq-item .faq-a { padding: 0 16px 15px; font-size: 13.5px; color: rgba(255,255,255,.88); line-height: 1.65; }

/* Footer */
.footer { margin-top: 36px; padding: 26px 26px calc(env(safe-area-inset-bottom, 0) + 28px); text-align: center; }
.footer .f-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer .f-brand img.logo-mcd { width: 30px; height: 30px; opacity: .95; }
.footer .f-brand img.logo-kly { height: 11px; }
.app--red .footer, .footer.f-red { color: rgba(255,255,255,.75); font-size: 12.5px; line-height: 1.7; }
.footer.f-cream { color: var(--ink-mute); font-size: 12.5px; line-height: 1.7; }
.footer b { color: inherit; }
.footer .f-copy { margin-top: 10px; font-size: 11.5px; opacity: .75; }

/* ============================ PAGE HEAD (langkah) ============================ */
.page-head { padding: 30px 20px 6px; text-align: center; }
.step-label {
  font-size: 12px; font-weight: 800; letter-spacing: .24em;
  color: var(--red);
}
.app--red .step-label { color: var(--yellow); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 10.5vw, 44px);
  letter-spacing: .02em;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.05;
}
.app--red .page-title { color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.15); }
.page-note { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); max-width: 42ch; margin-inline: auto; font-weight: 500; }
.app--red .page-note { color: rgba(255,255,255,.92); }

/* ============================ KARTU KATEGORI ============================ */
.cat-list { display: grid; gap: 20px; padding: 22px 20px 6px; }
.cat-card {
  position: relative;
  background: var(--card-cream);
  border-radius: 26px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cat-circle {
  position: absolute;
  top: -46px; right: -40px;
  width: 148px; height: 148px;
  border-radius: 50%;
  background: #f9eecb;
  pointer-events: none;
}
.cat-sold { opacity: .88; }
.cat-sold .cat-title { color: var(--taupe) !important; }
.cat-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 11.5vw, 46px);
  letter-spacing: .015em;
  line-height: 1;
  color: var(--red);
  position: relative;
}
.cat-meta { margin-top: 9px; font-size: 14px; color: var(--ink-soft); font-weight: 500; position: relative; }
.cat-price {
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 38px);
  color: var(--ink);
  margin-top: 14px;
  letter-spacing: .02em;
  position: relative;
}
.cat-price .rp { font-size: .72em; margin-right: 2px; }
.progress {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: #efe5d7;
  overflow: hidden;
}
.progress i {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0281e, #e0281e);
}
.progress i.grad { background: linear-gradient(90deg, #ffc72c 0%, #ff8a1e 55%, #e0281e 100%); }
.cat-quota {
  display: flex; justify-content: space-between;
  margin-top: 9px; font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
.cat-btn-zone { margin-top: 18px; position: relative; }

/* Panel jumlah tiket */
.qty-panel { display: none; margin-top: 16px; border-top: 1.6px dashed #e7daca; padding-top: 16px; }
.qty-panel.show { display: block; animation: slideDown .28s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.qty-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 10px; }
.stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1.6px solid #e7daca; border-radius: 999px;
  padding: 6px;
}
.stepper button {
  width: 46px; height: 46px; border-radius: 50%;
  background: #f6ede1; color: var(--ink);
  font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  transition: background .15s, transform .1s;
}
.stepper button:active { transform: scale(.92); background: #f0e2cf; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .qty-val { font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 44px; text-align: center; }
.qty-hint { margin-top: 8px; font-size: 12px; color: var(--ink-mute); }
.subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; background: #fff7e6; border: 1px solid #f7e3b4;
  border-radius: 14px; padding: 12px 16px;
}
.subtotal span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.subtotal b { font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; color: var(--ink); }

.timer-hint {
  margin: 18px 20px 0;
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff3e0;
  border: 1px solid #f5ddba;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px; color: #7a4a10; font-weight: 500; line-height: 1.55;
}
.timer-hint .th-ico { font-size: 18px; line-height: 1.2; }

.bottom-row { display: flex; align-items: center; justify-content: space-between; padding: 26px 20px 0; }
.pill-back {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.6px solid #ddcfbd; border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  text-decoration: none;
  background: #fff;
  transition: background .15s;
}
.pill-back:active { background: #f6ede1; }
.pager-dots { display: flex; gap: 6px; align-items: center; }
.pager-dots i { width: 8px; height: 8px; border-radius: 999px; background: #e2d5c3; }
.pager-dots i.on { width: 24px; background: var(--red); }

/* ============================ FORM ============================ */
.form-zone { padding: 18px 20px 0; }
.sum-card {
  background: var(--card-cream);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.sum-row .s-k { color: var(--ink-mute); font-weight: 500; }
.sum-row .s-v { font-weight: 700; color: var(--ink); text-align: right; }
.sum-row .s-v .chip {
  display: inline-block; background: #fdece9; color: var(--red);
  border-radius: 999px; font-size: 12px; font-weight: 800;
  padding: 3px 11px; letter-spacing: .06em;
}
.sum-total {
  margin-top: 8px; border-top: 1.6px dashed #e7daca; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.sum-total span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.sum-total b { font-family: var(--font-display); font-size: 24px; letter-spacing: .02em; color: var(--ink); }
.sum-qty { display: flex; align-items: center; gap: 14px; }
.sum-qty button {
  width: 34px; height: 34px; border-radius: 50%;
  background: #f6ede1; font-size: 18px; font-weight: 700; color: var(--ink);
  display: grid; place-items: center;
}
.sum-qty button:disabled { opacity: .35; }
.sum-qty b { font-size: 17px; min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }

.f-section { margin-bottom: 22px; }
.f-sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--red);
  margin-bottom: 13px;
}
.f-sec-title::after { content: ''; flex: 1; height: 1px; background: #e7daca; }
.f-sec-title .f-sec-ico { font-size: 14px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field label .opt { color: var(--ink-mute); font-weight: 500; font-size: 11.5px; }
.field input, .field select {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1.7px solid #e3d7c6;
  background: #fffdf9;
  padding: 0 16px;
  font-size: 16px; /* cegah zoom otomatis di iOS */
  color: var(--ink);
  font-weight: 500;
  transition: border-color .18s, box-shadow .18s;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: #b9ae9f; font-weight: 400; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3.5px rgba(216, 40, 28, .13);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235c544c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field.error input, .field.error select { border-color: var(--red); background: #fff7f5; }
.field .err-msg { display: none; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--red); }
.field.error .err-msg { display: block; }
.field .help { margin-top: 6px; font-size: 11.5px; color: var(--ink-mute); }

.check-row {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card-cream);
  border: 1.7px solid #e3d7c6;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 15px;
}
.check-row input[type="checkbox"] {
  width: 22px; height: 22px; flex: 0 0 auto;
  accent-color: var(--red);
  margin-top: 1px;
}
.check-row .c-text { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.5; }
.check-row .c-text b { color: var(--ink); }

.part-block {
  background: var(--card-cream);
  border-radius: 18px;
  border: 1.6px solid #ecdfcd;
  padding: 16px 16px 4px;
  margin-bottom: 14px;
}
.part-block .pb-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 13px;
}
.part-block .pb-head b { font-size: 14px; color: var(--ink); }
.part-block .pb-head span { font-size: 11.5px; color: var(--ink-mute); }
.jersey-grid { display: grid; gap: 12px; }
.jersey-item .j-lab { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; display: block; }

.size-note { font-size: 12px; color: var(--ink-mute); margin-top: -6px; margin-bottom: 14px; line-height: 1.55; }
.size-note a { color: var(--red); font-weight: 700; }

.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 60;
  padding: 12px 20px calc(env(safe-area-inset-bottom, 0) + 14px);
  background: linear-gradient(180deg, rgba(247,241,234,0) 0%, var(--cream) 26%);
}

/* ============================ QRIS ============================ */
.pay-amount {
  margin: 20px 20px 0;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
}
.pay-amount .pa-k { font-size: 11px; font-weight: 800; letter-spacing: .26em; color: rgba(255,255,255,.8); }
.pay-amount .pa-v { font-family: var(--font-display); font-size: clamp(38px, 12vw, 50px); color: var(--yellow); letter-spacing: .02em; margin-top: 4px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.pay-amount .pa-id {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 8px 7px 15px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.9);
}
.pay-amount .pa-id button {
  background: var(--yellow); color: #4a1505;
  font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 5px 11px;
  display: inline-flex; align-items: center; gap: 5px;
}
.qr-card {
  margin: 18px 20px 0;
  background: #fff;
  border-radius: 24px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 44px rgba(31, 5, 0, .35);
  text-align: center;
}
.qr-card img { width: min(258px, 68vw); margin: 0 auto; border-radius: 6px; }
.qr-badges { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.qr-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  padding: 6px 12px; border-radius: 999px;
  background: #fdece9; color: var(--red);
}
.qr-badge.alt { background: #f2ede4; color: var(--ink-soft); letter-spacing: 0; font-weight: 600; }
.steps-card {
  margin: 18px 20px 0;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  padding: 18px;
}
.steps-card h3 { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--yellow); margin-bottom: 12px; }
.step-line { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.step-line .st-n {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,199,44,.18); color: var(--yellow);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  margin-top: 1px;
}
.step-line p { font-size: 13.5px; color: rgba(255,255,255,.94); line-height: 1.5; font-weight: 500; }
.step-line p b { color: #fff; }
.apps-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.apps-row span {
  font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  padding: 5px 11px; border-radius: 999px;
}
.pay-actions { padding: 22px 20px 0; display: grid; gap: 11px; }
.pay-note { text-align: center; font-size: 12px; color: rgba(255,255,255,.68); padding: 14px 26px 0; line-height: 1.6; }

/* ============================ PENDING ============================ */
.status-hero {
  margin: 22px 20px 0;
  background: var(--card-cream);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.status-hero .sh-ring {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd23f, var(--yellow));
  display: grid; place-items: center;
  font-size: 38px;
  box-shadow: 0 10px 26px rgba(240, 165, 0, .4);
  animation: pulseRing 1.8s infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 10px 26px rgba(240,165,0,.4), 0 0 0 0 rgba(255,199,44,.45); }
  70% { box-shadow: 0 10px 26px rgba(240,165,0,.4), 0 0 0 22px rgba(255,199,44,0); }
  100% { box-shadow: 0 10px 26px rgba(240,165,0,.4), 0 0 0 0 rgba(255,199,44,0); }
}
.status-hero h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: .02em; color: var(--ink); }
.status-hero .sh-text { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; font-weight: 500; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  background: #fff3e0; border: 1px solid #f5ddba; color: #9a5b00;
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 8px 16px; border-radius: 999px;
}
.status-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #f0a500;
  animation: blink 1.1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.info-card {
  margin: 16px 20px 0;
  background: var(--card-cream);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.info-card h3 {
  font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--red);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.info-card h3::after { content: ''; flex: 1; height: 1px; background: #ecdfcd; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; }
.kv .k { color: var(--ink-mute); font-weight: 500; flex: 0 0 auto; }
.kv .v { font-weight: 700; color: var(--ink); text-align: right; word-break: break-word; }
.kv .v .copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f6ede1; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: var(--ink-soft);
  padding: 4px 10px; margin-left: 8px; vertical-align: 1px;
}
.kv.total { border-top: 1.6px dashed #e7daca; margin-top: 6px; padding-top: 13px; }
.kv.total .v { font-family: var(--font-display); font-size: 23px; letter-spacing: .02em; }

.pax-table { display: grid; gap: 9px; }
.pax-row {
  display: grid;
  grid-template-columns: 30px 1fr 62px;
  gap: 10px; align-items: center;
  background: #fff;
  border: 1px solid #efe4d4;
  border-radius: 14px;
  padding: 11px 13px;
}
.pax-row .px-n {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fdece9; color: var(--red);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.pax-row .px-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.pax-row .px-name small { display: block; font-size: 11px; color: var(--ink-mute); font-weight: 500; }
.pax-row .px-tag {
  font-size: 10.5px; font-weight: 800; text-align: center;
  background: #f6ede1; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 6px;
  letter-spacing: .04em;
}
.next-list { display: grid; gap: 10px; }
.next-list li { display: flex; gap: 11px; list-style: none; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; line-height: 1.55; }
.next-list li .nk { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #fdece9; color: var(--red); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.pending-actions { padding: 22px 20px 0; display: grid; gap: 11px; }
.btn-wa { background: #23b33a; color: #fff; box-shadow: 0 10px 22px rgba(35, 179, 58, .3); }

.empty-state {
  margin: 30px 20px 0;
  background: var(--card-cream);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 34px 24px;
  text-align: center;
}
.empty-state .es-ico {
  width: 78px; height: 78px; border-radius: 50%;
  background: #fdece9;
  display: grid; place-items: center;
  font-size: 34px;
  margin: 0 auto 16px;
}
.empty-state h1 { font-family: var(--font-display); font-size: 26px; color: var(--ink); letter-spacing: .02em; }
.empty-state p { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; font-weight: 500; }
.empty-state .btn { margin-top: 20px; }

/* ============================ LOADING ============================ */
.load-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 30px;
}
.load-arch { width: 92px; animation: archPulse 1.1s ease-in-out infinite; }
@keyframes archPulse { 0%,100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.08); opacity: 1; } }
.spinner {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.22);
  border-top-color: var(--yellow);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-msg { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.95); min-height: 24px; transition: opacity .2s; }
.load-bar {
  width: min(230px, 60vw); height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 999px; overflow: hidden;
}
.load-bar i {
  display: block; height: 100%; width: 0%;
  background: var(--yellow);
  border-radius: 999px;
  transition: width .5s ease;
}
.load-step { font-size: 11.5px; letter-spacing: .2em; font-weight: 700; color: rgba(255,255,255,.55); }

/* ============================ MODAL / OVERLAY ============================ */
.modal-layer {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(30, 4, 1, .66);
  display: none;
  align-items: center; justify-content: center;
  padding: 26px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal-layer.show { display: flex; }
.modal-card {
  width: 100%; max-width: 340px;
  background: var(--card-cream);
  color: var(--ink);
  border-radius: 24px;
  padding: 26px 22px 22px;
  text-align: center;
  animation: modalIn .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
.modal-card .m-ico { font-size: 40px; margin-bottom: 10px; }
.modal-card h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: .02em; }
.modal-card p { margin-top: 9px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; font-weight: 500; }
.modal-card .btn { margin-top: 18px; }
.modal-card .m-ghost { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ TOAST ============================ */
.toast {
  position: fixed;
  left: 50%; bottom: calc(env(safe-area-inset-bottom, 0) + 26px);
  transform: translate(-50%, 20px);
  background: #2b1a12; color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: all .28s;
  z-index: 200;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ UTILITIES ============================ */
.spacer { height: 30px; }
.hidden { display: none !important; }

/* ============================ DESKTOP / LAYAR LEBAR ============================ */
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(900px 500px at 12% -8%, rgba(255,199,44,.14), transparent 60%),
      radial-gradient(800px 520px at 95% 8%, rgba(255,255,255,.07), transparent 55%),
      #430902;
    padding: 26px 0;
  }
  .app { border-radius: 34px; min-height: calc(100dvh - 52px); overflow: clip; }
  .topbar { border-radius: 34px 34px 0 0; }
  .drawer-panel { border-radius: 0; }
}
@media (min-width: 560px) {
  .drawer { max-width: 520px; margin: 0 auto; right: 0; left: 50%; transform: translateX(-50%); width: 520px; }
  .drawer-panel { border-radius: 26px 0 0 26px; }
}
@media (max-width: 559px) { .drawer { position: fixed; } }

/* Hormati preferensi pengguna: kurangi gerakan */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

.race-category-list{display:grid;gap:9px;margin:18px 0}.race-category{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:13px 14px;border:1px solid var(--card-line);border-radius:13px;background:#fff;color:var(--ink);font-size:13px;font-weight:600;line-height:1.4}.race-category span{flex:none;color:#07804b;background:#e7f8ef;border:1px solid #bcebd2;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:800}.race-category.selected{border-color:#07804b;background:#f0fbf5;box-shadow:0 0 0 2px rgba(8,123,69,.08)}
