/* ===== FOMO Design System v3 — Brand Redesign ===== */
/* Fonts loaded via <link> in head.php — no @import here */

:root {
  /* Brand Colors — 80/15/5 rule */
  --fomo-purple: #6D28D9;
  --fomo-purple-dark: #5B21B6;
  --fomo-lavender: #A78BFA;
  --fomo-orange: #FF6B00;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-soft: #F7F5FC;
  --bg-purple: rgba(109, 40, 217, .06);
  --bg-lavender: rgba(167, 139, 250, .10);
  --bg-orange: rgba(255, 107, 0, .08);

  /* Text */
  --ink: #16121F;
  --ink2: #2D2640;
  --sub: #6F6878;
  --muted: #9B95A3;

  /* Borders */
  --line: #E8E5EE;
  --line-soft: #F0EDF5;

  /* Semantic — NOT brand colors */
  --ok: #059669;
  --ok-bg: #ECFDF5;
  --warn: #D97706;
  --warn-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* Shadows — very minimal */
  --shadow-sm: 0 1px 2px rgba(22,18,31,.04);
  --shadow: 0 2px 8px rgba(22,18,31,.06);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transition */
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Legacy compat aliases — some inline styles reference these */
  --brand: var(--fomo-purple);
  --brand2: var(--fomo-lavender);
  --brand-ink: var(--fomo-purple-dark);
  --brand-soft: var(--bg-purple);
  --card: var(--bg);
  --nav-bg: rgba(255,255,255,.92);
  --pcard-bg: var(--fomo-purple);
}

/* ===== RESET ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: #16121F;
  font-family: var(--font);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== PHONE FRAME ===== */
.phone {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

@media (min-width: 520px) {
  body { padding: 24px 0; }
  .phone {
    min-height: auto; height: 860px;
    border-radius: 28px;
    box-shadow: 0 0 0 6px #2D2640, 0 0 60px rgba(109,40,217,.12);
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: none;
  }
  .phone::-webkit-scrollbar { display: none; }
}

/* ===== SCREEN ===== */
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 20px 80px;
  animation: fadeUp .3s var(--ease);
}
@media (min-width: 520px) { .screen { min-height: 840px; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BRAND HEADER ===== */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 0 28px;
}
.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.tag {
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
}
/* Legacy CSS text logo fallback */
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -2px;
  color: var(--fomo-purple);
}

/* ===== FOMO BRAND MARK (loading/empty) ===== */
.fomo-mark {
  display: inline-block;
}
.fomo-mark-spin {
  animation: markSpin 1.2s linear infinite;
}
@keyframes markSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fomo-mark-spin { animation: none; }
}

/* ===== TYPOGRAPHY ===== */
h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.5px; color: var(--ink); line-height: 1.2; }
h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.3px; color: var(--ink); line-height: 1.3; }
h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }
.lead { color: var(--sub); font-size: 15px; margin: 0 0 18px; font-weight: 400; line-height: 1.5; }

/* Display text — for hero/empty states */
.display-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.5px;
  color: var(--ink);
  line-height: 1.15;
}

/* ===== FORMS ===== */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--sub);
}
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--fomo-purple);
}
input::placeholder { color: var(--muted); }

