/* =====================================================================
   VirtualKlab · "Velocity & Trust" x struktur ala tiket.com
   Dimuat SETELAH luxe.css & public.css.
   Warna: Midnight Slate (anchor 30%) · Off-White/Cool Gray (60%) · Hyper Orange (CTA saja) · Cyber Cyan (sekunder)
   Font: Montserrat (judul, CTA, menu CAPS) · Inter (isi) · Oswald (angka)
   ===================================================================== */
:root, :root[data-theme="light"] { --r: 14px; --blue-soft: rgba(6,182,212,.12); }
.aurora-bg, .card::before, .ticket-card::before, .btn-primary::after { display: none; }
h1, h2, h3, .font-display { letter-spacing: -.025em; line-height: 1.12; }

/* ---------- Komponen dasar ---------- */
.card, .ticket-card { border-radius: var(--r); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
a.ticket-card:hover, .grid > .ticket-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 14px 32px rgba(15,23,42,.12); }
.btn-primary { text-transform: none; font-weight: 800; font-size: .92rem; letter-spacing: 0; border-radius: 12px; padding: .8rem 1.5rem; box-shadow: 0 6px 16px var(--glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-radius: 12px; }
.field-label { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--ink); }
.field-input { border-radius: 12px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.eyebrow::before { display: none; }
.chip { border-radius: 8px; letter-spacing: 0; }
.badge { letter-spacing: 0; }
.tab-btn.active, .step-dot.active b, .step-dot.done b { color: #0F172A; }

/* Bottom nav mobile: bilah penuh ala aplikasi tiket, tetap Midnight Slate */
.bottom-nav { left: 0; right: 0; bottom: 0; transform: none; width: 100%; border-radius: 0; border: 0; border-top: 1px solid rgba(226,232,240,.1);
    padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(15,23,42,.18); }
.bn-item { border-radius: 10px; }
.bn-item.active { color: #22D3EE; background: transparent; box-shadow: none; }
.bn-item.active svg { transform: none; }
.bn-item.active::before { content: ""; position: absolute; top: -.35rem; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--cyan); }
.nav-item { border-radius: 12px; }

/* ---------- Navbar publik: Midnight Slate ---------- */
.pb-nav { background: #0F172A; backdrop-filter: none; border-bottom: 1px solid rgba(226,232,240,.08); }
.pb-links a { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: #CBD5E1; border-radius: 10px; }
.pb-links a:hover { color: #22D3EE; background: rgba(6,182,212,.12); }
.pb-actions .icon-btn { color: #F8FAFC; border-color: rgba(226,232,240,.2); background: transparent; }
.pb-actions .btn-ghost { color: #F8FAFC; border-color: rgba(226,232,240,.28); }
.pb-actions .btn-ghost:hover { background: rgba(6,182,212,.14); border-color: var(--cyan); color: #22D3EE; }
.pb-btn { border-radius: 10px !important; }
@media (max-width: 820px) { .pb-links { background: #0F172A; border-bottom-color: rgba(226,232,240,.1); } }

/* ---------- Hero ---------- */
.tk-hero { position: relative; overflow: hidden; isolation: isolate; color: #F8FAFC; padding: 3rem 0 6.5rem; background: linear-gradient(160deg, #0F172A 0%, #0B1220 100%); }
.tk-hero::before { content: ""; position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.30), transparent 62%); }
.tk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: linear-gradient(rgba(226,232,240,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(226,232,240,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(75% 90% at 25% 40%, #000, transparent); -webkit-mask-image: radial-gradient(75% 90% at 25% 40%, #000, transparent); }
.tk-hero-in { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .tk-hero-in { grid-template-columns: 1.25fr 1fr; } }
.tk-hero h1 { color: #F8FAFC; font-weight: 900; font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.035em; line-height: 1.08; max-width: 34rem; }
.tk-hero p { color: #CBD5E1; margin-top: 1rem; font-size: 1.08rem; max-width: 30rem; }
.tk-search { display: flex; gap: .5rem; margin-top: 1.8rem; max-width: 600px; padding: .45rem; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(2,8,23,.4); }
.tk-search label { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; padding-inline: .8rem; color: #64748B; }
.tk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; color: #0F172A; padding-block: .7rem; }
.tk-search svg { width: 20px; height: 20px; flex: none; }
.tk-search:focus-within { box-shadow: 0 0 0 3px rgba(6,182,212,.55), 0 18px 40px rgba(2,8,23,.4); }
.tk-feature { display: none; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; border: 1px solid rgba(226,232,240,.18); background: #1E293B; box-shadow: 0 24px 60px rgba(2,8,23,.5); }
@media (min-width: 960px) { .tk-feature { display: block; } }
.tk-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tk-feature:hover img { transform: scale(1.04); }
.tk-feature-cap { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: .15rem; padding: 3rem 1.3rem 1.1rem; background: linear-gradient(transparent, rgba(15,23,42,.92)); }
.tk-feature-cap i { font-style: normal; align-self: flex-start; padding: .2rem .6rem; border-radius: 6px; background: #06B6D4; color: #0F172A; font-size: .72rem; font-weight: 800; margin-bottom: .35rem; }
.tk-feature-cap b { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.tk-feature-cap em { font-style: normal; font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: .04em; color: #CBD5E1; }

/* Strip info yang menimpa hero */
.tk-info { position: relative; z-index: 2; margin-top: -3.6rem; }
.tk-info-card { display: grid; gap: 1.1rem; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(15,23,42,.14); }
[data-theme="dark"] .tk-info-card { background: var(--card-solid); }
@media (min-width: 820px) { .tk-info-card { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.tk-info .pb-countdown { margin: 0; }
.tk-info .pb-cd-label { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.tk-info .vk-cd-box { background: var(--surface); border: 0; min-width: 62px; }
.tk-info .vk-cd-box b { color: var(--ink); }
.tk-info .vk-cd-box span { color: var(--cyan-ink); }
.tk-info .vk-stat { background: var(--surface); }
.tk-info .vk-stat .num { color: var(--ink); }
.tk-info .vk-stat span { color: var(--muted); text-transform: none; letter-spacing: 0; }
.tk-info-note { color: var(--muted); }

/* ---------- Katalog ---------- */
.pb-section { padding-block: 2.4rem; }
.pb-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; }
.pb-tabs { background: transparent; border: 0; padding: 0; gap: .5rem; flex-wrap: wrap; }
.pb-tabs button { border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); padding: .5rem 1.1rem; }
.pb-tabs button:hover { border-color: var(--cyan); color: var(--cyan-ink); }
.pb-tabs button.on, [data-theme="dark"] .pb-tabs button.on { background: #0F172A; color: #fff; border-color: #0F172A; }
[data-theme="dark"] .pb-tabs button.on { background: var(--cyan); color: #0F172A; border-color: var(--cyan); }
.pb-grid { gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }
.pb-card .poster-frame { height: auto !important; aspect-ratio: 16 / 10; }
.pb-card .poster-frame::after { background: linear-gradient(to top, rgba(15,23,42,.45), transparent 45%); }
.pb-card-top .chip { background: #06B6D4 !important; color: #0F172A !important; border: 0 !important; font-weight: 800; }
.pb-badge { border-radius: 8px; letter-spacing: 0; }
.tk-date { position: absolute; left: .75rem; bottom: .75rem; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: .3rem .5rem .35rem; border-radius: 10px; background: #fff; color: #0F172A; line-height: 1; box-shadow: 0 4px 12px rgba(15,23,42,.25); }
.tk-date b { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.45rem; }
.tk-date span { margin-top: .15rem; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #0E7490; }
.pb-card h3 { font-size: 1.05rem; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-card .ticket-notch { border-top-width: 1px; }
.tk-from { display: block; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.pb-card .price-tag { font-size: 1.15rem; color: var(--ink); }
.tk-go { color: var(--cyan-ink); font-weight: 800; font-size: .85rem; }
.pb-card:hover .tk-go { text-decoration: underline; text-underline-offset: 3px; }
.pb-photo, .pb-banner-slide, .pb-detail-poster { border-radius: var(--r); }
.pb-partner-title { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
.vk-sponsor-tile { border-radius: 12px; }
.pb-footer h4 { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* =====================================================================
   Penyegaran halaman publik (warna & font tema TIDAK diubah)
   ===================================================================== */
.pb-section-tight { padding-block: 1.2rem; }
.pb-sub { margin-top: .35rem; color: var(--muted); font-size: .95rem; }

/* Hero: kicker, chip populer */
.tk-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; margin-bottom: 1rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #CBD5E1; background: rgba(226,232,240,.08); border: 1px solid rgba(226,232,240,.14); }
.tk-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(6,182,212,.22); }
.tk-search .btn-primary { border: 0; cursor: pointer; }
.tk-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: #94A3B8; }
.tk-quick button { padding: .3rem .85rem; border-radius: 999px; border: 1px solid rgba(226,232,240,.22); background: rgba(255,255,255,.05); color: #E2E8F0; font-weight: 700; font-size: .8rem; cursor: pointer; transition: all .2s ease; }
.tk-quick button:hover { border-color: var(--cyan); color: #22D3EE; background: rgba(6,182,212,.14); }
.tk-feature { transform: rotate(1.5deg); transition: transform .5s var(--ease); }
.tk-feature:hover { transform: rotate(0) translateY(-4px); }

/* Chip kategori katalog */
.pb-cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin: -.4rem 0 1.2rem; scrollbar-width: none; }
.pb-cats::-webkit-scrollbar { display: none; }
.pb-cats button { flex: none; padding: .42rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-weight: 700; font-size: .82rem; cursor: pointer; transition: all .2s ease; }
.pb-cats button:hover { border-color: var(--cyan); color: var(--cyan-ink); }
.pb-cats button.on { background: var(--cyan); border-color: var(--cyan); color: #0F172A; }

/* Kartu event */
.pb-card .poster-frame { height: auto; aspect-ratio: 16 / 10; }
.pb-card .poster-frame img { transition: transform .6s var(--ease); }
.pb-card:hover .poster-frame img { transform: scale(1.05); }
.pb-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.pb-card-body h3 { margin-bottom: .6rem; }
.pb-meta { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.pb-meta p { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pb-meta svg { flex: none; }
.pb-card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pb-foot-note { font-size: .85rem; font-weight: 700; color: var(--muted); }
.pb-card .tk-go { white-space: nowrap; }

/* Cara daftar */
.tk-steps { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: step; }
.tk-steps li { position: relative; padding: 1.3rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-solid); counter-increment: step; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.tk-steps li:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 12px 28px rgba(15,23,42,.1); }
.tk-steps li::after { content: counter(step, decimal-leading-zero); position: absolute; top: .9rem; right: 1.1rem; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--line); }
.tk-step-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .9rem; border-radius: 12px; background: var(--blue-soft); color: var(--cyan-ink); }
.tk-step-ic svg { width: 22px; height: 22px; }
.tk-steps b { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; margin-bottom: .25rem; }
.tk-steps p { font-size: .88rem; color: var(--muted); }

/* Ajakan daftar */
.tk-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.8rem 2rem; border-radius: 20px; color: #F8FAFC; background: linear-gradient(135deg, #0F172A, #1E293B); position: relative; overflow: hidden; isolation: isolate; }
.tk-cta::before { content: ""; position: absolute; z-index: -1; width: 360px; aspect-ratio: 1; right: -90px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.35), transparent 65%); }
.tk-cta h2 { font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: #F8FAFC; }
.tk-cta p { margin-top: .3rem; color: #CBD5E1; }
.tk-cta-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.tk-cta .btn-ghost { color: #F8FAFC; border-color: rgba(226,232,240,.35); }
.tk-cta .btn-ghost:hover { border-color: var(--cyan); color: #22D3EE; }

/* Detail event */
.tk-ev-head { padding: 1.6rem 0 4.5rem; color: #F8FAFC; background: linear-gradient(160deg, #0F172A, #0B1220); }
.tk-ev-head h1 { font-weight: 900; font-size: clamp(1.7rem, 4.2vw, 2.8rem); color: #F8FAFC; max-width: 46rem; }
.tk-ev-head .pb-back { color: #94A3B8; }
.tk-ev-head .pb-back:hover { color: #22D3EE; }
.tk-chip { background: #06B6D4 !important; color: #0F172A !important; border: 0 !important; }
.tk-chip-soft { background: rgba(226,232,240,.1); color: #E2E8F0; border: 1px solid rgba(226,232,240,.2); }
.tk-ev { position: relative; z-index: 2; margin-top: -3rem; padding-bottom: 2rem; }
.tk-ev-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 960px) { .tk-ev-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .tk-ev-side { position: sticky; top: 88px; } }
.tk-ev-main { display: grid; gap: 1.2rem; }
.tk-ev-card { padding: 1.4rem 1.5rem; }
.tk-ev-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: .8rem; }
.pb-detail-poster { box-shadow: 0 16px 40px rgba(15,23,42,.18); }
.tk-facts { list-style: none; display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.tk-facts li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; }
.tk-facts svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--blue-soft); color: var(--cyan-ink); }
.tk-facts small, .tk-price small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); }
.tk-price { padding: 1rem 0; margin-bottom: 1rem; border-block: 1px dashed var(--line); }
.tk-price b { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--ink); }
.tk-block { display: flex; width: 100%; justify-content: center; }
.tk-tickets { display: grid; gap: .7rem; }
.tk-ticket { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; }
.tk-ticket b { font-weight: 800; }
.tk-ticket-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.tk-ticket small { display: block; margin-top: .3rem; font-size: .72rem; color: var(--muted); }
.tk-ticket strong { font-family: 'Montserrat', sans-serif; font-weight: 800; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .tk-feature, .tk-feature:hover { transform: none; } }

/* =====================================================================
   Panel admin / dashboard (warna & font tema TIDAK diubah)
   ===================================================================== */
.page-head h1 { font-weight: 900; letter-spacing: -.03em; }
.page-head .eyebrow { color: var(--cyan-ink); }

/* Topbar: breadcrumb + tautan ke situs publik */
.topbar { background: var(--card-solid); backdrop-filter: none; }
.ad-crumb { display: none; align-items: center; gap: .55rem; font-size: .85rem; min-width: 0; }
@media (min-width: 1024px) { .ad-crumb { display: flex; } }
.ad-crumb span { color: var(--muted); font-weight: 600; }
.ad-crumb i { font-style: normal; color: var(--line); }
.ad-crumb b { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-site-link { display: none; align-items: center; gap: .4rem; height: 42px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink); }
.ad-site-link svg { width: 15px; height: 15px; }
.ad-site-link:hover { border-color: var(--cyan); color: var(--cyan-ink); }
@media (min-width: 640px) { .ad-site-link { display: inline-flex; } }

/* Sidebar: label & item lebih rapi */
.sidebar .nav-item { font-weight: 700; }
.sidebar .nav-item.active { color: #0F172A; background: var(--cyan); }
.sidebar .brand-sub { letter-spacing: .16em; }

/* Notifikasi */
.ad-flash { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 600; border: 1px solid transparent; border-left-width: 4px; }
.ad-flash-ok { background: #E7F8EE; color: #166534; border-color: #BBF7D0; border-left-color: #16A34A; }
[data-theme="dark"] .ad-flash-ok { background: rgba(22,163,74,.14); color: #86EFAC; border-color: rgba(22,163,74,.3); border-left-color: #16A34A; }

/* Kartu statistik */
.ad-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.4rem; }
@media (min-width: 1024px) { .ad-stats { grid-template-columns: repeat(4, 1fr); } }
.ad-stat { position: relative; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-solid); box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.ad-stat:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 12px 28px rgba(15,23,42,.1); }
.ad-stat-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--cyan-ink); }
.ad-stat-ic svg { width: 21px; height: 21px; }
.ad-stat-ok .ad-stat-ic { background: rgba(22,163,74,.12); color: #16A34A; }
.ad-stat-label { margin-top: .9rem; font-size: .76rem; font-weight: 700; color: var(--muted); }
.ad-stat-num { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 2.4rem; line-height: 1.1; color: var(--ink); }
.ad-stat-ok .ad-stat-num { color: #16A34A; }
.ad-stat-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ad-stat-ring .ad-stat-label { margin-top: .5rem; }

/* Aksi cepat */
.ad-quick { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .ad-quick { grid-template-columns: repeat(3, 1fr); } }
.ad-quick-item { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-solid); transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease); }
.ad-quick-item:hover { border-color: var(--cyan); box-shadow: 0 10px 24px rgba(15,23,42,.1); transform: translateY(-2px); }
.ad-quick-item b { display: block; font-weight: 800; }
.ad-quick-item small { display: block; font-size: .78rem; color: var(--muted); }
.ad-arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--muted); transition: transform .25s var(--ease), color .25s ease; }
.ad-quick-item:hover .ad-arrow { transform: translateX(4px); color: var(--cyan-ink); }

/* Daftar event admin */
.ad-events { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ad-event { display: flex; flex-direction: column; }
.ad-event-poster { aspect-ratio: 16 / 10; }
.ad-event-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.ad-event-body h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: .2rem; }
.ad-event-date { margin-bottom: .9rem; font-size: .85rem; color: var(--muted); }
.ad-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .55rem; font-size: .88rem; }
.ad-row span:first-child { color: var(--muted); }
.ad-good { color: #16A34A; font-weight: 700; }
.ad-bad { color: #D8375A; font-weight: 700; }
.ad-event-foot { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.ad-pill { position: absolute; top: .75rem; right: .75rem; z-index: 2; max-width: 70%; padding: .25rem .7rem; border-radius: 8px; font-size: .68rem; font-weight: 800; }
.ad-pill-ok { background: #E7F8EE; color: #166534; }
.ad-pill-off { background: #E2E8F0; color: #334155; }

/* Tabel & form admin: lebih rapi, selaras dengan halaman publik */
.page .card { border-radius: var(--r); }
.page .card thead th { padding-block: .85rem; color: var(--muted); background: var(--surface); }
.page .card tbody tr:hover { background: var(--blue-soft); }
.page .field-input:focus { box-shadow: 0 0 0 3px rgba(6,182,212,.25); }
.page .field-label { font-weight: 700; }
.page h2.font-display { font-weight: 900; }

/* =====================================================================
   Area peserta / user (dashboard, detail event, tiket, profil, Strava)
   Mengikuti bahasa visual halaman publik & admin: Midnight Slate, Cyber Cyan
   sebagai aksen, Hyper Orange hanya untuk CTA. Prefix: .us-
   ===================================================================== */

/* ---------- Notifikasi ---------- */
.ad-flash-err { background: #FDECEF; color: #9F1239; border-color: #FECDD3; border-left-color: #E11D48; }
.ad-flash-warn { background: #FFF7E0; color: #92600A; border-color: #FDE68A; border-left-color: #F59E0B; }
[data-theme="dark"] .ad-flash-err { background: rgba(225,29,72,.14); color: #FDA4AF; border-color: rgba(225,29,72,.3); }
[data-theme="dark"] .ad-flash-warn { background: rgba(245,158,11,.14); color: #FCD34D; border-color: rgba(245,158,11,.3); }
.ad-flash ul { list-style: disc; padding-left: 1.1rem; display: grid; gap: .15rem; }
.ad-flash svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header section ---------- */
.us-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.us-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; }
.us-sub { margin-top: .3rem; font-size: .92rem; color: var(--muted); }
.us-section { margin-bottom: 2.4rem; }
.us-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.us-back:hover { color: var(--cyan-ink); }
.us-back svg { width: 16px; height: 16px; }

/* ---------- Hero dashboard ---------- */
.us-hero { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 1.4rem; padding: 1.6rem 1.4rem 1.7rem; border-radius: 20px; color: #F8FAFC; background: linear-gradient(160deg, #0F172A 0%, #0B1220 100%); }
.us-hero::before { content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.30), transparent 62%); }
.us-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: linear-gradient(rgba(226,232,240,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(226,232,240,.05) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(75% 90% at 25% 40%, #000, transparent); -webkit-mask-image: radial-gradient(75% 90% at 25% 40%, #000, transparent); }
.us-hero-in { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 960px) { .us-hero { padding: 2.2rem 2.2rem 2.3rem; } .us-hero-in { grid-template-columns: 1.3fr 1fr; gap: 2.2rem; } }
.us-hero h1 { color: #F8FAFC; font-weight: 900; font-size: clamp(1.8rem, 4.6vw, 2.9rem); letter-spacing: -.035em; line-height: 1.1; }
.us-hero h1 em { font-style: normal; color: #22D3EE; }
.us-hero-lead { margin-top: .7rem; max-width: 30rem; color: #CBD5E1; }
.us-ids { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.us-id { display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; border: 1px dashed rgba(34,211,238,.6); color: #22D3EE; }
.us-id-solid { background: #22D3EE; color: #0B1220; border: 0; text-transform: uppercase; }
.us-hero .tk-search { margin-top: 1.3rem; }
.us-hero .tk-quick { margin-top: .9rem; }
.us-next { padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(226,232,240,.14); }
.us-next-label { font-size: .75rem; font-weight: 700; color: #94A3B8; }
.us-next-name { display: block; margin: .15rem 0 .8rem; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: #F8FAFC; }
.us-next .vk-cd-box { min-width: 0; flex: 1; }
.us-next .flex { gap: .5rem; }
.us-next-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-size: .84rem; font-weight: 800; color: #22D3EE; }
.us-next-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.us-next-empty { color: #CBD5E1; font-size: .95rem; }

/* ---------- Statistik ringkas ---------- */
.us-stats { grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .us-stats { gap: 1rem; } }
.us-stats .ad-stat { padding: .95rem 1rem; }
.us-stats .ad-stat-label { margin-top: .6rem; }
.us-stats .ad-stat-num { font-size: 2rem; }
@media (max-width: 480px) { .us-stats .ad-stat-ic { width: 36px; height: 36px; } .us-stats .ad-stat-label { font-size: .68rem; } }

/* ---------- Filter katalog ---------- */
.us-tabs { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.us-tabs button, .us-cats button { flex: none; padding: .45rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-weight: 700; font-size: .82rem; cursor: pointer; transition: all .2s ease; }
.us-tabs button:hover, .us-cats button:hover { border-color: var(--cyan); color: var(--cyan-ink); }
.us-tabs button.on { background: #0F172A; border-color: #0F172A; color: #fff; }
[data-theme="dark"] .us-tabs button.on { background: var(--cyan); border-color: var(--cyan); color: #0F172A; }
.us-cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin: -.2rem 0 1.1rem; scrollbar-width: none; }
.us-cats::-webkit-scrollbar { display: none; }
.us-cats button.on { background: var(--cyan); border-color: var(--cyan); color: #0F172A; }

/* ---------- Kartu event ---------- */
.us-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }
.us-card { display: flex; flex-direction: column; }
.us-card[hidden] { display: none; }
.us-card .poster-frame { aspect-ratio: 16 / 10; height: auto; }
.us-card .poster-frame::after { background: linear-gradient(to top, rgba(15,23,42,.45), transparent 45%); }
.us-card .poster-frame img { width: 100%; height: 100%; object-fit: cover; }
.us-card:hover .poster-frame img { transform: scale(1.05); }
.us-card.is-finished { opacity: .78; }
.us-card.is-finished .poster-frame img { filter: grayscale(.6); }
.us-card-top { position: absolute; top: .75rem; left: .75rem; right: .75rem; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.us-card-top .chip { background: #06B6D4; color: #0F172A; border: 0; font-weight: 800; border-radius: 8px; }
.us-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.us-card-body h3 { margin-bottom: .6rem; font-size: 1.05rem; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.us-meta { display: grid; gap: .4rem; margin-bottom: .9rem; font-size: .85rem; color: var(--muted); }
.us-meta p { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.us-meta svg { flex: none; }
.us-prog-row { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .75rem; font-weight: 700; color: var(--muted); }
.us-prog { height: 6px; margin-bottom: 1rem; border-radius: 99px; overflow: hidden; background: var(--line); }
.us-prog i { display: block; height: 100%; border-radius: 99px; background: var(--cyan); }
.us-prog.is-full i { background: var(--bad); }
.us-card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.us-card-foot .price-tag { font-size: 1.1rem; }
.us-card-foot .tk-go { white-space: nowrap; }
.us-card:hover .tk-go { text-decoration: underline; text-underline-offset: 3px; }
.us-empty-filter { grid-column: 1 / -1; }

/* Badge status event */
.us-badge { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 8px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.us-badge-open { background: #E7F8EE; color: #166534; }
.us-badge-live { background: #06B6D4; color: #0F172A; }
.us-badge-done { background: #E2E8F0; color: #334155; }
.us-badge-closed { background: #FDECEF; color: #BE123C; }
.us-badge-mine { background: #0F172A; color: #22D3EE; }
[data-theme="dark"] .us-badge-mine { background: #22D3EE; color: #0F172A; }

/* ---------- Berita, promo, info (menyesuaikan gaya publik) ---------- */
.us-news { border-radius: var(--r); }
.us-news .vk-news-img { height: 160px; }
.vk-slide-inner { border-radius: var(--r); }
.vk-info-ico { border-radius: 12px; }
.us-sponsors-title { margin-bottom: 1.2rem; text-align: center; font-size: .95rem; font-weight: 700; color: var(--ink); }

/* ---------- Detail event ---------- */
.us-ev-head { position: relative; overflow: hidden; isolation: isolate; padding: 1.4rem 1.4rem 4.6rem; border-radius: 20px; color: #F8FAFC; background: linear-gradient(160deg, #0F172A, #0B1220); }
.us-ev-head::before { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.28), transparent 64%); }
.us-ev-head .us-back { color: #94A3B8; }
.us-ev-head .us-back:hover { color: #22D3EE; }
.us-ev-head h1 { color: #F8FAFC; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 44rem; }
.us-ev-body { position: relative; z-index: 2; margin-top: -3.2rem; padding-inline: .6rem; }
@media (min-width: 960px) { .us-ev-body { padding-inline: 1rem; } }
.us-ev-body .tk-ev-side { top: 84px; }
.us-poster { overflow: hidden; border-radius: var(--r); box-shadow: 0 16px 40px rgba(15,23,42,.18); background: #0F172A; }
.us-poster img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.us-poster .poster-ph { min-height: 300px; }
.us-prose { white-space: pre-line; color: var(--muted); line-height: 1.7; }
.us-slots { margin-bottom: 1rem; }
.us-merch { display: flex; gap: 1.1rem; align-items: center; }
.us-merch img { width: 104px; height: 104px; flex: none; border-radius: 14px; object-fit: cover; }
.us-merch h3 { font-size: 1.15rem; font-weight: 800; }
.us-sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.tk-ticket.is-off { opacity: .5; border-left-color: var(--line); }
.us-hint { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.us-terms { margin-bottom: 1rem; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.us-terms a { font-weight: 800; color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 2px; }
.us-closed { display: flex; justify-content: center; padding: .8rem; border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 800; font-size: .9rem; }

/* ---------- Tiket saya ---------- */
.us-tickets { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.us-ticket { display: flex; min-height: 150px; }
.us-ticket-main { flex: 1; min-width: 0; padding: 1.1rem 1.2rem; }
.us-ticket-main h3 { margin: .65rem 0 .15rem; font-size: 1.1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-ticket-main time { display: block; margin-bottom: .8rem; font-size: .85rem; color: var(--muted); }
.us-label { font-size: .68rem; font-weight: 800; color: var(--muted); }
.us-code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; color: var(--ink); word-break: break-all; }
.us-ticket-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 102px; padding: 1rem .8rem; text-align: center; border-left: 2px dashed var(--line); background: var(--surface); }
.us-ticket-stub::before, .us-ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.us-ticket-stub::before { top: -11px; clip-path: inset(50% 0 0 50%); }
.us-ticket-stub::after { bottom: -11px; clip-path: inset(0 0 50% 50%); }
.us-stub-no { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.us-stub-go { margin-top: .4rem; font-size: .78rem; font-weight: 800; color: var(--cyan-ink); }
.us-ticket:hover .us-stub-go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- E-Ticket / pembayaran ---------- */
.us-pay { max-width: 600px; margin-inline: auto; }
.us-pay-head { position: relative; overflow: hidden; isolation: isolate; padding: 1.4rem 1.5rem; color: #F8FAFC; background: linear-gradient(160deg, #0F172A, #0B1220); }
.us-pay-head::before { content: ""; position: absolute; z-index: -1; width: 300px; aspect-ratio: 1; right: -90px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.32), transparent 64%); }
.us-pay-head > * { position: relative; z-index: 1; }
.us-pay-kicker { font-size: .78rem; font-weight: 800; color: #22D3EE; }
.us-pay-head h1 { margin-top: .2rem; font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 900; color: #F8FAFC; }
.us-pay-head p { margin-top: .25rem; font-size: .88rem; color: #CBD5E1; }
.us-pay-body { padding: 1.4rem 1.5rem 1.6rem; }
.us-rows { display: grid; gap: .7rem; margin-bottom: 1.3rem; font-size: .9rem; }
.us-rows > div { display: flex; justify-content: space-between; gap: 1rem; }
.us-rows dt, .us-rows span.k { color: var(--muted); }
.us-rows b { text-align: right; }
.us-box { padding: 1rem 1.1rem; margin-bottom: 1.3rem; border: 1px solid var(--line); border-radius: 14px; }
.us-box-title { margin-bottom: .6rem; font-size: .78rem; font-weight: 800; color: var(--muted); }
.us-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1.3rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.us-total span:first-child { font-size: .85rem; font-weight: 700; color: var(--muted); }
.us-total strong { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.7rem; color: var(--ink); }
.us-note { padding: 1rem; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .88rem; text-align: center; }
.us-qr { text-align: center; padding: 1.6rem 1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.us-qr .us-label { display: block; }
.us-qr-no { margin: .1rem 0; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 3.2rem; letter-spacing: .05em; line-height: 1.1; color: var(--ink); }
.us-qr-box { position: relative; display: inline-block; margin-top: 1rem; }
.us-qr-box img { display: block; width: 220px; height: 220px; padding: .7rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 5px rgba(6,182,212,.28), 0 18px 40px rgba(15,23,42,.22); }
.us-qr-line { position: absolute; left: 8px; right: 8px; top: 12px; height: 3px; border-radius: 9px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 14px var(--cyan); animation: usQr 2.6s ease-in-out infinite; }
@keyframes usQr { 0%, 100% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 50% { transform: translateY(190px); } }
.us-qr .us-code { display: block; margin-top: .3rem; font-size: 1.4rem; letter-spacing: .22em; }
@media (prefers-reduced-motion: reduce) { .us-qr-line { animation: none; opacity: 0; } }

/* ---------- Profil ---------- */
.us-profile-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1024px) { .us-profile-grid { grid-template-columns: 340px minmax(0, 1fr); } }
.us-me { overflow: hidden; text-align: center; }
.us-me-cover { height: 84px; background: linear-gradient(160deg, #0F172A, #0B1220); position: relative; }
.us-me-cover::after { content: ""; position: absolute; width: 200px; aspect-ratio: 1; right: -60px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.4), transparent 65%); }
.us-me-body { padding: 0 1.4rem 1.5rem; }
.us-me .avatar { width: 84px; height: 84px; margin: -42px auto 0; font-size: 2rem; border: 4px solid var(--card-solid); position: relative; z-index: 1; }
.us-me h2 { margin-top: .8rem; font-size: 1.3rem; font-weight: 900; }
.us-me .us-ids { justify-content: center; }
.us-me .us-id { color: var(--cyan-ink); border-color: var(--cyan); }
.us-me .us-id-solid { color: #0B1220; }
.us-form { padding: 1.5rem; display: grid; gap: 1.2rem; }
.us-form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .us-form-grid.c2 { grid-template-columns: 1fr 1fr; } .us-form-grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.us-locked { opacity: .6; cursor: not-allowed; }
.us-help { margin-top: .35rem; font-size: .75rem; color: var(--muted); }
.us-radios { display: flex; gap: .7rem; padding-top: .2rem; }
.us-radios label { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.us-radios label:has(input:checked) { border-color: var(--cyan); background: var(--blue-soft); }
.us-radios input { accent-color: var(--cyan); }

/* ---------- Strava ---------- */
.us-strava-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; }
.us-strava-head h2 { font-size: 1.4rem; font-weight: 900; }
.us-strava-head h2 span { color: #FC4C02; }
.us-strava-cta { text-align: center; padding: 2.4rem 1.4rem; }
.us-strava-logo { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 20px; background: #FC4C02; box-shadow: 0 12px 28px rgba(252,76,2,.35); }
.us-strava-logo svg { width: 32px; height: 32px; }
.us-strava-btn { background: #FC4C02 !important; color: #fff !important; box-shadow: 0 8px 20px rgba(252,76,2,.35) !important; }
.us-run { padding: 1.3rem 1.4rem; }
.us-run + .us-run { margin-top: 1rem; }
.us-run-head { margin-bottom: 1rem; }
.us-run-head h3 { font-size: 1.1rem; font-weight: 800; }
.us-act + .us-act { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px dashed var(--line); }
.us-act-top { display: flex; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.us-act-top a { white-space: nowrap; font-size: .78rem; font-weight: 800; color: #FC4C02; }
.us-metrics { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
@media (min-width: 640px) { .us-metrics { grid-template-columns: repeat(4, 1fr); } }
.us-metric { padding: .75rem .9rem; border-radius: 12px; background: var(--surface); }
.us-metric small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); }
.us-metric b { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.us-metric.hot b { color: var(--cyan-ink); }
.us-tbl { width: 100%; font-size: .86rem; border-collapse: collapse; }
.us-tbl th { padding: .55rem .8rem; text-align: left; font-size: .7rem; font-weight: 800; color: var(--muted); background: var(--surface); }
.us-tbl td { padding: .5rem .8rem; border-top: 1px solid var(--line); }
.us-tbl .mono { font-family: ui-monospace, Menlo, monospace; }
.us-split summary { cursor: pointer; font-size: .85rem; font-weight: 800; color: var(--cyan-ink); }

/* ---------- Form pendaftaran ---------- */
.us-reg { max-width: 720px; margin-inline: auto; }
.us-reg-ev { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-bottom: 1.1rem; }
.us-reg-ev img { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; }
.us-reg-ev h2 { font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.us-reg-ev p { font-size: .85rem; color: var(--muted); }
.us-reg-ev .us-reg-price { font-weight: 800; color: var(--cyan-ink); }
.us-reg-card { padding: 1.5rem; }
.us-reg-card h1 { margin-bottom: 1.2rem; font-size: 1.5rem; font-weight: 900; }
.us-opt { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s ease, background .2s ease; }
.us-opt:has(input:checked) { border-color: var(--cyan); background: var(--blue-soft); }
.us-opt input[type="radio"], .us-reg-card input[type="radio"], .us-reg-card input[type="checkbox"] { accent-color: var(--cyan); }
.us-opt-price { font-weight: 800; white-space: nowrap; text-align: right; color: var(--ink); }
.us-dash-box { border: 1px dashed var(--cyan); }
.us-sum-amt { color: var(--ink); }
.us-warn { padding: .8rem 1rem; border-radius: 12px; font-size: .85rem; font-weight: 600; background: #FFF7E0; color: #92600A; border: 1px solid #FDE68A; }
[data-theme="dark"] .us-warn { background: rgba(245,158,11,.14); color: #FCD34D; border-color: rgba(245,158,11,.3); }

/* =====================================================================
   Portal client (laporan event). Prefix: .cl-
   ===================================================================== */
.cl-head .us-badge { margin-left: .1rem; }
.cl-head-meta { margin-top: .6rem; font-size: .95rem; color: #CBD5E1; }
.cl-head + * { margin-top: 1.2rem; }
.us-ev-head.cl-head { padding-bottom: 1.6rem; margin-bottom: 1.4rem; }
.cl-money { font-size: 1.7rem !important; line-height: 1.3 !important; white-space: nowrap; }
@media (min-width: 1280px) { .cl-money { font-size: 1.9rem !important; } }
.cl-of { font-size: 1.1rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 600; }
.cl-note { margin-top: .25rem; font-size: .75rem; color: var(--muted); }
.ad-stat-bad .ad-stat-ic { background: rgba(225,29,72,.12); color: var(--bad); }
.ad-stat-bad .ad-stat-num { color: var(--bad); }
.cl-bar { height: 8px; margin-bottom: 0; }
.cl-h2 { margin: 0 0 1rem; font-size: 1.3rem !important; font-weight: 900; }
.cl-h3 { margin-bottom: .8rem; font-size: 1rem; font-weight: 800; }
[data-tabs] .tabs { margin-bottom: 1.3rem; }
.ad-event.ticket-card:hover .tk-go { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Area petugas (dashboard, peserta, scan pengambilan, scan data, chat)
   Memakai komponen .ad-* / .us-* yang sama dengan admin & client.
   Prefix: .pt-
   ===================================================================== */

/* Aksi di kartu event dashboard petugas */
.pt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: 1rem; }
.pt-actions .btn-primary, .pt-actions .btn-ghost { justify-content: center; text-align: center; padding: .65rem .8rem; font-size: .85rem; }
.pt-actions .btn-ghost { border-radius: 12px; }
.pt-actions svg { width: 16px; height: 16px; flex: none; }
.pt-actions .btn-primary, .pt-actions .btn-ghost { display: inline-flex; align-items: center; gap: .45rem; }

/* Statistik 3 kolom (halaman peserta) */
.pt-stats { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.pt-stats .ad-stat { padding: .95rem 1rem; }
.pt-stats .ad-stat-label { margin-top: .6rem; }
.pt-stats .ad-stat-num { font-size: 2rem; }

/* Filter pencarian peserta */
.pt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.pt-filter .field-input { max-width: 360px; flex: 1 1 220px; }
.pt-filter select.field-input { max-width: 190px; flex: 0 1 190px; }

/* Tabel peserta */
.pt-name { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; }
.pt-name .avatar { width: 32px; height: 32px; font-size: .8rem; }
.pt-mono { font-family: ui-monospace, Menlo, monospace; }
.pt-claim-meta { margin-top: .3rem; font-size: .72rem; color: var(--muted); }
.pt-bib { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .04em; }

/* Halaman scan: kamera + hasil */
.pt-scan { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1024px) { .pt-scan { grid-template-columns: 1fr 1fr; } }
.pt-panel { padding: 1.2rem; }
.pt-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.pt-panel-head h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; }
.pt-counter { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pt-counter b { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.1rem; color: #16A34A; }
.pt-reader { min-height: 260px; overflow: hidden; border-radius: 14px; background: #0F172A; border: 1px solid var(--line); }
.pt-error { margin-top: .8rem; font-size: .85rem; font-weight: 600; color: #E11D48; }
.pt-manual { margin-top: 1.2rem; }
.pt-manual-row { display: flex; gap: .5rem; }
.pt-manual-row .field-input { text-transform: uppercase; }
.pt-placeholder { display: grid; place-items: center; gap: .6rem; padding: 2.4rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.pt-placeholder svg { width: 44px; height: 44px; color: var(--cyan-ink); opacity: .7; }

/* Kotak hasil scan: warna ikut state, aman untuk tema terang & gelap */
.pt-result { --st-bg: var(--surface); --st-fg: var(--ink); --st-bd: var(--line);
    padding: 1.3rem; border-radius: var(--r); border: 1px solid var(--st-bd); border-left: 5px solid var(--st-bd); background: var(--st-bg); }
.pt-result[hidden], .pt-placeholder[hidden] { display: none; }
.pt-result[data-state="ok"]   { --st-bg: #E7F8EE; --st-fg: #166534; --st-bd: #16A34A; }
.pt-result[data-state="warn"] { --st-bg: #FFF7E0; --st-fg: #92600A; --st-bd: #F59E0B; }
.pt-result[data-state="bad"]  { --st-bg: #FDECEF; --st-fg: #9F1239; --st-bd: #E11D48; }
[data-theme="dark"] .pt-result[data-state="ok"]   { --st-bg: rgba(22,163,74,.14);  --st-fg: #86EFAC; }
[data-theme="dark"] .pt-result[data-state="warn"] { --st-bg: rgba(245,158,11,.14); --st-fg: #FCD34D; }
[data-theme="dark"] .pt-result[data-state="bad"]  { --st-bg: rgba(225,29,72,.14);  --st-fg: #FDA4AF; }
.pt-result-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.1; color: var(--st-fg); }
.pt-result-msg { margin: .3rem 0 1rem; font-size: .92rem; font-weight: 600; color: var(--st-fg); }
.pt-result-msg:empty { display: none; }
.pt-detail { display: grid; gap: .55rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.pt-detail[hidden] { display: none; }
.pt-detail .ad-row { margin-bottom: 0; }
.pt-detail .ad-row[hidden] { display: none; }
.pt-detail .ad-row b { text-align: right; word-break: break-word; }
.pt-undo { margin-top: 1rem; font-size: .85rem; }
.pt-undo[hidden] { display: none; }
.pt-sections { display: grid; gap: .8rem; }
.pt-bibcard { padding: 1rem; border-radius: 12px; text-align: center; background: var(--card-solid); border: 1px solid var(--line); color: var(--ink); }
.pt-bibcard small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); }
.pt-bibcard .pt-bib-num { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 2.4rem; line-height: 1.15; letter-spacing: .06em; color: var(--cyan-ink); }
.pt-bibcard .pt-bib-name { font-weight: 800; }
.pt-section { padding: 1rem 1.1rem; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.pt-section h4 { margin-bottom: .6rem; font-size: .78rem; font-weight: 800; color: var(--muted); }
.pt-section .ad-row { align-items: flex-start; }
.pt-section .ad-row b { text-align: right; word-break: break-word; }
.pt-section .ad-row span:first-child { flex: none; }

/* Chat petugas */
.pt-chat { display: grid; gap: 1.2rem; }
@media (min-width: 1024px) { .pt-chat { grid-template-columns: 3fr 1fr; align-items: start; } }
.pt-chat-box { display: flex; flex-direction: column; height: min(68vh, 560px); padding: 0; overflow: hidden; }
.pt-chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; }
.pt-chat-empty { margin: auto; font-size: .88rem; text-align: center; color: var(--muted); }
.pt-msg { display: flex; }
.pt-msg.mine { justify-content: flex-end; }
.pt-bubble { max-width: 78%; padding: .55rem .85rem; border-radius: 14px; border-bottom-left-radius: 4px; background: var(--surface); color: var(--ink); }
.pt-msg.mine .pt-bubble { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; background: var(--cyan); color: #0F172A; }
.pt-bubble-who { margin-bottom: .1rem; font-size: .72rem; font-weight: 800; color: var(--cyan-ink); }
.pt-bubble-body { font-size: .9rem; white-space: pre-wrap; word-break: break-word; }
.pt-bubble-time { margin-top: .15rem; font-size: .68rem; text-align: right; opacity: .6; }
.pt-chat-form { display: flex; gap: .5rem; padding: .9rem; border-top: 1px solid var(--line); background: var(--card-solid); }
.pt-members { display: grid; gap: .7rem; margin: .8rem 0 1rem; }
.pt-member { display: flex; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 600; min-width: 0; }
.pt-member .avatar { width: 30px; height: 30px; font-size: .75rem; }
.pt-member em { font-style: normal; font-weight: 500; color: var(--muted); }

/* =====================================================================
   Sidebar yang bisa dibuka/tutup (admin, client, petugas, user) · desktop ≥ 1024px
   Status: <html data-sidebar="open|collapsed"> (disimpan di localStorage 'vk-sidebar')
   Tertutup = sidebar menyempit jadi bilah ikon; di mobile tetap bottom-nav.
   ===================================================================== */
:root[data-sidebar="collapsed"] { --sidebar-w: 84px; }

/* Tombol buka/tutup di topbar */
.sb-lead { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.sb-toggle { display: none; }
@media (min-width: 1024px) { .sb-toggle { display: grid; } }
.sb-toggle:hover { transform: none; }
.sb-toggle:active { transform: scale(.92); }
.sb-toggle .sb-chev { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
:root[data-sidebar="collapsed"] .sb-toggle .sb-chev { transform: scaleX(-1); }

/* Elemen yang berubah saat menyempit */
.sidebar { overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sb-txt { max-width: 220px; max-height: 6rem; overflow: hidden; white-space: nowrap; opacity: 1; }
.sidebar .brand { gap: .55rem; }
.sidebar .brand-sub { max-height: 2rem; }
.sb-logo { display: block; max-width: 240px; max-height: 48px; overflow: hidden; opacity: 1; }
.sb-mark { display: grid; place-items: center; width: 40px; height: 40px; max-width: 0; max-height: 0; overflow: hidden; opacity: 0; border-radius: 12px;
    background: var(--cyan); color: #0F172A; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.25rem; }

/* Transisi hanya aktif setelah halaman selesai dimuat (tidak ada animasi saat pindah halaman) */
.sb-anim .sidebar { transition: width .38s var(--ease), padding .38s var(--ease); }
.sb-anim .main-wrap { transition: margin-left .38s var(--ease); }
.sb-anim .sb-txt { transition: opacity .25s ease .12s, max-width .38s var(--ease), max-height .38s var(--ease); }
.sb-anim .sidebar .brand { transition: gap .38s var(--ease), padding .38s var(--ease); }
.sb-anim .sidebar .brand-sub { transition: opacity .25s ease .12s, max-width .38s var(--ease), max-height .38s var(--ease); }
.sb-anim .sb-logo { transition: opacity .25s ease, max-width .38s var(--ease), max-height .38s var(--ease); }
.sb-anim .sb-mark { transition: opacity .3s ease .12s, max-width .38s var(--ease), max-height .38s var(--ease); }
.sb-anim .sidebar .nav-label { transition: font-size .3s var(--ease), padding .3s var(--ease), margin .3s var(--ease), background .3s ease; }
.sb-anim .sidebar .user-pill { transition: padding .38s var(--ease); }

/* Tertutup */
:root[data-sidebar="collapsed"] .sidebar { padding-inline: .75rem; }
:root[data-sidebar="collapsed"] .sidebar .sb-txt { max-width: 0; max-height: 0; opacity: 0; transition-delay: 0s; }
:root[data-sidebar="collapsed"] .sidebar .brand { align-items: center; gap: 0; padding-inline: 0; }
:root[data-sidebar="collapsed"] .sidebar .sb-logo { max-width: 0; max-height: 0; opacity: 0; }
:root[data-sidebar="collapsed"] .sidebar .sb-mark { max-width: 40px; max-height: 40px; opacity: 1; }
:root[data-sidebar="collapsed"] .sidebar .nav-label { font-size: 0; height: 1px; padding: 0; margin: .55rem .5rem; overflow: hidden; background: rgba(226,232,240,.14); }
:root[data-sidebar="collapsed"] .sidebar .nav-item { justify-content: center; gap: 0; padding-inline: 0; }
:root[data-sidebar="collapsed"] .sidebar .nav-item.active::after { display: none; }
:root[data-sidebar="collapsed"] .sidebar .user-pill { flex-direction: column; gap: 0; padding: .55rem 0; }
:root[data-sidebar="collapsed"] .sidebar .user-pill > a { flex: none; gap: 0; justify-content: center; }
:root[data-sidebar="collapsed"] .sidebar .user-pill .icon-btn { margin-top: .5rem; }
:root[data-sidebar="collapsed"] .sidebar .side-foot .btn-ghost { gap: 0; padding-inline: 0; }

/* Animasi saat dibuka: menu muncul satu per satu dari kiri */
@keyframes sbItemIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.sidebar.is-opening .nav-item,
.sidebar.is-opening .nav-label { animation: sbItemIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
.sidebar.is-opening .side-foot { animation: sbItemIn .5s var(--ease) .45s both; }

@media (prefers-reduced-motion: reduce) {
    .sb-anim .sidebar, .sb-anim .main-wrap, .sb-anim .sb-txt, .sb-anim .sb-logo, .sb-anim .sb-mark,
    .sb-anim .sidebar .brand, .sb-anim .sidebar .nav-label, .sb-anim .sidebar .user-pill, .sb-toggle .sb-chev { transition: none; }
    .sidebar.is-opening .nav-item, .sidebar.is-opening .nav-label, .sidebar.is-opening .side-foot { animation: none; }
}

/* ============================================================
   MOBILE: menu jadi sidebar kiri yang bisa dibuka/tutup
   (menggantikan bottom-nav). Dibuka lewat tombol #mob-toggle,
   class html.mob-open.
   ============================================================ */
.bottom-nav { display: none !important; }
.mob-backdrop { display: none; }
.mob-menu-btn { display: grid; }
@media (min-width: 1024px) { .mob-menu-btn { display: none !important; } }
@media (max-width: 1023.98px) {
    .sidebar#app-sidebar {
        display: flex; width: min(82vw, 300px); max-width: 300px; height: 100dvh; z-index: 90;
        transform: translateX(-105%); visibility: hidden; overscroll-behavior: contain;
        box-shadow: 8px 0 32px rgba(0,0,0,.35);
        transition: transform .28s cubic-bezier(.22,.8,.3,1), visibility 0s linear .28s;
    }
    html.mob-open .sidebar#app-sidebar { transform: translateX(0); visibility: visible; transition-delay: 0s; }
    /* selalu tampil penuh di drawer, walau status desktop "collapsed" tersimpan */
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar { padding-inline: 1.1rem; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .sb-txt { max-width: 220px; max-height: 6rem; opacity: 1; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .brand { align-items: flex-start; gap: .55rem; padding-inline: 0; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .sb-logo { max-width: 240px; max-height: 48px; opacity: 1; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .sb-mark { max-width: 0; max-height: 0; opacity: 0; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .nav-label { font-size: inherit; height: auto; padding: revert; margin: revert; background: none; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .nav-item { justify-content: flex-start; gap: .75rem; padding-inline: .9rem; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .nav-item.active::after { display: block; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .user-pill { flex-direction: row; padding: .6rem .7rem; gap: .75rem; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .user-pill > a { flex: 1; gap: .75rem; justify-content: flex-start; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .user-pill .icon-btn { margin-top: 0; }
    :root[data-sidebar="collapsed"] .sidebar#app-sidebar .side-foot .btn-ghost { gap: .5rem; padding-inline: 1rem; }
    :root[data-sidebar="collapsed"] .main-wrap { margin-left: 0; }

    .mob-backdrop {
        display: block; position: fixed; inset: 0; z-index: 80; background: rgba(5,10,20,.55);
        opacity: 0; pointer-events: none; transition: opacity .25s ease; -webkit-tap-highlight-color: transparent;
    }
    html.mob-open .mob-backdrop { opacity: 1; pointer-events: auto; }
    html.mob-open, html.mob-open body { overflow: hidden; }
    .main-wrap { padding-bottom: 0; }
    .main-wrap .vk-footer { padding-bottom: 1.5rem; }
    .page { padding-bottom: 1.5rem; }
}

/* ---------- Perbaikan tampilan mobile (Android, lebar 320-420px) ---------- */
/* Kolom grid harus boleh mengecil (minmax(0,1fr)); kalau tidak, isi yang lebar (form cari, teks) mendorong kolom keluar layar dan terpotong. */
.tk-hero-in { grid-template-columns: minmax(0, 1fr); }
.tk-hero-copy { min-width: 0; }
@media (min-width: 960px) { .tk-hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.tk-search { width: 100%; }
.tk-search .btn-primary { flex: none; }
@media (max-width: 400px) {
    /* HP sempit: kolom pencarian di atas, tombol Cari selebar kolom di bawahnya */
    .tk-search { flex-direction: column; gap: .4rem; }
    .tk-search label { padding-block: .1rem; }
    .tk-search .btn-primary { width: 100%; justify-content: center; }
}

/* Slide/promo & kartu berita: isi yang panjang tidak boleh melebarkan kolomnya */
.vk-slide, .pb-banner-slide, .pb-banner-cap { min-width: 0; }
.pb-banner-cap b, .pb-banner-cap i { overflow-wrap: anywhere; }
.pb-banner-slide .vk-type { max-width: calc(100% - 1.5rem); white-space: normal; }

/* Navbar & kartu ajakan di HP sempit (Galaxy A55 = 360px) */
@media (max-width: 420px) {
    .pb-nav-in { gap: .4rem; }
    .pb-actions { gap: .3rem; }
    .pb-nav .icon-btn { width: 38px; height: 38px; }
    .pb-nav .lang-btn { height: 38px !important; padding: 0 .45rem !important; gap: .3rem !important; }
    .pb-nav .vk-logo { height: 28px !important; }
    .pb-btn { padding: .5rem .9rem !important; }
    .tk-cta { padding: 1.4rem 1.2rem; }
    .tk-cta-btns { width: 100%; }
    .tk-cta-btns > * { flex: 1; justify-content: center; text-align: center; }
}

/* Anak grid boleh mengecil: cegah isi lebar (form, email panjang, tabel) mendorong kolom keluar layar */
.tk-ev-grid > *, .us-hero-in > *, .us-profile-grid > *, .us-form-grid > *, .pt-scan > *, .pt-chat > *,
.ad-quick > *, .pb-hero-in > *, .pb-detail > *, .pb-foot-grid > *, .tk-info-card > * { min-width: 0; }
.pb-footer a, .pb-foot-text { overflow-wrap: anywhere; }
.pb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
