/* ASD Green — Booth Lead Capture */
:root {
  --navy: #063B5A;
  --navy-2: #0B5176;
  --blue: #116B95;
  --sky: #2CA6CF;
  --cyan: #4AD1F2;
  --green: #5F982E;
  --green-deep: #467A20;
  --leaf: #8AC63F;
  --lime: #B7E84B;
  --sun: #FFB229;
  --amber: #FFD56A;
  --ink: #0C2636;
  --muted: #5E7180;
  --line: #DCE8EA;
  --bg: #F5FAFB;
  --soft: #ECF7E4;
  --card: #ffffff;
  --danger: #C62828;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(6,59,90,.05), 0 14px 34px -14px rgba(6,59,90,.20);
  --ease: cubic-bezier(.22,.8,.26,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: Manrope, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg);
  display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.ic { flex: none; vertical-align: -0.2em; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }

/* Latar belakang: orb bercahaya perlahan */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 420px; height: 420px; background: #bfe6f3; top: -140px; right: -120px; }
.bg-orbs span:nth-child(2) { width: 360px; height: 360px; background: #d9f0c4; bottom: -120px; left: -120px; animation-delay: -8s; }
.bg-orbs span:nth-child(3) { width: 240px; height: 240px; background: #ffe7ae; top: 40%; left: 55%; animation-delay: -14s; opacity: .2; }
@keyframes drift { to { transform: translate3d(40px, 60px, 0) scale(1.1); } }

/* Bar jenama */
.brand-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -16px rgba(6,59,90,.5); }
.brand-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--sky), var(--leaf), var(--sun)); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-event { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.25; max-width: 220px; }
@media (max-width: 480px) { .brand-event { display: none; } .brand-logo { height: 36px; } }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px var(--line); }
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.logo-chip.lg { width: auto; height: auto; padding: 10px 16px; border-radius: 18px; }
.logo-chip.lg img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 1rem; letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: .875rem; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; min-height: 44px; transition: background .2s, border-color .2s; }
.link-btn:hover { border-color: var(--sky); background: #f0f9fc; text-decoration: none; }
@media (max-width: 420px) { .link-btn span { display: none; } }

/* Susun atur */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; }
.wrap.narrow { max-width: 560px; }
.wrap.wide { max-width: 1280px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.hero { padding: 8px 4px 20px; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.15; margin: 10px 0 8px; letter-spacing: -.02em; font-weight: 800; }
.h2 { font-size: 1.4rem; margin: 8px 0; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-deep); background: var(--soft); padding: 6px 10px; border-radius: 999px; margin: 0; }
.eyebrow.gold { color: var(--amber); background: rgba(255,178,41,.14); }
.eyebrow.center { display: flex; width: max-content; margin: 0 auto 14px; }
.referrer { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 14px 8px 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--navy-2), var(--sky)); flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: .85rem; }

/* Borang */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fbfdfd;
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none; }
input:focus, select:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(44,166,207,.18); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 14px; background: #eaf3f5; border: 1.5px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px; font-weight: 600; color: var(--muted); }
.input-prefix input { border-radius: 0 12px 12px 0; }
.has-error input, .has-error select, .has-error .tile-body { border-color: var(--danger); }
.err { margin: 0; color: var(--danger); font-size: .85rem; font-weight: 500; }
.dup-alert { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff7e6; border: 1.5px solid var(--sun);
  color: #6b4700; font-size: .88rem; animation: reveal .35s var(--ease) both; opacity: 0; transform: translateY(6px); }
.dup-alert[hidden] { display: none; }
.dup-alert strong { font-size: .95rem; color: #5a3b00; }
.dup-hit input, .dup-hit select { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,178,41,.2); }
.dup-msg { margin: 0; display: flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 700; color: #8a5a00; animation: reveal .3s var(--ease) both; }
.dup-msg::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); color: #fff; font-size: .75rem; flex: none; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary:disabled::after { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 380px) { .tiles.three { grid-template-columns: 1fr; } .tiles.three .tile-body { flex-direction: row; min-height: 56px; } }
.tile { position: relative; cursor: pointer; }
.tile input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.tile-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 92px;
  padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fbfdfd; font-weight: 600; font-size: .88rem;
  transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s; }
