:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #17242b;
  --ink-2: #4b5a62;
  --ink-3: #7d8a90;
  --line: #e6e1d7;
  --brand: #0d5c63;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0ef;
  --accent: #c8862d;
  --ok: #1f8a54;
  --ok-soft: #e4f4ea;
  --warn: #c2620f;
  --warn-soft: #fdf0e1;
  --bad: #b3261e;
  --bad-soft: #fbe7e5;
  --muted-soft: #eeebe5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 36, 43, .05), 0 4px 16px rgba(23, 36, 43, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1619; --surface: #162126; --surface-2: #1b282e; --ink: #e8eef0; --ink-2: #b2c0c5; --ink-3: #82939a;
    --line: #26363d; --brand: #4fb3ab; --brand-ink: #062a2d; --brand-soft: #173a3b; --accent: #e0a650;
    --ok: #5cc98d; --ok-soft: #173326; --warn: #f0a157; --warn-soft: #3a2a17; --bad: #f08a80; --bad-soft: #3d1d1b; --muted-soft: #1f2c31;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
pre.wa { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; max-height: 55vh; overflow: auto; }

/* ---------- top bar ---------- */
.topbar { background: #0d5c63; color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-size: 19px; letter-spacing: .2px; }
.logo span { display: block; font-size: 12px; opacity: .8; font-weight: 400; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; min-height: 40px; }
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn.on-brand { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- chips / filters ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.search { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--ink-3); }

/* ---------- package cards ---------- */
.month-h { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; color: inherit; text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--brand); }
.card.sold { opacity: .72; }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.datebox { flex: none; width: 56px; text-align: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); padding: 6px 0; }
.datebox .d { font-size: 22px; font-weight: 800; line-height: 1; }
.datebox .m { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-size: 15px; font-weight: 700; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.tag { background: var(--muted-soft); border-radius: 6px; padding: 2px 7px; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.open { background: var(--ok-soft); color: var(--ok); }
.badge.low { background: var(--warn-soft); color: var(--warn); }
.badge.sold { background: var(--muted-soft); color: var(--ink-3); }
.badge.over { background: var(--bad-soft); color: var(--bad); }
.meter { height: 8px; background: var(--muted-soft); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.low > i { background: var(--warn); }
.meter.sold > i { background: var(--ink-3); }
.seatline { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.seatline b { color: var(--ink); }
.price { font-size: 13px; color: var(--ink-2); }
.price b { font-size: 16px; color: var(--ink); }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 12px; }
.panel h2 { font-size: 16px; margin-bottom: 10px; }
.hero h1 { font-size: 21px; margin: 6px 0; }
.big-open { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.lines { white-space: pre-line; font-size: 14px; }
.flight { font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-line; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
table.prices { width: 100%; border-collapse: collapse; }
table.prices td { padding: 7px 0; border-bottom: 1px solid var(--line); }
table.prices td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
table.prices tr:last-child td { border-bottom: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.ticks li { padding-left: 24px; position: relative; font-size: 14px; }
ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
ul.ticks.x li::before { content: "✕"; color: var(--bad); }
ol.pendaftar { margin: 0; padding: 0; list-style: none; counter-reset: n; }
ol.pendaftar li { counter-increment: n; display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
ol.pendaftar li::before { content: counter(n) "."; color: var(--ink-3); width: 22px; flex: none; text-align: right; }
ol.pendaftar li .pax { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.sticky-side { position: sticky; top: 12px; }
.mobile-bar { display: none; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 18, 22, .5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 0; }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 18px 16px 22px; max-height: 92vh; overflow: auto; }
.modal h2 { font-size: 18px; margin-bottom: 4px; }
@media (min-width: 640px) { .modal-bg { align-items: center; padding: 16px; } .modal { border-radius: 18px; padding: 22px; } }
.field { display: grid; gap: 4px; margin-top: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea, .inp { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 11px; width: 100%; }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.err { color: var(--bad); font-size: 13px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 99; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
footer.foot { padding: 32px 0 90px; text-align: center; color: var(--ink-3); font-size: 13px; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 20; }
  .mobile-bar .btn { flex: 1; }
  .hide-m { display: none !important; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 10px; }
  .stat .v { font-size: 20px; }
  .grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .logo span { display: none; }
}

/* ---------- admin ---------- */
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #fff; opacity: .78; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a.on, .nav a:hover { opacity: 1; background: rgba(255,255,255,.14); }
.nav .cnt { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.admin-top .wrap { flex-wrap: wrap; row-gap: 6px; }
.page-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.page-h h1 { font-size: 20px; }
.tabs { display: inline-flex; background: var(--muted-soft); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.li { display: grid; grid-template-columns: 64px 1fr 150px 110px auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--surface-2); }
.li .t { font-weight: 700; }
.li .s { font-size: 12px; color: var(--ink-3); }
.flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.flag { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 6px; background: var(--warn-soft); color: var(--warn); }
.flag.info { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 760px) {
  .li { grid-template-columns: 52px 1fr auto; }
  .li .c-meter, .li .c-act { display: none; }
}

table.bk { width: 100%; border-collapse: collapse; font-size: 14px; }
table.bk th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.bk td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.bk tr.tl td { background: var(--surface-2); }
table.bk input.inp, table.bk select.inp { padding: 6px 8px; border-radius: 8px; min-width: 0; }
table.bk .num { width: 64px; text-align: right; }
table.bk .idx { color: var(--ink-3); width: 26px; text-align: right; }
table.bk tfoot td { font-weight: 800; padding-top: 10px; border-bottom: 0; }
.tbl-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.ico { border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--ink-3); font-size: 15px; line-height: 1; }
.ico:hover { background: var(--muted-soft); color: var(--ink); }
.ico.del:hover { color: var(--bad); }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; user-select: none; }
.switch input { width: 18px; height: 18px; accent-color: var(--ok); }
.add-row { display: grid; grid-template-columns: 1.6fr 80px 120px 1.2fr auto auto; gap: 8px; align-items: center; margin-top: 12px; }
@media (max-width: 760px) { .add-row { grid-template-columns: 1fr 80px; } .add-row .wide { grid-column: 1 / -1; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.variant-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; margin-top: 12px; background: var(--surface-2); }
.req { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.login-box { max-width: 380px; margin: 12vh auto 0; }
.log { font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.log .when { color: var(--ink-3); white-space: nowrap; width: 110px; flex: none; }

/* ================= grafis & interaksi ================= */
:root {
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --track: #e9e5dc; --tip-bg: #17242b; --tip-ink: #f5f3ee;
  --hero-a: #0b4f56; --hero-b: #127882;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --track: #26363d; --tip-bg: #e8eef0; --tip-ink: #0f1619; --hero-a: #082f33; --hero-b: #0d4d54;
  }
}
:root[data-theme="dark"] {
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --track: #26363d; --tip-bg: #e8eef0; --tip-ink: #0f1619; --hero-a: #082f33; --hero-b: #0d4d54;
}

.vtip { position: fixed; z-index: 100; pointer-events: none; background: var(--tip-bg); color: var(--tip-ink); border-radius: 10px; padding: 8px 11px; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.18); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; max-width: 280px; }
.vtip.on { opacity: 1; transform: none; }
.vtip-h { font-weight: 700; margin-bottom: 4px; opacity: .8; font-size: 12px; }
.vtip-r { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.vtip-r i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.vtip-r b { font-variant-numeric: tabular-nums; }
.vtip-r span { opacity: .75; }

/* hero */
.topbar.hero-top { background: transparent; position: absolute; left: 0; right: 0; z-index: 3; }
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 400px at 80% -10%, var(--hero-b), transparent), linear-gradient(160deg, var(--hero-a), var(--hero-b)); padding: 86px 0 74px; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; letter-spacing: -.5px; max-width: 640px; }
.hero p.lead { opacity: .85; max-width: 560px; margin: 10px 0 0; font-size: 16px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats .v { font-size: clamp(30px, 6vw, 46px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats .k { font-size: 13px; opacity: .8; margin-top: 4px; }
.hero-next { margin-top: 24px; display: inline-flex; gap: 12px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 14px; color: #fff; text-decoration: none; }
.hero-next:hover { background: rgba(255,255,255,.16); }
.hero-next .cd { display: flex; gap: 6px; }
.hero-next .cd div { background: rgba(0,0,0,.18); border-radius: 8px; padding: 4px 8px; text-align: center; min-width: 44px; }
.hero-next .cd b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.hero-next .cd span { font-size: 10px; opacity: .8; text-transform: uppercase; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { fill: var(--bg); opacity: .5; animation: wave 14s linear infinite; }
.waves .w2 { fill: var(--bg); animation: wave 9s linear infinite reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.boat { position: absolute; right: 8%; bottom: 34px; width: 120px; opacity: .95; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.stars-bg { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 85% 45%, rgba(255,255,255,.35), transparent), radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,.3), transparent); }
@media (max-width: 640px) { .boat { width: 70px; right: 4%; bottom: 40px; opacity: .6; } .hero { padding: 78px 0 64px; } }
@media (prefers-reduced-motion: reduce) { .waves .w1, .waves .w2, .boat { animation: none; } }

/* toolbar */
.toolbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); padding: 10px 0; margin-top: -26px; }
.toolbar .wrap { display: grid; gap: 8px; }
.viewtabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.viewtabs button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.viewtabs button.on { background: var(--ink); color: var(--bg); }
.viewtabs svg { width: 15px; height: 15px; }

/* kartu v2 */
.card { position: relative; overflow: hidden; animation: rise .45s both; animation-delay: var(--delay, 0ms); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(23,36,43,.10); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
.card .al-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--al, var(--brand)); }
.card-mid { display: flex; gap: 14px; align-items: center; }
.donut { flex: none; }
.donut-v { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.donut-t { font-size: 17px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
.donut-s { font-size: 8.5px; fill: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; flex: 1; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--track); animation: pop .3s both; animation-delay: var(--d); }
.dots i.f { background: var(--s1); }
.card.sold .dots i.f { background: var(--ink-3); }
.card.low .dots i:not(.f) { background: var(--s2); opacity: .9; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.countdown { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.card .go { position: absolute; right: 12px; bottom: 12px; opacity: 0; transition: opacity .15s, transform .15s; transform: translateX(-4px); color: var(--brand); font-weight: 800; }
.card:hover .go { opacity: 1; transform: none; }

/* timeline */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: 16px; }
.chart-card h2 { font-size: 16px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin: 6px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tl-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; }
.tl-svg { display: block; }
.tl-svg .bar { cursor: pointer; outline: none; }
.tl-svg .bar:hover .fillr, .tl-svg .bar:focus .fillr { filter: brightness(1.15); }
.tl-svg .bar:hover .trackr, .tl-svg .bar:focus .trackr { stroke: var(--ink-3); }
.tl-svg text { font-size: 11px; fill: var(--ink-3); }
.tl-svg .lbl { fill: var(--ink); font-weight: 800; font-size: 11px; }
.tl-svg .grid { stroke: var(--line); }
.tl-svg .fillr { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* kalender */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 16px; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.cal h3 { font-size: 15px; margin-bottom: 8px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-g .dw { font-size: 10px; font-weight: 700; color: var(--ink-3); padding-bottom: 4px; }
.cal-g .day { aspect-ratio: 1; border-radius: 8px; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-3); position: relative; }
.cal-g a.day { color: var(--ink); font-weight: 800; text-decoration: none; background: var(--brand-soft); cursor: pointer; transition: transform .12s; }
.cal-g a.day:hover { transform: scale(1.08); }
.cal-g a.day.low { background: var(--warn-soft); }
.cal-g a.day.sold { background: var(--muted-soft); color: var(--ink-3); }
.cal-g a.day small { font-size: 9px; font-weight: 700; color: var(--ok); line-height: 1; }
.cal-g a.day.low small { color: var(--warn); }
.cal-g a.day.sold small { color: var(--ink-3); }
.cal-g a.day.multi::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--s2); }

/* detail v2 */
.d-hero { position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 22px; background: linear-gradient(140deg, var(--hero-a), var(--hero-b)); }
.d-hero .tag { background: rgba(255,255,255,.15); color: #fff; }
.d-hero h1 { font-size: clamp(20px, 3.4vw, 28px); margin: 8px 0 6px; max-width: 680px; }
.d-hero .sub { opacity: .85; font-size: 14px; }
.d-hero .tagline { color: #ffd38a; font-weight: 700; margin-top: 4px; }
.d-hero .cd { display: flex; gap: 8px; margin-top: 16px; }
.d-hero .cd div { background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 54px; }
.d-hero .cd b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.d-hero .cd span { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.d-hero .plane { position: absolute; right: -10px; top: 14px; width: 180px; opacity: .12; transform: rotate(-12deg); }
.route { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 8px 0; }
.route + .route { border-top: 1px dashed var(--line); }
.route-l { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.route-p { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.stop { text-align: center; flex: none; }
.stop b { display: block; font-size: 15px; letter-spacing: .5px; padding: 4px 8px; border-radius: 8px; background: var(--muted-soft); }
.stop.end b { background: var(--brand); color: var(--brand-ink); }
.stop span { font-size: 11px; color: var(--ink-3); }
.leg { flex: 1; min-width: 34px; position: relative; height: 22px; color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.leg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line); }
.leg svg { width: 18px; height: 18px; position: relative; transform: rotate(90deg); background: var(--surface); animation: fly 3s ease-in-out infinite; }
@keyframes fly { 0%,100% { transform: rotate(90deg) translateY(4px); } 50% { transform: rotate(90deg) translateY(-4px); } }
.itin { display: flex; gap: 2px; border-radius: 10px; overflow: hidden; margin: 6px 0 10px; }
.itin-s { background: var(--c); color: #fff; padding: 10px 10px; min-width: 64px; cursor: default; outline: none; transition: filter .15s; }
.itin-s:hover, .itin-s:focus { filter: brightness(1.12); }
.itin-s b { display: block; font-size: 14px; }
.itin-s span { font-size: 12px; opacity: .9; }
.itin-h { display: grid; gap: 4px; font-size: 13px; margin-bottom: 6px; }
.itin-h .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stars { color: var(--s4); letter-spacing: 1px; }
.pbar-g + .pbar-g { margin-top: 12px; }
.pbar-n { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.pbar { display: grid; grid-template-columns: 58px 1fr 84px; gap: 10px; align-items: center; padding: 4px 0; outline: none; }
.pbar-k { font-size: 13px; color: var(--ink-2); }
.pbar-t { height: 12px; background: var(--track); border-radius: 4px; overflow: hidden; }
.pbar-t i { display: block; height: 100%; width: var(--w); background: var(--s1); border-radius: 0 4px 4px 0; animation: growx .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.pbar:hover .pbar-t i, .pbar:focus .pbar-t i { filter: brightness(1.15); }
.pbar b { text-align: right; font-size: 14px; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* seat map */
.seatmap { display: grid; gap: 5px; justify-content: center; padding: 14px 10px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 40px 40px 14px 14px; position: relative; }
.seatmap::before { content: "DEPAN ✈"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--surface); padding: 0 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); }
.sm-row { display: grid; grid-template-columns: repeat(3, 26px) 16px repeat(3, 26px); gap: 5px; align-items: center; }
.sm-row .rn { font-size: 10px; color: var(--ink-3); text-align: center; }
.seat { width: 26px; height: 26px; border-radius: 7px 7px 5px 5px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; position: relative; transition: transform .1s, background .15s; font-size: 9px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; }
.seat::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -3px; height: 3px; border-radius: 2px; background: inherit; filter: brightness(.85); }
.seat:hover:not(:disabled) { transform: scale(1.12); border-color: var(--s2); }
.seat.taken { background: var(--s1); border-color: var(--s1); cursor: default; animation: pop .35s both; animation-delay: var(--d); }
.seat.taken.tl { background: var(--s7); border-color: var(--s7); }
.seat.taken.hl { outline: 2px solid var(--ink); outline-offset: 1px; transform: scale(1.1); }
.seat.taken.dim { opacity: .35; }
.seat.sel { background: var(--s2); border-color: var(--s2); }
.seat:disabled:not(.taken) { opacity: .4; cursor: not-allowed; }
.sm-bar { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.sm-bar .cnt { font-size: 13px; color: var(--ink-2); }
ol.pendaftar li { cursor: default; border-radius: 6px; transition: background .12s; }
ol.pendaftar li:hover, ol.pendaftar li.hl { background: var(--brand-soft); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .6; } }

/* admin charts */
.dash { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.hbar { display: grid; grid-template-columns: 92px 1fr 64px; gap: 10px; align-items: center; padding: 3px 0; cursor: pointer; border-radius: 6px; outline: none; }
.hbar:hover, .hbar:focus { background: var(--surface-2); }
.hbar .n { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .t { display: flex; height: 14px; background: var(--track); border-radius: 4px; overflow: hidden; gap: 2px; }
.hbar .t i { display: block; height: 100%; animation: growx .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.hbar .t i:last-of-type { border-radius: 0 4px 4px 0; }
.hbar .v { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hbar .v b { color: var(--ink); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 520px) { .hide-xs { display: none; } .viewtabs button { padding: 7px 10px; } }
details summary::marker { color: var(--ink-3); }
.detail { grid-template-columns: minmax(0, 1fr) 340px; }
.detail > * { min-width: 0; }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); } }
html, body { overflow-x: hidden; }
.itin-s { min-width: 0; overflow: hidden; }
.itin-s b, .itin-s span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .detail { display: flex; flex-direction: column; gap: 0; }
  .dmain { display: contents; }
  .dmain > * { order: 2; }
  .dmain > .d-hero { order: 0; margin-bottom: 12px; }
  .detail > aside { order: 1; }
  .detail > aside .panel + .panel, .detail .dmain > .panel { margin-top: 12px; }
  .detail > aside > .panel:first-child { margin-top: 0; }
}
