/* Event BijakMedia — Claymorphism
   Soft "inflated" surfaces: an outer coloured drop shadow + an inner highlight (top-left)
   + an inner shade (bottom-right). Radii by hierarchy: panel 28, item 20, control 16, pill 999. */

:root {
  --bg: #E6F0F3;
  --bg-2: #DCEAEE;
  --surface: #F6FAFB;
  --ink: #1B2440;
  --muted: #5F6B85;
  --line: #D3E1E6;
  --teal: #1E8FA3;
  --teal-d: #16707F;
  --teal-p: #C4ECF0;
  --orange: #F5A31A;
  --orange-d: #C97F06;
  --orange-p: #FFE6BD;
  --navy: #0A0A2A;
  --rose: #E5484D;
  --rose-p: #FFD9DA;
  --mint: #1F9D66;
  --mint-p: #CFF1DE;
  --brand: var(--teal);

  --r-panel: 28px;
  --r-item: 20px;
  --r-ctl: 16px;

  --clay: 10px 12px 24px rgba(30, 90, 110, .16), inset -5px -6px 12px rgba(30, 90, 110, .08), inset 5px 6px 12px rgba(255, 255, 255, .9);
  --clay-sm: 6px 7px 14px rgba(30, 90, 110, .14), inset -3px -4px 8px rgba(30, 90, 110, .07), inset 3px 4px 8px rgba(255, 255, 255, .9);
  --sunken: inset 4px 5px 10px rgba(30, 90, 110, .14), inset -4px -4px 10px rgba(255, 255, 255, .95);

  --f-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 560px; }
