/* ImanPath Events — gaya dasar. Tanpa framework, tanpa build step. */
:root {
  --ink: #12332E;
  --ink-2: #44524E;
  --muted: #5E6A65;
  --cream: #F6F2E9;
  --sand: #ECE5D6;
  --card: #FDFBF6;
  --line: #E2D9C6;
  --teal: #2E7D6F;
  --teal-soft: #E3F0EC;
  --gold: #D9A94E;
  --gold-ink: #8A5E14;
  --gold-soft: #F6E7C6;
  --red: #9B3B2E;
  --red-soft: #F6E1DC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 51, 46, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 16px; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 44px); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.spacer { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header publik ---------- */
.site-header { background: var(--header-bg, var(--card)); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--header-ink, var(--ink)); text-decoration: none; display: inline-flex; align-items: center; }
.brand img { height: var(--logo-h, 40px); width: auto; max-width: 220px; object-fit: contain; display: block; }
.brand span { color: var(--teal); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--header-ink, var(--ink-2)); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.site-footer { margin-top: 64px; padding: 32px 0; background: var(--footer-bg, var(--ink)); color: var(--footer-ink, #C9D8D3); font-size: 14px; }
.site-footer a { color: var(--accent-light, #F0D9A8); }
.site-footer strong { color: var(--footer-strong, #F6F2E9); }
.site-footer .footer-logo { height: 36px; width: auto; margin-bottom: 8px; }
.site-footer .socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Komponen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--btn-radius, 999px); border: 1.5px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform .05s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--on-gold, var(--ink)); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-teal { background: var(--teal); color: var(--on-teal, var(--card)); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card h3 { margin-top: 0; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sand); color: var(--ink); white-space: nowrap; }
.pill-teal { background: var(--teal); color: var(--card); }
.pill-gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-soft { background: var(--teal-soft); color: var(--teal); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--teal-soft); border-color: #B9DACF; color: #1D5A4F; }
.alert-error { background: var(--red-soft); border-color: #E7BDB4; color: #7A2B20; }
.alert-info { background: var(--gold-soft); border-color: #EBD3A0; color: #6C4A10; }

/* ---------- Form ---------- */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.field .err { font-size: 13px; color: var(--red); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=search], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #CFC4AC; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(46, 125, 111, .25); border-color: var(--teal); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

/* ---------- Beranda ---------- */
.hero { margin: 28px 0; border-radius: 22px; padding: clamp(24px, 5vw, 48px); color: var(--card); background: linear-gradient(120deg, var(--hero-from, var(--ink)) 0%, var(--hero-to, var(--teal)) 100%); display: grid; gap: 24px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero h1 { color: var(--hero-ink, #fff); }
.hero .eyebrow { color: var(--hero-eyebrow, #F0D9A8); }
.hero p { color: var(--hero-text, #E3F0EC); }
.hero .btn-outline { color: var(--hero-ink, #fff); border-color: var(--hero-line, rgba(255, 255, 255, .55)); }
.hero img { border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 20px; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip.active { background: var(--teal); color: var(--on-teal, var(--card)); }
.event-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--hero-to, var(--teal)), var(--hero-from, var(--ink))); object-fit: cover; width: 100%; }
.event-card .thumb-ph { aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: 16px; color: var(--hero-eyebrow, #F0D9A8); font-family: var(--serif); font-size: 22px; font-weight: 600; background: linear-gradient(135deg, var(--hero-to, var(--teal)), var(--hero-from, var(--ink))); }
.event-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card .title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.event-card .price { font-weight: 800; color: var(--teal); margin-top: auto; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- Detail event ---------- */
.event-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin: 28px 0; align-items: start; }
.banner { border-radius: 18px; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg, var(--hero-to, var(--teal)), var(--hero-from, var(--ink))); }
.meta { display: grid; gap: 10px; }
.meta-item { display: flex; gap: 12px; }
.meta-item .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.meta-item .ic svg { width: 20px; height: 20px; }
/* .desc: lihat bagian editor teks berformat */
.sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sessions li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.ticket.selected { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(46, 125, 111, .15); }
.ticket.unavailable { opacity: .6; }
.ticket .name { font-weight: 700; }
.ticket .price { font-weight: 800; color: var(--teal); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper input { width: 44px; text-align: center; border: 0; padding: 6px 0; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.summary-bar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 24px; z-index: 5; }

/* ---------- Status & e-ticket ---------- */
.status-box { text-align: center; padding: 28px; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 30px; font-weight: 800; }
.eticket { max-width: 420px; margin: 24px auto; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.eticket .top { background: var(--teal); color: var(--on-teal, var(--card)); padding: 20px 24px; }
.eticket .top .eyebrow { color: var(--accent-light, #F0D9A8); }
.eticket .qr { padding: 20px 40px 8px; }
.eticket .qr svg { width: 100%; height: auto; }
.eticket .code { text-align: center; font-weight: 800; letter-spacing: .15em; font-size: 20px; }
.eticket .info { padding: 8px 24px 24px; text-align: center; }
.sesi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sesi-grid .pill { padding: 6px 10px; text-align: center; white-space: normal; }
.void { position: relative; }
.void::after { content: "TIDAK AKTIF"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 32px; color: var(--red); background: rgba(253, 251, 246, .82); letter-spacing: .1em; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #EEE7D8; vertical-align: top; }
th { background: var(--sand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.yes { color: var(--teal); font-weight: 800; }
.no { color: #B8AD95; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; display: flex; align-items: center; gap: 10px; margin: 0 8px 24px; }
.sidebar .brand img { max-height: 36px; max-width: 140px; width: auto; }
.sidebar .brand img.logo-chip { background: #fff; padding: 5px 8px; border-radius: 8px; box-sizing: content-box; max-height: 28px; }
.sidebar .brand .brand-tag { font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--on-gold, var(--ink)); background: var(--gold); padding: 3px 8px; border-radius: 6px; }
.sidebar .brand span { color: var(--gold); }
.sidebar a.nav-item { display: block; padding: 9px 12px; border-radius: 10px; color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; margin-bottom: 2px; }
.sidebar a.nav-item:hover { background: rgba(255, 255, 255, .06); color: var(--card); }
.sidebar a.nav-item.active { background: rgba(255, 255, 255, .1); color: var(--gold); font-weight: 700; }
.sidebar .who { margin-top: 24px; padding: 12px; border-top: 1px solid #2B4A44; font-size: 14px; }
.main { padding: 24px clamp(16px, 3vw, 36px) 64px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .v { font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin: 8px 0 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs a.active { color: var(--teal); border-color: var(--teal); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters > * { width: auto; min-width: 160px; flex: 0 1 auto; }
.filters > input, .filters > select { width: auto; flex: 1 1 200px; max-width: 320px; }
details.edit > summary { cursor: pointer; color: var(--teal); font-weight: 600; list-style: none; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 8px; }
.bar { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; max-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 12px; color: var(--muted); min-width: 24px; }
.chart .col .b { width: 100%; background: var(--teal); border-radius: 6px 6px 0 0; min-height: 2px; }
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--teal); color: var(--card); border-color: var(--teal); }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 420px; }

/* ---------- Scanner ---------- */
.scan-body { background: #0E1F1C; color: var(--card); min-height: 100vh; }
.scan-body a { color: #F0D9A8; }
.scan-top { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #1E3A35; }
.scan-wrap { max-width: 520px; margin: 0 auto; padding: 16px; }
#reader { border-radius: 18px; overflow: hidden; background: #1E3A35; min-height: 280px; position: relative; }
#reader.live::after { content: ""; position: absolute; left: 18%; right: 18%; top: 18%; bottom: 18%; border: 3px solid rgba(217, 169, 78, .9); border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, .18); }
#reader video { border-radius: 18px; }
.result { border-radius: 16px; padding: 16px 18px; margin-top: 14px; display: none; }
.result.ok { display: block; background: var(--teal); }
.result.fail { display: block; background: var(--red); }
.result .big { font-size: 22px; font-weight: 800; }
.counter { margin-top: 14px; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 10px; text-align: center; font-weight: 800; font-size: 18px; }
.scan-body input, .scan-body select { background: #16302B; color: var(--card); border-color: #2B4A44; }
.scan-card { background: #16302B; border: 1px solid #2B4A44; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.scan-card a.sess { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: #1E3A35; margin-top: 8px; text-decoration: none; color: var(--card); }
.scan-card a.sess.today { outline: 2px solid var(--gold); }

@media (max-width: 860px) {
  .hero, .event-head { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 12px; }
  .sidebar .brand { margin: 0 12px 0 4px; width: 100%; }
  .sidebar a.nav-item { padding: 6px 10px; font-size: 14px; }
  .sidebar .who { margin: 8px 0 0; padding: 8px 4px 0; width: 100%; }
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: 8px; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .eticket { box-shadow: none; }
}

/* ---------- Notifikasi hasil scan (layar penuh) ---------- */
#scanFlash { position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff; cursor: pointer; }
#scanFlash.show { display: flex; animation: sfIn .15s ease-out; }
#scanFlash.ok { background: rgba(31, 122, 96, .96); }
#scanFlash.fail { background: rgba(155, 59, 46, .97); }
#scanFlash .sf-icon { width: 120px; height: 120px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .9); display: grid; place-items: center; font-size: 72px; font-weight: 900; line-height: 1; }
#scanFlash .sf-title { font-size: 34px; font-weight: 900; letter-spacing: .08em; }
#scanFlash .sf-name { font-size: 26px; font-weight: 800; max-width: 90vw; word-break: break-word; }
#scanFlash .sf-detail { font-size: 18px; max-width: 90vw; opacity: .95; }
#scanFlash .sf-hint { margin-top: 18px; font-size: 14px; opacity: .8; }
@keyframes sfIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Data pemegang tiket #2 dst */
.holder-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin-bottom: 12px; background: rgba(255,255,255,.5); }
.holder-row .holder-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--teal); }

/* Nomor/email sudah terdaftar: tawaran memakai data lama */
.existing-box { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-soft); }
.existing-box p { margin: 0 0 8px; }

/* Kartu e-ticket di halaman pesanan */
.order-ticket { text-align: center; }
.order-ticket .qr-big { display: block; max-width: 220px; margin: 0 auto 6px; }
.order-ticket .qr-big img { width: 100%; height: auto; display: block; }
.order-ticket .ot-code { font-weight: 800; letter-spacing: .12em; margin-bottom: 4px; }

/* ---------- Admin: pengaturan ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--teal); border-bottom-color: var(--teal); }
.settings-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.preview-sticky { position: sticky; top: 16px; }
@media (max-width: 1100px) { .settings-split { grid-template-columns: 1fr; } .preview-wrap { order: -1; } .preview-sticky { position: static; } }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type=color] { width: 46px; height: 42px; padding: 2px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; flex: none; cursor: pointer; }
.image-field { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.image-thumb { width: 160px; height: 72px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; padding: 6px; }
.image-thumb.dark { background: var(--ink); }
.image-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pv { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--b); font-family: var(--fb); color: var(--d); font-size: 13px; }
.pv-header { background: var(--h); color: var(--hi); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.pv-brand { font-family: var(--fh); font-weight: 700; font-size: 17px; display: flex; align-items: center; }
.pv-brand img { height: 30px; width: auto; }
.pv-acc { color: var(--p); }
.pv-nav { font-size: 12px; opacity: .85; display: flex; gap: 10px; }
.pv-body { padding: 12px; display: grid; gap: 12px; }
.pv-hero { border-radius: var(--r); padding: 14px; color: var(--hi2, #fff); background: linear-gradient(120deg, var(--h1, var(--d)), var(--h2, var(--p))); display: grid; gap: 6px; }
.pv-hero small { color: var(--al); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 10px; }
.pv-hero b { font-family: var(--fh); font-size: 18px; }
.pv-card { background: var(--s); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pv-thumb { height: 54px; background: linear-gradient(135deg, var(--h2, var(--p)), var(--h1, var(--d))); color: var(--al); font-family: var(--fh); padding: 8px 10px; display: flex; align-items: flex-end; font-weight: 600; }
.pv-pill { display: inline-block; background: var(--ps); color: var(--p); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.pv-title { font-weight: 700; margin: 4px 0 2px; }
.pv-price { color: var(--p); font-weight: 800; margin-bottom: 8px; }
.pv-btn { display: inline-block; padding: 6px 14px; border-radius: var(--br); font-weight: 700; font-size: 12px; justify-self: start; }
.pv-btn-primary { background: var(--a); color: var(--onA); }
.pv-btn-teal { background: var(--p); color: var(--onP); }
.pv-footer { background: var(--f); color: var(--fi); padding: 10px 12px; font-size: 12px; }
.pv-footer b { color: #fff; mix-blend-mode: normal; }

/* ---------- Banner unggulan: slideshow ---------- */
.hero-slider { position: relative; margin: 28px 0; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; gap: 0; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track > .hero { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.hero .h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 44px); color: var(--hero-ink, #fff); margin: 0 0 .5em; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.hero-nav.prev { left: -14px; }
.hero-nav.next { right: -14px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.hero-dots button[aria-selected="true"] { width: 26px; background: var(--teal); }
@media (max-width: 860px) { .hero-nav { display: none; } }

/* ---------- Animasi slideshow banner ---------- */
/* Efek pudar & zoom: slide ditumpuk, yang aktif tampil */
.hero-slider.fx-pudar .hero-track, .hero-slider.fx-zoom .hero-track { display: grid; overflow: hidden; scroll-snap-type: none; }
.hero-slider.fx-pudar .hero-track > .hero, .hero-slider.fx-zoom .hero-track > .hero { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s, transform 1.2s ease; }
.hero-slider.fx-pudar .hero-track > .hero.is-active, .hero-slider.fx-zoom .hero-track > .hero.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s, transform 1.2s ease; z-index: 1; }
.hero-slider.fx-zoom .hero-track > .hero { transform: scale(1.04); }
.hero-slider.fx-zoom .hero-track > .hero.is-active { transform: scale(1); }
/* Isi slide muncul bertahap */
.hero-slider.is-multi .hero > div > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.hero-slider.is-multi .hero.is-active > div > * { opacity: 1; transform: none; }
.hero-slider.is-multi .hero.is-active > div > *:nth-child(1) { transition-delay: .15s; }
.hero-slider.is-multi .hero.is-active > div > *:nth-child(2) { transition-delay: .25s; }
.hero-slider.is-multi .hero.is-active > div > *:nth-child(3) { transition-delay: .35s; }
.hero-slider.is-multi .hero.is-active > div > *:nth-child(4) { transition-delay: .45s; }
.hero-slider.is-multi .hero > img { opacity: 0; transform: scale(.94) rotate(-1deg); transition: opacity .7s ease .2s, transform .9s cubic-bezier(.2, .8, .2, 1) .2s; }
.hero-slider.is-multi .hero.is-active > img { opacity: 1; transform: none; }
/* Titik aktif = bilah waktu menuju slide berikutnya */
.hero-dots button { position: relative; overflow: hidden; }
.hero-dots button.run::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: heroProgress var(--slide-dur, 6s) linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-nav { transition: transform .15s, background .15s; z-index: 3; }
.hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
/* Perangkat dengan "kurangi animasi" (mis. Windows: Animation effects mati): tanpa gerakan, tetap memudar halus */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero, .hero-slider .hero > div > *, .hero-slider .hero > img { transform: none !important; }
}

/* ---------- Hapus permanen & riwayat ---------- */
.danger-card { margin-top: 28px; border-color: var(--red); }
.audit-changes { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Statistik kunjungan ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis .kpi .v { font-size: 24px; }
.chart-card h3 { margin-bottom: 8px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .bar { fill: var(--teal); }
.chart .hit:hover .bar { fill: var(--ink); }
.hbar { position: relative; height: 22px; background: var(--sand); border-radius: 6px; overflow: hidden; min-width: 80px; }
.hbar span { position: absolute; inset: 0 auto 0 0; background: var(--teal); border-radius: 0 4px 4px 0; }
.hbar em { position: absolute; right: 8px; top: 2px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sand); padding: 0 4px; border-radius: 4px; }
.hbar:hover span { background: var(--ink); }
.funnel-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.map-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.map { height: 360px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); position: relative; z-index: 0; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
@media (max-width: 860px) { .map-split { grid-template-columns: 1fr; } .funnel-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Editor teks berformat ---------- */
.rte { border: 1.5px solid #CFC4AC; border-radius: 10px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--sand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.rte-bar button { font: inherit; font-size: 13px; min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.rte-bar button:hover { background: var(--card); }
.rte-bar button.on { background: var(--teal); color: var(--on-teal, #fff); }
.rte-sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rte-area { min-height: 220px; max-height: 560px; overflow-y: auto; padding: 12px 14px; outline: none; line-height: 1.6; }
/* Tampilan deskripsi berformat (publik & editor) */
.desc { white-space: normal; }
.desc > :first-child { margin-top: 0; }
.desc p { margin: 0 0 .8em; }
.desc h2 { font-size: 22px; margin: 1.1em 0 .4em; }
.desc h3 { font-size: 18px; margin: 1em 0 .35em; font-family: var(--font); font-weight: 700; }
.desc ul, .desc ol { margin: 0 0 .9em; padding-left: 1.4em; }
.desc li { margin: .2em 0; }
.desc blockquote { margin: 0 0 .9em; padding: 8px 14px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 8px 8px 0; }
.desc hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.desc a { color: var(--teal); }

/* Pemotong banner event */
.cropper { margin-top: 12px; padding: 12px; border: 1px solid var(--line, #E3E0D6); border-radius: 12px; background: var(--card, #fff); }
.crop-stage { position: relative; user-select: none; -webkit-user-select: none; line-height: 0; overflow: hidden; border-radius: 8px; background: #222; touch-action: none; }
.crop-stage img { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; }
.crop-box { position: absolute; cursor: move; outline: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); touch-action: none; }
.crop-guide { position: absolute; top: 0; bottom: 0; left: 12.5%; right: 12.5%; border-left: 2px dashed rgba(255, 214, 102, .95); border-right: 2px dashed rgba(255, 214, 102, .95); pointer-events: none; }
.crop-handle { position: absolute; width: 18px; height: 18px; background: #fff; border: 2px solid var(--teal, #1F6F63); border-radius: 50%; box-sizing: border-box; }
.crop-handle[data-h="nw"] { left: 2px; top: 2px; cursor: nwse-resize; }
.crop-handle[data-h="ne"] { right: 2px; top: 2px; cursor: nesw-resize; }
.crop-handle[data-h="sw"] { left: 2px; bottom: 2px; cursor: nesw-resize; }
.crop-handle[data-h="se"] { right: 2px; bottom: 2px; cursor: nwse-resize; }
@media (pointer: coarse) { .crop-handle { width: 28px; height: 28px; } }
.crop-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; color: var(--muted, #667); }
.crop-legend i { display: inline-block; width: 18px; height: 10px; vertical-align: middle; margin-right: 4px; }
.crop-legend .lg-box { border: 2px solid #333; }
.crop-legend .lg-guide { border-left: 2px dashed #C99A1A; border-right: 2px dashed #C99A1A; }
.crop-previews { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.crop-previews figure { margin: 0; }
.crop-previews canvas { display: block; border-radius: 8px; background: #eee; max-width: 100%; }
.crop-previews #cropPv169 { width: 192px; height: 108px; }
.crop-previews #cropPv43 { width: 96px; height: 72px; }
.crop-previews figcaption { font-size: 12px; color: var(--muted, #667); margin-top: 4px; }

/* Keuangan event */
.fin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fin-table td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fin-table tr:last-child td { border-bottom: 0; }
.fin-table td.num { text-align: right; white-space: nowrap; padding-left: 12px; }
.fin-edit { display: inline-block; margin-left: 6px; }
.fin-edit[open] { display: block; }
.fin-edit > summary { font-weight: 500; }
.sim-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.sim-row output { text-align: right; font-weight: 700; }
.sim-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.tip { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; margin-bottom: 10px; font-size: 14px; line-height: 1.55; }
i.lg { display: inline-block; width: 18px; vertical-align: middle; margin-right: 4px; }
@media (max-width: 560px) { .sim-row { grid-template-columns: 1fr 90px; } .sim-row input { grid-column: 1 / -1; grid-row: 2; } }
.scope-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0 0; }
.scope-box legend { font-weight: 700; padding: 0 6px; }
.scope-box .check { display: block; margin: 4px 0; }

/* Komposisi Ikhwan / Akhwat */
.gbar-row { margin-bottom: 14px; }
.gbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--sand); margin: 4px 0 6px; gap: 2px; }
.gbar span { display: block; height: 100%; }
.g-l { background: var(--teal); }
.g-p { background: var(--gold, #C99A1A); }
.g-x { background: repeating-linear-gradient(45deg, #CFC8B8 0 4px, #E6E0D2 4px 8px); }
.gbar-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.gbar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.gbar-legend strong { color: var(--ink); }

/* Pilih sesi (mode "pilih sesi") */
.sess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sess-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.sess-card:hover { border-color: var(--teal); }
.sess-card.on { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.sess-card .sess-left { color: var(--teal); font-weight: 600; }
.sess-card.full { background: var(--sand); }
.sess-card.full .sess-left { color: var(--red); }
.sess-card .sess-count { color: var(--gold-ink, #8A6A1F); font-weight: 600; }
.cart-box { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--teal-soft); font-size: 14px; }
.quota-matrix td { vertical-align: top; }
.text-red { color: var(--red); }

/* Form pendaftaran: kelompok isian, info tambahan, tombol salin */
.fgroup { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.copy-btn { font: inherit; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--teal); background: none; border: 1px dashed var(--teal); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
details.extra { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0 14px; }
details.extra > summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details.extra[open] > summary { margin-bottom: 8px; }
.holder-extra { margin-top: 4px; }
.stepper button { min-width: 44px; min-height: 44px; }
.check input[type=checkbox] { width: 22px; height: 22px; flex: none; }

/* Bukti pembayaran (tiket dari mitra) */
.receipt-card .people { margin: 0; padding-left: 20px; line-height: 1.6; }
.receipt-note { margin-top: 16px; background: #FBF3E2; border: 1px solid #EBD6A8; color: #5E4510; border-radius: 12px; padding: 12px 14px; line-height: 1.55; }
@media print {
  .site-header, .site-footer, .no-print, .status-box .status-icon, .summary-bar { display: none !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border-color: #ccc !important; }
}
.partner-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--teal-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.nav .nav-cta { border: 1.5px solid var(--teal); color: var(--teal); border-radius: 999px; padding: 6px 14px; font-weight: 600; }

/* =====================================================================
   Tampilan 2026: ornamen geometris, banner berlapis, kartu bertanggal
   (semua warna dari variabel tema, jadi ikut berubah saat tema diganti)
   ===================================================================== */
.ic { display: inline-block; vertical-align: -3px; flex: none; }
.ornament { position: relative; isolation: isolate; }
.ornament::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14;
  background-color: var(--hero-eyebrow, #F0D9A8);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 4l5.2 8.7L37 11l-1.7 9.8L44 22l-8.7 5.2L37 37l-9.8-1.7L22 44l-5.2-8.7L7 37l1.7-9.8L0 22l8.7-5.2L7 7l9.8 1.7z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 4l5.2 8.7L37 11l-1.7 9.8L44 22l-8.7 5.2L37 37l-9.8-1.7L22 44l-5.2-8.7L7 37l1.7-9.8L0 22l8.7-5.2L7 7l9.8 1.7z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") repeat;
}
.site-header { backdrop-filter: saturate(1.2) blur(8px); background: color-mix(in srgb, var(--header-bg, var(--card)) 90%, transparent); }
.nav .nav-cta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 40px; }
@media (max-width: 520px) { .nav .nav-cta span { display: none; } .nav .nav-cta { padding: 8px 10px; } }

/* Banner beranda */
.hero { position: relative; overflow: hidden; border-radius: 26px; box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 22%, transparent); }
.hero-slider.ornament::before { border-radius: 26px; z-index: 1; }
.hero > div { position: relative; z-index: 2; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-eyebrow, #F0D9A8); border: 1px solid color-mix(in srgb, var(--hero-eyebrow, #F0D9A8) 40%, transparent); background: color-mix(in srgb, var(--gold) 16%, transparent); padding: 5px 12px; border-radius: 999px; margin: 0 0 12px; }
.hero-meta { display: flex; flex-direction: column; gap: 6px; color: var(--hero-text, #E3F0EC); margin: 6px 0 4px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ic { color: var(--hero-eyebrow, #F0D9A8); }
.countdown { display: flex; gap: 10px; margin: 14px 0 18px; }
.countdown div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 74px; color: var(--hero-ink, #fff); }
.countdown b { display: block; font-size: 24px; line-height: 1.1; font-family: var(--serif); }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--hero-text, #E3F0EC); }
.hero .btn-primary { box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 45%, transparent); }
.hero-poster { position: relative; z-index: 2; transform: rotate(-1.6deg); transition: transform .4s; }
.hero-poster img { box-shadow: 0 22px 44px rgba(0, 0, 0, .3); border: 4px solid rgba(255, 255, 255, .9); border-radius: 18px; }
.hero:hover .hero-poster { transform: rotate(0); }
.intro { margin: 28px 0 8px; padding: clamp(24px, 5vw, 44px); border-radius: 26px; background: linear-gradient(130deg, var(--hero-from), var(--hero-to)); color: var(--hero-ink, #fff); overflow: hidden; }
.intro h1 { color: var(--hero-ink, #fff); }
.intro p { color: var(--hero-text, #E3F0EC); margin: 0; }

/* Strip angka */
.stats-strip { display: flex; justify-content: space-around; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; margin: 4px 0 26px; box-shadow: var(--shadow); }
.stats-strip div { text-align: center; }
.stats-strip b { display: block; font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); color: var(--teal); }
.stats-strip span { font-size: 13px; color: var(--muted); }
.section-title { margin: 10px 0 12px; }
.chip { min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--card); }
.chip.active { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* Kartu event */
.event-card { border-radius: 20px; box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 6%, transparent); }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 12%, transparent); }
.thumb-wrap { position: relative; }
.thumb-wrap .thumb, .thumb-wrap .thumb-ph { display: flex; }
.date-badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.date-badge b { display: block; font-size: 20px; }
.date-badge span { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--gold-ink); }
.type-tag { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 600; color: #fff; background: color-mix(in srgb, var(--ink) 78%, transparent); padding: 4px 10px; border-radius: 999px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.seat-bar { height: 6px; border-radius: 9px; background: var(--sand); overflow: hidden; margin-top: 6px; }
.seat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.seat-left { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.card-foot .price { margin-top: 0; }
.go { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--card); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.event-card:hover .go { transform: translateX(3px); }
.empty.card { border-radius: 22px; }

/* Halaman event */
.ev-hero { position: relative; margin: 20px -16px 0; padding: 28px 16px 0; overflow: hidden; border-radius: 0 0 28px 28px; }
.ev-backdrop { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.15); opacity: .55; }
.ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--cream) 92%); }
.ev-hero.no-poster { background: linear-gradient(130deg, var(--hero-from), var(--hero-to)); }
.ev-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: end; max-width: 1120px; margin: 0 auto; padding-bottom: 8px; }
.ev-poster img, .ev-poster-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; box-shadow: 0 22px 48px rgba(0, 0, 0, .22); display: block; }
.ev-poster-ph { display: flex; align-items: flex-end; padding: 24px; color: var(--hero-eyebrow, #F0D9A8); font-family: var(--serif); font-size: 28px; font-weight: 600; background: linear-gradient(135deg, var(--hero-to), var(--hero-from)); overflow: hidden; }
.ev-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 10%, transparent); }
.ev-card h1 { margin: 10px 0 6px; font-size: clamp(26px, 3.4vw, 38px); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.info-grid > div { display: flex; gap: 8px; align-items: flex-start; background: var(--cream); border-radius: 12px; padding: 10px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.info-grid .ic { color: var(--teal); margin-top: 1px; }
.info-grid strong { display: block; color: var(--ink); font-size: 14px; }
.info-grid a { font-size: 13px; }
.ev-tabs { position: sticky; top: 64px; z-index: 5; display: flex; gap: 22px; overflow-x: auto; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); margin: 18px 0 18px; padding: 0 2px; }
.ev-tabs a { padding: 12px 0; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.ev-tabs a:hover, .ev-tabs a:focus { color: var(--ink); border-bottom-color: var(--gold); }
.ev-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.desc.clamp { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.more-btn { font-weight: 700; color: var(--teal); margin-top: 4px; }
details.terms { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--card); }
details.terms summary { cursor: pointer; font-weight: 600; }
.loc-card { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.loc-card .ic { color: var(--teal); }
#daftar, #tentang, #jadwal, #lokasi { scroll-margin-top: 120px; }
.ticket { border-left: 5px solid var(--teal); border-radius: 16px; transition: box-shadow .15s, border-color .15s; }
.ticket.selected { border-color: var(--gold); border-left-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.trust-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.trust-note .ic { color: var(--teal); }
.summary-bar { background: var(--ink) !important; color: var(--card); border-top: 0 !important; box-shadow: 0 -8px 24px color-mix(in srgb, var(--ink) 18%, transparent); }
.summary-bar .muted, .summary-bar #qtyText { color: color-mix(in srgb, var(--card) 70%, transparent) !important; }
.summary-bar strong { color: var(--card); }
@media (max-width: 860px) {
  .ev-hero-inner, .ev-body { grid-template-columns: 1fr; }
  .ev-hero { padding-top: 16px; }
  .ev-card { margin-top: -40px; }
  .ev-tabs { top: 56px; }
}

/* Footer */
.site-footer { position: relative; overflow: hidden; padding-top: 40px; }
.site-footer.ornament::before { opacity: .07; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; position: relative; }
.footer-org { font-size: 16px; display: block; }
.footer-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .socials a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 14px; font-size: 13px; position: relative; }
@media (prefers-reduced-motion: reduce) { .hero-poster, .event-card, .go { transition: none; transform: none; } }

/* ===== Admin: menu berkelompok ===== */
.sidebar .nav-group { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .42); margin: 18px 12px 6px; }
.sidebar .nav-group:first-of-type { margin-top: 0; }
@media (max-width: 900px) {
  .sidebar .nav-group { width: 100%; margin: 8px 4px 0; }
}
/* Kartu tema siap pakai */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.preset-card { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 0; cursor: pointer; overflow: hidden; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.preset-card:hover { border-color: var(--teal); }
.preset-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.preset-card.on { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.preset-card .sw { display: flex; height: 54px; }
.preset-card .sw span { flex: 1; }
.preset-card .sw span:first-child { flex: 2.2; }
.preset-card .tx { padding: 10px 12px 12px; display: block; }
.preset-card .tx b { display: block; font-size: 15px; }
.preset-card .tx small { color: var(--ink-2); display: block; margin-top: 2px; line-height: 1.4; }
.preset-card .badge { float: right; font-size: 11px; font-weight: 700; color: var(--teal); }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
/* Tombol pilihan bersegmen (peta statistik) */
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg a.on { background: var(--teal); color: var(--on-teal, #fff); }
#peta .row-between { flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .seg a { padding: 6px 10px; font-size: 13px; } #peta select { max-width: 100%; } }
.admin .main { min-width: 0; overflow-x: clip; }
/* Bar total: beri ruang kiri-kanan agar nominal & tombol tidak menempel tepi */
.summary-bar { padding: 14px 24px !important; border-radius: 16px 16px 0 0; }
.summary-bar .row-between { gap: 16px; flex-wrap: nowrap; }
.summary-bar .btn { flex-shrink: 0; }
@media (max-width: 520px) { .summary-bar { padding: 12px 16px !important; margin-left: -4px; margin-right: -4px; } .summary-bar .btn { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 520px) {
  .summary-bar .row-between > div { min-width: 0; }
  .summary-bar .btn { flex-shrink: 1; max-width: 52%; white-space: normal; line-height: 1.25; text-align: center; padding: 10px 14px; font-size: 15px; }
  .summary-bar #totalText { font-size: 20px !important; }
}
@media (max-width: 520px) { .summary-bar #qtyText { display: block; } }
/* Pemateri: kotak selebar kartu bila lebih dari satu / nama panjang, semua nama tampil berbaris */
.info-grid > div.wide { grid-column: 1 / -1; }
.info-grid > div > span { min-width: 0; overflow-wrap: anywhere; }
.info-grid > div.wide strong + strong { margin-top: 2px; }
/* Tanpa deskripsi: jadwal & lokasi memakai lebar penuh, sesi tersusun dalam kolom */
.ev-body.solo { grid-template-columns: 1fr; }
.ev-body.solo .sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 8px; }
.ev-body.solo .sessions li { margin: 0; }

/* ===== Halaman event: poster proporsional ===== */
.ev-hero-inner { align-items: center; }
.ev-poster { align-self: center; }
.ev-poster img { aspect-ratio: 16/9; object-fit: cover; background: rgba(0, 0, 0, .15); }
@media (min-width: 861px) {
  .ev-hero { padding-bottom: 20px; }
  .ev-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
}

/* ===== Gambar info tambahan ===== */
.info-gallery { margin-top: 36px; }
.info-grid-img { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.info-grid-img figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.info-zoom { position: relative; display: block; background: var(--cream); }
.info-zoom img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.info-zoom .zoom-hint { position: absolute; right: 10px; bottom: 10px; background: color-mix(in srgb, var(--ink) 78%, transparent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.info-zoom:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.info-grid-img figcaption { padding: 10px 14px; font-weight: 600; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 14, .96); display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; }
.lb-close, .lb-nav { position: absolute; z-index: 2; border: 0; background: rgba(40, 44, 52, .85); color: #fff; width: 44px; height: 44px; border-radius: 999px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
/* Admin: daftar gambar info */
.info-admin { display: grid; gap: 10px; }
.info-admin-row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.info-admin-row img { width: 96px; height: 72px; object-fit: contain; background: var(--cream); border-radius: 8px; flex-shrink: 0; }