.tile-body .ic { color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.tile:hover .tile-body { border-color: #a9d6e6; }
.tile input:checked + .tile-body { border-color: var(--green); background: var(--soft); box-shadow: 0 0 0 3px rgba(95,152,46,.16); color: var(--ink); }
.tile input:checked + .tile-body .ic { color: var(--green); transform: scale(1.15) rotate(-6deg); }
.tile input:focus-visible + .tile-body { outline: 3px solid var(--sky); outline-offset: 2px; }
.tile:active .tile-body { transform: scale(.97); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; position: relative; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fbfdfd; font-size: .88rem; font-weight: 600; transition: all .2s; }
.pill input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input:checked + span::before { content: "\2713"; margin-right: 6px; font-weight: 800; }
.has-error .pill span { border-color: var(--danger); }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .85rem !important; color: var(--muted); cursor: pointer; }
.consent input, .check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; margin-top: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; font: inherit; font-weight: 700;
  border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; text-decoration: none !important; }
.btn:active { transform: scale(.98); }
.btn-primary { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--green-deep), var(--green) 55%, #74B236); box-shadow: 0 10px 24px -10px rgba(70,122,32,.8); font-size: 1.05rem; min-height: 54px; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(70,122,32,.9); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sky); }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.icon-btn:hover { border-color: var(--sky); }
.icon-btn.danger { color: var(--danger); }
.fine { margin: -4px 0 0; font-size: .8rem; color: var(--muted); text-align: center; display: flex; gap: 6px; justify-content: center; align-items: center; }

.alert { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-weight: 500; font-size: .9rem; }
.alert-ok { background: var(--soft); color: var(--green-deep); }
.toast { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: var(--soft); color: var(--green-deep); font-weight: 600; border: 1px solid #cfe8b8; }

.seg { display: flex; gap: 4px; padding: 4px; background: #e6eff2; border-radius: 14px; margin-bottom: 16px; }
.seg a { flex: 1; text-align: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); min-height: 44px; display: grid; place-items: center; }
.seg a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg a:hover { text-decoration: none; color: var(--ink); }

/* Halaman berjaya */
.success-card { padding: 36px 24px; }
.success-card p { max-width: 42ch; margin: 8px auto 0; }
.check-burst { width: 96px; height: 96px; margin: 0 auto 8px; }
.check-burst svg { width: 100%; height: 100%; }
.check-burst circle { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease) forwards; }
.check-burst path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.state-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; }
.state-icon.warn { background: #fff4dc; color: #b77400; }
.state-icon.info { background: var(--soft); color: var(--green); }
.chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #e8f5fa; color: var(--navy-2); font-size: .82rem; font-weight: 600; }

/* Menu utama */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 420px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.menu-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--sky); box-shadow: 0 20px 40px -18px rgba(6,59,90,.35); }
.menu-card small { color: var(--muted); }
.menu-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 6px; color: #fff; }
.menu-ic.red { background: linear-gradient(135deg, var(--navy), var(--sky)); }
.menu-ic.gold { background: linear-gradient(135deg, var(--sun), #f08c00); }

/* Halaman staf */
.staff-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .staff-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }
.qr-card { text-align: center; position: relative; overflow: hidden; }
.qr-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--navy), var(--sky), var(--leaf), var(--sky), var(--navy)); background-size: 200% 100%; animation: slide 4s linear infinite; }
@keyframes slide { to { background-position: 200% 0; } }
.qr-frame { position: relative; margin: 0 auto; width: min(100%, 300px); aspect-ratio: 1; padding: 14px; border-radius: 20px; background: #fff;
  box-shadow: inset 0 0 0 2px var(--line); }
