@import url('/fonts/poppins/400.css');
@import url('/fonts/poppins/500.css');
@import url('/fonts/poppins/600.css');
@import url('/fonts/poppins/700.css');
@import url('/fonts/amiri/arabic-400.css');
@import url('/fonts/amiri/arabic-700.css');

:root {
  --paper: #ffffff;
  --mist: #f3f6f4;
  --ink: #18201b;
  --ink-2: #59625c;
  --ink-3: #8b938d;
  --line: #e3e7e4;
  --hijau: #015f25;
  --hijau-2: #01461b;
  --hijau-tint: #e5f1e8;
  --kuningan: #b8862b;
  --kuningan-tint: #f6eedc;
  --kulit: #efe4d2;
  --jali: #c23b2a;
  --jali-tint: rgba(194, 59, 42, .16);
  --khafi: #d9a514;
  --khafi-tint: rgba(226, 174, 30, .26);
  --display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --arab: 'Amiri', 'Traditional Arabic', serif;
  --kufi: 'Amiri', serif;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.65 var(--body);
}
img { max-width: 100%; }
a { color: var(--hijau); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.arab { font-family: var(--arab); direction: rtl; }
:focus-visible { outline: 3px solid var(--kuningan); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 36px; width: auto; display: block; }
.brand b { font-size: 1.12rem; font-weight: 700; color: var(--hijau); letter-spacing: -0.01em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current='page'] { color: var(--hijau); background: var(--hijau-tint); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 .95rem/1 var(--body); padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  background: var(--hijau); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--hijau-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); background: var(--mist); }
.btn.gold { background: var(--kuningan); }
.btn.gold:hover { background: #9c7022; }
.btn.danger { background: transparent; color: var(--jali); border-color: #eccfca; }
.btn.danger:hover { background: #fbefed; }
.btn.sm { padding: 8px 13px; font-size: .86rem; }
.btn.block { width: 100%; }

label.f { display: block; margin-bottom: 16px; }
label.f > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
label.f > small { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--hijau); box-shadow: 0 0 0 3px var(--hijau-tint); }
textarea { resize: vertical; min-height: 90px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.err { color: var(--jali); font-size: .9rem; min-height: 1.2em; margin: 4px 0 10px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; width: 1px; }
.switch .knob { width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .knob { background: var(--hijau); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 3px solid var(--kuningan); outline-offset: 2px; }
.switch b { display: block; font-weight: 600; }
.switch small { color: var(--ink-2); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.open, .pill.paid, .pill.done { background: var(--hijau-tint); color: var(--hijau); }
.pill.closed { background: var(--mist); color: var(--ink-3); }
.pill.pending, .pill.performing { background: var(--kuningan-tint); color: #8a6417; }
.pill.rejected { background: #fbecea; color: var(--jali); }
.pill.performing::before { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Hero (platform) ---------- */
.hero { padding: 84px 0 76px; text-align: center; border-bottom: 1px solid var(--line); }
.hero .wrap { max-width: 860px; }
.hero-logo { width: 92px; height: auto; display: block; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--hijau); letter-spacing: -0.02em; line-height: 1.05; }
.hero .sub { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--ink); margin: 14px auto 0; max-width: 30ch; line-height: 1.4; }
.hero .desc { color: var(--ink-2); font-size: 1rem; max-width: 56ch; margin: 16px auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .actions .btn { padding: 14px 26px; }
@media (max-width: 560px) { .hero { padding: 56px 0 50px; } .hero .actions .btn { flex: 1 1 100%; } }

/* ---------- Kartu poster festival ---------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.poster-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.poster-card .poster { aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--hijau); position: relative; border: 1px solid var(--line); }
.poster-card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.poster-card:hover .poster img { transform: scale(1.02); }
.poster-card .poster .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: #fff; }
.poster-card .poster .ph img.lg { width: 56px; height: auto; filter: brightness(0) invert(1); transform: none; }
.poster-card .poster .ph b { font-size: 1.35rem; line-height: 1.25; font-weight: 700; }
.poster-card .poster .pill { position: absolute; top: 12px; left: 12px; background: #fff; }
.poster-card .info { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.poster-card h3 { line-height: 1.35; }
.poster-card .meta { color: var(--ink-2); font-size: .88rem; }
.poster-card .go { margin-top: 10px; }
.event-poster { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 20px; display: block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Sections ---------- */
section.block { padding: 48px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); }

/* Daftar festival: baris, bukan kartu */
.ev-list { border-top: 2px solid var(--ink); }
.ev { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ev h3 { font-size: 1.45rem; margin-bottom: 6px; }
.ev h3 a { color: var(--ink); text-decoration: none; }
.ev h3 a:hover { color: var(--hijau); }
.ev .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: .93rem; align-items: center; }
.ev .ev-act { display: flex; gap: 10px; align-items: center; }
@media (max-width: 640px) { .ev { grid-template-columns: 1fr; } }

.check-strip { background: var(--hijau); color: #fff; border-radius: var(--r-lg); padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.check-strip h2 { color: #fff; }
.check-strip p { color: #cfe3db; margin: 8px 0 0; }
.check-strip form { display: flex; gap: 10px; position: relative; z-index: 1; }
.check-strip input { border-color: transparent; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.check-strip .btn { background: var(--kuningan); flex: none; }
.check-strip .btn:hover { background: #9c7022; }
.check-strip .motif { position: absolute; right: -60px; bottom: -90px; width: 260px; opacity: .12; pointer-events: none; }
@media (max-width: 760px) { .check-strip { grid-template-columns: 1fr; padding: 26px; } .check-strip form { flex-direction: column; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 20px 20px 0 0; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--kuningan); display: block; line-height: 1; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
ol.steps { padding: 0; margin: 0; }

footer.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: .88rem; margin-top: 40px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Panels ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--paper); }
.panel.tint { background: var(--mist); border-color: transparent; }
.panel h3 { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.page-head { padding: 40px 0 26px; }
.page-head .crumb { color: var(--ink-3); font-size: .9rem; margin-bottom: 10px; display: block; text-decoration: none; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); margin-top: 12px; align-items: center; }

.center-box { max-width: 440px; margin: 56px auto; }
.center-box h1 { font-size: 2.2rem; margin-bottom: 8px; }

/* ---------- Tabel / klasemen ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .82rem; padding: 12px 14px; background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.num b { font-family: var(--display); font-size: 1.05rem; }

.board { border-top: 2px solid var(--ink); }
.board-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board-row .rk { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink-3); text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.board-row.r1 .rk { color: var(--kuningan); font-size: 2.6rem; }
.board-row.r2 .rk, .board-row.r3 .rk { color: var(--hijau); }
.board-row .nm b { display: block; font-size: 1.08rem; }
.board-row .nm small { color: var(--ink-2); }
.board-row .sc { text-align: right; font-variant-numeric: tabular-nums; }
.board-row .sc b { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1.1; }
.board-row .sc small { color: var(--ink-3); font-size: .8rem; }
.board-row.flash { animation: flash 1.4s ease; }
@keyframes flash { 0% { background: var(--kuningan-tint); } 100% { background: transparent; } }

.stage-now { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--kuningan-tint); margin-bottom: 14px; }
.stage-now .no { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: #8a6417; min-width: 54px; text-align: center; }
.queue { list-style: none; padding: 0; margin: 0; }
.queue li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.queue .no { font-family: var(--display); font-weight: 700; width: 40px; text-align: center; color: var(--ink-3); }

.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--r); }

/* ---------- Big ID ticket ---------- */
.ticket { border: 2px solid var(--hijau); border-radius: var(--r-lg); padding: 26px; text-align: center; background: var(--hijau-tint); }
.ticket .id { font-family: var(--display); font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; letter-spacing: .04em; color: var(--hijau-2); margin: 6px 0 4px; }
.bignum { font-family: var(--display); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--hijau); font-variant-numeric: tabular-nums; }

.track { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.track li { padding-top: 12px; border-top: 4px solid var(--line); font-size: .88rem; color: var(--ink-3); font-weight: 600; }
.track li.on { border-color: var(--hijau); color: var(--ink); }
.track li.now { border-color: var(--kuningan); color: var(--ink); }
@media (max-width: 560px) { .track { grid-template-columns: 1fr 1fr; row-gap: 14px; } }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .95rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- E-evaluasi ---------- */
.evalsheet { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.evalsheet header { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.evalsheet .log { list-style: none; padding: 0; margin: 0 0 22px; }
.evalsheet .log li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.evalsheet .log time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.evalsheet .log .lf { font-family: var(--arab); font-size: 1.35rem; direction: rtl; }
.lvl { font-weight: 700; font-size: .78rem; padding: 2px 8px; border-radius: 4px; }
.lvl.jali { background: var(--jali-tint); color: var(--jali); }
.lvl.khafi { background: var(--khafi-tint); color: #8a6a07; }
.recap-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }

/* ---------- Modal / sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(31, 27, 22, .45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--paper); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 24px 60px rgba(31, 27, 22, .25); animation: pop .18s ease; }
.modal.wide { width: min(820px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.modal .x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 90; font-weight: 500; font-size: .93rem; animation: pop .2s ease; max-width: 92vw; }
.toast.bad { background: var(--jali); }

/* ---------- Admin shell ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 66px); }
.side { border-right: 1px solid var(--line); padding: 22px 14px; background: var(--paper); }
.side .who { padding: 0 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side .who b { display: block; }
.side .who small { color: var(--ink-2); }
.side nav button { display: flex; width: 100%; text-align: left; background: none; border: 0; font: 500 .95rem var(--body); padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); cursor: pointer; margin-bottom: 2px; }
.side nav button:hover { background: var(--mist); color: var(--ink); }
.side nav button.on { background: var(--hijau-tint); color: var(--hijau); font-weight: 600; }
.side .sep { height: 1px; background: var(--line); margin: 12px 0; }
.main { padding: 28px 32px 60px; min-width: 0; background: #fcfcfb; }
.main h2 { margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); margin: 20px 0 26px; background: var(--paper); }
.stats div { padding: 16px 18px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--display); font-size: 1.8rem; display: block; line-height: 1.1; }
.stats span { color: var(--ink-2); font-size: .86rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; padding: 9px 12px; }
.toolbar .grow { flex: 1; }
.code { font-family: var(--display); font-weight: 600; letter-spacing: .03em; background: var(--mist); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .side .who { display: none; }
  .side nav { display: flex; gap: 4px; overflow-x: auto; }
  .side nav button { white-space: nowrap; width: auto; }
  .side .sep { display: none; }
  .main { padding: 20px 16px 50px; }
}

/* ---------- Panel Juri ---------- */
body.judge { background: #fbfbfa; }
.jbar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.jbar .in { display: flex; align-items: center; gap: 18px; padding: 10px 18px; flex-wrap: wrap; }
.jbar .who { min-width: 0; flex: 1; }
.jbar .who b { display: block; font-family: var(--display); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbar .who small { color: #c9c3b8; }
.jbar .timer { font-family: var(--display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.jbar .timer.run { color: #f2c764; }
.jbar .score { text-align: right; }
.jbar .score b { font-family: var(--display); font-size: 1.6rem; display: block; line-height: 1; }
.jbar .score small { color: #c9c3b8; font-size: .78rem; }
.jbar .btn.ghost { color: #fff; border-color: #4a443c; }
.jbar .btn.ghost:hover { background: #2e2923; }
.jlayout { display: grid; grid-template-columns: 1fr 320px; gap: 0; min-height: calc(100vh - 70px); }
.maqra { padding: 30px clamp(16px, 4vw, 48px) 120px; direction: rtl; text-align: center; }
.maqra .line { margin: 0 0 18px; line-height: 2.3; }
.tok {
  font-family: var(--arab); font-size: clamp(1.7rem, 3.4vw, 2.5rem); background: none; border: 0; color: var(--ink);
  padding: 2px 8px; margin: 0 2px; border-radius: 10px; cursor: pointer; line-height: 1.6; transition: background .12s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tok:hover { background: var(--mist); }
.tok.jali { background: var(--jali-tint); box-shadow: inset 0 -3px 0 var(--jali); }
.tok.khafi { background: var(--khafi-tint); box-shadow: inset 0 -3px 0 var(--khafi); }
.maqra.locked .tok, .maqra.idle .tok { cursor: default; }
.maqra.idle { opacity: .55; }
.jlog { border-left: 1px solid var(--line); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.jlog ol { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.jlog li { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: .9rem; }
.jlog li time { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.jlog li .lf { font-family: var(--arab); font-size: 1.2rem; }
.jlog li button { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 1.2rem; padding: 0 4px; }
.jlog li button:hover { color: var(--jali); }
.fab { position: fixed; left: 20px; bottom: 20px; z-index: 35; box-shadow: 0 10px 26px rgba(184, 134, 43, .4); padding: 16px 22px; font-size: 1rem; }
.start-cta { position: fixed; inset: auto 0 0 0; padding: 16px; background: linear-gradient(transparent, #fbfbfa 30%); display: flex; justify-content: center; z-index: 34; }
.start-cta .btn { padding: 18px 34px; font-size: 1.1rem; }
@media (max-width: 900px) {
  .jlayout { grid-template-columns: 1fr; }
  .jlog { border-left: 0; border-top: 1px solid var(--line); }
  .jbar .timer { font-size: 1.6rem; }
}

.choice { display: grid; gap: 10px; }
.choice.two { grid-template-columns: 1fr 1fr; }
.choice button { text-align: left; font: 600 1.05rem var(--body); padding: 16px 18px; border-radius: var(--r); border: 2px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.choice button small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; margin-top: 2px; }
.choice button:hover { border-color: var(--ink-3); }
.choice button.jali { border-color: var(--jali); background: #fdf3f1; }
.choice button.khafi { border-color: var(--khafi); background: #fdf8e8; }
.choice button.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.lafaz-big { font-family: var(--arab); font-size: 2.6rem; text-align: center; direction: rtl; padding: 6px 0 14px; }

.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li button { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.qlist li button:hover { border-color: var(--hijau); }
.qlist .no { font-family: var(--display); font-size: 1.8rem; font-weight: 700; text-align: center; color: var(--hijau); }

/* ---------- Print ---------- */
@media print {
  .top, .noprint, footer.foot, .side, .toolbar { display: none !important; }
  body { background: #fff; }
  .main, .wrap { padding: 0 !important; max-width: none; }
  .evalsheet { border: 0; padding: 0; }
  .shell { display: block; }
}

/* ---------- Perbaikan mobile ---------- */
.shell > * { min-width: 0; }
input::placeholder { text-transform: none; letter-spacing: 0; }
@media (max-width: 860px) { .side nav { max-width: 100%; } }
@media (max-width: 640px) {
  .board-row { grid-template-columns: 44px 1fr; gap: 4px 12px; }
  .board-row .rk { grid-row: span 2; font-size: 1.6rem; }
  .board-row.r1 .rk { font-size: 2rem; }
  .board-row .sc { text-align: left; }
  .board-row .sc b { display: inline; font-size: 1.25rem; margin-right: 8px; }
  .jbar .in { gap: 8px 12px; padding: 10px 12px; }
  .jbar .who { flex: 1 1 calc(100% - 100px); }
  .jbar .who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jbar .timer { margin-right: auto; }
  .fab { left: 12px; right: 12px; bottom: 12px; }
  .maqra { padding-bottom: 140px; }
  .stats div { border-bottom: 1px solid var(--line); }
}

/* ---------- Berita ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news a.item { text-decoration: none; color: var(--ink); display: block; }
.news .cover { aspect-ratio: 16/10; border-radius: 14px; background: var(--hijau-tint) url('/img/logo-icon.png') center/34% no-repeat; overflow: hidden; margin-bottom: 12px; }
.news .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news a.item:hover .cover img { transform: scale(1.03); }
.news a.item:hover h3 { color: var(--hijau); }
.news time { font-size: .8rem; color: var(--ink-3); }
.news h3 { margin: 4px 0 6px; line-height: 1.35; }
.news p { color: var(--ink-2); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }
.article { max-width: 720px; margin: 0 auto; padding: 36px 0 20px; }
.article h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 8px 0 18px; }
.article .hero-img { width: 100%; border-radius: 16px; margin-bottom: 26px; }
.article .body { font-size: 1.02rem; line-height: 1.85; }
.article .body p { margin: 0 0 1.1em; }

/* ---------- Ajakan WhatsApp ---------- */
.cta-band { border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.cta-band .l { display: flex; align-items: center; gap: 18px; }
.cta-band img { width: 64px; }
.cta-band p { margin: 4px 0 0; color: var(--ink-2); }
.btn.wa { background: #1fa855; }
.btn.wa:hover { background: #178a45; }
.btn svg { width: 18px; height: 18px; flex: none; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #1fa855; color: #fff; text-decoration: none; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; box-shadow: 0 10px 28px rgba(15, 90, 45, .35); }
.wa-float:hover { background: #178a45; }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Maqra' berjudul ---------- */
.mq-title { font-family: var(--body); direction: ltr; font-weight: 600; font-size: 1.15rem; color: var(--hijau); margin: 26px 0 6px; }
.mq-title:first-child { margin-top: 0; }
.mq-label { direction: ltr; display: inline-block; font-family: var(--body); font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--mist); padding: 3px 12px; border-radius: 99px; margin: 14px 0 6px; }

/* ---------- Kontrol panggung & catatan ---------- */
.stage-ctl { border: 2px solid var(--hijau); border-radius: var(--r); padding: 20px; margin-bottom: 24px; background: var(--paper); }
.stage-ctl .now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stage-ctl .now .no { font-weight: 700; font-size: 2.2rem; color: var(--hijau); min-width: 48px; text-align: center; }
.stage-ctl .acts { margin-top: 14px; }
.banner { background: var(--kuningan-tint); color: #6e5012; padding: 12px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 500; }
.jnote { border-top: 1px solid var(--line); padding-top: 12px; }
.jnote textarea { min-height: 70px; font-size: .9rem; }
.ded-note { color: var(--ink-2); font-size: .84rem; font-style: italic; margin-top: 2px; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
@media (max-width: 560px) {
  .posters { grid-template-columns: 1fr 1fr; gap: 16px; }
  .poster-card h3 { font-size: .95rem; }
  .poster-card .poster .pill { font-size: .68rem; padding: 3px 8px; top: 8px; left: 8px; }
  .poster-card .poster .ph b { font-size: 1rem; }
}

/* =====================================================================
   v3 — tampilan kekinian: kartu lembut, warna pastel, sudut membulat
   ===================================================================== */
:root {
  --bg-app: #f3f6f4;
  --shadow: 0 1px 2px rgba(16, 32, 22, .04), 0 10px 28px rgba(16, 32, 22, .06);
  --shadow-lg: 0 18px 44px rgba(16, 32, 22, .12);
  --mint: #e3f4e8;   --mint-ink: #0b6b2e;
  --sun: #fff1d4;    --sun-ink: #a86a00;
  --rose: #ffe5e2;   --rose-ink: #c2412d;
  --sky: #e1efff;    --sky-ink: #2363b5;
  --lilac: #eee9ff;  --lilac-ink: #6243c7;
  --r: 16px;
  --r-lg: 22px;
}
body.app { background: var(--bg-app); }
.btn { border-radius: 12px; }
.btn.sm { border-radius: 10px; }
.panel { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel.tint { box-shadow: none; }
.tbl-wrap { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); background: #fff; }
.tbl th { background: #fafbfa; }
.top { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); }
.nav a { border-radius: 10px; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero publik ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 0; padding: 96px 0 88px;
  background-color: #fff;
  background-image: radial-gradient(rgba(1, 95, 37, .13) 1.2px, transparent 1.2px);
  background-size: 22px 22px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-logo { background: #fff; border-radius: 26px; padding: 14px; width: 104px; box-shadow: var(--shadow); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--mint-ink); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
.chip { position: absolute; z-index: 1; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px; font-size: .85rem; display: flex; align-items: center; gap: 10px; text-align: left; }
.chip b { display: block; font-size: 1rem; line-height: 1.2; }
.chip small { color: var(--ink-2); }
.chip .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.chip.c1 { left: 6%; top: 22%; transform: rotate(-4deg); }
.chip.c2 { right: 6%; top: 18%; transform: rotate(3deg); }
.chip.c3 { left: 9%; bottom: 20%; transform: rotate(3deg); }
.chip.c4 { right: 8%; bottom: 24%; transform: rotate(-3deg); }
.lvl-demo { font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 6px; }
@media (max-width: 1100px) { .chip { display: none; } }

/* ---------- Fitur ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { border-radius: var(--r-lg); padding: 22px; }
.feature .fi { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.f-mint { background: var(--mint); } .f-mint .fi { color: var(--mint-ink); }
.f-sun { background: var(--sun); } .f-sun .fi { color: var(--sun-ink); }
.f-rose { background: var(--rose); } .f-rose .fi { color: var(--rose-ink); }
.f-sky { background: var(--sky); } .f-sky .fi { color: var(--sky-ink); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- Poster seragam ---------- */
.posters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.poster-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px; transition: transform .2s, box-shadow .2s; }
.poster-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.poster-card .poster { border: 0; border-radius: 16px; aspect-ratio: 3 / 4; width: 100%; }
.poster-card .info { padding: 14px 8px 8px; }
.poster-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.poster-card .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card .go { margin-top: auto; width: 100%; }
.poster-card .info { min-height: 150px; }
.poster-card .info > .go { margin-top: auto; }
@media (max-width: 1000px) { .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .poster-card { padding: 7px; } .poster-card .info { min-height: 130px; padding: 10px 4px 4px; } }

.news a.item { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px 10px 18px; transition: transform .2s, box-shadow .2s; }
.news a.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news .cover { border-radius: 14px; }
.news time, .news h3, .news p { padding: 0 8px; }
.more-row { display: flex; justify-content: center; margin-top: 26px; }
section.alt { background: var(--bg-app); }
.check-strip { border-radius: 26px; }
.cta-band { background: #fff; border: 0; box-shadow: var(--shadow); border-radius: 26px; }

/* ---------- Shell aplikasi (admin) ---------- */
.shell { background: var(--bg-app); }
.side { background: #fff; border-right: 0; box-shadow: 1px 0 0 var(--line); display: flex; flex-direction: column; padding: 22px 16px; }
.side nav button { gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; font-size: .93rem; }
.side nav button.on { background: var(--hijau); color: #fff; box-shadow: 0 8px 18px rgba(1, 95, 37, .25); }
.side nav button.on .ico { stroke: #fff; }
.side .who { display: flex; gap: 12px; align-items: center; border-bottom: 0; padding: 4px 6px 18px; }
.avatar { width: 42px; height: 42px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.side-card { margin-top: auto; background: var(--hijau); color: #fff; border-radius: 20px; padding: 18px; position: relative; overflow: hidden; }
.side-card::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; background: url('/img/logo-icon.png') center/contain no-repeat; filter: brightness(0) invert(1); opacity: .15; }
.side-card b { display: block; font-size: .98rem; line-height: 1.3; margin-bottom: 4px; }
.side-card p { font-size: .8rem; color: #cfe8d7; margin: 0 0 12px; }
.side-card .btn { background: #fff; color: var(--hijau); position: relative; z-index: 1; }
.main { background: var(--bg-app); padding: 30px 34px 60px; }

.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h2 { font-size: 1.6rem; }
.dash-head p { margin: 4px 0 0; color: var(--ink-2); }
.dash-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { border-radius: 20px; padding: 18px; position: relative; overflow: hidden; min-height: 132px; display: flex; flex-direction: column; }
.stat .si { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .75); display: grid; place-items: center; margin-bottom: 14px; }
.stat b { font-size: 1.9rem; line-height: 1; font-weight: 700; }
.stat span { font-size: .85rem; margin-top: 6px; opacity: .85; }
.stat .bar { height: 6px; background: rgba(255, 255, 255, .3); border-radius: 9px; margin-top: auto; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: #fff; border-radius: 9px; }
.stat.s-main { background: var(--hijau); color: #fff; box-shadow: 0 14px 30px rgba(1, 95, 37, .28); }
.stat.s-main .si { background: rgba(255, 255, 255, .16); color: #fff; }
.stat.s-main::after { content: ''; position: absolute; right: -24px; top: -24px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .07); }
.stat.s-sun { background: var(--sun); color: #5c3c00; } .stat.s-sun .si { color: var(--sun-ink); }
.stat.s-sky { background: var(--sky); color: #133a6b; } .stat.s-sky .si { color: var(--sky-ink); }
.stat.s-rose { background: var(--rose); color: #6b1f14; } .stat.s-rose .si { color: var(--rose-ink); }
.stat.s-lilac { background: var(--lilac); color: #36207a; } .stat.s-lilac .si { color: var(--lilac-ink); }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr 1fr; } }

.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-head h3 { margin: 0; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 170px; padding-top: 18px; border-bottom: 1px dashed var(--line); position: relative; }
.bars .col { display: flex; gap: 3px; align-items: end; justify-content: center; height: 100%; position: relative; }
.bars .col i { width: 9px; border-radius: 9px 9px 3px 3px; display: block; min-height: 4px; }
.bars .col i.a { background: #f6b941; }
.bars .col i.b { background: var(--hijau); }
.bars .col:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .72rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.bars-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; font-size: .7rem; color: var(--ink-3); text-align: center; margin-top: 6px; }

.ring-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; }
.ring { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.ring .in { width: 112px; height: 112px; border-radius: 50%; background: var(--hijau); outline: 10px solid #fff; color: #fff; display: grid; place-items: center; text-align: center; box-shadow: 0 10px 24px rgba(1, 95, 37, .3); }
.ring .in b { font-size: 1.6rem; display: block; line-height: 1; }
.ring .in small { font-size: .72rem; opacity: .85; }
.prog { margin-bottom: 14px; }
.prog .lab { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.prog .lab span:last-child { font-weight: 600; }
.prog .track2 { height: 7px; background: var(--mist); border-radius: 9px; overflow: hidden; }
.prog .track2 i { display: block; height: 100%; border-radius: 9px; }
@media (max-width: 520px) { .ring-wrap { grid-template-columns: 1fr; justify-items: center; } .ring-wrap > div:last-child { width: 100%; } }

.todo { list-style: none; padding: 0; margin: 0; }
.todo li { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.todo b { display: block; font-size: .93rem; }
.todo small { color: var(--ink-2); }

.stage-ctl { border: 0; box-shadow: var(--shadow); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.stage-ctl::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--hijau); }
.stats { border: 0; box-shadow: var(--shadow); border-radius: var(--r-lg); }

/* Master: kartu festival */
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ev-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.ev-card .thumb { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--hijau) url('/img/logo-icon.png') center/50% no-repeat; }
.ev-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card b { display: block; line-height: 1.3; margin-bottom: 4px; }
.ev-card .acts { margin-top: 10px; }

/* Juri & peserta (antarmuka aplikasi) */
.qlist li button { border: 0; box-shadow: var(--shadow); border-radius: 18px; }
.qlist .no { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; font-size: 1.4rem; }
.jlog { background: #fff; }
.evalsheet { background: #fff; border: 0; box-shadow: var(--shadow); border-radius: var(--r-lg); }
.ticket { border: 0; border-radius: var(--r-lg); background: var(--mint); }
.board { border-top: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px 18px; }
.board-row:last-child { border-bottom: 0; }
.ev-list { border-top: 0; }
.empty { background: #fff; border: 1.5px dashed var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.track li { border-top-width: 5px; border-radius: 3px; }
.kv-card { background: var(--mint); border-radius: 20px; padding: 18px; }
@media (max-width: 860px) { .side-card { display: none; } .main { padding: 20px 14px 50px; } .side { padding: 10px; } }

/* Judul bagian: garis bawah aksen */
.sec-head h2 { position: relative; padding-bottom: 12px; }
.sec-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--hijau); }
.sec-head h2::before { content: ''; position: absolute; left: 54px; bottom: 0; width: 12px; height: 4px; border-radius: 4px; background: #f6b941; }
.sec-head p { margin-top: 10px; }
.sec-head { margin-bottom: 26px; }