.mid { max-width: 820px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.mt0 { margin-top: 0 !important; } .mb0 { margin-bottom: 0 !important; }
.mt { margin-top: 1.5rem; } .mb { margin-bottom: 1.5rem; }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- clay surfaces ---------- */
.clay {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--clay);
  padding: clamp(18px, 3vw, 28px);
}
.clay.tint-teal { background: linear-gradient(160deg, #D6F3F6, #C1E9EE); }
.clay.tint-orange { background: linear-gradient(160deg, #FFF0D6, #FFE0AE); }
.clay.tint-navy { background: linear-gradient(160deg, #23285A, #0F1238); color: #EEF3FF; }
.clay.tint-navy .muted { color: #B9C2E6; }
.item {
  background: var(--surface);
  border-radius: var(--r-item);
  box-shadow: var(--clay-sm);
  padding: 16px 18px;
}
.well { background: var(--bg-2); border-radius: var(--r-item); box-shadow: var(--sunken); padding: 16px 18px; }

/* ---------- buttons: puffy pills that press down ---------- */
.btn {
  --c: var(--teal);
  --c-d: var(--teal-d);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--c); color: #fff;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  box-shadow: 5px 6px 14px color-mix(in srgb, var(--c) 40%, transparent), inset -3px -4px 8px color-mix(in srgb, var(--c-d) 70%, transparent), inset 3px 4px 8px rgba(255, 255, 255, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: #fff; filter: brightness(1.04); }
.btn:active { transform: translateY(2px) scale(.985); box-shadow: 2px 2px 6px color-mix(in srgb, var(--c) 35%, transparent), inset -2px -2px 6px color-mix(in srgb, var(--c-d) 80%, transparent), inset 2px 2px 6px rgba(255, 255, 255, .25); }
.btn.orange { --c: var(--orange); --c-d: var(--orange-d); color: var(--navy); }
.btn.orange:hover { color: var(--navy); }
.btn.navy { --c: #23285A; --c-d: #0A0A2A; }
.btn.rose { --c: var(--rose); --c-d: #B12F33; }
.btn.brand { --c: var(--brand); --c-d: color-mix(in srgb, var(--brand) 70%, #000); }
.btn.soft {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--clay-sm);
}
.btn.soft:hover { color: var(--teal-d); }
.btn.soft:active { box-shadow: var(--sunken); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 1.1rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal-d); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn.danger { color: var(--rose); }
form.inline { display: inline; }

/* ---------- forms: sunken clay ---------- */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field > span .req { color: var(--rose); }
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 16px;
  border: 2px solid transparent; border-radius: var(--r-ctl);
  background: var(--bg-2); box-shadow: var(--sunken);
  font: 1rem/1.4 var(--f-body); color: var(--ink);
  transition: border-color .15s, background .15s;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background-color: #EEF7F9; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--rose); }
.field .msg { color: var(--rose); font-size: .88rem; font-weight: 700; margin-top: .3rem; display: block; }
input[type=file] { font: .95rem var(--f-body); max-width: 100%; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 1rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); margin-top: 2px; flex: none; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radios label { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); box-shadow: var(--clay-sm); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.radios input { accent-color: var(--teal); }
.cap-input { max-width: 140px; }
.fieldset-title { font-family: var(--f-display); font-size: 1.1rem; margin: 1.5rem 0 .75rem; }

/* ---------- flash & notes ---------- */
.flash { border-radius: var(--r-item); padding: 14px 18px; margin-bottom: 1rem; font-weight: 600; box-shadow: var(--clay-sm); }
.flash.success { background: var(--mint-p); color: #0E5A3A; }
.flash.error { background: var(--rose-p); color: #8A1D21; }
.flash.info { background: var(--teal-p); color: #0D4E59; }
.flash.warning { background: var(--orange-p); color: #6A4200; }
.errors { background: var(--rose-p); color: #8A1D21; border-radius: var(--r-item); padding: 14px 18px 14px 36px; margin: 0 0 1rem; box-shadow: var(--clay-sm); }
.errors li + li { margin-top: .25rem; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .35em; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; background: var(--bg-2); color: var(--muted); box-shadow: inset 1px 1px 3px rgba(255,255,255,.8), inset -1px -2px 3px rgba(30,90,110,.08); white-space: nowrap; }
.pill.teal, .pill.published, .pill.confirmed, .pill.paid { background: var(--teal-p); color: #0D5966; }
.pill.orange, .pill.pending, .pill.unpaid, .pill.draft { background: var(--orange-p); color: #6A4200; }
.pill.rose, .pill.cancelled, .pill.refunded { background: var(--rose-p); color: #8A1D21; }
.pill.mint, .pill.in, .pill.free, .pill.offline { background: var(--mint-p); color: #0E5A3A; }
.pill.grey, .pill.closed, .pill.archived, .pill.expired { background: #E3E8EF; color: #4D5873; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-item); -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
table.t th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.dim td { opacity: .55; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* =========================================================
   PUBLIC LAYOUT
   ========================================================= */
.pub-top { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.pub-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.logo .mark { width: 40px; height: 40px; flex: none; }
.logo:hover { color: var(--navy); }
.pub-nav { display: flex; gap: 8px; align-items: center; }
.pub-nav .hide-sm { display: inline-flex; }
@media (max-width: 560px) { .pub-nav .hide-sm { display: none; } .logo span { font-size: 1.05rem; } }
.pub-main { padding: 20px 0 64px; }
.pub-foot { padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
.pub-foot .wrap { display: grid; gap: 1rem; }
.pub-foot a { color: var(--muted); }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.promo-strip { margin-top: 8px; display: inline-flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--surface); box-shadow: var(--clay-sm); border-radius: 22px; padding: 10px 18px; color: var(--ink); font-weight: 600; }

/* ---------- home ---------- */
.hero { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; grid-template-columns: 1.05fr .95fr; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.08; margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 1rem; }
.hero .fine { font-size: .92rem; color: var(--muted); }

/* the signature element: a puffy clay ticket with punched notches */
.ticket {
  --tc: var(--brand);
  position: relative;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: 16px 20px 40px rgba(30, 90, 110, .22), inset -7px -8px 16px rgba(30, 90, 110, .09), inset 7px 8px 16px rgba(255, 255, 255, .95);
  display: grid; grid-template-columns: 1fr auto;
  overflow: visible;
}
.ticket::before, .ticket::after { /* punched notches */
  content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); right: calc(var(--stub, 190px) - 17px);
  box-shadow: inset 4px 5px 8px rgba(30, 90, 110, .18);
}
.ticket::before { top: -17px; box-shadow: inset 3px -5px 8px rgba(30, 90, 110, .16); }
.ticket::after { bottom: -17px; }
.ticket .t-main { padding: 26px 28px 24px; min-width: 0; }
.ticket .t-stub { width: var(--stub, 190px); padding: 22px 20px; border-left: 3px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.ticket .t-band { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 55%, var(--orange))); box-shadow: inset 2px 2px 4px rgba(255,255,255,.4), inset -2px -2px 4px rgba(0,0,0,.12); margin-bottom: 18px; width: 72px; }
.ticket .t-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem); line-height: 1.15; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.ticket .t-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.ticket .t-meta strong { color: var(--ink); }
.ticket .t-who { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ticket .t-who div { min-width: 0; }
.ticket .t-who small { display: block; color: var(--muted); font-size: .8rem; }
.ticket .t-who b { font-size: 1.05rem; overflow-wrap: anywhere; }
.ticket .qr-box { background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--sunken); width: 100%; max-width: 160px; aspect-ratio: 1; display: grid; place-items: center; }
.ticket .qr-box svg { width: 100%; height: auto; display: block; }
.ticket .qr-box svg .qr { fill: var(--navy); }
.ticket .ref { font-family: var(--f-display); font-weight: 600; letter-spacing: .06em; font-size: 1.05rem; }
@media (max-width: 600px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket .t-stub { width: auto; border-left: 0; border-top: 3px dashed var(--line); }
}
.hero-ticket { transform: rotate(-2.5deg); margin: 0 6px; }
.hero-ticket .t-stub .admit { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--tc); line-height: 1.1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-ticket { animation: ticket-in .9s cubic-bezier(.2, 1.4, .4, 1) both .1s; }
  @keyframes ticket-in { from { transform: rotate(-9deg) translateY(30px) scale(.94); opacity: 0; } to { transform: rotate(-2.5deg); opacity: 1; } }
}

.feature h3 { display: flex; gap: .6rem; align-items: center; }
.feature .ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; box-shadow: var(--clay-sm); background: var(--teal-p); font-size: 1.3rem; }
.feature:nth-child(3n+2) .ico { background: var(--orange-p); }
.feature:nth-child(3n) .ico { background: #E2E5FF; }
.feature p { color: var(--muted); margin: 0; }
.section { padding: clamp(32px, 6vw, 64px) 0; }
.section > .wrap > h2 { max-width: 22em; }
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps .item { counter-increment: s; position: relative; padding-top: 52px; }
.steps .item::before { content: counter(s); position: absolute; top: 14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--navy); font: 700 1rem/30px var(--f-display); text-align: center; box-shadow: 2px 3px 6px rgba(201, 127, 6, .4), inset -2px -2px 4px rgba(0,0,0,.12), inset 2px 2px 4px rgba(255,255,255,.5); }
.price-card { text-align: left; }
.price-card .amt { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; line-height: 1; margin: .2em 0; }
.price-card ul { padding-left: 1.2em; margin: 1rem 0 1.25rem; }
.price-card li + li { margin-top: .35rem; }

/* ---------- event page ---------- */
.ev-cover { border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--clay); aspect-ratio: 16 / 9; background: var(--teal-p); }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cover.placeholder { display: grid; place-items: center; background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 35%, #fff), color-mix(in srgb, var(--orange) 45%, #fff)); }
.ev-cover.placeholder .big { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); color: var(--navy); padding: 24px; text-align: center; max-width: 18em; }
.ev-layout { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; margin-top: 24px; }
@media (max-width: 900px) { .ev-layout { grid-template-columns: 1fr; } }
.ev-facts { display: grid; gap: 12px; margin: 1.25rem 0; }
.ev-fact { display: flex; gap: 14px; align-items: flex-start; }
.ev-fact .chip { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--surface); box-shadow: var(--clay-sm); display: grid; place-items: center; text-align: center; line-height: 1; }
.ev-fact .chip b { font-family: var(--f-display); font-size: 1.25rem; display: block; }
.ev-fact .chip small { font-size: .7rem; font-weight: 800; color: var(--brand); }
.ev-fact p { margin: 0; }
.ev-desc { overflow-wrap: anywhere; }
.ev-desc p { margin-bottom: 1em; }
.org-line { display: flex; gap: 12px; align-items: center; }
.org-line img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: var(--clay-sm); padding: 4px; }
.reg-card { position: sticky; top: 84px; }
@media (max-width: 900px) { .reg-card { position: static; } }
.tt-list { display: grid; gap: 10px; margin-bottom: 1.25rem; }
.tt-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-item); background: var(--surface); box-shadow: var(--clay-sm); cursor: pointer; border: 2px solid transparent; transition: border-color .15s, transform .12s; }
.tt-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.tt-opt input { width: 22px; height: 22px; accent-color: var(--brand); }
.tt-opt .nm { font-weight: 800; }
.tt-opt .ds { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.tt-opt .pr { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; text-align: right; }
.tt-opt .pr s { display: block; font-size: .8rem; color: var(--muted); font-family: var(--f-body); }
.tt-opt.off { opacity: .55; cursor: not-allowed; }
.tt-opt .eb { grid-column: 2 / 4; font-size: .8rem; font-weight: 800; color: var(--orange-d); }
.seats { font-weight: 800; color: var(--orange-d); }
.closed-box { text-align: center; }
.closed-box .big { font-family: var(--f-display); font-size: 1.3rem; }
.owner-bar { background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; font-weight: 600; }
.owner-bar a { color: var(--orange); }

/* ---------- ticket page ---------- */
.ticket-page { max-width: 760px; margin: 0 auto; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.status-big { text-align: center; padding: 22px; }
.status-big .ico { font-size: 2.4rem; }
.countdown { font-family: var(--f-display); font-size: 1.6rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font-weight: 700; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: .5rem; } }

/* =========================================================
   APP (ORGANISER) LAYOUT
   ========================================================= */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { padding: 20px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; }
.side .logo { padding: 4px 8px; }
.side nav { display: grid; gap: 6px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 700; }
.side nav a .i { width: 22px; text-align: center; }
.side nav a:hover { background: rgba(255,255,255,.55); }
.side nav a.on { background: var(--surface); box-shadow: var(--clay-sm); color: var(--teal-d); }
.side .me { margin-top: auto; }
.side .me .item { padding: 14px; }
.side .me b { display: block; overflow-wrap: anywhere; }
.side .logout { width: 100%; margin-top: 10px; --c: #F06A6E; --c-d: #C2393E; }
.app-main { padding: 24px var(--gutter) 64px; min-width: 0; }
.app-top { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .app-top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); }
  .app-top .logo span { display: none; }
  .app-top .acts { display: flex; gap: 8px; align-items: center; }
  .app-main { padding-top: 12px; padding-bottom: 96px; }
  .tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-radius: 24px; box-shadow: 0 10px 30px rgba(30, 90, 110, .25), inset -3px -4px 8px rgba(30,90,110,.07), inset 3px 4px 8px rgba(255,255,255,.9); padding: 6px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 800; border-radius: 18px; }
  .tabbar a .i { font-size: 1.2rem; }
  .tabbar a.on { color: var(--teal-d); background: var(--teal-p); }
}
@media (min-width: 901px) { .tabbar { display: none; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); overflow-wrap: anywhere; }
.page-head .sub { color: var(--muted); margin: .25rem 0 0; }
.crumb { font-size: .9rem; margin-bottom: 6px; display: inline-block; }

/* stat tiles */
.stat { padding: 18px 20px; }
.stat .n { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.1; }
.stat .l { color: var(--muted); font-weight: 700; font-size: .9rem; }
.meter { height: 12px; border-radius: 999px; background: var(--bg-2); box-shadow: var(--sunken); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #36B3C6); box-shadow: inset 2px 2px 3px rgba(255,255,255,.4); }

/* event tabs (segmented clay) */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 0 22px; background: var(--bg-2); border-radius: 22px; box-shadow: var(--sunken); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 16px; border-radius: 16px; font-weight: 800; font-size: .92rem; text-decoration: none; color: var(--muted); white-space: nowrap; }
.tabs a.on { background: var(--surface); color: var(--teal-d); box-shadow: var(--clay-sm); }

.ev-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: start; text-decoration: none; color: inherit; }
.ev-card:hover { color: inherit; }
.ev-card .date { border-radius: 20px; background: var(--orange-p); box-shadow: var(--clay-sm); text-align: center; padding: 10px 4px; line-height: 1.05; }
.ev-card .date b { font-family: var(--f-display); font-size: 1.7rem; display: block; }
.ev-card .date small { font-weight: 800; color: var(--orange-d); }
.ev-card h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.ev-card .meta { color: var(--muted); font-size: .92rem; }
.ev-card.past .date { background: #E3E8EF; }
.ev-card.past .date small { color: var(--muted); }

.banner { border-radius: var(--r-item); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; box-shadow: var(--clay-sm); margin-bottom: 18px; font-weight: 600; }
.banner.warn { background: var(--orange-p); color: #5E3B00; }
.banner.info { background: var(--teal-p); color: #0D4E59; }
.banner.rose { background: var(--rose-p); color: #8A1D21; }

.empty { text-align: center; padding: 40px 20px; }
.empty .ico { font-size: 2.6rem; }
.empty p { color: var(--muted); max-width: 30em; margin: .5rem auto 1.25rem; }

details.drop { border-radius: var(--r-item); background: var(--surface); box-shadow: var(--clay-sm); }
details.drop > summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.drop > summary::-webkit-details-marker { display: none; }
details.drop > summary::after { content: "+"; font: 600 1.4rem/1 var(--f-display); color: var(--teal); }
details.drop[open] > summary::after { content: "–"; }
details.drop > .in { padding: 0 18px 18px; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.list-item { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.list-item + .list-item { margin-top: 12px; }
.list-item .main { min-width: 0; flex: 1 1 260px; }
.list-item .main b { overflow-wrap: anywhere; }
.list-item .acts { display: flex; flex-wrap: wrap; gap: 6px; }

.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; font-weight: 700; }
.qr-big { background: #fff; border-radius: 24px; box-shadow: var(--sunken); padding: 14px; max-width: 260px; margin: 0 auto; }
.qr-big svg { display: block; width: 100%; height: auto; }
.qr-big svg .qr { fill: var(--navy); }

/* ---------- check-in scanner ---------- */
.scanner { position: relative; border-radius: var(--r-panel); overflow: hidden; background: var(--navy); aspect-ratio: 1; max-width: 460px; margin: 0 auto; box-shadow: var(--clay); }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 16%; border-radius: 28px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 0 0 999px rgba(10,10,42,.35); pointer-events: none; }
.scanner .idle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; }
.scan-result { margin-top: 16px; border-radius: var(--r-item); padding: 18px 20px; box-shadow: var(--clay-sm); text-align: center; min-height: 96px; display: grid; place-items: center; background: var(--surface); }
.scan-result.in { background: var(--mint-p); color: #0E5A3A; }
.scan-result.already { background: var(--orange-p); color: #5E3B00; }
.scan-result.invalid, .scan-result.unpaid, .scan-result.cancelled { background: var(--rose-p); color: #8A1D21; }
.scan-result .who { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; overflow-wrap: anywhere; }
.counter { font-family: var(--f-display); font-size: 2rem; text-align: center; }
.search-results { display: grid; gap: 8px; margin-top: 10px; }
.search-results button { text-align: left; width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .scan-result.flash-in { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
  @keyframes pop { from { transform: scale(.92); } to { transform: scale(1); } }
}
body.bare { background: var(--bg); }
.door { max-width: 520px; margin: 0 auto; padding: 16px var(--gutter) 40px; }

/* ---------- auth pages ---------- */
.auth { max-width: 470px; margin: clamp(8px, 4vw, 40px) auto 0; }
.auth h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
.auth .alt { text-align: center; margin-top: 1.25rem; color: var(--muted); }

/* ---------- admin ---------- */
.admin-top { background: var(--navy); color: #fff; padding: 12px 0; }
.admin-top a { color: #fff; }
.admin-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media print {
  .pub-top, .pub-foot, .ticket-actions, .side, .tabbar, .app-top, .no-print { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   RODA IMPIAN (lucky draw wheel) — presenter screen
   ========================================================= */
.draw-hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.draw-hero > div { max-width: 46em; }
.stage { min-height: 100vh; display: flex; flex-direction: column; padding: clamp(12px, 2vw, 24px); background:
  radial-gradient(1200px 600px at 50% 120%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), var(--bg); }
.stage-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.stage-title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.stage-title h1 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }
.stage-title p { margin: 0; color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.stage-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: var(--clay-sm); padding: 4px; }
.stage-body { flex: 1; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; margin-top: 12px; }
@media (max-width: 900px) { .stage-body { grid-template-columns: 1fr; } .prize-rail { order: 2; } }
.prize-rail { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--clay); padding: 20px; align-self: stretch; max-height: calc(100vh - 120px); overflow: auto; }
.prize-rail h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.prize-list { display: grid; gap: 8px; }
.prize-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 18px; background: var(--bg-2); box-shadow: var(--sunken); cursor: pointer; border: 2px solid transparent; }
.prize-chip input { grid-row: 1 / 3; width: 20px; height: 20px; accent-color: var(--brand); }
.prize-chip .pn { font-weight: 800; overflow-wrap: anywhere; }
.prize-chip .pl { font-size: .8rem; color: var(--muted); font-weight: 700; }
.prize-chip:has(input:checked) { background: var(--surface); box-shadow: var(--clay-sm); border-color: var(--brand); }
.prize-chip.done { opacity: .5; cursor: default; }
.winner-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.winner-list li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 14px; background: var(--mint-p); }
.winner-list li span { font-size: .82rem; color: #0E5A3A; font-weight: 700; }
.winner-list li.new { animation: none; }
.wheel-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wheel-rim { position: relative; width: min(78vh, 100%); aspect-ratio: 1; border-radius: 50%; padding: 3.2%;
  background: linear-gradient(145deg, #FFFFFF, #DCEAEE);
  box-shadow: 22px 28px 60px rgba(30, 90, 110, .28), inset -10px -12px 24px rgba(30, 90, 110, .12), inset 10px 12px 24px rgba(255, 255, 255, .95); }
.wheel { width: 100%; height: 100%; display: block; border-radius: 50%; }
.wheel-pin { position: absolute; top: -1.5%; left: 50%; width: 9%; aspect-ratio: .8; transform: translateX(-50%); z-index: 2;
  background: var(--orange); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 6px 8px rgba(201, 127, 6, .45)); }
.wheel-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 60%); clip-path: inherit; }
.wheel-hub { position: absolute; top: 50%; left: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: var(--navy); font: 700 clamp(1rem, .6rem + 1.6vw, 2rem)/1 var(--f-display);
  box-shadow: 8px 10px 22px rgba(201, 127, 6, .45), inset -6px -8px 14px rgba(160, 95, 0, .45), inset 6px 8px 14px rgba(255, 255, 255, .55); transition: transform .12s; }
.wheel-hub:hover { filter: brightness(1.04); }
.wheel-hub:active { transform: translate(-50%, -50%) scale(.96); }
.wheel-hub[disabled] { opacity: .55; cursor: not-allowed; }
.wheel-note { color: var(--muted); font-weight: 700; text-align: center; margin: 14px 0 0; max-width: 36em; }
.reveal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10, 10, 42, .55); backdrop-filter: blur(3px); padding: 16px; }
.reveal[hidden] { display: none; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reveal-card { position: relative; background: var(--surface); border-radius: 36px; padding: clamp(24px, 4vw, 48px); max-width: 760px; width: 100%; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset -8px -10px 20px rgba(30, 90, 110, .1), inset 8px 10px 20px rgba(255, 255, 255, .95); }
.reveal-prize { display: inline-block; margin: 0 0 1rem; padding: 8px 20px; border-radius: 999px; background: var(--orange-p); color: #6A4200; font-weight: 800; font-size: clamp(1rem, .8rem + 1vw, 1.4rem); }
.reveal-label { margin: 0; color: var(--muted); font-weight: 700; }
.reveal-name { margin: .2em 0 .1em; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 1rem + 5vw, 4.6rem); line-height: 1.05; color: var(--brand); overflow-wrap: anywhere; }
.reveal-ref { margin: 0 0 1.5rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.reveal-msg { margin: 1rem 0 0; font-weight: 700; min-height: 1.5em; }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not([hidden]) .reveal-card { animation: reveal-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
  @keyframes reveal-pop { from { transform: scale(.7) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.winners-hero h1 { overflow-wrap: anywhere; }
.winner-card { display: flex; flex-direction: column; gap: 4px; }
.wc-prize { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--orange-p); color: #6A4200; font-weight: 800; font-size: .85rem; }
.wc-name { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.won-banner .ico { font-size: 2.6rem; }

/* Roda Impian — small clay wheels for dashboard, homepage and event page */
.mini-wheel { --s: 120px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: conic-gradient(var(--brand) 0 60deg, #F5A31A 0 120deg, #23285A 0 180deg, #7FD3DD 0 240deg, #FFC861 0 300deg, #3E4A8C 0 360deg);
  box-shadow: 0 0 0 8px #F6FAFB, 10px 12px 26px rgba(10, 10, 42, .25), inset -6px -8px 14px rgba(0, 0, 0, .15), inset 6px 8px 14px rgba(255, 255, 255, .35);
  display: grid; place-items: center; }
.mini-wheel::before { content: ""; position: absolute; top: -12px; left: 50%; width: 18px; height: 20px; transform: translateX(-50%); background: var(--orange); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.mini-wheel span { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; font: 700 .85rem/1 var(--f-display);
  box-shadow: 3px 4px 8px rgba(160, 95, 0, .4), inset -3px -3px 6px rgba(160, 95, 0, .4), inset 3px 3px 6px rgba(255, 255, 255, .5); }
.mini-wheel.sm { --s: 64px; box-shadow: 0 0 0 5px #F6FAFB, 6px 8px 16px rgba(10, 10, 42, .2); }
.mini-wheel.sm::before { top: -9px; width: 12px; height: 14px; }
.mini-wheel.sm span { font-size: 1rem; }
.draw-promo { display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--ink); }
.draw-promo:hover { color: var(--ink); }
.draw-promo > div:nth-child(2) { flex: 1; }
.prize-teaser { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 1.25rem; }
.prize-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prize-tags li { padding: 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--clay-sm); font-weight: 800; font-size: .88rem; }
.roda-show { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .roda-show { grid-template-columns: 1fr; } }
.roda-art { position: relative; display: grid; place-items: center; padding: 20px 0 40px; }
.big-wheel { --s: min(340px, 72vw); position: relative; width: var(--s); height: var(--s); border-radius: 50%;
  background: conic-gradient(from 15deg, var(--brand) 0 45deg, #F5A31A 0 90deg, #23285A 0 135deg, #7FD3DD 0 180deg, #FFC861 0 225deg, #3E4A8C 0 270deg, var(--brand) 0 315deg, #F5A31A 0 360deg);
  box-shadow: 0 0 0 16px #F6FAFB, 0 0 0 17px #DCEAEE, 20px 26px 50px rgba(30, 90, 110, .3), inset -10px -12px 24px rgba(0, 0, 0, .15), inset 10px 12px 24px rgba(255, 255, 255, .3);
  display: grid; place-items: center; }
.big-wheel::before { content: ""; position: absolute; top: -26px; left: 50%; width: 34px; height: 38px; transform: translateX(-50%); background: var(--orange); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 6px rgba(201, 127, 6, .45)); }
.big-wheel span { width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; font: 700 1.3rem/1 var(--f-display);
  box-shadow: 6px 8px 16px rgba(160, 95, 0, .4), inset -5px -6px 12px rgba(160, 95, 0, .45), inset 5px 6px 12px rgba(255, 255, 255, .55); }
.roda-winner { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 14px 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--clay); transform: rotate(3deg); }
.roda-winner small { color: var(--muted); font-weight: 700; }
.roda-winner b { font: 600 1.5rem/1.1 var(--f-display); color: var(--brand); }
.roda-winner span { font-size: .85rem; font-weight: 800; color: var(--orange-d); }
.roda-points { padding-left: 1.2em; margin: 0 0 1.5rem; }
.roda-points li + li { margin-top: .35rem; }
@media (prefers-reduced-motion: no-preference) {
  .roda-show .big-wheel { animation: roda-turn 2.4s cubic-bezier(.2, .8, .2, 1) both .2s; }
  @keyframes roda-turn { from { transform: rotate(-300deg); } to { transform: rotate(0); } }
}
