:root {
  --brown: #3b2a1b;
  --brown-2: #5a4128;
  --paper: #f7eedb;
  --paper-2: #efe2c6;
  --gold: #b8873a;
  --gold-l: #e8c983;
  --cream: #fbf3e2;
  --ink: #2e2015;
  --muted: #7a6448;
  --line: #dcc8a3;
  --brand: #3b2a1b;
  --on-brand: #fbf3e2;
  --btn-bg: #fffaf0;
  --input-bg: #fffdf8;
  --ring: rgba(184, 135, 58, .32);
  --modal-bg: #fbf4e4;
}

body.site { background: #2a1d12; color: var(--ink); min-height: 100vh; overflow-x: hidden; }
.bg {
  position: fixed; inset: -60px; z-index: -2;
  background: url(/img/poster.jpg) center 30% / cover no-repeat;
  filter: blur(18px) brightness(.4) saturate(.85);
}
body.site::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(120% 70% at 50% 0%, rgba(80, 55, 30, .15), rgba(20, 12, 6, .55));
}

/* ---------- Hero ---------- */
.hero { max-width: 720px; margin: 0 auto; padding: 30px 18px 22px; text-align: center; color: var(--cream); }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: .9; }
.logo-main {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 44px; letter-spacing: 2px; color: #fff;
  text-shadow: 0 3px 0 #1d140b, 0 6px 16px rgba(0, 0, 0, .45);
}
.logo-sub {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 14px; letter-spacing: 3px; background: #241910;
  color: #fff; padding: 3px 12px 1px; border-radius: 3px; margin-top: 3px; border: 1px solid #6b5236;
}
.title-wrap { display: grid; place-items: center; margin-top: 10px; }
.title-wrap > * { grid-area: 1 / 1; }
.title-ghost {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(88px, 25vw, 172px); line-height: .82;
  letter-spacing: 5px; color: #d8c29b; text-shadow: 0 8px 24px rgba(0, 0, 0, .4); user-select: none;
}
.title-jawi {
  margin: 0; font-family: 'Amiri', 'Traditional Arabic', serif; font-weight: 700; direction: rtl;
  font-size: clamp(56px, 15.5vw, 108px); color: #fff; line-height: 1.15; padding-top: .12em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .65), 0 0 3px rgba(0, 0, 0, .7);
}
.title-rumi {
  margin: 8px 0 0; font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: 3px; font-size: 22px; color: var(--gold-l);
}
.by { margin: -2px 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 31px; font-weight: 500; color: #fff; }
.when {
  margin: 0; font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: 1.5px; font-size: 22px; color: var(--gold-l);
  display: flex; gap: 4px 10px; justify-content: center; flex-wrap: wrap;
}
.when .sep { opacity: .6; }
.where {
  margin: 6px 0 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem;
  color: #f2e6cc;
}
.where svg { color: var(--gold-l); flex: none; }
.poster-btn {
  display: block; margin: 14px auto 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(232, 201, 131, .45);
  color: var(--gold-l); border-radius: 999px; padding: .4em 1.1em; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.poster-btn:hover { background: rgba(255, 255, 255, .15); }

/* ---------- Kertas utama ---------- */
.sheet {
  position: relative; max-width: 620px; margin: 0 auto 26px; background: var(--paper);
  border-radius: 24px; padding: 22px 20px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 0 60px rgba(160, 120, 60, .12);
}
@media (min-width: 560px) { .sheet { padding: 28px 30px 32px; } }

.prices {
  display: grid; grid-template-columns: 1fr 2px 1fr; align-items: center; text-align: center;
  background: linear-gradient(180deg, #45311f, #34251a); color: var(--cream); border-radius: 18px; padding: 16px 6px 14px;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 131, .25);
}
.p-label { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 25px; letter-spacing: 1.5px; }
.p-amt { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(50px, 14vw, 64px); line-height: .92; color: #fff; }
.p-age { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--gold-l); }
.p-div { height: 78%; background: var(--gold-l); opacity: .55; }
.price-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.seats {
  margin: 12px auto 0; width: fit-content; padding: .35em 1em; border-radius: 999px; background: #fff7e6;
  border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--brown-2);
}
.seats.low { background: #fdeceb; border-color: #efc1bd; color: #9f2d2d; }

/* ---------- Menu ---------- */
.hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-btns .poster-btn { margin: 0; }
.menu-btn { background: var(--gold); border-color: var(--gold); color: #fff; }
.menu-btn:hover { background: #a7772f; }
.menu { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fffaf0; scroll-margin-top: 12px; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: #fff4de; }
.menu-ic { font-size: 1.6rem; line-height: 1; }
.menu-h { flex: 1; display: flex; flex-direction: column; }
.menu-h b { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 1.45rem; letter-spacing: 1px; color: var(--brown); line-height: 1.05; }
.menu-h small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.menu-arrow { color: var(--gold); font-size: 1.1rem; transition: transform .2s; }
.menu[open] .menu-arrow { transform: rotate(180deg); }
.menu[open] > summary { border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.menu-body { padding: 12px; }
.menu-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.menu-chips button {
  border: 1px solid var(--line); background: #fff; color: var(--brown-2); border-radius: 999px; padding: .35em .9em;
  font-size: .82rem; font-weight: 700; cursor: pointer;
}
.menu-chips button.on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.stall { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e6d5b4; }
.stall header { background: linear-gradient(180deg, #4a3421, #3b2a1b); color: var(--cream); padding: 9px 12px 8px; }
.stall h3 { margin: 0; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 1.3rem; letter-spacing: 1px; line-height: 1.1; color: #fff; }
.stall h4 { margin: 10px 12px 2px; font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--gold); }
.stall ul { list-style: none; margin: 0; padding: 8px 10px 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.stall h4 + ul { padding-top: 4px; }
.stall li { background: #f8efdc; border-radius: 7px; padding: .22em .6em; font-size: .86rem; color: var(--ink); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 800; letter-spacing: .8px;
  padding: .2em .6em; border-radius: 999px; margin: 0 6px 4px 0;
}
.tag.live { background: #c0392b; color: #fff; }
.tag.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livePulse 1.4s ease-in-out infinite; }
.tag.baru { background: var(--gold-l); color: #3b2a1b; }
@keyframes livePulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tag.live i { animation: none; } }
.stall.is-live { border-color: #e2b3ab; }
.menu-poster { display: block; margin: 12px auto 0; font-size: .88rem; }

/* ---------- Countdown ---------- */
.countdown {
  margin: 14px auto 0; max-width: 420px; text-align: center; padding: 12px 12px 10px; border-radius: 14px;
  background: linear-gradient(180deg, #3b2a1b, #2a1d12); color: var(--cream); border: 1px solid #6b5236;
  box-shadow: 0 6px 18px rgba(42, 29, 18, .18);
}
.cd-title { font-size: .85rem; font-weight: 700; letter-spacing: .3px; color: var(--gold-l); margin-bottom: 8px; }
.cd-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-boxes div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(232, 201, 131, .25); border-radius: 10px; padding: 6px 0 5px; }
.cd-boxes b {
  display: block; font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(30px, 9vw, 40px); line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; font-weight: 400;
}
.cd-boxes span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-l); }
.cd-date { font-size: .78rem; color: #d9c7a6; margin-top: 8px; }
.countdown.urgent { background: linear-gradient(180deg, #7a2a22, #4d1913); border-color: #a8483d; }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 22px 0 18px; }
.steps li {
  flex: 1; display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 650; color: #a99272;
  padding-bottom: 8px; border-bottom: 3px solid #e4d5b8;
}
.steps li span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e4d5b8;
  color: #fff; font-size: .75rem; flex: none;
}
.steps li.on { color: var(--brown); border-color: var(--gold); }
.steps li.on span { background: var(--brown); }
.steps li.done span { background: var(--gold); }

.loading { text-align: center; padding: 30px 0; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid var(--line); font-size: .92rem; }
.notice.err { background: #fdeceb; border-color: #efc1bd; color: #8b2a25; margin-top: 16px; }

.step-title { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: 1px; font-size: 27px; font-weight: 400; margin: 0 0 14px; text-align: center; color: var(--brown); }

/* ---------- Kaunter pax ---------- */
.counters { margin: 4px 0 14px; }
.counter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 11px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--input-bg); margin-bottom: 9px;
}
.counter b { display: block; font-size: 1rem; }
.counter small { color: var(--muted); font-size: .82rem; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--brown); background: #fff; font-size: 22px;
  font-weight: 700; cursor: pointer; color: var(--brown); display: grid; place-items: center; line-height: 1;
}
.stepper button[data-d="1"] { background: var(--brown); color: var(--cream); }
.stepper button:disabled { opacity: .28; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 1.3rem; }

/* ---------- Ringkasan harga ---------- */
.summary { background: #fffaf0; border: 1.5px dashed #d6bf92; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: .93rem; }
.summary .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.summary .row.muted { color: var(--muted); }
.summary .row.total { border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 8px; font-size: 1.12rem; font-weight: 800; }
.summary .row.total span:last-child { font-weight: 800; }
.form-err { color: #a3302a; font-weight: 600; font-size: .92rem; min-height: 0; margin: 0 0 10px; }
.form-err:empty { display: none; }

/* ---------- Bayaran ---------- */
.back { color: var(--muted); margin-bottom: 12px; font-size: .9rem; }
.pay-total {
  text-align: center; background: var(--brown); color: var(--cream); border-radius: 18px; padding: 16px 14px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pay-total span { font-size: .85rem; letter-spacing: .5px; text-transform: uppercase; opacity: .85; font-weight: 600; }
.pay-total strong { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 52px; line-height: 1; font-weight: 400; letter-spacing: 1px; color: #fff; }
.pay-total .btn { background: rgba(255, 255, 255, .1); color: var(--cream); border-color: rgba(232, 201, 131, .5); margin-top: 4px; }
.sum-details { margin: 10px 0 4px; }
.sum-details summary { cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600; text-align: center; margin-bottom: 8px; }
.pay-methods { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .pay-methods:has(#bankCard:not([hidden])):has(#qrCard:not([hidden])) { grid-template-columns: 1.25fr 1fr; } }
.pay-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pay-card h3 { margin: 0 0 8px; font-size: .95rem; color: var(--brown-2); }
.pay-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .93rem; }
.pay-card dt { color: var(--muted); }
.pay-card dd { margin: 0; font-weight: 700; word-break: break-word; }
.pay-card dd.acc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.12rem; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.pay-card.qr { text-align: center; }
.qr-btn { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; margin: 0 auto 6px; }
.qr-btn img { width: 190px; max-width: 100%; border-radius: 10px; border: 1px solid #eee; }
.small { font-size: .85rem; }
.pay-note { font-size: .88rem; color: var(--muted); margin: 10px 2px 0; }
.pay-note:empty { display: none; }
.up-title { font-size: 1rem; margin: 20px 0 8px; }

.drop {
  position: relative; display: block; border: 2px dashed #c9ad7a; border-radius: 16px; background: #fffaf0; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop:focus-within { border-color: var(--brown); background: #fff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; text-align: center; color: var(--brown-2); }
.drop-empty small { color: var(--muted); }
.drop-full { display: flex; align-items: center; gap: 14px; padding: 12px; }
.drop-full img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.pdf-icon { width: 74px; height: 74px; border-radius: 10px; background: #a3302a; color: #fff; display: grid; place-items: center; font-weight: 800; }
.drop-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.drop-meta .link-btn { color: var(--gold); font-size: .88rem; width: fit-content; }
.drop.has { border-style: solid; border-color: #6c9c6f; background: #f3faf2; }
.confirm { margin: 16px 0 12px; }

/* ---------- Selesai ---------- */
.done { text-align: center; padding-top: 6px; }
.done-icon {
  width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: #2f7a46; color: #fff; font-size: 40px;
  display: grid; place-items: center; box-shadow: 0 0 0 8px #dff0e3; animation: popIn .35s ease;
}
.done h2 { margin: 6px 0 4px; font-size: 1.45rem; }
.done .lead { color: var(--muted); margin: 0 0 16px; }
.ref-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 2px solid var(--gold);
  border-radius: 16px; padding: 14px; margin: 0 auto 14px; max-width: 340px;
}
.ref-box span { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ref-box strong { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 44px; letter-spacing: 3px; line-height: 1; color: var(--brown); font-weight: 400; }
.next { text-align: left; max-width: 400px; margin: 0 auto 18px; padding-left: 20px; color: var(--ink); font-size: .94rem; }
.next li { margin-bottom: 4px; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.again { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.closed { text-align: center; padding: 18px 0 4px; }
.closed h2 { margin: 0 0 6px; }
.closed p { color: var(--muted); }

.foot { text-align: center; color: #d9c7a5; font-size: .88rem; padding: 0 16px 34px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--gold-l); font-weight: 600; }

/* ---------- Poster modal ---------- */
.modal.poster { padding: 10px; background: #1d140b; width: min(560px, 100%); }
.modal.poster img { border-radius: 10px; width: 100%; }
.modal.poster .modal-x { color: #fff; background: rgba(0, 0, 0, .45); }
.modal.qrbig { text-align: center; }
.modal.qrbig img { margin: 10px auto; width: min(360px, 100%); }

/* ---------- Semak status ---------- */
.check-form { display: grid; gap: 2px; }
.status-card { margin-top: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; overflow: hidden; }
.status-head { padding: 16px; display: flex; gap: 12px; align-items: center; }
.status-head .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none; color: #fff; }
.status-head b { display: block; font-size: 1.08rem; }
.status-head small { color: var(--muted); }
.st-pending .status-head { background: #fdf4dd; } .st-pending .ic { background: #c08a1e; }
.st-paid .status-head { background: #e5f3e8; } .st-paid .ic { background: #2f7a46; }
.st-rejected .status-head { background: #fbe7e5; } .st-rejected .ic { background: #b23b3b; }
.st-cancelled .status-head { background: #eee; } .st-cancelled .ic { background: #777; }
.table-big { text-align: center; padding: 16px 12px 6px; }
.table-big span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.table-big strong { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 64px; line-height: 1; color: var(--brown); font-weight: 400; }
.status-body { padding: 14px 16px 16px; }
.status-body .summary { margin-bottom: 10px; }
.reason { background: #fdeceb; border-radius: 10px; padding: 10px 12px; color: #8b2a25; font-size: .92rem; margin-bottom: 12px; }
.reup { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.reup h4 { margin: 0 0 8px; }

.terms-link { color: var(--gold); font-size: inherit; }
.terms-text { white-space: pre-line; font-size: .93rem; line-height: 1.6; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-height: 55vh; overflow: auto; }
.rc-link { width: 100%; margin: 4px 0 6px; text-decoration: none; }
