/* ==========================================================================
   KELAS AKTING FBC — gaya utama (cinematic dark)
   Palet: malam studio (#0b0d18) + indigo/violet + aksen amber film.
   Mobile-first. Semua grid memakai gap eksplisit — jangan mengandalkan margin.
   ========================================================================== */

:root {
  --bg: #0b0d18;
  --bg-2: #10132a;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-solid: #151935;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --ink: #eef0fa;
  --ink-2: #c3c7e2;
  --muted: #9aa0c4;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --amber: #f59e0b;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #38bdf8;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .26);
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #f59e0b 130%);
  --grad-soft: linear-gradient(120deg, rgba(99, 102, 241, .22), rgba(139, 92, 246, .18));
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sidebar-w: 264px;
  /* Tinggi logo mengikuti ukuran CINEPLAY (104px desktop / 72px mobile).
     Header selalu 8px lebih tinggi dari logo sehingga tidak ada ruang kosong. */
  --logo-h: 104px;
  --header-h: calc(var(--logo-h) + 8px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(99, 102, 241, .28), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(245, 158, 11, .14), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(139, 92, 246, .20), transparent 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.muted-sm { color: var(--muted); font-size: .86rem; margin: .3rem 0; }
.lead { font-size: 1.03rem; color: var(--ink-2); }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.back-link:hover { color: #fff; }
.link-sm { color: var(--accent-2); font-size: .86rem; font-weight: 600; }
.mt-1 { margin-top: 1rem; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

.container { width: min(1220px, 100% - 2rem); margin-inline: auto; }
.section { padding: 3.2rem 0; }
.section-narrow { padding: 2.4rem 0; max-width: 940px; }

.eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); font-weight: 700; margin-bottom: .55rem;
}

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.22; font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 .8rem; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.5rem; margin-bottom: 1.6rem;
}
.section-sub { color: var(--muted); max-width: 62ch; margin: 0; }
.page-head { margin-bottom: 1.4rem; }
.sub-title { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .4rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------- tombol --------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.05rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: .9rem;
  cursor: pointer; transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
  min-height: 42px; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(99, 102, 241, .34); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(99, 102, 241, .46); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn-danger { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, .26); color: #fff; }
.btn-heart { background: linear-gradient(120deg, #ec4899, #f43f5e 60%, #f59e0b); color: #fff; box-shadow: 0 10px 26px rgba(244, 63, 94, .3); }
.btn-heart:hover { color: #fff; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; min-height: 50px; }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; min-height: 36px; }
.btn-xs { padding: .3rem .6rem; font-size: .76rem; min-height: 30px; border-radius: 8px; }
.btn-block { width: 100%; }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.form-inline { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }

/* ---------------------------------- header --------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 13, 24, .86);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); min-width: 0; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-logo {
  height: var(--logo-h); width: auto;
  /* Batasi lebar supaya logo tidak pernah menabrak tombol hamburger di layar sempit,
     sementara rasionya tetap utuh (object-fit: contain, bukan diregangkan). */
  max-width: min(58vw, 420px);
  object-fit: contain;
}
.brand-text { display: none; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .95rem; letter-spacing: .02em; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .05em; }
.main-nav { display: none; align-items: center; gap: .15rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  padding: .5rem .68rem; border-radius: 9px; font-size: .87rem; color: var(--ink-2); font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link.is-active { background: var(--surface-2); color: #fff; }
.nav-more { position: relative; }
.nav-more-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 200px; display: none;
  flex-direction: column; padding: .4rem; gap: .1rem; z-index: 70;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu .nav-link { text-align: left; }
.header-actions { display: flex; align-items: center; gap: .45rem; margin-left: auto; flex: none; min-width: 0; }
/* Di layar sempit tombol akun header disembunyikan — tautan Masuk / Daftar /
   Dashboard / Keluar tetap tersedia di dalam menu seluler (drawer). Tanpa ini
   logo + dua tombol + hamburger melebihi lebar layar dan halaman bergulir horizontal. */
@media (max-width: 620px) {
  .header-actions .btn { display: none; }
}

.hamburger, .sb-toggle {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center; align-items: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer;
}
.hamburger span, .sb-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-drawer {
  border-top: 1px solid var(--border); background: rgba(9, 11, 21, .98); padding: .8rem 1rem 1.2rem;
  max-height: 76vh; overflow-y: auto;
}
.mobile-nav { display: flex; flex-direction: column; gap: .15rem; }
.mnav-link { padding: .7rem .6rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.mnav-link:hover, .mnav-link.is-active { background: var(--surface-2); color: #fff; }
.mnav-sep { height: 1px; background: var(--border); margin: .5rem 0; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
}
@media (min-width: 1280px) {
  .brand-text { display: flex; }
}

/* ---------------------------------- footer --------------------------------- */

.site-footer { border-top: 1px solid var(--border); background: rgba(8, 10, 19, .6); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.6rem 0 1.6rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; } }
.footer-brand { font-weight: 800; letter-spacing: .04em; margin-bottom: .5rem; }
.footer-text { color: var(--muted); font-size: .88rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: #fff; }
.footer-muted { color: var(--muted); font-size: .86rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  border-top: 1px solid var(--border); padding: 1rem 0 1.6rem; color: var(--muted); font-size: .8rem;
}

/* ----------------------------------- hero ---------------------------------- */

.hero { position: relative; padding: 3.4rem 0 3rem; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .35), transparent 70%),
              radial-gradient(closest-side at 80% 30%, rgba(245, 158, 11, .22), transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; }
.hero-lead { font-size: 1.06rem; color: var(--ink-2); max-width: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hs {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem;
}
.hs strong { font-size: 1.3rem; }
.hs span { font-size: .8rem; color: var(--muted); }

.page-hero {
  padding: 2.8rem 0 1.6rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, .16), transparent 85%);
  border-bottom: 1px solid var(--border);
}
.page-hero-sm { padding: 2.2rem 0 1.4rem; }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--ink-2); max-width: 74ch; }

/* ---------------------------------- kartu ---------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.25rem; }
@media (min-width: 720px) { .card-pad { padding: 1.5rem; } }
.card-title { font-size: 1.02rem; margin: 0 0 .6rem; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.card-head .card-title { margin: 0; }

.grid { display: grid; gap: 1.1rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.1rem; }
.grid-gap { gap: 1.4rem; }
.grid-gap-sm { gap: .7rem; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 680px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 680px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------- badge ---------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .58rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: rgba(16, 185, 129, .16); color: #6ee7b7; border-color: rgba(16, 185, 129, .4); }
.badge-info { background: rgba(56, 189, 248, .16); color: #7dd3fc; border-color: rgba(56, 189, 248, .4); }
.badge-warn { background: rgba(245, 158, 11, .16); color: #fcd34d; border-color: rgba(245, 158, 11, .4); }
.badge-bad { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.badge-accent { background: rgba(139, 92, 246, .2); color: #c4b5fd; border-color: rgba(139, 92, 246, .45); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .79rem; color: var(--ink-2);
  font-weight: 600; white-space: nowrap;
}
.chip em { font-style: normal; color: var(--muted); font-size: .72rem; }
.chip-accent { background: rgba(99, 102, 241, .2); border-color: rgba(99, 102, 241, .45); color: #c7d2fe; }
.chip-warn { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .4); color: #fcd34d; }
.chip:hover { border-color: var(--border-strong); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1rem; }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.chip-lg { padding: .5rem 1rem; font-size: .87rem; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: .55rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .5rem 0; }
.view-toggle { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* -------------------------------- statistik -------------------------------- */

.stat-grid { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); margin-bottom: 1.6rem; }
.stat-card {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.stat-icon {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: #c7d2fe;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-body { min-width: 0; }
.stat-value { font-size: 1.32rem; font-weight: 780; line-height: 1.2; word-break: break-word; }
.stat-label { font-size: .82rem; color: var(--muted); }
.stat-hint { font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.tone-ok .stat-icon { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.tone-warn .stat-icon { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.tone-bad .stat-icon { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.tone-accent .stat-icon { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
.tone-muted .stat-icon { background: var(--surface-2); color: var(--muted); }

/* ---------------------------------- form ---------------------------------- */

.form { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.form > *, .card > *, .card-pad > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > span { font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.field input, .field select, .field textarea,
.filter-bar input, .filter-bar select, .filter-bar textarea {
  background: rgba(8, 10, 20, .55); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .62rem .8rem; min-height: 44px; width: 100%; min-width: 0; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea, .filter-bar textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: rgba(99, 102, 241, .7); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}
.field input[type=file] { padding: .5rem; }
.field input[type=checkbox], .field input[type=radio] { width: auto; min-height: 0; }
.hint, .field small { color: var(--muted); font-size: .79rem; }
.check-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; padding: .35rem 0; }
.check-line input { margin-top: .28rem; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin: 0; }
.fieldset legend { padding: 0 .5rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-section { border-top: 1px solid var(--border); padding-top: 1.3rem; margin-top: .2rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.12rem; }
.form-section h2 em { font-style: normal; font-size: .74rem; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.step-no {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: .85rem;
  background: var(--grad); color: #fff; font-weight: 700; flex: none;
}
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: .4rem; }
.radio-cell { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--ink-2); }
.radio-cell input { accent-color: var(--accent); }
.scroll-check { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem; display: flex; flex-direction: column; gap: .1rem; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .8rem; }
.score-field { display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .7rem; }
.score-field input[type=number] { background: rgba(8, 10, 20, .5); border: 1px solid var(--border); border-radius: 8px; padding: .35rem .5rem; }
.score-field input[type=range] { accent-color: var(--accent-2); }

/* ------------------------------- unggah berkas ------------------------------- */

.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; min-width: 0; }
@media (min-width: 680px) { .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.upload-box {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; cursor: pointer;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface);
  min-width: 0; overflow-wrap: anywhere;
}
.upload-box input[type=file] { min-width: 0; width: 100%; }
.upload-box:hover { border-color: rgba(99, 102, 241, .7); }
.upload-title { font-weight: 700; font-size: .93rem; }
.upload-title em { font-style: normal; color: var(--muted); font-weight: 500; }
.upload-note { font-size: .79rem; color: var(--muted); }
.upload-preview { width: 100%; max-width: 210px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.qr-panel { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.qr-panel svg { background: #fff; border-radius: 12px; padding: 6px; }

/* --------------------------------- pilihan --------------------------------- */

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-card { position: relative; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface); height: 100%;
}
.plan-card input:checked + .plan-body { border-color: rgba(99, 102, 241, .85); background: var(--grad-soft); }
.plan-body strong { font-size: 1rem; }
.plan-body em { font-style: normal; font-size: 1.15rem; font-weight: 780; color: #c7d2fe; }
.plan-body small { color: var(--muted); font-size: .82rem; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .6rem; margin-bottom: .8rem; }
.amount-chip { position: relative; cursor: pointer; }
.amount-chip input { position: absolute; opacity: 0; pointer-events: none; }
.amount-chip span {
  display: block; text-align: center; padding: .7rem .5rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: .9rem;
}
.amount-chip input:checked + span { border-color: rgba(244, 63, 94, .8); background: rgba(244, 63, 94, .16); color: #fff; }

/* ---------------------------------- tabel ---------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 620px; }
.table th, .table td { text-align: left; padding: .7rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.td-actions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.td-photo { width: 56px; }
.thumb { border-radius: var(--radius-sm); border: 1px solid var(--border); max-height: 190px; object-fit: cover; margin: .5rem 0; }
.thumb-sm { width: 46px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ---------------------------------- daftar ---------------------------------- */

.kv { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.kv dt, .kv-row { color: var(--muted); font-size: .82rem; }
.kv dd, .kv-row strong { margin: 0; font-size: .92rem; }
.kv dt, .kv dd { display: block; }
dl.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .35rem .8rem; }
dl.kv dt { color: var(--muted); font-size: .84rem; }
dl.kv dd { margin: 0; font-size: .92rem; }
.kv-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: 0; }
.kv-total { font-size: 1rem; padding-top: .7rem; border-top: 1px solid var(--border-strong); }
.kv-total strong { color: #c7d2fe; }
.kv-sm dt, .kv-sm dd { font-size: .83rem; }

.list-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.list-rows li { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.list-rows li:last-child { border-bottom: 0; }
.list-rows li > span { color: var(--muted); font-size: .84rem; }
.list-rows li > strong { font-size: .93rem; }
.list-rows li > form { margin-left: auto; }

.mini-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--muted); }
.mini-list li { display: flex; align-items: center; gap: .45rem; }
.mini-list svg { width: 15px; height: 15px; flex: none; }
.check-list { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-direction: column; gap: .5rem; font-size: .89rem; color: var(--ink-2); }
.check-list li { position: relative; padding-left: 1.5rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: .55rem; }
.criteria-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: .45rem .6rem; }
.criteria-no { color: var(--amber); font-size: .74rem; font-weight: 700; }
.criteria-avg { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.criteria-avg li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(60px, 1fr) 34px; gap: .6rem; align-items: center; font-size: .85rem; }
.ca-label { color: var(--ink-2); }
.ca-value { text-align: right; font-weight: 700; color: #c7d2fe; }

.age-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.age-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; display: flex; flex-direction: column; }
.age-item strong { font-size: .92rem; }
.age-item span { font-size: .78rem; color: var(--muted); }
.coach-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.coach-item { display: flex; gap: .8rem; align-items: flex-start; }
.coach-avatar { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; }
.coach-item small { display: block; color: var(--muted); font-size: .8rem; }

/* -------------------------------- timeline -------------------------------- */

.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.tl-item { display: flex; gap: .8rem; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; margin-top: .45rem; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.tl-dot.tone-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.tl-dot.tone-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.tl-dot.tone-bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.tl-dot.tone-accent { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
.tl-body { min-width: 0; }
.tl-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.tl-meta { font-size: .78rem; color: var(--muted); }
.tl-text { font-size: .88rem; color: var(--ink-2); }

/* ------------------------------ avatar & profil ------------------------------ */

.avatar { display: inline-grid; place-items: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { background: var(--grad); color: #fff; font-weight: 750; }

.profile-head, .participant-summary { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.ph-body, .pc-info { min-width: 0; flex: 1 1 220px; }
.profile-hero { padding: 2.4rem 0 1.6rem; background: linear-gradient(180deg, rgba(99, 102, 241, .18), transparent); border-bottom: 1px solid var(--border); }
.profile-hero-inner { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.ph-photo { width: 132px; height: 168px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; flex: none; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-info { min-width: 0; }
.ph-meta, .ph-id { color: var(--muted); font-size: .9rem; margin: .15rem 0; }
.talent-initials { font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--grad); width: 100%; height: 100%; display: grid; place-items: center; }
.photo-pair { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.photo-pair figure { margin: 0; width: 150px; }
.photo-pair img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: cover; }
.photo-pair figcaption { font-size: .76rem; color: var(--muted); text-align: center; margin-top: .3rem; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0; }
.anchor-nav a { font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }
.anchor-nav a:hover { color: #fff; border-color: var(--border-strong); }

/* --------------------------------- kartu talent --------------------------------- */

.talent-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.talent-photo { display: block; aspect-ratio: 3 / 4; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.talent-photo img { width: 100%; height: 100%; object-fit: cover; }
.talent-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.talent-body h3 { margin: 0; font-size: 1rem; }
.talent-meta, .talent-id, .talent-skills { color: var(--muted); font-size: .82rem; margin: 0; }
.talent-id { font-family: ui-monospace, monospace; color: var(--accent-2); }
.talent-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }

/* -------------------------------- project & casting -------------------------------- */

.project-card, .casting-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.casting-card { padding: 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.casting-top { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: space-between; }
.casting-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: auto; padding-top: .5rem; }
.casting-ref { border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: .8rem; }
.pc-poster { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.pc-poster img { width: 100%; height: 100%; object-fit: cover; }
.pc-placeholder svg { width: 40px; height: 40px; }
.pc-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.pc-body h3 { margin: 0; font-size: 1rem; }
.project-poster { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

.portfolio-card, .portfolio-item { display: block; }
.portfolio-item { padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.portfolio-item strong { display: block; font-size: .92rem; }
.portfolio-item span { color: var(--muted); font-size: .8rem; }

/* ---------------------------------- galeri ---------------------------------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; }
.gallery-item { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-item img, .gi-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-2); }
.gallery-item figcaption { padding: .7rem .9rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .86rem; }
.gallery-item figcaption small { display: block; width: 100%; color: var(--muted); font-size: .79rem; }

/* ------------------------------- jadwal & agenda ------------------------------- */

.schedule-strip { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .schedule-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.schedule-item, .schedule-list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.schedule-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.schedule-list li { padding: .85rem 1rem; }
.sc-date { width: 52px; flex: none; text-align: center; background: var(--grad-soft); border: 1px solid var(--border); border-radius: 10px; padding: .35rem .2rem; }
.sc-date strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.sc-date span { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.sc-body { min-width: 0; }
.sc-body h4 { margin: 0 0 .2rem; font-size: 1rem; }

/* --------------------------------- pemutar --------------------------------- */

.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #05060d; border: 1px solid var(--border); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .plain-video { object-fit: contain; background: #05060d; }
.video-frame-sm { max-width: 320px; }
.material-image { border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* --------------------------------- notifikasi --------------------------------- */

.toast-wrap { position: fixed; top: calc(var(--header-h) + 10px); right: 12px; left: 12px; z-index: 90; display: flex; justify-content: flex-end; pointer-events: none; }
.toast {
  display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: rgba(21, 25, 53, .96); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-size: .89rem; max-width: 520px; pointer-events: auto;
}
.toast-ok { border-color: rgba(16, 185, 129, .5); }
.toast-err { border-color: rgba(239, 68, 68, .5); }
.toast-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; background: var(--surface-2); }
.toast-ok .toast-icon { background: rgba(16, 185, 129, .22); color: #6ee7b7; }
.toast-err .toast-icon { background: rgba(239, 68, 68, .22); color: #fca5a5; }
.toast-close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }

.notice-box { background: var(--grad-soft); border: 1px solid rgba(99, 102, 241, .4); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.notice-box strong { display: block; margin-bottom: .2rem; }
.notice-box p { margin: 0; color: var(--ink-2); font-size: .89rem; }

.empty-state { text-align: center; padding: 2.4rem 1.2rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.empty-icon { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: #c7d2fe; }
.empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 1.05rem; }
.empty-state p { color: var(--muted); font-size: .89rem; max-width: 52ch; margin: 0 auto .9rem; }

/* --------------------------------- progress --------------------------------- */

.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; width: 100%; }
.progress-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s ease; }
.progress-sm { height: 6px; }
.progress-lg { height: 13px; }
.bar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.bar-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: .7rem; align-items: center; font-size: .82rem; }
.bl-label { color: var(--muted); }
.bl-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bl-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bl-value { font-weight: 650; font-size: .8rem; }
.bar-chart { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.bc-item { display: grid; grid-template-columns: 96px 1fr; gap: .7rem; align-items: center; font-size: .82rem; }
.bc-label { color: var(--muted); }
.bc-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bc-bar i { display: block; height: 100%; background: var(--grad); }
.bc-bar-2 i { background: linear-gradient(120deg, #8b5cf6, #38bdf8); }
.bc-bar-3 i { background: linear-gradient(120deg, #f43f5e, #f59e0b); }
.chart { display: block; margin: .6rem 0; }
.legend { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .78rem; color: var(--muted); }
.lg-item { display: inline-flex; gap: .35rem; align-items: center; }
.lg-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.big-score { font-size: 2.2rem; font-weight: 800; margin: .2rem 0; }
.big-score small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.score-hero { display: flex; gap: 1rem; align-items: center; margin: .8rem 0; }
.sh-value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.sh-value small { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ---------------------------------- donasi ---------------------------------- */

.donate-hero { position: relative; padding: 3rem 0 2.4rem; overflow: hidden; }
.donate-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.6rem 0 1rem; }
@media (min-width: 640px) { .donate-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.ds strong { display: block; font-size: 1.25rem; }
.ds span { font-size: .8rem; color: var(--muted); }
.donate-amount { font-size: 1.9rem; font-weight: 800; margin: .4rem 0; }

.top-donor { text-align: center; padding: 2rem 1.2rem; border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(245, 158, 11, .2), rgba(139, 92, 246, .18)); border: 1px solid var(--border-strong); }
.td-badge { display: inline-flex; gap: .45rem; align-items: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.td-badge svg { width: 18px; height: 18px; }
.td-name { font-size: 1.5rem; font-weight: 800; margin: .5rem 0 .2rem; }
.td-amount { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.donor-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.dl-item { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; padding: .72rem 0; border-bottom: 1px solid var(--border); }
.dl-item:last-child { border-bottom: 0; }
.dl-rank { width: 34px; flex: none; font-weight: 800; color: var(--muted); font-size: .86rem; }
.dl-rank-1 { color: #fcd34d; }
.dl-rank-2 { color: #e5e7eb; }
.dl-rank-3 { color: #d97706; }
.dl-name { flex: 1 1 150px; min-width: 0; font-weight: 650; }
.dl-name small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.dl-amount { font-weight: 750; color: #c7d2fe; white-space: nowrap; }
.donor-top { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .5rem; }
.donor-top li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.dt-rank { font-weight: 800; color: var(--muted); width: 30px; }
.dt-name { flex: 1; min-width: 0; font-weight: 650; }
.dt-name small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.dt-amount { font-weight: 750; color: #c7d2fe; white-space: nowrap; }
.donor-recent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.donor-recent li { display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.donor-recent li:last-child { border-bottom: 0; }
.donor-recent span { color: #c7d2fe; font-weight: 700; }
.donor-recent small { color: var(--muted); font-size: .76rem; margin-left: auto; }
.thank-card { text-align: center; }
.thank-icon { width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 1rem; display: grid; place-items: center; background: linear-gradient(130deg, #ec4899, #f59e0b); color: #fff; }
.thank-icon svg { width: 34px; height: 34px; }

/* -------------------------------- pembayaran -------------------------------- */

.pay-card { border-color: rgba(99, 102, 241, .4); }
.pay-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.pay-total { text-align: right; }
.pay-total span { display: block; font-size: .78rem; color: var(--muted); }
.pay-total strong { font-size: 1.6rem; }
.invoice-items { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.invoice-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .91rem; }
.pay-methods { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.4rem; }
@media (min-width: 700px) { .pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-method { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.pay-method h3 { font-size: .95rem; }
.qris-img { max-width: 250px; border-radius: var(--radius-sm); background: #fff; padding: .5rem; }
/* Pratinjau logo di panel pengaturan */
.logo-preview { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; margin-top: .5rem;
  padding: .7rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.logo-preview-img { height: 48px; width: auto; max-width: 200px; object-fit: contain;
  background: rgba(8, 10, 20, .35); border-radius: 8px; padding: .3rem .5rem; }
.qris-missing { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: .86rem; }
.qris-missing svg { width: 34px; height: 34px; }
.bank-box { display: flex; flex-direction: column; gap: .25rem; padding: .9rem; border-radius: var(--radius-sm); background: rgba(8, 10, 20, .5); border: 1px dashed var(--border-strong); }
.bank-name { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.bank-acc { font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; }
.bank-box .btn { align-self: flex-start; margin-top: .4rem; }

/* -------------------------------- kwitansi/sertifikat -------------------------------- */

.receipt-view, .cert-view { max-width: 860px; }
.receipt-paper, .cert-paper { background: #f7f7fb; color: #14162b; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.receipt-paper .kv dt, .receipt-paper .muted-sm { color: #5b6079; }
.receipt-paper code { background: #e6e7f2; color: #14162b; }
.rp-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-bottom: 2px solid #d9dae6; padding-bottom: 1rem; margin-bottom: 1rem; }
.rp-head strong { display: block; font-size: 1rem; }
.rp-head span { display: block; font-size: .8rem; color: #5b6079; }
.rp-title { text-align: right; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; }
.rp-title small { display: block; font-size: .8rem; font-weight: 500; color: #5b6079; letter-spacing: 0; }
.rp-status { margin-bottom: .8rem; }
.rp-total { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #d9dae6; margin-top: .6rem; padding-top: .8rem; font-size: 1.15rem; font-weight: 800; }
.rp-foot { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 1.4rem; }
.rp-qr { text-align: center; }
.rp-qr small { display: block; font-size: .7rem; color: #5b6079; }
.receipt-paper .badge { border-color: currentColor; }

.cert-paper { text-align: center; }
.cp-head strong { display: block; font-size: 1.05rem; }
.cp-head span { font-size: .8rem; color: #5b6079; }
.cp-title { font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: .22em; margin: 1.2rem 0 .2rem; }
.cp-kind { font-size: .9rem; color: #5b6079; margin-bottom: 1.4rem; }
.cp-given { font-size: .84rem; color: #5b6079; margin: 0; }
.cp-name { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 800; margin: .2rem 0; border-bottom: 1px solid #d9dae6; display: inline-block; padding: 0 1.4rem .3rem; }
.cp-id { font-size: .8rem; color: #5b6079; }
.cp-text { font-size: .98rem; margin-top: 1.2rem; }
.cp-activity { font-size: .86rem; color: #5b6079; }
.cp-foot { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; margin-top: 1.6rem; border-top: 1px solid #d9dae6; padding-top: 1rem; text-align: left; }
.cp-foot strong { display: block; font-size: .78rem; color: #5b6079; }
.cert-card { text-align: left; }
.cert-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: #c7d2fe; margin-bottom: .6rem; }
.cert-icon svg { width: 22px; height: 22px; }

/* ------------------------------- talent card digital ------------------------------- */

.talent-card-wrap { display: flex; justify-content: center; }
.talent-card-digital {
  width: min(560px, 100%); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, rgba(99, 102, 241, .28), rgba(11, 13, 24, .96) 55%, rgba(245, 158, 11, .16));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.tcd-head { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.tcd-brand { display: flex; align-items: center; gap: .6rem; }
.tcd-brand img { height: 32px; width: auto; }
.tcd-brand strong { display: block; font-size: .9rem; }
.tcd-brand small { font-size: .68rem; color: var(--muted); }
.tcd-tag { font-size: .7rem; letter-spacing: .18em; color: var(--amber); font-weight: 700; }
.tcd-body { display: flex; flex-wrap: wrap; gap: 1.1rem; padding: 1.2rem; }
.tcd-photo { width: 112px; height: 142px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); flex: none; background: var(--surface-2); display: grid; place-items: center; }
.tcd-photo img { width: 100%; height: 100%; object-fit: cover; }
.tcd-info { flex: 1 1 180px; min-width: 0; }
.tcd-info h2 { font-size: 1.25rem; margin-bottom: .1rem; }
.tcd-id { font-family: ui-monospace, monospace; color: var(--accent-2); font-size: .84rem; margin-bottom: .5rem; }
.tcd-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; margin: 0 0 .6rem; }
.tcd-kv dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tcd-kv dd { margin: 0; font-size: .9rem; font-weight: 650; }
.tcd-qr { text-align: center; flex: none; }
.tcd-qr svg { background: #fff; border-radius: 10px; padding: 5px; }
.tcd-qr small { display: block; font-size: .68rem; color: var(--muted); margin-top: .25rem; }
.tcd-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 1rem 1.2rem; border-top: 1px solid var(--border); }
@media (min-width: 560px) { .tcd-foot { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tcd-foot strong { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tcd-foot span { font-size: .88rem; }

/* --------------------------------- cta band --------------------------------- */

.cta-band { margin-top: 2.4rem; padding: 2.4rem 0; background: linear-gradient(120deg, rgba(99, 102, 241, .24), rgba(245, 158, 11, .16)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; align-items: center; }
.cta-inner p { max-width: 60ch; margin: 0; color: var(--ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band-inline { border-radius: var(--radius); margin-top: 1.6rem; padding: 1.6rem; }

/* ---------------------------------- auth ---------------------------------- */

.auth-body, .shell-public.auth-body { display: grid; place-items: center; }
.auth-wrap { display: grid; place-items: center; padding: 3rem 1rem; min-height: 70vh; }
.auth-card {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem; backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.auth-card-wide { width: min(660px, 100%); }
.auth-sub { color: var(--muted); font-size: .9rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 1rem; font-size: .87rem; }
.auth-links a { color: var(--accent-2); }

.card-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
@media (min-width: 720px) { .card-form { padding: 1.8rem; } }
.grid-2 > .field-full { grid-column: 1 / -1; }

/* ============================== SHELL APLIKASI ============================== */

.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 80;
  background: rgba(9, 11, 22, .98); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 1rem .8rem 1rem; overflow-y: auto;
  transform: translateX(-100%); transition: transform .22s ease;
}
.sidebar.open { transform: translateX(0); }
.sb-brand { display: flex; align-items: center; gap: .6rem; padding: .4rem .4rem 1rem; }
.sb-brand img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.sb-brand strong { display: block; font-size: .82rem; letter-spacing: .02em; }
.sb-brand small { font-size: .66rem; color: var(--muted); }
.sb-user { display: flex; gap: .6rem; align-items: center; padding: .7rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: .9rem; }
.sb-user-initials { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--grad); display: grid; place-items: center; font-weight: 750; color: #fff; font-size: .85rem; }
.sb-user-text { min-width: 0; }
.sb-user-text strong { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-text small { font-size: .72rem; color: var(--muted); }
.sb-nav { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.sb-link {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 10px;
  color: var(--ink-2); font-size: .87rem; font-weight: 600; background: none; border: 0; cursor: pointer;
  text-align: left; width: 100%; min-height: 40px;
}
.sb-link:hover { background: var(--surface-2); color: #fff; }
.sb-link.is-active { background: var(--grad-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .42); }
.sb-icon { width: 19px; height: 19px; flex: none; display: grid; place-items: center; }
.sb-icon svg { width: 19px; height: 19px; }
.sb-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-foot { border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .6rem; }
.sb-backdrop { position: fixed; inset: 0; background: rgba(4, 5, 12, .6); z-index: 70; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .app-main { margin-left: var(--sidebar-w); }
  .sb-toggle { display: none; }
  .sb-backdrop { display: none !important; }
}
.app-topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem; background: rgba(11, 13, 24, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-title { min-width: 0; flex: 1; }
.app-title h1 { font-size: 1.05rem; margin: 0; }
.app-title p { margin: 0; font-size: .78rem; color: var(--muted); }
.app-actions { display: flex; gap: .4rem; align-items: center; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
}
.icon-btn:hover { color: #fff; border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center;
}
.app-content { padding: 1.2rem 1rem 2.4rem; flex: 1; }
@media (min-width: 720px) { .app-content { padding: 1.8rem 1.6rem 3rem; } }
.app-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; padding: 1rem 1.2rem 1.6rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.app-footer a { display: inline-flex; gap: .35rem; align-items: center; color: var(--accent-2); }
.app-footer svg { width: 14px; height: 14px; }

.dash-hero { margin-bottom: 1.6rem; }
.dash-hero-inner {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center;
  padding: 1.4rem; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border);
}
.dh-info { flex: 1 1 220px; min-width: 0; }
.dh-info h2 { margin: 0; }
.dh-meta { color: var(--muted); font-size: .86rem; margin: .15rem 0 .5rem; }
.dh-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.dh-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: .7rem; }
.quick-item { padding: .85rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .1rem; }
.quick-item:hover { border-color: var(--amber); }
.quick-item strong { font-size: 1.3rem; }
.quick-item span { font-size: .78rem; color: var(--muted); }

.participant-card { display: flex; gap: 1rem; padding: 1.1rem; align-items: flex-start; }
.participant-card h3 { margin: 0 0 .2rem; font-size: 1rem; }
.child-switch { margin-bottom: 1.2rem; }
.child-switch label { display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; color: var(--muted); max-width: 340px; }
.child-switch select { background: rgba(8, 10, 20, .55); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; min-height: 44px; }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.tab { padding: .45rem .85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .83rem; color: var(--ink-2); font-weight: 600; }
.tab.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.tab-count { opacity: .75; }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 1.6rem 0; }
.page-btn { padding: .45rem .8rem; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); font-size: .84rem; min-height: 38px; display: inline-flex; align-items: center; }
.page-btn.is-active { background: var(--grad); color: #fff; border-color: transparent; }

.rich-text { font-size: .92rem; color: var(--ink-2); }
.rich-text p { margin: 0 0 .7rem; }
.rich-text ul, .rich-text ol { margin: 0 0 .8rem 1.1rem; padding: 0; }
.rich-text a { color: var(--accent-2); text-decoration: underline; }
.rich-text strong { color: var(--ink); }
.announcement-card { margin-bottom: 1.1rem; }
.ann-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.ann-image { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: .8rem 0; }
.details { margin-top: .8rem; }
.details summary { cursor: pointer; font-size: .87rem; color: var(--accent-2); font-weight: 600; margin-bottom: .8rem; }

/* --------------------------------- cetak --------------------------------- */

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .app-topbar, .site-header, .site-footer, .row-actions, .app-footer, .anchor-nav, .no-print { display: none !important; }
  .app-main { margin-left: 0 !important; }
  .receipt-paper, .cert-paper { box-shadow: none; border: 1px solid #ccc; }
}

@media (max-width: 400px) {
  .header-inner { gap: .45rem; }
  .header-actions { gap: .3rem; }
  .header-actions .btn { padding: .45rem .6rem; font-size: .78rem; min-height: 36px; }
}

@media (max-width: 860px) {
  /* Logo versi seluler/tablet */
  :root { --logo-h: 72px; }
}

@media (max-width: 560px) {
  .app-title h1 { font-size: .98rem; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
  .table { min-width: 520px; }
  .hero { padding: 2.4rem 0 2rem; }
}
