/* Halaman publik Negeri Taugasih.Seru. Kartu Warga memakai gaya .wg-card dari /css/app.css. */
/* app.css memberi body tinggi 100%: di sini dibuat auto, kalau tidak header sticky ikut hilang setelah 1 layar */
html:has(body.ng) { height: auto; }
body.ng { height: auto; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: clip; scroll-behavior: smooth; }
.ng * { box-sizing: border-box; }
.ng a { color: inherit; }
.ng code { background: color-mix(in srgb, #eab308 18%, transparent); color: inherit; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
html:has(body.ng) { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* Navigasi */
.ng-nav { position: sticky; top: 0; z-index: 50; min-height: 58px; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.ng-nav.scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(20, 20, 50, .06); }
.ng-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; }
.ng-logo img { border-radius: 10px; }
.ng-nav nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ng-nav nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ng-nav nav a:hover { background: var(--surface); color: var(--text); }

/* Hero */
.ng-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 110px);
  background: radial-gradient(900px 500px at 0% 0%, #3b3bb5, transparent 60%), radial-gradient(700px 500px at 100% 30%, #7c3aed, transparent 55%), #14152b; }
.ng-hero-in { position: relative; z-index: 2; max-width: 640px; }
.ng-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(253, 224, 71, .14); border: 1px solid rgba(253, 224, 71, .35); color: #fde047; font-weight: 700; font-size: 13px; }
.ng-hero h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.07; letter-spacing: -.025em; margin: 18px 0 16px; }
.ng-hero h1 span { background: linear-gradient(90deg, #fde047, #fb923c 60%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ng-hero p { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.65; opacity: .85; margin: 0; }
.ng-hero code { background: rgba(253, 224, 71, .18); color: #fde047; }
.ng-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ng-count { display: flex; gap: clamp(18px, 4vw, 44px); margin-top: 36px; }
.ng-count b { display: block; font-size: clamp(26px, 3.4vw, 38px); font-variant-numeric: tabular-nums; }
.ng-count span { font-size: 13px; opacity: .7; }
.ng-hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ng-sun { position: absolute; right: 8%; top: 18%; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fef08a, #facc15 40%, #fb923c 75%); box-shadow: 0 0 120px 40px rgba(250, 204, 21, .35); opacity: .9; animation: ng-float 7s ease-in-out infinite; }
.ng-city { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; padding-right: 4%; opacity: .55; }
.ng-city i { width: clamp(30px, 5vw, 64px); border-radius: 8px 8px 0 0;
  background: radial-gradient(#fde04799 1.5px, transparent 2px) 0 0 / 12px 14px, linear-gradient(#34357a, #1b1c3d); }
.ng-city i:nth-child(1) { height: 60%; } .ng-city i:nth-child(2) { height: 95%; } .ng-city i:nth-child(3) { height: 70%; }
.ng-city i:nth-child(4) { height: 120%; } .ng-city i:nth-child(5) { height: 80%; } .ng-city i:nth-child(6) { height: 55%; } .ng-city i:nth-child(7) { height: 90%; }
@keyframes ng-float { 50% { transform: translateY(-14px); } }

/* Tombol */
.ng-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; color: #1f1a00; background: linear-gradient(135deg, #fde047, #facc15); box-shadow: 0 10px 26px rgba(250, 204, 21, .3); transition: transform .1s, filter .15s; }
.ng-btn:hover { filter: brightness(1.05); }
.ng-btn:active { transform: translateY(1px); }
.ng-btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .25); }
.ng-btn.sm { padding: 9px 14px; font-size: 14px; }

/* Bagian */
.ng-main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.ng-sec { padding: clamp(40px, 6vw, 64px) 0 0; }
.ng-sec h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.015em; margin: 0 0 14px; }
.ng-h3 { margin: 30px 0 6px; font-size: 19px; }
.ng-note { color: var(--muted); line-height: 1.6; margin: 0 0 16px; font-size: 14.5px; }
.ng-empty { color: var(--muted); padding: 22px; text-align: center; border: 1.5px dashed var(--border); border-radius: 14px; font-size: 14px; grid-column: 1 / -1; }

.ng-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ng-steps.empat { grid-template-columns: repeat(4, 1fr); }
.ng-steps + .ng-cta { margin-top: 16px; }
@media (max-width: 900px) { .ng-steps.empat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ng-steps.empat { grid-template-columns: 1fr; } }
.ng-jalur { margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; }
.ng-jalur summary { cursor: pointer; font-weight: 800; }
.ng-jalur[open] summary { margin-bottom: 8px; }
.ng-saya-kartu .ng-prog { margin-top: 12px; }
.ng-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.ng-step > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #5b5bd6, #7c5cf0); color: #fff; font-size: 16px; }
.ng-step h3 { margin: 14px 0 6px; font-size: 17px; }
.ng-step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14.5px; }
.ng-copy { display: flex; align-items: center; gap: 14px; margin: 16px 0 12px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, #eab308 10%, var(--surface)); border: 1px solid color-mix(in srgb, #eab308 35%, var(--border)); }
.ng-copy > div { flex: 1; min-width: 0; }
.ng-copy small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; font-weight: 600; }
.ng-copy code { background: none; padding: 0; font-size: 14.5px; overflow-wrap: anywhere; }

/* Cari kartu */
.ng-search { display: flex; gap: 10px; max-width: 560px; }
.ng-search input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); outline: none; }
.ng-search input:focus { border-color: #5b5bd6; box-shadow: 0 0 0 4px color-mix(in srgb, #5b5bd6 18%, transparent); }
.ng-hasil { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.ng-kartu { display: flex; flex-direction: column; gap: 12px; }
.ng-kartu .wg-card { margin: 0; }
.ng-prog { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.ng-prog-h { font-size: 14px; margin-bottom: 10px; }
.ng-prog-h span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ng-bar { display: grid; grid-template-columns: 150px 1fr 54px; align-items: center; gap: 10px; font-size: 13px; margin-top: 7px; }
.ng-bar > div { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ng-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b5bd6, #a78bfa); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.ng-bar b { text-align: right; font-variant-numeric: tabular-nums; }

/* Pemerintahan */
.ng-gov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ng-tokoh { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; text-align: center; }
.ng-tokoh.pres { background: linear-gradient(160deg, color-mix(in srgb, #facc15 22%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, #facc15 45%, var(--border)); }
.ng-av { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--surface-2); }
.ng-tokoh b { display: block; font-size: 18px; }
.ng-tokoh span { display: block; color: #7c3aed; font-weight: 700; font-size: 13px; margin: 2px 0 8px; }
.ng-tokoh p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ng-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ng-seat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.ng-seat-h { font-weight: 700; font-size: 13.5px; color: #7c3aed; margin-bottom: 10px; }
.ng-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ng-mini > div { min-width: 0; line-height: 1.35; }
.ng-mini small { color: var(--muted); font-size: 12.5px; }
.ng-dot { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border); }
.ng-kabar { color: var(--text) !important; }

/* Pangkat */
.ng-ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ng-rank { --rc: #64748b; position: relative; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--rc); border-radius: 16px; padding: 16px 18px; }
.ng-rank.r-warga { --rc: #2563eb; } .ng-rank.r-rt { --rc: #b45309; } .ng-rank.r-rw { --rc: #94a3b8; } .ng-rank.r-lurah { --rc: #d4a017; }
.ng-rank.r-camat { --rc: #f59e0b; } .ng-rank.r-bupati { --rc: #ec4899; } .ng-rank.r-menteri { --rc: #7c3aed; background: linear-gradient(160deg, color-mix(in srgb, #7c3aed 12%, var(--surface)), var(--surface) 55%); }
.ng-rank-h { display: flex; align-items: center; gap: 12px; }
.ng-rank-ic { font-size: 28px; }
.ng-rank-h b { display: block; font-size: 16.5px; }
.ng-rank-h small { color: var(--muted); font-size: 12.5px; }
.ng-rank-h em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 12.5px; color: #a16207; background: color-mix(in srgb, #facc15 22%, transparent); padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.ng-rank ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.ng-step-no { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; color: var(--muted); opacity: .5; }
.ng-rank-h em + .ng-step-no, .ng-rank:has(em) .ng-step-no { display: none; }

/* Aturan */
.ng-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ng-rule { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.ng-rule ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.ng-rule li b { color: var(--text); }

/* Wilayah */
.ng-wil { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ng-wil-i { --wc: #5b5bd6; border-radius: 16px; padding: 16px; color: #fff; background: linear-gradient(150deg, var(--wc), color-mix(in srgb, var(--wc) 55%, #000)); display: flex; flex-direction: column; gap: 3px; min-height: 108px; }
.ng-wil-i b { font-size: 16px; }
.ng-wil-i small { opacity: .8; font-size: 12.5px; }
.ng-wil-i span { margin-top: auto; font-weight: 700; font-size: 13px; }
.ng-wil-i.g-horror { --wc: #3f3f46; } .ng-wil-i.g-fakta-mitos { --wc: #0e7490; } .ng-wil-i.g-komedi { --wc: #ea580c; }
.ng-wil-i.g-anime { --wc: #db2777; } .ng-wil-i.g-cerita { --wc: #15803d; } .ng-wil-i.g-berita { --wc: #1d4ed8; } .ng-wil-i.g-ibu { --wc: #a16207; }
.ng-wil-i[class*='ibu'] { --wc: #a16207; }

/* Papan */
.ng-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ng-list { display: grid; gap: 8px; }
.ng-list > .ng-mini, .ng-rankrow { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.ng-rankrow { display: flex; align-items: center; gap: 10px; }
.ng-rankrow .ng-mini { flex: 1; }
.ng-no { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.ng-no.n1 { background: #facc15; color: #422006; } .ng-no.n2 { background: #cbd5e1; color: #1e293b; } .ng-no.n3 { background: #d97706; color: #fff; }
.ng-coin { white-space: nowrap; font-size: 14px; }

.ng-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ng-days > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.ng-days b { display: block; color: #7c3aed; margin-bottom: 4px; }
.ng-days span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.ng-foot { max-width: 1080px; margin: 64px auto 0; padding: 28px clamp(16px, 4vw, 32px) 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.ng-upd { opacity: .7; }

@media (max-width: 820px) {
  .ng-steps, .ng-gov, .ng-rules, .ng-two { grid-template-columns: 1fr; }
  .ng-days { grid-template-columns: 1fr 1fr; }
  .ng-sun { opacity: .35; right: -40px; }
  .ng-logo span { display: none; }
  .ng-hasil { grid-template-columns: 1fr; }
  .ng-bar { grid-template-columns: 1fr 1fr 48px; }
}
.ng-lprog { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12.5px; }
.ng-lprog span { background: var(--surface-2); border-radius: 999px; padding: 3px 9px; }
.ng-rules:has(.ng-rule:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .ng-rules:has(.ng-rule:nth-child(4)) { grid-template-columns: 1fr; } }

/* Galeri Kartu */
.ng-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ng-gal { display: flex; flex-direction: column; gap: 10px; }
.ng-gal .wg-card { margin: 0; }
.ng-gal-i { display: grid; gap: 3px; padding: 0 4px; font-size: 14px; line-height: 1.45; }
.ng-gal-i small, .ng-gal-i span { color: var(--muted); }

/* Toko Koin */
.ng-toko { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ng-item { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.ng-item-h { display: flex; align-items: center; gap: 12px; }
.ng-item-h > div { display: grid; }
.ng-item-h em { font-style: normal; font-weight: 800; color: #d4a017; font-size: 14px; }
.ng-item-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 24px; background: color-mix(in srgb, #eab308 14%, var(--surface)); }
.ng-item p { margin: 0; flex: 1; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ng-copy.sm { margin: 0; padding: 8px 10px; gap: 8px; }
.ng-copy.sm code { flex: 1; min-width: 0; font-size: 13px; }

/* Cek kartu: saldo, unduh, belanja */
.ng-kartu-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.ng-kartu-act small { color: var(--muted); }
.ng-belanja { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }
.ng-belanja > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ng-belanja small { color: var(--muted); }

/* Kartuku: login warga (saya.js) */
.ng-masuk-nav { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(135deg, #fde047, #facc15); color: #1f1a00 !important; }
.ng-masuk { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.ng-masuk h3 { margin: 0 0 8px; font-size: 20px; }
.ng-masuk p, .ng-masuk li { color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.ng-masuk ul { margin: 8px 0 0; padding-left: 20px; }
.ng-masuk-btn { display: grid; gap: 10px; }
.ng-masuk-btn small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ng-btn.ng-google, .ng-btn.ng-tiktok { justify-content: center; box-shadow: none; }
.ng-btn.ng-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.ng-btn.ng-google span { font-weight: 900; color: #4285f4; }
.ng-btn.ng-tiktok { background: #111; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.ng-btn.ng-tiktok span { color: #25f4ee; text-shadow: 1px 1px #fe2c55; }
.ng-btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.ng-link { background: none; border: 0; padding: 6px 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 8px; text-decoration: underline; }
.ng-link:hover { color: var(--text); }
.ng-akun { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ng-akun > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--surface); border: 1px solid var(--border); font-size: 20px; flex: none; }
.ng-akun img { width: 100%; height: 100%; object-fit: cover; }
.ng-akun > div { display: grid; flex: 1; min-width: 0; }
.ng-akun small { color: var(--muted); font-size: 12.5px; }
.ng-sambung { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(18px, 3vw, 26px); max-width: 680px; }
.ng-sambung h3 { margin: 0 0 8px; }
.ng-sambung p { line-height: 1.6; font-size: 14.5px; }
.ng-langsung { padding: 16px 18px; border-radius: 16px; margin-bottom: 14px;
  background: color-mix(in srgb, #22c55e 12%, var(--surface)); border: 1px solid color-mix(in srgb, #22c55e 40%, var(--border)); }
.ng-langsung p { margin: 0 0 12px; }
.ng-atau { color: var(--muted); margin: 6px 0 14px; }
.ng-wait { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; line-height: 1.5;
  background: color-mix(in srgb, #facc15 14%, var(--surface)); border: 1px solid color-mix(in srgb, #facc15 40%, var(--border)); }
.ng-kode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.ng-tautan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.ng-tautan summary { cursor: pointer; font-weight: 700; }
.ng-tautan ul { margin: 8px 0; padding-left: 18px; line-height: 1.7; }
.ng-tautan .ng-kode code { font-size: 20px; }
.ng-kode code { font-size: 26px; font-weight: 800; letter-spacing: .06em; padding: 8px 16px; border-radius: 12px; }
.ng-form { display: grid; gap: 12px; }
.ng-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.ng-form label small { font-weight: 400; color: var(--muted); }
.ng-form input, .ng-form textarea { font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); outline: none; resize: vertical; }
.ng-form input:focus, .ng-form textarea:focus { border-color: #5b5bd6; box-shadow: 0 0 0 4px color-mix(in srgb, #5b5bd6 18%, transparent); }
.ng-form .ng-btn { justify-self: start; }
.ng-saya { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 22px; align-items: start; }
.ng-saya-kartu { display: grid; gap: 12px; position: sticky; top: 76px; }
.ng-saya-toko { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(16px, 2.6vw, 24px); min-width: 0; }
.ng-saya-toko > h3:first-child { margin: 0 0 12px; }
.ng-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ng-tab { font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer; }
.ng-tab.on { border-color: #d4a017; color: var(--text); background: color-mix(in srgb, #facc15 16%, var(--bg)); }
.ng-panel-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ng-panel-h > div { display: grid; gap: 2px; }
.ng-panel-h em { font-style: normal; font-weight: 800; color: #d4a017; font-size: 14px; }
.ng-panel-h em s { color: var(--muted); font-weight: 500; }
.ng-panel-h small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ng-gaya { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.ng-gaya-pv { display: grid; gap: 6px; justify-items: center; position: sticky; top: 76px; }
.ng-gaya-pv img { width: 170px; aspect-ratio: 400 / 480; object-fit: cover; border-radius: 16px; background: color-mix(in srgb, #5b5bd6 10%, var(--bg)); border: 1px solid var(--border); transition: opacity .2s; }
.ng-gaya-pv img.loading { opacity: .4; }
.ng-gaya-pv small { color: var(--muted); font-size: 12px; text-align: center; }
.ng-gaya-opsi { display: grid; gap: 6px; min-width: 0; }
.ng-gaya-opsi > b { font-size: 13px; margin-top: 4px; }
.ng-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
.ng-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.ng-chip.on { border-color: #d4a017; background: color-mix(in srgb, #facc15 22%, var(--bg)); font-weight: 700; }
.ng-gaya-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ng-gaya-act small { flex: 1; min-width: 200px; color: var(--muted); font-size: 13.5px; }
.ng-riwayat { display: grid; gap: 8px; }
.ng-riwayat > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.ng-riwayat small { color: var(--muted); }
@media (max-width: 760px) {
  .ng-masuk, .ng-saya { grid-template-columns: 1fr; }
  .ng-saya-kartu { position: static; }
  .ng-gaya { grid-template-columns: 1fr; }
  .ng-gaya-pv { position: static; }
  .ng-nav { gap: 10px; }
  .ng-nav nav { flex: 1; min-width: 0; }
  .ng-masuk-nav { max-width: 130px; }
}
.ng-akun-menu { position: relative; }
.ng-akun-menu summary { list-style: none; text-decoration: none; }
.ng-akun-menu summary::-webkit-details-marker { display: none; }
.ng-akun-menu > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; min-width: 190px; padding: 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.ng-akun-menu > div .ng-link { text-align: left; text-decoration: none; padding: 8px 10px; }
.ng-akun-menu > div .ng-link:hover { background: var(--bg); }
/* Tutorial langkah Kartuku */
.ng-cara { display: grid; gap: 8px; margin-top: 12px; }
.ng-cara details, .ng-faq { border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; background: var(--bg); }
.ng-cara summary, .ng-faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.ng-cara summary small { font-weight: 400; color: var(--muted); }
.ng-faq { margin-top: 12px; }
.ng-faq ul { margin: 8px 0 2px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ng-faq .ng-link { padding: 0; }
.ng-langkah { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.ng-langkah li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ng-langkah li > b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; border: 1.5px solid var(--border); color: var(--text); }
.ng-langkah li.done > b { background: var(--success, #16a34a); border-color: transparent; color: #fff; }
.ng-langkah li.done span { text-decoration: line-through; opacity: .7; }
.ng-langkah li.on { color: var(--text); }
.ng-langkah li.on > b { background: linear-gradient(135deg, #fde047, #facc15); border-color: transparent; color: #1f1a00; }
/* .ng a {color: inherit} mengalahkan warna tombol: tombol berupa tautan dikembalikan warnanya */
.ng a.ng-btn { color: #1f1a00; }
.ng a.ng-btn.ghost, .ng a.ng-btn.ng-tiktok { color: #fff; }
.ng a.ng-btn.ng-google { color: #1f1f1f; }
.ng-sec > .ng-cta { margin: 6px 0 24px; }
.ng-kunci { display: block; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5;
  background: color-mix(in srgb, #ef4444 10%, var(--bg)); border: 1px solid color-mix(in srgb, #ef4444 35%, var(--border)); color: var(--text); }

/* Kota 3D (sedang dibangun) */
.ng-nav nav a.ng-nav-kota { color: #1f1a00; background: linear-gradient(135deg, #fde047, #fb923c); }
.ng-nav nav a.ng-nav-kota small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #14152b; color: #fde047; padding: 2px 5px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }
.ng-kota-cta { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 520px; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(167, 139, 250, .22)); border: 1px solid rgba(255, 255, 255, .28); transition: transform .15s, background .15s; }
.ng-kota-cta:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(56, 189, 248, .34), rgba(167, 139, 250, .34)); }
.ng-kota-cta b { display: block; font-size: 16px; }
.ng-kota-cta small { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.ng-kota-ikon { font-size: 30px; animation: ng-float 3s ease-in-out infinite; }
.ng-kota-panah { margin-left: auto; font-size: 22px; font-weight: 900; color: #fde047; }
.ng-kota-saya { margin-top: 10px; width: 100%; justify-content: center; background: linear-gradient(135deg, #38bdf8, #a78bfa); color: #fff; }
.ng-kota-saya small { opacity: .85; font-weight: 600; }
/* Tombol pasang aplikasi Kota Taugasih (PWA) */
.ng-pasang { display: flex; align-items: center; gap: 14px; margin-top: 10px; max-width: 520px; width: 100%; padding: 12px 16px; border-radius: 16px; color: #1f1a00;
  background: linear-gradient(135deg, #fde047, #facc15); border: 0; cursor: pointer; font: inherit; text-align: left; box-shadow: 0 8px 22px rgba(250, 204, 21, .25); }
.ng-pasang[hidden] { display: none; }
.ng-pasang:hover { transform: translateY(-2px); }
.ng-pasang b { display: block; font-size: 16px; }
.ng-pasang small { display: block; font-size: 12.5px; opacity: .8; }
.ng-pasang-ios { max-width: 520px; margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; }
.ng-pasang-ios[hidden] { display: none; }
.ng-pasang-ios a { color: #fde047; }
.ng-btn.ng-tiktok.mati { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.ng-btn.ng-tiktok.mati { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.ng-belum-sambung > div:last-child { margin-top: 12px; }
.ng-belum-sambung .ng-kode { margin: 12px 0 10px; }
.ng-belum-sambung .ng-link { margin-left: 6px; }