.qr-frame::after { content: ""; position: absolute; left: 14px; right: 14px; height: 3px; top: 14px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(138,198,63,.55), transparent); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 50% { top: calc(100% - 17px); } }
.qr-frame canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-name { margin: 14px 0 0; font-size: 1.35rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.btn-row .btn { flex: 1 1 auto; min-width: 0; font-size: .9rem; padding: 10px 12px; }
.link-line { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 14px 0 0; font-size: .78rem; color: var(--muted); word-break: break-all; }
.stat-card { display: flex; gap: 20px; align-items: center; }
@media (max-width: 420px) { .stat-card { flex-direction: column; text-align: center; } }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .track { stroke: #e6eff2; }
.ring .bar { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  animation: ring 1.4s .2s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); } }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-label strong { font-size: 2.2rem; font-weight: 800; }
.ring-label span { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.big { font-size: 1.2rem; margin: 8px 0 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-head h3 { margin: 0; font-size: 1.05rem; }
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lead-list li:first-child { border-top: 0; }
.lead-list li div { min-width: 0; }
.lead-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.lead-list small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-list time { font-size: .75rem; color: var(--muted); text-align: right; }
.lead-list time em { display: block; color: var(--danger); font-style: normal; font-weight: 600; }
.lead-list li.invalid { opacity: .55; }
.empty { padding: 18px 0; text-align: center; }

/* Admin */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { font-size: 1.8rem; font-weight: 800; }
.sector-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: -6px 0 18px; }
@media (max-width: 700px) { .sector-strip { grid-template-columns: repeat(2, 1fr); } }
.sector-pill { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 600; transition: border-color .2s, background .2s; }
.sector-pill strong { font-size: 1.1rem; color: var(--navy); }
.sector-pill:hover { text-decoration: none; border-color: var(--sky); }
.sector-pill.active { background: var(--soft); border-color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; margin-bottom: 10px; }
.filters input[type=search] { flex: 2 1 220px; width: auto; }
.filters .select { flex: 1 1 180px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 500; cursor: pointer; }
.table-wrap { padding: 0; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data th { text-align: left; padding: 12px 14px; background: #f3f8fa; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tr:hover td { background: #f7fbfc; }
.row-invalid td { opacity: .5; }
.data form { margin: 0; }
.badge { border: 0; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; min-height: 32px; }
.badge.ok { background: var(--soft); color: var(--green-deep); }
.badge.bad { background: #fdecec; color: #9b1c1c; }
.flag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; }
.inline-edit { display: flex; gap: 6px; align-items: center; }
.inline-edit input { min-height: 38px; padding: 6px 10px; font-size: .9rem; min-width: 140px; }

/* Hadiah */
.prize-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.prize-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.prize-chip strong { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.prize-rank { font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.prize-chip.p1 { background: linear-gradient(160deg, #fff8e1, #fff); border-color: var(--amber); }
.prize-chip.p1 strong { color: #b36b00; }
.prize-now { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff8e1;
  color: #7a4a00; font-size: .88rem; border: 1px solid var(--amber); }
.prize-now.muted-prize { background: #f3f8fa; color: var(--muted); border-color: var(--line); }
.side { display: grid; gap: 16px; }
.prize-card h2 { font-size: 1rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; color: var(--amber); }
.prize-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prize-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.prize-list li strong { font-size: 1.2rem; font-weight: 800; }
.prize-list li.p1 { background: rgba(255,178,41,.14); }
.prize-list li.p1 strong { color: var(--amber); }
.medal.sm { width: 28px; height: 28px; margin: 0; font-size: .8rem; }
.prize-list .p1 .medal { background: linear-gradient(135deg, var(--amber), var(--sun)); }
.prize-list .p2 .medal { background: linear-gradient(135deg, #f1f1f1, #a9a9a9); }
.prize-list .p3 .medal { background: linear-gradient(135deg, #f0b98a, #a8662e); }
.pod .prize { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800;
  background: rgba(255,255,255,.1); color: #fff; }
.pod.p1 .prize { background: linear-gradient(135deg, var(--amber), var(--sun)); color: #3a2400; }
.demo-badge { display: inline-block; margin: 8px 0 0; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800;
  letter-spacing: .02em; background: var(--sun); color: #3a2400; animation: pulse 2s ease-in-out infinite; }
.demo-badge[hidden] { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,178,41,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255,178,41,.5); } }
.site-foot { position: relative; z-index: 1; text-align: center; padding: 18px 16px 28px; font-size: .78rem; color: var(--muted); }

/* Animasi masuk */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .6s var(--ease) forwards; }
.reveal:nth-child(2) { animation-delay: .06s; } .reveal:nth-child(3) { animation-delay: .12s; } .reveal:nth-child(4) { animation-delay: .18s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ============ Papan markah (gelap) ============ */
.theme-dark { background: radial-gradient(1200px 600px at 85% -10%, #0e5f86 0%, transparent 60%), radial-gradient(900px 520px at -10% 110%, #2f5d14 0%, transparent 55%), #04202F; color: #EEF7FA; }
.theme-dark .bg-orbs span { opacity: .12; }
.theme-dark .site-foot { color: #7f9aa8; }
.board-wrap { max-width: 1400px; margin: 0 auto; padding: 24px 16px 20px; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.board-head h1 { margin: 6px 0 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.board-stats { display: flex; gap: 12px; }
.stat { padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); min-width: 140px; }
.stat .label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9fbac7; font-weight: 700; }
.stat strong { font-size: 1.9rem; font-weight: 800; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 26px; }
.podium:empty { display: none; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .p1 { order: -1; } }
.pod { position: relative; text-align: center; padding: 22px 16px 18px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  animation: rise .8s var(--ease) both; }
.pod.p1 { padding-top: 30px; background: linear-gradient(180deg, rgba(255,178,41,.22), rgba(255,178,41,.04)); border-color: rgba(255,213,106,.6); animation-delay: .1s; }
.pod.p2 { animation-delay: .25s; } .pod.p3 { animation-delay: .4s; }
.pod.p1::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 80%, rgba(255,213,106,.25) 90%, transparent); animation: spin 6s linear infinite; }
.pod > * { position: relative; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.medal { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; color: #111; margin-bottom: 8px; }
.p1 .medal { background: linear-gradient(135deg, var(--amber), var(--sun)); box-shadow: 0 0 24px rgba(255,213,106,.6); }
.p2 .medal { background: linear-gradient(135deg, #f1f1f1, #a9a9a9); }
.p3 .medal { background: linear-gradient(135deg, #f0b98a, #a8662e); }
.pod .pname { font-size: 1.25rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pscore { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; }
.p1 .pscore { color: var(--amber); }
.pod .psub { font-size: .8rem; color: #9fbac7; }

.board-body { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .board-body { grid-template-columns: 1fr; } }
.rank-list { list-style: none; margin: 0; padding: 0; position: relative; }
.rank-row { display: grid; grid-template-columns: 44px minmax(0, 200px) 1fr 70px; gap: 14px; align-items: center; padding: 12px 16px; margin-bottom: 8px;
  border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); transition: transform .6s var(--ease), background .4s; }
@media (max-width: 560px) { .rank-row { grid-template-columns: 34px 1fr 54px; } .rank-row .track { grid-column: 1 / -1; } }
.rank-row.bump { background: rgba(138,198,63,.25); }
.rank-row .rk { font-weight: 800; color: #7f9aa8; text-align: center; }
.rank-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .sc { text-align: right; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rank-row .track { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rank-row .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--cyan), var(--leaf));
  transition: width 1s var(--ease); }
.rank-row .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 2.4s infinite; transform: translateX(-100%); }
.rank-row.hit .fill { background: linear-gradient(90deg, var(--leaf), var(--lime), var(--amber)); }
.rank-row.hit .sc::after { content: " ✓"; color: var(--lime); font-size: .9rem; }
.card-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px; }
.feed h2, .feed-h { font-size: 1rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; color: var(--lime); }
.feed ul { list-style: none; margin: 0; padding: 0; min-height: 60px; }
.feed li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.1); font-size: .9rem; animation: reveal .5s var(--ease) both; opacity: 0; transform: translateY(8px); }
.feed li time { color: #7f9aa8; font-size: .8rem; white-space: nowrap; }
.feed .none { color: #7f9aa8; font-size: .9rem; }
.target-note { margin: 14px 0 0; font-size: .82rem; color: #9fbac7; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cetak kad QR */
@media print {
  body { background: #fff; }
  .brand-bar, .bg-orbs, .no-print, .site-foot, .toast { display: none !important; }
  .staff-grid { display: block; }
  .qr-card { box-shadow: none; border: 2px solid var(--navy); max-width: 360px; margin: 0 auto; }
  .qr-frame::after { display: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
}