/* Password toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 18px; cursor: pointer;
  padding: 4px; color: var(--muted); transition: color .2s;
  display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle i { font-size: 20px; }

/* ===== BUTTONS ===== */
.btn {
  width: 100%; padding: 15px; border: none;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 700;
  font-family: var(--font); cursor: pointer; margin-top: 20px;
  transition: opacity .15s var(--ease), transform .1s var(--ease);
  letter-spacing: -.1px; text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary {
  background: var(--fomo-purple);
  color: #fff;
}
.btn-primary:active { transform: scale(.98); opacity: .9; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  margin-top: 10px;
}
.btn-ghost:active { background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
/* Urgency CTA — use sparingly */
.btn-orange { background: var(--fomo-orange); color: #fff; }

.swap { text-align: center; margin-top: 20px; font-size: 14px; color: var(--sub); }
.swap a { color: var(--fomo-purple); font-weight: 700; text-decoration: none; }
.forgot { text-align: right; font-size: 13px; margin-top: 8px; }
.forgot a { color: var(--fomo-purple); text-decoration: none; font-weight: 600; }

/* ===== ALERT ===== */
.alert {
  padding: 12px 14px; border-radius: var(--radius-xs);
  font-size: 14px; margin-top: 14px; display: none; font-weight: 500;
  animation: fadeUp .2s var(--ease);
}
.alert.ok { background: var(--ok-bg); color: var(--ok); display: block; }
.alert.err { background: var(--danger-bg); color: var(--danger); display: block; }

/* ===== PROFILE CARD ===== */
.pcard {
  background: var(--fomo-purple);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
  margin-top: 6px;
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pname { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.2; }
.pcontact { font-size: 13px; opacity: .75; margin-top: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-top: 8px;
}
.badge i { font-size: 13px; }
.badge.ok { background: rgba(5,150,105,.15); color: #34d399; }
.badge.warn { background: rgba(217,119,6,.15); color: #fbbf24; }

/* ===== SECTION LABEL ===== */
.section {
  margin-top: 24px; font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .8px;
}

/* ===== MENU / CARD GROUP ===== */
.menu {
  background: var(--bg); border-radius: var(--radius); margin-top: 10px;
  overflow: hidden; border: 1px solid var(--line);
}
.item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; font-size: 15px; text-decoration: none; color: inherit;
  transition: background .15s var(--ease); font-weight: 500;
}
.item:hover { background: var(--bg-soft); }
.item:last-child { border-bottom: none; }
.item .mi {
  width: 36px; height: 36px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--bg-purple); color: var(--fomo-purple);
}
.item .chev { margin-left: auto; color: var(--muted); font-size: 18px; }
.item.danger { color: var(--danger); font-weight: 600; }
.item.danger .mi { background: var(--danger-bg); color: var(--danger); }

/* ===== BOTTOM NAV ===== */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 420px; margin: 0 auto;
  height: 64px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232,229,238,.6);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.solid {
  background: var(--fomo-purple);
  border-top-color: var(--fomo-purple-dark);
}
.nav.solid a { color: rgba(255,255,255,.55); }
.nav.solid a.on { color: #fff; }
.nav.solid a.back-btn { color: rgba(255,255,255,.8); }
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 11px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color .2s var(--ease);
  position: relative;
}
.nav a i { font-size: 22px; line-height: 1; }
.nav a span { font-size: 11px; }
.nav a.on { color: var(--fomo-purple); font-weight: 700; }
.nav a.back-btn { color: var(--sub); }
.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--fomo-orange); color: #fff; border-radius: 999px;
  font-size: 9px; font-weight: 800; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* ===== TOPBAR ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 4px 0; }
.topbar h2 { margin: 0; }
.topbar .back {
  color: var(--fomo-purple); font-weight: 600; text-decoration: none;
  font-size: 14px; display: flex; align-items: center; gap: 2px;
}
.topbar .back i { font-size: 20px; }

/* ===== EMPTY STATE ===== */
.empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; color: var(--sub);
  gap: 10px; padding: 40px 20px;
}
.empty .big { color: var(--muted); }
.empty .big i { font-size: 48px; }
.empty h2 { color: var(--ink); font-family: var(--font-display); }
.empty p { font-size: 15px; line-height: 1.5; max-width: 240px; }

