/* ==========================================================================
   LAB.CSS — panel lab.sinektive.id · versi 2 (gaya "lampu studio")
   Kanvas gelap Midnight + lembaran Praxeti White bersudut besar, panel visual bergradasi
   palet Sinektive dengan bola cahaya, judul tipis besar, chip garis, bar aksi pill gelap.
   Palet: Black #0A0A0A · Praxeti White #F6F7ED · First Colors of Spring #DBE64C ·
   Picture Book Green #00804C · Mantis #74C365 · Nuit Blanche #1E488F · Midnight Mirage #001F3F
   Warna lini: Studio #1E488F · Snaptive #B8693A · Romantive #8D3A3C / emas #C9A45C
   ========================================================================== */
:root {
  --canvas: #0E1418; --canvas-ink: #F6F7ED; --canvas-muted: #A9B1B6; --canvas-line: rgba(246,247,237,.1);
  --sheet: #F6F7ED; --card: #ECEEDD; --card-2: #FFFFFF; --ink: #0A0A0A; --muted: #5E646A; --line: rgba(10,10,10,.12);
  --lime: #DBE64C; --green: #00804C; --mantis: #74C365; --nuit: #1E488F; --midnight: #001F3F;
  --accent: #00804C; --danger: #B3261E; --warn: #8A5A00;
  --studio: #1E488F; --snaptive: #B8693A; --romantive: #8D3A3C; --gold: #C9A45C;
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Inter', system-ui, sans-serif; --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --visual: radial-gradient(120% 90% at 100% 100%, rgba(219,230,76,.55) 0%, rgba(116,195,101,.35) 22%, transparent 52%),
            radial-gradient(90% 80% at 0% 0%, rgba(30,72,143,.75) 0%, transparent 60%),
            linear-gradient(160deg, #0A0A0A 0%, #001F3F 45%, #0C3A4A 72%, #00804C 100%);
  color-scheme: light;
}
[data-theme="dark"] {
  --sheet: #141A1F; --card: #1B2228; --card-2: #20282F; --ink: #F6F7ED; --muted: #9AA2A8; --line: rgba(246,247,237,.1);
  --accent: #DBE64C; --danger: #FF8A80; --warn: #F2C48D; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: var(--card); padding: 1px 7px; border-radius: 8px; font-size: .9em; }

/* Ikon tema: bulan di mode terang, matahari di mode gelap */
.ico-sun { display: none; }
[data-theme="dark"] [data-theme-toggle] .ico-sun { display: block; }
[data-theme="dark"] [data-theme-toggle] .ico-moon { display: none; }

/* ---------- Bola cahaya (lampu studio) ---------- */
.orb { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F6F7ED 16%, var(--tone, #DBE64C) 52%, color-mix(in srgb, var(--tone, #DBE64C) 30%, transparent) 72%, transparent 74%); box-shadow: 0 0 60px 6px color-mix(in srgb, var(--tone, #DBE64C) 45%, transparent); animation: orb-in 1.4s var(--ease) both; }
@keyframes orb-in { from { opacity: 0; scale: .6; } }

/* ---------- Chip garis & tag ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.chips--light span { border-color: rgba(246,247,237,.35); color: #F6F7ED; }
.pill-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- Tombol bulat ---------- */
.round { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; transition: background-color .25s, scale .15s; }
.round:hover { background: var(--card); }
.round:active { scale: .94; }
.round--soft { background: var(--sheet); border-color: transparent; }
.round--dark { border-color: var(--canvas-line); color: var(--canvas-ink); }
.round--me { background: var(--lime); color: #0A0A0A; border-color: transparent; }

/* ---------- Bar aksi (pill gelap, seperti "Add to cart" di referensi) ---------- */
.cta-bar { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; background: #0A0A0A; color: #F6F7ED; text-decoration: none; font-weight: 600; font-size: 15px; transition: translate .3s var(--ease), box-shadow .3s; }
.cta-bar:hover { translate: 0 -2px; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.cta-bar:active { translate: 0; scale: .99; }
.cta-bar__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0A0A0A; }
.cta-bar__label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-bar__end { font-family: var(--display); font-weight: 500; font-size: 14px; color: rgba(246,247,237,.6); white-space: nowrap; }
[data-theme="dark"] .cta-bar { background: #F6F7ED; color: #0A0A0A; }
[data-theme="dark"] .cta-bar__end { color: rgba(10,10,10,.55); }

/* ==========================================================================
   KERANGKA PANEL
   ========================================================================== */
.sheet { position: relative; min-height: calc(100svh - 64px); margin: 64px 0 0; padding: 22px 16px calc(110px + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--sheet); display: grid; gap: 16px; align-content: start; animation: sheet-in .7s var(--ease) both; }
@keyframes sheet-in { from { translate: 0 24px; opacity: .4; } }
.sheet > * { min-width: 0; }

.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 64px; padding: 0 14px 0 18px; display: flex; align-items: center; justify-content: space-between; background: var(--canvas); color: var(--canvas-ink); }
.topbar__brand, .side__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__brand span, .side__brand span { font-family: var(--display); font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--lime); color: #0A0A0A; }
.topbar__actions { display: flex; gap: 8px; }

.tabbar { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: flex; padding: 6px; border-radius: 999px; background: rgba(14,20,24,.88); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border: 1px solid var(--canvas-line); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.tabbar a { flex: 1; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 999px; text-decoration: none; font-size: 10.5px; font-weight: 500; color: var(--canvas-muted); transition: background-color .3s var(--ease), color .3s, scale .15s; }
.tabbar a[aria-current="page"] { background: var(--lime); color: #0A0A0A; }
.tabbar a:active { scale: .94; }

.side { display: none; }
@media (min-width: 960px) {
  .topbar, .tabbar { display: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; gap: 28px; padding: 28px 18px 18px; color: var(--canvas-ink); overflow: hidden; }
  .side__brand { padding: 0 10px; }
  .side__nav { position: relative; z-index: 1; display: grid; gap: 4px; }
  .side__nav a { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--canvas-muted); transition: background-color .25s, color .25s; }
  .side__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
  .side__nav a:hover { color: var(--canvas-ink); background: rgba(246,247,237,.06); }
  .side__nav a[aria-current="page"] { background: rgba(246,247,237,.08); color: var(--canvas-ink); }
  .side__nav a[aria-current="page"] .side__ico { background: var(--lime); color: #0A0A0A; }
  .side__glow { position: absolute; left: -60px; right: -60px; bottom: -120px; height: 320px; background: radial-gradient(closest-side, rgba(219,230,76,.28), rgba(0,128,76,.18) 45%, rgba(30,72,143,.12) 70%, transparent); pointer-events: none; }
  .side__foot { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 10px; }
  .side__me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; text-decoration: none; background: rgba(246,247,237,.06); border: 1px solid var(--canvas-line); }
  .side__me.is-active, .side__me:hover { background: rgba(246,247,237,.1); }
  .side__me strong { display: block; font-size: 14px; } .side__me small { color: var(--canvas-muted); font-size: 12px; }
  .side__actions { display: flex; gap: 6px; padding-left: 4px; }
  .side__actions form { display: contents; }
  .side .round { border-color: var(--canvas-line); color: var(--canvas-ink); }
  .side .round:hover { background: rgba(246,247,237,.08); }
  .shell .sheet { margin: 12px 12px 12px 252px; min-height: calc(100svh - 24px); padding: 36px 40px 56px; border-radius: var(--r-xl); }
  .shell .sheet > * { width: 100%; max-width: 1040px; }
}

.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--lime); color: #0A0A0A; font-family: var(--display); font-weight: 600; font-size: 15px; }
.avatar--sm { width: 30px; height: 30px; font-size: 12.5px; }

/* ---------- Judul halaman ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 20px; padding: 4px 2px 6px; }
.page-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 8vw, 54px); letter-spacing: -.045em; line-height: 1; }
.page-head p { margin-top: 10px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 560px; }
.page-head__actions { display: flex; gap: 8px; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); background: var(--card); }

/* ==========================================================================
   BERANDA
   ========================================================================== */
.hero { display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--card); }
.hero__visual { position: relative; min-height: 290px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; color: #F6F7ED; background: var(--visual); overflow: hidden; isolation: isolate; }
.hero__visual > :not(.orb) { position: relative; z-index: 1; }
.hero__visual .orb--1 { --tone: #DBE64C; width: 92px; height: 92px; right: 20px; top: 20px; }
.hero__visual .orb--2 { --tone: #74C365; width: 42px; height: 42px; right: 124px; top: 54px; animation-delay: .15s; }
.hero__visual .orb--3 { --tone: #6F9BE8; width: 26px; height: 26px; right: 100px; top: 112px; animation-delay: .3s; }
.hero__date { font-size: 13px; color: rgba(246,247,237,.7); }
.hero__title { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: .98; letter-spacing: -.05em; }
.hero__panel { padding: 22px 18px 18px; display: grid; gap: 14px; align-content: start; background: var(--card-2); }
.hero__panel-head { display: flex; justify-content: space-between; align-items: center; }
.hero__panel h2, .card-cream h2, .card-dark h2 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.03em; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.line { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 22px; border: 1px solid var(--line); text-decoration: none; transition: background-color .25s, translate .3s var(--ease); }
.line:hover { background: var(--card); translate: 2px 0; }
.line__orb { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF 0%, var(--tone) 55%, color-mix(in srgb, var(--tone) 60%, #000) 100%); box-shadow: 0 6px 18px color-mix(in srgb, var(--tone) 45%, transparent); }
.line--studio { --tone: #3E6CC0; } .line--snaptive { --tone: #D9894E; } .line--romantive { --tone: #A8484B; }
.line__text { flex: 1; min-width: 0; display: grid; }
.line__text strong { font-size: 15px; }
.line__text small { color: var(--muted); font-size: 12.5px; }
.line__go { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }

.duo { display: grid; gap: 16px; }
.card-cream { position: relative; padding: 20px 18px; border-radius: var(--r-lg); background: var(--card); display: grid; gap: 14px; }
.card-dark { position: relative; overflow: hidden; isolation: isolate; padding: 22px 20px; border-radius: var(--r-lg); background: #0A0A0A; color: #F6F7ED; display: grid; gap: 12px; align-content: start; }
.card-dark > :not(.orb) { position: relative; z-index: 1; }
.card-dark p { color: rgba(246,247,237,.7); font-size: 14px; max-width: 380px; }
.orb--soon { --tone: #00804C; width: 170px; height: 170px; right: -80px; top: -80px; opacity: .7; }
.quick { display: grid; gap: 8px; }
.quick__item { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--card-2); text-decoration: none; transition: translate .3s var(--ease); }
.quick__item:hover { translate: 2px 0; }
.quick__item strong { display: block; font-size: 14px; } .quick__item small { color: var(--muted); font-size: 12.5px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log__body { flex: 1; min-width: 0; display: grid; font-size: 14px; }
.log__body span { color: var(--muted); font-size: 13px; }
.log time { font-size: 12px; color: var(--muted); white-space: nowrap; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr 1fr; }
  .hero__visual { min-height: 380px; padding: 32px; }
  .hero__visual .orb--1 { width: 150px; height: 150px; right: 40px; top: 36px; }
  .hero__visual .orb--2 { width: 64px; height: 64px; right: 200px; top: 96px; }
  .hero__visual .orb--3 { width: 34px; height: 34px; right: 250px; top: 44px; }
  .hero__panel { padding: 28px 26px 24px; }
  .duo { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   KATALOG & DAFTAR
   ========================================================================== */
.seg { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #0A0A0A; overflow-x: auto; scrollbar-width: none; justify-self: start; max-width: 100%; }
.seg__item { flex: none; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 8px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 14px; color: rgba(246,247,237,.65); white-space: nowrap; }
.seg__item::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF 0%, var(--tone) 60%); }
.seg__item--snaptive { --tone: #D9894E; } .seg__item--romantive { --tone: #A8484B; } .seg__item--studio { --tone: #3E6CC0; }
.seg__item[aria-current="page"] { background: #F6F7ED; color: #0A0A0A; }
[data-theme="dark"] .seg { background: var(--card); }

.panel, .cat { position: relative; padding: 18px; border-radius: var(--r-lg); background: var(--card); display: grid; gap: 12px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.03em; }
.cat { scroll-margin-top: 90px; }
.cat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cat__head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: -.04em; line-height: 1.05; }
.cat__head p { font-size: 13px; margin-top: 4px; }
.cat__tools, .cat__tools form, .row__tools { display: flex; gap: 2px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main price" "main tools"; align-items: center; gap: 0 10px; padding: 10px 10px 10px 16px; border-radius: 20px; background: var(--card-2); transition: background-color .25s; }
.row__main { grid-area: main; display: grid; gap: 2px; text-decoration: none; min-width: 0; padding: 4px 0; }
.row__name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row__meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.row__meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.row.is-off .row__meta::before { background: transparent; border: 1px solid var(--muted); }
.row__price { grid-area: price; justify-self: end; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.03em; }
.row__tools { grid-area: tools; justify-self: end; }
.row__tag { grid-area: price / price / tools / tools; justify-self: end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row.is-off { background: transparent; border: 1px dashed var(--line); }
.row.is-off .row__name, .row.is-off .row__price { opacity: .45; }
.row__main:hover .row__name { text-decoration: underline; text-underline-offset: 3px; }
.star { color: var(--gold); display: inline-flex; }
.star svg { fill: currentColor; }
@media (min-width: 640px) {
  .row { grid-template-columns: 1fr auto auto; grid-template-areas: "main price tools"; gap: 14px; }
  .row__tag { grid-area: price / price / price / tools; }
  .panel, .cat { padding: 22px; }
}
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 36px 18px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }

/* ---------- Lencana ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--card); color: var(--ink); white-space: nowrap; letter-spacing: 0; }
.badge--studio { background: var(--studio); color: #fff; } .badge--snaptive { background: var(--snaptive); color: #fff; } .badge--romantive { background: var(--romantive); color: #fff; }
.badge--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge--off { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: scale .15s, background-color .2s, translate .3s var(--ease); }
.btn:active { scale: .97; }
.btn--primary { background: #0A0A0A; color: #F6F7ED; }
[data-theme="dark"] .btn--primary { background: #F6F7ED; color: #0A0A0A; }
.btn--soft { background: transparent; border-color: var(--line); color: var(--ink); justify-self: start; }
.btn--soft:hover { background: var(--card-2); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; font-size: 13.5px; padding: 0 14px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); text-decoration: none; transition: background-color .2s; }
.icon-btn:hover:not(:disabled) { background: var(--card); color: var(--ink); }
.icon-btn:disabled { opacity: .25; cursor: default; }

/* ==========================================================================
   FORMULIR
   ========================================================================== */
.form { display: grid; gap: 14px; }
.form--wide { max-width: 760px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 7px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent); }
.field input[type="radio"], .field input[type="checkbox"] { width: auto; min-height: 0; padding: 0; border: 0; box-shadow: none; flex: none; }
.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); overflow: hidden; }
.money:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent); }
.money span { padding: 0 2px 0 16px; color: var(--muted); font-weight: 500; }
.money input { border: 0 !important; box-shadow: none !important; padding-left: 6px; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; background: transparent; }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; font-size: 18px; }
.switches { display: grid; gap: 8px; }
.switch { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--card-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { flex: none; width: 50px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; transition: background-color .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: translate .3s var(--ease); }
.switch input:checked + .switch__ui { background: var(--green); }
.switch input:checked + .switch__ui::after { translate: 20px 0; background: var(--lime); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch strong { display: block; font-size: 14px; } .switch small { color: var(--muted); font-size: 12.5px; }
.choice { display: grid; gap: 8px; }
@media (min-width: 640px) { .choice { grid-template-columns: repeat(3, 1fr); } }
.choice__item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.choice__item:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice__item input { margin-top: 3px; accent-color: var(--green); }
.choice__item strong { display: block; font-size: 14px; } .choice__item small { color: var(--muted); font-size: 12.5px; }
.form__actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.form__bar { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--sheet) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.form__bar .round { background: var(--card-2); }
.form__bar .cta-bar { flex: 1; }
@media (min-width: 960px) { .form__bar { bottom: 20px; } }
.form__actions--sticky { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .form__actions--sticky { bottom: 20px; } }
.danger-zone, .signout { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); max-width: 760px; }
.signout { border-color: var(--line); background: var(--card); }
.danger-zone strong, .signout strong { display: block; } .danger-zone small, .signout small { color: var(--muted); font-size: 12.5px; }

/* ---------- Pesan ---------- */
.flash { padding: 12px 16px; border-radius: 18px; font-size: 14px; background: var(--card-2); border: 1px solid var(--line); animation: flash-in .45s var(--ease); }
.flash--success { background: color-mix(in srgb, var(--lime) 30%, var(--card-2)); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.flash--error { background: color-mix(in srgb, var(--danger) 9%, var(--card-2)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.flash--info { background: var(--card); }
@keyframes flash-in { from { opacity: 0; translate: 0 -6px; } }

/* ==========================================================================
   MASUK & SETUP (kartu terbelah)
   ========================================================================== */
.bare__main { min-height: 100svh; display: grid; place-items: center; padding: 12px; }
.auth { width: 100%; display: grid; place-items: center; }
.auth__card { width: 100%; max-width: 1040px; display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--sheet); animation: sheet-in .8s var(--ease) both; }
.auth__visual { position: relative; isolation: isolate; overflow: hidden; min-height: 330px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: #F6F7ED; background: var(--visual); }
.auth__visual > :not(.orb) { position: relative; z-index: 1; }
.auth__visual .orb--1 { --tone: #DBE64C; width: 84px; height: 84px; right: 22px; top: 22px; }
.auth__visual .orb--2 { --tone: #74C365; width: 40px; height: 40px; right: 116px; top: 58px; animation-delay: .15s; }
.auth__visual .orb--3 { --tone: #6F9BE8; width: 26px; height: 26px; right: 92px; top: 112px; animation-delay: .3s; }
.auth__visual .orb--4 { --tone: #DBE64C; width: 14px; height: 14px; right: 168px; top: 26px; animation-delay: .45s; }
.auth__visual-top img { height: 22px; width: auto; }
.auth__visual-body { display: grid; gap: 12px; }
.auth__title { font-family: var(--display); font-weight: 300; font-size: clamp(48px, 13vw, 92px); line-height: .92; letter-spacing: -.055em; }
.auth__lede { font-size: 14px; color: rgba(246,247,237,.75); max-width: 340px; }
.auth__panel { padding: 22px 20px 24px; display: grid; gap: 16px; align-content: start; }
.auth__bar { display: flex; justify-content: space-between; align-items: center; }
.auth__panel h1 { font-family: var(--display); font-weight: 300; font-size: 40px; letter-spacing: -.045em; line-height: 1; }
.auth__note { font-size: 12.5px; color: var(--muted); }
.auth__site { justify-self: start; font-size: 13px; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.checklist li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); }
.checklist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); }
.checklist li.ok::before { background: var(--green); border-color: var(--green); }
@media (min-width: 860px) {
  .bare__main { padding: 28px; }
  .auth__card { grid-template-columns: 1.15fr 1fr; min-height: min(640px, calc(100svh - 56px)); }
  .auth__visual { padding: 34px; }
  .auth__visual .orb--1 { width: 170px; height: 170px; right: 60px; top: 70px; }
  .auth__visual .orb--2 { width: 86px; height: 86px; right: 250px; top: 170px; }
  .auth__visual .orb--3 { width: 58px; height: 58px; right: 120px; top: 290px; }
  .auth__visual .orb--4 { width: 30px; height: 30px; right: 330px; top: 70px; }
  .auth__panel { padding: 34px 38px; align-content: center; }
  .auth__panel h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.shell .sheet > .back, .shell .sheet > .btn--soft, .shell .sheet > .seg { width: auto; justify-self: start; }

/* ==========================================================================
   LIQUID GLASS (ala iPhone) — hanya untuk elemen yang melayang / berada di atas warna.
   Formulir & daftar harga sengaja tetap solid agar tulisan dan angka tajam.
   ========================================================================== */
:root {
  --glass-dark-bg: linear-gradient(135deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 55%, rgba(255,255,255,.07) 100%);
  --glass-dark-line: rgba(255,255,255,.17);
  --glass-light-bg: linear-gradient(135deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.38) 60%, rgba(255,255,255,.5) 100%);
  --glass-light-line: rgba(255,255,255,.85);
  --glass-blur: blur(24px) saturate(185%);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(255,255,255,.05);
}
[data-theme="dark"] {
  --glass-light-bg: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 60%, rgba(255,255,255,.07) 100%);
  --glass-light-line: rgba(255,255,255,.16);
}

/* Cahaya lembut di kanvas, supaya kaca punya sesuatu untuk dibiaskan */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 34% at 0% 100%, rgba(219,230,76,.26), transparent 70%),
              radial-gradient(34% 30% at 6% 2%, rgba(30,72,143,.55), transparent 70%),
              radial-gradient(30% 28% at 100% 0%, rgba(0,128,76,.28), transparent 70%),
              radial-gradient(26% 26% at 100% 100%, rgba(116,195,101,.18), transparent 70%); }

/* Kilau kaca: garis cahaya miring yang bergeser pelan saat disentuh/diarahkan */
.lq { position: relative; isolation: isolate; }
.tabbar::before, .side::before, .topbar::before, .round::before, .form__bar::before, .chips--light span::before, .flash::before, .seg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.12) 100%);
  background-size: 220% 220%; background-position: 0% 0%; mix-blend-mode: soft-light; transition: background-position .9s var(--ease);
}
.round:hover::before, .side:hover::before, .tabbar:hover::before, .form__bar:hover::before { background-position: 60% 40%; }
.tabbar > *, .side > *, .topbar > *, .round > *, .form__bar > *, .seg > * { position: relative; z-index: 1; }

/* Kaca gelap: menu bawah, menu samping, bar atas HP, tombol di atas kanvas */
.tabbar, .topbar, .round--dark, .side .round {
  background: var(--glass-dark-bg) !important; border: 1px solid var(--glass-dark-line) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 18px 44px rgba(0,0,0,.35);
}
.tabbar { background: linear-gradient(135deg, rgba(26,33,39,.84), rgba(14,20,24,.74)) !important; }
.tabbar a { color: #B9C0C5; }
.tabbar a[aria-current="page"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(219,230,76,.35); }
.topbar { border-width: 0 0 1px 0 !important; box-shadow: none; background: linear-gradient(180deg, rgba(14,20,24,.72), rgba(14,20,24,.5)) !important; }
.round--dark, .side .round { box-shadow: var(--glass-hi); }

@media (min-width: 960px) {
  .side { inset: 12px auto 12px 12px; width: 228px; border-radius: 28px; padding: 24px 14px 14px;
    background: var(--glass-dark-bg); border: 1px solid var(--glass-dark-line);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-hi), 0 24px 60px rgba(0,0,0,.4); }
  .side__glow { display: none; }
  .side__nav a[aria-current="page"] { background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
  .side__nav a[aria-current="page"] .side__ico { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 16px rgba(219,230,76,.35); }
  .side__me { background: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
}

/* Kaca terang: tombol bulat di lembaran, bar simpan, kotak pesan */
.sheet .round, .auth__panel .round, .form__bar, .flash {
  background: var(--glass-light-bg) !important; border: 1px solid var(--glass-light-line) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 8px 22px rgba(0,0,0,.08);
}
.form__bar { box-shadow: var(--glass-hi), 0 16px 40px rgba(0,0,0,.16); }
.flash { position: relative; overflow: hidden; }
.flash > * { position: relative; }
.flash--success { background: linear-gradient(135deg, rgba(219,230,76,.55), rgba(219,230,76,.22)) !important; }
.flash--error { background: linear-gradient(135deg, rgba(179,38,30,.16), rgba(179,38,30,.06)) !important; }

/* Kaca di atas gradasi: chip & tombol di panel visual (bola cahaya terlihat membias) */
.chips--light span { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); border-color: rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.hero__visual .hero__date { justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; color: #F6F7ED;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* Pemilih lini: kapsul kaca gelap, pilihan aktif seperti tetesan kaca terang */
.seg { position: relative; background: linear-gradient(135deg, rgba(10,10,10,.92), rgba(10,10,10,.8)); box-shadow: var(--glass-hi), 0 10px 26px rgba(0,0,0,.18); }
.seg__item[aria-current="page"] { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.25); }

/* Bar aksi hitam: kilau kaca tipis di tepi atas */
.cta-bar { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 8px rgba(0,0,0,.3); }
.cta-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.16), transparent 40%); }
.cta-bar__icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 6px rgba(0,0,0,.12), 0 4px 12px rgba(219,230,76,.4); }

/* Bola cahaya diberi kilau kaca (pantulan putih kecil di kiri atas) */
.orb::after { content: ""; position: absolute; left: 18%; top: 12%; width: 34%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(4px); }

/* Cadangan: browser tanpa efek kaca, atau pengguna memilih "kurangi transparansi" */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar, .topbar, .side, .round--dark, .side .round { background: #1A2228 !important; }
  .sheet .round, .auth__panel .round, .form__bar, .flash { background: var(--card-2) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .topbar, .side, .round--dark, .side .round { background: #1A2228 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet .round, .auth__panel .round, .form__bar, .flash, .chips--light span, .hero__visual .hero__date { background: var(--card-2) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