/* ===== VERIFY CTA ===== */
.verify-cta {
  background: var(--bg-soft); border: 1.5px dashed var(--fomo-lavender);
  border-radius: var(--radius); padding: 16px; margin-top: 14px;
  display: flex; gap: 12px; align-items: center;
}
.verify-cta .ico { font-size: 22px; color: var(--fomo-purple); }
.verify-cta .txt { flex: 1; }
.verify-cta .txt b { font-size: 14px; }
.verify-cta .txt p { margin: 2px 0 0; font-size: 12.5px; color: var(--sub); }
.verify-cta button {
  background: var(--fomo-purple); color: #fff; border: none; border-radius: var(--radius-xs);
  padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: var(--font);
}

/* ===== INFO ROWS ===== */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--sub); font-size: 13px; font-weight: 500; }
.info-value { font-weight: 600; text-align: right; max-width: 60%; }
.info-value.empty-val { color: var(--muted); font-weight: 400; font-style: italic; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 16px 20px 12px; font-size: 11px; color: var(--muted); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--sub); }
.fomo-footer { text-align: center; padding: 20px 16px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: auto; }
.fomo-footer a { color: var(--muted); text-decoration: none; }
.fomo-footer a:hover { color: var(--sub); }
.fomo-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-bottom: 10px; }
.fomo-footer-links a { padding: 2px 8px; border-right: 1px solid var(--line); line-height: 1.6; }
.fomo-footer-links a:last-child { border-right: none; }
.fomo-footer-legal { margin-bottom: 6px; font-weight: 600; line-height: 1.5; }
.fomo-footer-addr { font-size: 10px; opacity: .7; line-height: 1.6; }

/* ===== SPINNER (legacy compat) ===== */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(109,40,217,.12); border-top-color: var(--fomo-purple);
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty .spinner { width: 36px; height: 36px; border-width: 3px; }

/* ===== CHIPS / PILLS ===== */
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--fomo-lavender); background: var(--bg-soft); }
.chip.on { background: var(--fomo-purple); border-color: var(--fomo-purple); color: #fff; font-weight: 700; }

.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill.act { background: var(--bg-purple); color: var(--fomo-purple-dark); }
.pill.avail { background: var(--ok-bg); color: var(--ok); }
.pill.full { background: var(--warn-bg); color: var(--warn); }
.pill.seats { background: var(--ok-bg); color: var(--ok); }
.pill.vibe { background: var(--bg-lavender); color: var(--fomo-purple); }
/* Orange pills — urgency only */
.pill.urgent { background: var(--bg-orange); color: var(--fomo-orange); font-weight: 700; }

/* ===== FILTERS ===== */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; margin-bottom: 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

/* ===== VENUE PAGE ===== */
.loc-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm);
  margin-bottom: 12px; font-size: 13px; color: var(--sub);
  border: 1px solid var(--line-soft);
}
.loc-bar i { font-size: 18px; color: var(--fomo-purple); }
.loc-bar .loc-btn {
  background: var(--fomo-purple); color: #fff; border: none; border-radius: var(--radius-xs);
  padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font);
}

.vcard {
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--line); margin-bottom: 12px; overflow: hidden;
  transition: border-color .15s var(--ease);
}
.vcard:hover { border-color: var(--fomo-lavender); }
.vcard-head { padding: 16px; cursor: pointer; }
.vname { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.vaddr { font-size: 13px; color: var(--sub); margin-top: 4px; display: flex; align-items: flex-start; gap: 4px; }
.vaddr i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.vdist { font-size: 12px; color: var(--fomo-purple); font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.vdist i { font-size: 14px; }
.vtags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.gmap-link {
  font-size: 12px; color: var(--fomo-purple); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
}
.gmap-link:hover { text-decoration: underline; }
.gmap-link i { font-size: 14px; }
.vcard-body { border-top: 1px solid var(--line-soft); display: none; }
.vcard-body.open { display: block; }

/* Unit accordion */
.unit-acc { border-bottom: 1px solid var(--line-soft); }
.unit-acc:last-child { border-bottom: none; }
.unit-head { display: flex; align-items: center; padding: 14px 16px; cursor: pointer; gap: 10px; transition: background .15s; }
.unit-head:hover { background: var(--bg-soft); }
.unit-icon { font-size: 18px; width: 36px; height: 36px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; background: var(--bg-purple); color: var(--fomo-purple); }
.unit-info { flex: 1; }
.unit-name { font-weight: 700; font-size: 14px; }
.unit-meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.unit-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.unit-badge.free { background: var(--ok-bg); color: var(--ok); }
.unit-badge.none { background: var(--bg-soft); color: var(--sub); }
.unit-arrow { color: var(--muted); font-size: 16px; transition: transform .2s var(--ease); }
.unit-acc.open .unit-arrow { transform: rotate(90deg); }

/* Schedule */
.unit-schedule { display: none; padding: 0 16px 14px; }
.unit-acc.open .unit-schedule { display: block; animation: fadeUp .2s var(--ease); }
.sched-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  cursor: pointer; transition: all .15s var(--ease); background: var(--bg);
}
.sched-row:hover { border-color: var(--fomo-lavender); }
.sched-row.selected { border-color: var(--fomo-purple); background: var(--bg-purple); }
.sched-row.booked { background: var(--bg-soft); opacity: .5; cursor: default; }
.sched-time { font-weight: 700; font-size: 14px; min-width: 100px; }
.sched-price { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--fomo-purple); }
.sched-label { font-size: 11px; color: var(--sub); font-weight: 400; }
.sched-status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-left: 8px; }
.sched-status.open { background: var(--ok-bg); color: var(--ok); }
.sched-status.taken { background: var(--bg-soft); color: var(--sub); }
.sched-status.timeout { background: #fef2f2; color: #dc2626; }

/* Pay bar */
.pay-bar {
  position: sticky; bottom: 66px; background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 14px 20px; margin: 0 -20px;
  display: none; align-items: center; justify-content: space-between;
  z-index: 2;
}
.pay-bar .total { font-size: 13px; color: var(--sub); }
.pay-bar .total b { font-size: 18px; color: var(--ink); display: block; font-family: var(--font-display); }
.pay-bar .btn { width: auto; padding: 12px 24px; margin: 0; font-size: 14px; }

/* ===== SESSION PAGE ===== */
.tabs {
  display: flex; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 16px;
}
.tabs div {
  flex: 1; text-align: center; padding: 10px 4px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 500; cursor: pointer; color: var(--sub);
  transition: all .2s var(--ease);
}
.tabs div.on {
  background: var(--bg); color: var(--ink); font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.scard {
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s var(--ease);
}
.scard:hover { border-color: var(--fomo-lavender); }
.scard .st { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.scard .sm { font-size: 13px; color: var(--sub); margin-top: 4px; }
.scard .sr { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.fab {
  position: sticky; bottom: 84px; align-self: flex-end; margin-top: 14px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--fomo-purple); color: #fff; border: none;
  font-size: 24px; cursor: pointer; z-index: 2;
  transition: transform .15s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.fab:active { transform: scale(.92); }
.fab i { font-size: 24px; }

/* ===== BOOKING PAGE ===== */
.venue-header {
  background: var(--fomo-purple); color: #fff; border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.venue-header h2 { margin: 0; font-size: 17px; color: #fff; }
.venue-header .addr { font-size: 13px; opacity: .75; margin-top: 4px; }
.slot-card {
  background: var(--bg); border-radius: var(--radius);
  border: 1.5px solid var(--line);
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all .15s var(--ease);
}
.slot-card:hover { border-color: var(--fomo-lavender); }
.slot-card.selected { border-color: var(--fomo-purple); background: var(--bg-purple); }
.slot-time { font-weight: 700; font-size: 15px; min-width: 100px; }
.slot-info { flex: 1; }
.slot-info .unit { font-size: 13px; color: var(--sub); }
.slot-info .act { font-size: 12px; font-weight: 600; color: var(--fomo-purple); }
.slot-price { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--fomo-purple); }
.date-header { font-size: 13px; font-weight: 700; color: var(--sub); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .5px; }

/* ===== BOOKING SAYA ===== */
.bcard {
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px; margin-bottom: 10px;
}
.bcard .btitle { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.bcard .bsub { font-size: 13px; color: var(--sub); margin-top: 3px; }
.bcard .bprice { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fomo-purple); margin-top: 8px; }
.bcard .bstatus { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-top: 6px; }
.bstatus.lunas { background: var(--ok-bg); color: var(--ok); }
.bstatus.menunggu { background: var(--bg-lavender); color: var(--fomo-purple); }
.bstatus.gagal { background: var(--danger-bg); color: var(--danger); }

/* ===== WALLET ===== */
.balance-card {
  background: var(--fomo-purple); color: #fff; border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.balance-card .bal-label { font-size: 13px; opacity: .7; font-weight: 500; }
.balance-card .bal-amount { font-family: var(--font-display); font-size: 34px; font-weight: 800; margin: 8px 0; letter-spacing: -1px; }
.balance-card .bal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xs); padding: 10px 20px; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: var(--font); margin-top: 8px;
  transition: background .15s;
}
.balance-card .bal-btn:hover { background: rgba(255,255,255,.22); }
.balance-card .bal-btn i { font-size: 16px; }

.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tx-row:last-child { border-bottom: none; }
.tx-icon { width: 36px; height: 36px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.tx-icon.credit { background: var(--ok-bg); color: var(--ok); }
.tx-icon.debit { background: var(--danger-bg); color: var(--danger); }
.tx-info { flex: 1; }
.tx-desc { font-size: 13px; font-weight: 600; }
.tx-date { font-size: 11px; color: var(--sub); margin-top: 2px; }
.tx-amount { font-weight: 800; font-size: 14px; }
.tx-amount.credit { color: var(--ok); }
.tx-amount.debit { color: var(--danger); }

.bank-card {
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px; margin-top: 14px;
}
.bank-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.bank-card h3 i { font-size: 18px; color: var(--fomo-purple); }
.wd-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.wd-row:last-child { border-bottom: none; }
.wd-status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.wd-status.done { background: var(--ok-bg); color: var(--ok); }
.wd-status.processing { background: var(--bg-lavender); color: var(--fomo-purple); }
.wd-status.pending { background: var(--warn-bg); color: var(--warn); }
.wd-status.failed { background: var(--danger-bg); color: var(--danger); }

/* ===== MODAL ===== */
.modal-bg {
  position: fixed; inset: 0; background: rgba(22,18,31,.5);
  display: none; align-items: flex-end; justify-content: center; z-index: 100;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--bg); border-radius: 20px 20px 0 0; padding: 24px;
  width: 100%; max-width: 420px;
  animation: slideUp .25s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal h3 { margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.modal h3 i { font-size: 20px; color: var(--fomo-purple); }
.modal .close {
  float: right; background: var(--bg-soft); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; cursor: pointer; color: var(--sub);
  display: flex; align-items: center; justify-content: center;
}
.modal .close:hover { background: var(--line); }
select.sel {
  width: 100%; padding: 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 16px; font-family: var(--font);
  background: var(--bg); color: var(--ink);
}

/* ===== BOOKING SUCCESS — "You're in." moment ===== */
.success-moment {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 16px;
  padding: 48px 20px; flex: 1;
}
.success-moment .display-text { color: var(--fomo-purple); }
.success-moment p { font-size: 15px; color: var(--sub); line-height: 1.5; max-width: 260px; }

/* ===== LEGAL PAGES ===== */
.legal { padding: 0 0 40px; }
.legal h1 { font-size: 22px; margin: 0 0 4px; }
.legal .updated { font-size: 13px; color: var(--sub); margin-bottom: 24px; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 14px; line-height: 1.7; color: var(--ink2); margin: 0 0 10px; }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--fomo-purple); text-decoration: none; font-weight: 600; }
.legal strong { font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--bg-purple); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
