/* ==========================================================================
   Semut Live — hand-written CSS (no build step)
   Identity: warm "soil & sugar" palette. Ant red on cream, honey accents,
   ink-brown text. Display: Bricolage Grotesque. Body: Figtree.
   ========================================================================== */

:root {
  --ink: #2A1A14;
  --ink-2: #3b2d23;
  --muted: #76665a;
  --line: #eadfcb;
  --line-2: #d9c8ad;
  --bg: #FFF4E6;
  --paper: #fffdf8;
  --sand: #f4e9d5;
  --ant: #E4472A;
  --ant-d: #B8341B;
  --ant-l: #FDE4DC;
  --honey: #FFD166;
  --honey-d: #b87808;
  --honey-l: #FFF3D6;
  --leaf: #2f6e47;
  --leaf-l: #e3f1e6;
  --sky: #2b5f8a;
  --sky-l: #e2edf6;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 0 rgba(29, 21, 16, .04), 0 10px 30px -14px rgba(29, 21, 16, .22);
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--ant-d); text-underline-offset: 3px; }
a:hover { color: var(--ant); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 7vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* white text needs >= 4.5:1 → a deeper brand red for filled buttons (the logo keeps #E4472A) */
.btn-primary { background: #C73A20; color: #fff; box-shadow: 0 6px 0 -1px var(--ant-d); }
.btn-primary:hover { background: #B8341B; color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-honey { background: var(--honey); color: var(--ink); box-shadow: 0 6px 0 -1px var(--honey-d); }
.btn-honey:hover { background: #f7bb45; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: transparent; color: var(--ant-d); border-color: #f0c4b6; }
.btn-danger:hover { background: var(--ant-l); color: var(--ant-d); }
.btn-sm { min-height: 36px; padding: .45em .9em; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ant-d); font: inherit; cursor: pointer; text-decoration: underline; }

/* ── Badges & chips ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.s-pending_payment, .badge.s-pending { background: var(--honey-l); color: var(--honey-d); }
.badge.s-confirmed, .badge.s-paid { background: var(--leaf-l); color: var(--leaf); }
.badge.s-live { background: var(--ant); color: #fff; }
.badge.s-live::before { opacity: 1; animation: blink 1s infinite; }
.badge.s-completed { background: var(--sky-l); color: var(--sky); }
.badge.s-cancelled, .badge.s-failed { background: #efe9e3; color: #8a7c70; }
@keyframes blink { 50% { opacity: .2; } }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .35em .8em; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 700 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ant-d); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ── Site header ─────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 234, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand { flex: none; }
.brand-logo { display: block; height: 34px; width: auto; min-width: 118px; }
.brand-mini { display: none; width: 34px; height: 34px; }
@media (max-width: 480px) { .app-top .brand-logo { display: none; } .app-top .brand-mini { display: block; } }
@media (max-width: 380px) { .brand-logo { height: 30px; } }
.brand-icon { display: block; width: 100%; height: 100%; }
.brand b { font: 800 1.35rem/1 var(--f-display); letter-spacing: -.03em; }
.brand span { color: var(--ant); }
.nav-links { display: none; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; }
.nav-links a:hover, .nav-links a.is-on { color: var(--ant-d); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { min-height: 40px; padding: .55em 1em; font-size: .92rem; }
.nav-cta .hide-sm { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--line-2); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--ink); border-color: var(--ink); }
.menu[open] > summary svg { stroke: var(--bg); }
.menu-panel { position: absolute; right: 0; top: 50px; width: min(280px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; }
.menu-panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-panel a:hover { background: var(--sand); }
@media (min-width: 900px) {
  .nav-links { display: flex; gap: 26px; }
  .menu { display: none; }
  .nav-cta .hide-sm { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 28px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--ant); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--honey); z-index: -1; border-radius: 4px; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.hero-visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 70px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 50px; }
}

/* phone mock showing a live overlay */
.phone { position: relative; width: min(300px, 78vw); border-radius: 38px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -25px rgba(29, 21, 16, .55), inset 0 0 0 2px #3b2d23; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #000; z-index: 5; }
.phone .screen { border-radius: 30px; overflow: hidden; }
.hero-tag { position: absolute; z-index: 6; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; font-size: .82rem; font-weight: 700; line-height: 1.25; }
.hero-tag small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.hero-tag.t1 { left: -6px; top: 18%; }
.hero-tag.t2 { right: -8px; bottom: 22%; }
.hero-tag .wave { display: inline-flex; gap: 2px; align-items: end; height: 14px; margin-right: 6px; vertical-align: -2px; }
.hero-tag .wave i { width: 3px; background: var(--ant); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.hero-tag .wave i:nth-child(2) { animation-delay: -.2s; } .hero-tag .wave i:nth-child(3) { animation-delay: -.4s; } .hero-tag .wave i:nth-child(4) { animation-delay: -.6s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (min-width: 560px) { .hero-tag.t1 { left: 4%; } .hero-tag.t2 { right: 4%; } }

/* ant trail decoration */
.trail { width: 100%; height: auto; color: var(--ink); opacity: .9; }
.trail path.track { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .trail .ants { display: none; } .badge.s-live::before, .hero-tag .wave i { animation: none; } }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #eadfcb; }
.section.dark h2, .section.dark h3 { color: #fff8ec; }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: #bfae98; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section-head { margin-bottom: 44px; } }

/* strip of numbers */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.strip > div { background: var(--paper); padding: 18px 16px; min-width: 0; }
.strip b { display: block; font: 800 1.9rem/1 var(--f-display); letter-spacing: -.03em; color: var(--ant); }
.strip span { color: var(--muted); font-size: .9rem; font-weight: 600; line-height: 1.3; display: block; text-wrap: balance; }
/* 6 tiles: 2×3 phone, 3×2 tablet, one row of 6 on desktop — never an orphan tile or empty filler cell */
@media (min-width: 720px) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .strip { grid-template-columns: repeat(6, 1fr); } .strip > div { padding: 18px 14px; } }

/* how it works: ant-farm chambers joined by a tunnel */
.steps { position: relative; display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; border-left: 3px dotted var(--line-2); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step .n { width: 56px; height: 56px; border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%; background: var(--ink); color: var(--honey); display: grid; place-items: center; font: 800 1.35rem/1 var(--f-display); z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.section.alt .step .n { box-shadow: 0 0 0 6px var(--paper); }
.step .body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px; }
.section.alt .step .body { background: var(--bg); }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.step .who { display: inline-block; margin-top: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); }
.step .who.ai { color: var(--ant-d); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps::before { left: 40px; right: 40px; top: 28px; bottom: auto; border-left: 0; border-top: 3px dotted var(--line-2); }
  .step { grid-template-columns: 1fr; }
}

/* demo video slot */
.demo { display: grid; gap: 28px; align-items: center; }
.demo-frame { position: relative; width: min(320px, 80vw); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 26px; overflow: hidden; background: repeating-linear-gradient(135deg, #2a201a 0 14px, #251c16 14px 28px); border: 8px solid var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; color: #d8c7ae; }
.demo-frame video { width: 100%; height: 100%; object-fit: cover; }
.demo-frame .play { width: 74px; height: 74px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 10px rgba(243, 174, 44, .18); }
.demo-frame .play svg { width: 28px; margin-left: 5px; fill: var(--ink); }
.demo-frame p { font-weight: 700; margin: 0; }
.demo-frame small { color: #9d8b76; }
.demo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.demo li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.demo li svg { width: 24px; height: 24px; color: var(--honey); margin-top: 2px; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; gap: 60px; } }

/* voice gallery */
.voice-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.voice { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.voice:hover { border-color: var(--line-2); }
.voice.is-playing { border-color: var(--ant); box-shadow: 0 0 0 3px var(--ant-l); }
.voice .play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
.voice .play:hover { background: var(--ant); }
.voice.is-playing .play { background: var(--ant); }
.voice .play svg { width: 16px; height: 16px; fill: currentColor; }
.voice .play .i-stop { display: none; }
.voice.is-playing .play .i-play { display: none; }
.voice.is-playing .play .i-stop { display: block; }
.voice b { display: block; font-weight: 700; line-height: 1.2; }
.voice .meta { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.voice .g { display: inline-block; font-size: .68rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.voice .g.P { background: var(--ant-l); color: var(--ant-d); }
.voice .g.L { background: var(--sky-l); color: var(--sky); }
.voice .prog { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--sand); overflow: hidden; display: none; }
.voice.is-playing .prog { display: block; }
.voice .prog i { display: block; height: 100%; width: 0; background: var(--ant); }
label.voice { cursor: pointer; }
label.voice input { position: absolute; opacity: 0; pointer-events: none; }
label.voice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
label.voice { position: relative; padding-right: 40px; }
label.voice:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; }
label.voice b { overflow-wrap: anywhere; }

/* pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px 20px; }
.plan.is-featured { background: var(--ink); color: #eadfcb; border-color: var(--ink); }
.plan.is-featured h3, .plan.is-featured .price { color: #fff8ec; }
.plan .ribbon { position: absolute; top: -12px; left: 20px; background: var(--honey); color: var(--ink); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.plan h3 { margin-bottom: 4px; }
.plan .tag { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.plan.is-featured .tag { color: #bfae98; }
.plan .price { font: 800 2.6rem/1 var(--f-display); letter-spacing: -.04em; }
.plan .price small { font-size: .95rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.plan.is-featured .price small { color: #bfae98; }
.plan .per { font-size: .85rem; font-weight: 700; color: var(--leaf); margin-top: 6px; }
.plan.is-featured .per { color: var(--honey); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: .95rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: ""; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--ant); box-shadow: 13px 0 0 -2px transparent; }
.plan.is-featured li::before { background: var(--honey); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 700 1.4rem/1 var(--f-display); color: var(--ant); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: var(--ant); color: #fff; padding: 36px 22px; }
.cta-band h2 { color: #fff; max-width: 16em; }
.cta-band p { color: #ffe2d7; max-width: 34em; }
.cta-band .btn-honey { box-shadow: 0 6px 0 -1px #7a2410; }
.cta-band .trail { position: absolute; left: 0; right: 0; bottom: -6px; opacity: .35; color: #fff; }
.cta-band .trail path.track { stroke: #fff; }
@media (min-width: 900px) { .cta-band { padding: 60px 56px; } }

/* page header for inner pages */
.page-head { padding: 34px 0 10px; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* footer */
.site-foot { margin-top: 40px; padding: 40px 0 28px; border-top: 1px solid var(--line); background: var(--paper); font-size: .93rem; }
.foot-grid { display: grid; gap: 26px; }
.foot-grid h4, .foot-grid .foot-h { font: 700 .8rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ant); }
.foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ── Forms ───────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.hint { font-size: .82rem; color: var(--muted); }
.error, .field .err { font-size: .84rem; color: var(--ant-d); font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink); font: 500 1rem/1.4 var(--f-body);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 174, 44, .35); }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--ant); }
input[type=color] { width: 56px; height: 46px; padding: 4px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; }
input[type=file] { font: 500 .9rem var(--f-body); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ant); flex: none; }
.row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: repeat(3, 1fr); } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line-2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--sand); font-weight: 700; color: var(--muted); }
.input-prefix input { border-radius: 0 var(--r) var(--r) 0; }

/* auth card */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding: 28px 16px 60px; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px 20px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: .93rem; }
@media (min-width: 500px) { .auth-card { padding: 34px 32px; } .auth-wrap { place-items: center; } }

/* flash messages */
.flash { display: block; padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }   /* block: text + link flow as one paragraph (flex squeezed them into columns on phones) */
.flash > a { font-weight: 700; }
.flash.ok { background: var(--leaf-l); color: var(--leaf); }
.flash.err { background: var(--ant-l); color: var(--ant-d); }
.flash.info { background: var(--honey-l); color: #7a5004; }
.flash ul { margin: 0; padding-left: 18px; }

/* ── App shell (dashboard + admin) ───────────────────────── */
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.app-top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.app-top .bar { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 10px; }
.app-top .who { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.app-top .who .nm { display: none; }
@media (min-width: 640px) { .app-top .who .nm { display: inline; } }
.app-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-top: 1px solid var(--line); scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.app-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.app-nav a:hover { background: var(--sand); color: var(--ink); }
.app-nav a.is-on { background: var(--ink); color: var(--bg); }
.app-nav .sep { flex: none; width: 1px; background: var(--line); margin: 4px 6px; }
.app-body { padding: 22px 0 60px; min-width: 0; }
.app-main { min-width: 0; }
@media (min-width: 1000px) {
  .app { grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; }
  .app-top { grid-column: 1 / -1; }
  .app-top .container { max-width: none; }
  .app-nav { position: sticky; top: 58px; align-self: start; flex-direction: column; overflow: visible; border-top: 0; border-right: 1px solid var(--line); height: calc(100vh - 58px); padding: 18px 14px; background: var(--paper); }
  .app-nav .sep { width: auto; height: 1px; margin: 8px 4px; }
  .app-nav .nav-label { display: block; }
  .app-body { padding: 30px 0 80px; }
  .app-body .container { max-width: 2400px; margin: 0; padding: 0 32px; }   /* dashboard/admin: fluid, full width */
}
.nav-label { display: none; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 2px; }

.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-title h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--muted); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.2rem; margin-bottom: 12px; letter-spacing: -.01em; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
@media (min-width: 640px) { .card { padding: 22px 24px; } }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.side { grid-template-columns: 1.4fr 1fr; } }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 2px dashed var(--line-2); border-radius: var(--r-lg); }
.empty svg { width: 54px; margin: 0 auto 10px; color: var(--line-2); }
.empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.stat span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font: 800 1.8rem/1.1 var(--f-display); letter-spacing: -.03em; margin-top: 6px; }
.stat.hot { background: var(--ink); border-color: var(--ink); }
.stat.hot span { color: #bfae98; } .stat.hot b { color: var(--honey); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li a { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--bg); }
.checklist li a:hover { border-color: var(--line-2); }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--line-2); display: grid; place-items: center; }
.checklist .done .tick { background: var(--leaf); border: 0; color: #fff; }
.checklist .done a { color: var(--muted); }
.checklist .done .tick svg { width: 14px; stroke: #fff; stroke-width: 3; fill: none; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select, .inline-form input { min-height: 36px; padding: 5px 10px; font-size: .88rem; width: auto; }

/* lists of items as cards (mobile friendly) */
.items { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.item .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--sand); object-fit: cover; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.item h3 { font-size: 1.05rem; margin: 0 0 2px; }
.item .meta { color: var(--muted); font-size: .88rem; }
.item .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 700px) { .item { grid-template-columns: 64px 1fr auto; } .item .actions { grid-column: auto; } }
.price-now { font-weight: 800; color: var(--ant-d); }
.price-old { text-decoration: line-through; color: var(--muted); margin-left: 6px; font-size: .9em; }

/* booking list */
.bk { display: grid; grid-template-columns: 70px 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; align-items: center; }
.bk .date { text-align: center; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 8px 4px; line-height: 1.1; }
.bk .date b { display: block; font: 800 1.6rem/1 var(--f-display); }
.bk .date span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ant-d); }
.bk .date small { display: block; font-size: .72rem; color: var(--muted); }
.bk h3 { font-size: 1.05rem; margin: 0 0 4px; }
.bk .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--muted); }
.bk .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 760px) { .bk { grid-template-columns: 70px 1fr auto; } .bk .actions { grid-column: auto; } }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }

/* booking wizard */
.wizard-step { position: relative; }
.wizard-step > h2 { display: flex; align-items: center; gap: 10px; }
.wizard-step > h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--honey); display: grid; place-items: center; font-size: .95rem; flex: none; }
.options { display: grid; gap: 10px; }
@media (min-width: 640px) { .options.two { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { display: block; height: 100%; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.opt .box b { display: block; }
.opt .box .muted { font-size: .88rem; }
.opt .box .pr { float: right; font-weight: 800; color: var(--ant-d); }
.opt input:checked + .box { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); background: var(--honey-l); }
.opt input:focus-visible + .box { outline: 3px solid var(--honey); }
.opt input:disabled + .box { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sand); gap: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:disabled + span { opacity: .4; }

.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font: 800 1.1rem/1 var(--f-display); text-transform: capitalize; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-size: 1.1rem; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: .7rem; font-weight: 800; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid transparent; background: #fff; display: grid; place-items: center; align-content: center; gap: 2px; font-weight: 700; cursor: pointer; font-size: .95rem; padding: 0; color: var(--ink); }
.cal-day i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.cal-day.few i { background: var(--honey); }
.cal-day.full { color: #b8a998; cursor: not-allowed; background: transparent; text-decoration: line-through; }
.cal-day.full i { background: #d8cbbb; }
.cal-day.off { visibility: hidden; }
.cal-day.na { color: #cbbfb2; cursor: not-allowed; background: transparent; }
.cal-day.na i { display: none; }
.cal-day.sel { background: var(--ink); color: var(--bg); }
.cal-day.in-series { background: var(--honey-l); border-color: var(--honey); }
.cal-day:not(.full):not(.na):not(.sel):hover { border-color: var(--ink); }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.slot { border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; padding: 10px 6px; text-align: center; cursor: pointer; font: 700 1rem/1.1 var(--f-body); color: var(--ink); }
.slot small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.slot.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot.sel small { color: #d9c8ad; }
.slot:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.series-note { margin-top: 12px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.picked span { font-size: .8rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--leaf-l); color: var(--leaf); }
.picked span.bad { background: var(--ant-l); color: var(--ant-d); text-decoration: line-through; }

.prod-pick { display: grid; gap: 8px; }
.prod-pick label { display: grid; grid-template-columns: auto 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.prod-pick label:has(input:checked) { border-color: var(--ink); background: var(--honey-l); }
.prod-pick input { width: 20px; height: 20px; accent-color: var(--ant); }
.prod-pick img, .prod-pick .ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--sand); }
.prod-pick .ord { min-width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--honey); font-weight: 800; font-size: .85rem; display: none; place-items: center; }
.prod-pick label:has(input:checked) .ord { display: grid; }

.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.av { cursor: pointer; display: block; }
.av input { position: absolute; opacity: 0; }
.av .box { display: block; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.av img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--sand); }
.av .cap { display: block; padding: 8px 10px; font-weight: 700; font-size: .92rem; }
.av .cap small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.av input:checked + .box { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
/* selected: thick border + a ✓ chip on the photo's top-right corner (same as layout / voice tiles; no text to translate or collide) */
.av .box { position: relative; }
.av input:checked + .box::after { content: "✓"; position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 0 0 2px #fff; }
.av .cap { overflow-wrap: anywhere; }

.sticky-bar { position: sticky; bottom: 0; z-index: 20; margin: 20px -16px 0; padding: 12px 16px; background: rgba(255, 253, 248, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sticky-bar .sum { font-size: .9rem; color: var(--muted); }
.sticky-bar .sum b { color: var(--ink); }
@media (min-width: 1000px) { .sticky-bar { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 18px; } }

/* image thumbs in product form */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs label { position: relative; width: 92px; cursor: pointer; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.thumbs .rm { display: flex; gap: 4px; align-items: center; font-size: .78rem; margin-top: 4px; color: var(--ant-d); font-weight: 600; }
.thumbs input:checked ~ img { opacity: .35; }

/* layout editor */
.editor { display: grid; gap: 20px; }
@media (min-width: 980px) { .editor { grid-template-columns: 1fr 340px; align-items: start; } .editor .preview-col { position: sticky; top: 80px; } }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-pick .box { padding: 10px; text-align: center; }
.tpl-pick .box b { font-size: .95rem; }
.tpl-pick .box small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.25; margin-top: 3px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.preview-col .phone { width: 100%; max-width: 320px; margin: 0 auto; }
.layouts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.layout-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.layout-card .ov-frame { border-radius: 14px; }
.layout-card h3 { font-size: 1rem; margin: 10px 0 2px; }
.layout-card .actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* overlay frame (scaled 1080x1920 stage) */
.ov-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #cbb89f; }
.ov-frame .ov-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ov-frame .ov-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, .25)); }

/* admin calendar */
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mcal .dow { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.mcal .d { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; font-size: .72rem; overflow: hidden; }
.mcal .d.out { background: transparent; border-style: dashed; }
.mcal .d.today { border-color: var(--ant); box-shadow: inset 0 0 0 1px var(--ant); }
.mcal .d > b { display: block; font-size: .8rem; margin-bottom: 2px; }
.mcal .ev { display: block; border-radius: 5px; padding: 1px 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--leaf-l); color: var(--leaf); font-weight: 600; }
.mcal .ev.s-pending_payment { background: var(--honey-l); color: var(--honey-d); }
.mcal .ev.s-live { background: var(--ant); color: #fff; }
.mcal .ev.s-completed { background: var(--sky-l); color: var(--sky); }
@media (min-width: 900px) { .mcal .d { min-height: 96px; font-size: .78rem; } }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .is-on span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .is-off span { opacity: .4; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: .94rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.notice { border: 2px dashed var(--honey); background: var(--honey-l); border-radius: var(--r-lg); padding: 16px 18px; color: #6a4503; }
.notice b { color: var(--ink); }
.pay-box { text-align: center; }
.pay-box .amt { font: 800 2.6rem/1 var(--f-display); letter-spacing: -.03em; margin: 8px 0 4px; }

/* ── Pricing v2: period toggle, Siang vs Malam groups, custom plan, hourly table ── */
.pricing-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pricing-top p { margin: 0; }
.pricing[data-period="mingguan"] .plan[data-period="bulanan"],
.pricing[data-period="bulanan"] .plan[data-period="mingguan"] { display: none; }
.band-groups { display: grid; gap: 18px; }
@media (min-width: 900px) { .band-groups { grid-template-columns: 1fr 1fr; } }
.band-group { border: 1px solid var(--line); border-radius: 26px; padding: 18px; background: var(--paper); }
.section.alt .band-group { background: var(--bg); }
.band-group.is-premium { background: linear-gradient(160deg, #241a14, #1d1510 60%); border-color: #3b2d23; color: #eadfcb; }
.band-group.is-premium h3 { color: #fff8ec; }
.band-group.is-premium .muted { color: #bfae98; }
.band-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.band-head h3 { margin: 0; font-size: 1.35rem; display: flex; gap: 8px; align-items: center; }
.band-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--honey-l); color: var(--honey-d); flex: none; }
.band-ico svg { width: 24px; height: 24px; }
.is-premium .band-ico { background: rgba(243, 174, 44, .16); color: var(--honey); }
.premium-tag { display: inline-block; font: 800 .68rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--honey); color: var(--ink); vertical-align: middle; }
.plans-2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .plans-2 { grid-template-columns: 1fr 1fr; } }
.plan h4 { font: 800 1.15rem/1.2 var(--f-display); margin: 0 0 2px; letter-spacing: -.01em; }
.band-group .plan { padding: 22px 18px 18px; }
.plan.is-premium { background: #2c211a; border-color: #4a3a2d; color: #eadfcb; }
.plan.is-premium h4, .plan.is-premium .price { color: #fff8ec; }
.plan.is-premium .tag, .plan.is-premium .price small { color: #bfae98; }
.plan.is-premium .per { color: var(--honey); }
.plan.is-premium li::before { background: var(--honey); }
.plan.is-premium.is-featured, .plan.is-featured.is-premium { background: #3a2b20; }
.plan-custom { margin-top: 18px; display: grid; gap: 16px; align-items: center; border: 2px dashed var(--line-2); border-radius: 26px; padding: 22px; background: var(--paper); }
.plan-custom h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan-custom p { margin: 0; }
.plan-custom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-custom li { font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--sand); }
@media (min-width: 900px) { .plan-custom { grid-template-columns: 1.1fr 1.4fr auto; } }
.hourly { margin-top: 28px; }
.hourly-head h3 { font-size: 1.5rem; margin-bottom: 4px; }
.rate-table td b { font: 800 1.2rem/1 var(--f-display); }
.rate-table tr.is-premium td:first-child b::after { content: " ★"; color: var(--honey-d); }
.rate-cards { display: none; }
@media (max-width: 640px) {
  .rate-table-wrap { display: none; }
  .rate-cards { display: grid; gap: 12px; }
  .rate-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
  .rate-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .rate-card-head b { font: 800 1.15rem/1.2 var(--f-display); }
  .rate-card-head .small { white-space: nowrap; }
  .rate-card.is-premium .rate-card-head b::after { content: " ★"; color: var(--honey-d); }
  .rate-card ul { list-style: none; margin: 0; padding: 0; }
  .rate-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
  .rate-card li:last-child { border-bottom: 0; padding-bottom: 0; }
  .rate-card li b { font: 800 1.15rem/1 var(--f-display); }
}

/* ── Use cases ── */
.usecases { display: grid; gap: 14px; }
@media (min-width: 860px) { .usecases { grid-template-columns: repeat(3, 1fr); } }
.usecase { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.usecase .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ant-l); color: var(--ant-d); margin-bottom: 14px; }
.usecase .ico svg { width: 26px; height: 26px; }
.usecase h3 { margin-bottom: 6px; }
.usecase p { color: var(--muted); margin: 0 0 12px; }
.usecase .modes { display: flex; flex-wrap: wrap; gap: 6px; }
.usecase .modes span { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sand); }
.modes-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mode-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; }
.mode-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.platforms span { font-size: .85rem; font-weight: 700; padding: 5px 12px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.platforms span small { font-weight: 600; color: var(--muted); }

/* ── Booking: session types, rotation, switches ── */
.type-panel { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.type-panel h3 { font-size: 1.05rem; margin-bottom: 10px; }
.rot-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.rot-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rot-row select { width: auto; min-width: 150px; }
.rot-row input { width: 90px; }
.controls { display: grid; gap: 10px; }
.ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 0; }
.ctl small { display: block; color: var(--muted); font-size: .8rem; }
.switch { position: relative; flex: none; width: 76px; height: 36px; border-radius: 999px; border: 0; background: #d9cdbd; cursor: pointer; padding: 0; }
.switch i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .15s; }
.switch em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 800 .72rem/1 var(--f-body); font-style: normal; color: #6e5e52; }
.switch.on { background: var(--leaf); }
.switch.on i { left: 44px; }
.switch.on em { right: auto; left: 10px; color: #fff; }

/* ── Admin: hours grid, tiers, matrix ── */
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.hour { cursor: pointer; }
.hour input { position: absolute; opacity: 0; }
.hour span { display: block; text-align: center; padding: 8px 0; border-radius: 10px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: .9rem; background: #fff; color: #b1a192; text-decoration: line-through; }
.hour input:checked + span { background: var(--leaf-l); border-color: var(--leaf); color: var(--leaf); text-decoration: none; }
.hour input:focus-visible + span { outline: 3px solid var(--honey); }
.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.tier { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tier label { font-size: .85rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.tier input { min-height: 38px; padding: 6px 8px; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; min-width: 220px; }
.plan.is-featured h4 { color: #fff8ec; }
.band-group .plan .price { font-size: clamp(1.9rem, 3.2vw, 2.3rem); white-space: nowrap; }
.band-group .plan .price small { font-size: .85rem; }
.table th.num { text-align: right; }

/* language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font: 700 .82rem/1 var(--f-body); color: var(--line-2); }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 5px; border-radius: 8px; }
.lang-switch a:hover { color: var(--ink); background: var(--sand); }
.lang-switch a.is-on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ant); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hours-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.ov-frame .ov-bg { object-position: 50% 22%; }
.av img { object-position: top; }
@media (max-width: 559px) {
  .nav-cta > .lang-switch { display: none; }
  .app-top .who { gap: 6px; }
  .app-top .who .lang-switch { font-size: .75rem; }
}
.menu-lang { padding: 8px 12px; border-top: 1px dashed var(--line); margin-top: 4px; }

/* Google sign-in (brand guidelines: white, #747775 outline, #1F1F1F text, standard G) */
.gsi-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid #747775; border-radius: 999px; background: #fff; color: #1f1f1f; font: 500 15px/1 "Roboto", var(--f-body); text-decoration: none; transition: background .15s, box-shadow .15s; }
.gsi-btn:hover { background: #f8f9fa; color: #1f1f1f; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.gsi-btn:focus-visible { outline: 3px solid #4285f4; outline-offset: 2px; }
.gsi-g { width: 20px; height: 20px; flex: none; }
.card .gsi-btn { width: auto; display: inline-flex; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-linked { display: flex; gap: 12px; align-items: center; }
.google-linked img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* impersonation banner */
.imp-banner { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 16px; background: repeating-linear-gradient(135deg, #7a1f0c 0 14px, #8e2610 14px 28px); color: #fff; font-weight: 600; font-size: .92rem; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.imp-banner b { color: var(--honey); }
.imp-banner form { margin: 0; }
.imp-banner button { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--honey); color: var(--ink); font: 800 .85rem/1 var(--f-body); cursor: pointer; }
.imp-banner button:hover { background: #fff; }
.imp-banner ~ .site-head, .imp-banner ~ .app .app-top { top: 44px; }
@media (max-width: 559px) { .imp-banner ~ .site-head, .imp-banner ~ .app .app-top { top: 72px; } }

/* custom avatars */
.guide ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .93rem; }
.guide .do li::before { content: "✓ "; color: var(--leaf); font-weight: 800; }
.guide .dont li::before { content: "✕ "; color: var(--ant-d); font-weight: 800; }
.consents { display: grid; gap: 10px; margin-top: 6px; }
.review-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .review-grid { grid-template-columns: 300px 1fr; } }
.review-img img { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: var(--sand); }
.review-actions { display: grid; gap: 12px; margin-top: 16px; }
.review-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.reject-form select, .reject-form input { width: auto; min-width: 200px; flex: 1; }

/* product form guidance, uploader, preview */
.guide-note { margin: 4px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.guide-note b { color: var(--ink-2); }
.guide-note .warn { color: var(--ant-d); }
.guide-list { margin: 0 0 12px; padding-left: 18px; font-size: .88rem; color: var(--ink-2); display: grid; gap: 3px; }
.faq-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.faq-row { display: grid; gap: 6px; }
@media (min-width: 640px) { .faq-row { grid-template-columns: 1fr 1.3fr; } }
.uploader .up-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.up-item { position: relative; width: 110px; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: grab; }
.up-item.is-main { border-color: var(--ant); }
.up-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.up-main { position: absolute; top: 6px; left: 6px; background: var(--ant); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.up-tools { display: flex; justify-content: space-between; padding: 4px; background: var(--bg); }
.up-tools button { border: 0; background: #fff; border-radius: 8px; width: 30px; height: 26px; cursor: pointer; font-weight: 800; }
.up-tools button:disabled { opacity: .3; cursor: default; }
.up-drop { display: grid; place-items: center; text-align: center; gap: 4px; padding: 22px 14px; border: 2px dashed var(--line-2); border-radius: 16px; background: #fff; cursor: pointer; }
.up-drop.is-over { border-color: var(--ant); background: var(--ant-l); }
.up-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.up-drop span { font-size: .84rem; color: var(--muted); }
.bar-frame { aspect-ratio: 1080 / 230; border-radius: 14px; background: linear-gradient(135deg, #f3c6d2, #e9b8a0); }
.meter { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--honey); transition: width .25s; }
.meter i.full { background: var(--leaf); }
.up-drop { position: relative; }

/* website chatbot */
.chatw { position: fixed; right: 16px; bottom: 16px; z-index: 70; font-family: var(--f-body); }
.chatw--raised { bottom: 92px; }
@media (min-width: 1000px) { .chatw { right: 24px; bottom: 24px; } .chatw.chatw--raised { bottom: 104px; right: 24px; } }
.chatw-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 16px 12px 14px; background: var(--ink); color: var(--bg); font: 700 .95rem/1 var(--f-body); cursor: pointer; box-shadow: 0 10px 28px -8px rgba(29,21,16,.55); }
.chatw-fab svg { width: 22px; height: 22px; fill: var(--honey); }
.chatw-fab:hover { background: var(--ant); }
.chatw.is-open .chatw-fab { display: none; }
@media (max-width: 559px) { .chatw-fab span { display: none; } .chatw-fab { padding: 14px; } }
.chatw-panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px -18px rgba(29,21,16,.45); overflow: hidden; }
.chatw-panel[hidden] { display: none; }
.chatw-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--ink); color: var(--bg); }
.chatw-panel header small { display: block; font-size: .72rem; color: #bfae98; font-weight: 500; }
.chatw-panel header div { flex: 1; min-width: 0; line-height: 1.25; }
.chatw-ava svg, .chatw-ava img { width: 32px; height: 32px; display: block; }
.chatw-panel header button { border: 0; background: transparent; color: var(--bg); font-size: 1.1rem; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; }
.chatw-panel header button:hover { background: rgba(255,255,255,.1); }
.chatw-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chatw-log .msg { max-width: 85%; padding: 9px 12px; border-radius: 16px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chatw-log .bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chatw-log .user { align-self: flex-end; background: var(--ant); color: #fff; border-bottom-right-radius: 4px; }
.chatw-log .err { background: var(--ant-l); color: var(--ant-d); border-color: #f0c4b6; }
.chatw-log .typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.chatw-log .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatdot 1.2s infinite ease-in-out; }
.chatw-log .typing i:nth-child(2) { animation-delay: .15s; } .chatw-log .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chatw-log .typing i { animation: none; } }
.chatw-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--bg); }
.chatw-chips[hidden] { display: none; }
.chatw-chips .chip { font-size: .8rem; padding: .3em .7em; }
.chatw-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chatw-form textarea { min-height: 42px; max-height: 110px; resize: none; padding: 9px 12px; font-size: .95rem; }
.chatw-form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--ant); cursor: pointer; display: grid; place-items: center; }
.chatw-form button svg { width: 20px; fill: #fff; }
.chatw-staff { display: block; text-align: center; padding: 8px; font-size: .82rem; font-weight: 700; border-top: 1px dashed var(--line); text-decoration: none; }

/* AI assist */
.ai-panel { border: 2px solid var(--honey); background: linear-gradient(180deg, var(--honey-l), var(--paper) 60%); }
.ai-inline { margin-top: 8px; }
.ai-filled { border-color: var(--honey) !important; box-shadow: 0 0 0 3px rgba(243, 174, 44, .35) !important; background: #fffbf0 !important; }
.ai-tag { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 800; color: var(--honey-d); background: var(--honey-l); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.soft-warn { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--honey-l); color: #7a5004; font-size: .84rem; font-weight: 600; }
.btn.is-busy { opacity: .75; cursor: progress; }
.transcript { display: grid; gap: 10px; }
.t-msg { max-width: 80%; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; }
.t-msg.t-user { justify-self: end; background: var(--ant-l); }
.t-msg.t-failed { opacity: .6; font-style: italic; }
.t-meta { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
[hidden] { display: none !important; }
.ai-inline { justify-self: start; width: auto; }

/* import from link */
.import-box { background: var(--paper); border: 1px dashed var(--honey); border-radius: 14px; padding: 12px; }
.import-row { display: flex; gap: 8px; }
.import-row input { flex: 1; min-width: 0; }
.imp-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.imp-img { width: 120px; font-size: .8rem; }
.imp-img img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); display: block; background: #fff; }
.imp-img.is-on img { border-color: var(--ant); }
.imp-img label { display: flex; gap: 6px; align-items: center; margin-top: 4px; cursor: pointer; }
.imp-img .soft-warn { margin: 2px 0 0; font-size: .75rem; }
.up-item .up-src { position: absolute; left: 4px; bottom: 30px; background: rgba(0,0,0,.6); color: #fff; font-size: .65rem; padding: 1px 6px; border-radius: 6px; }

/* ── booking review ("Semak & Pratonton") ── */
.is-review .wizard-step:not(#step-7) { display: none; }
.rv-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .rv-grid { grid-template-columns: minmax(260px, 340px) 1fr; align-items: start; } .rv-preview { position: sticky; top: 16px; } }
.rv-center { text-align: center; margin: 6px 0 0; }
.rv-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.rv-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.rv-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.phone { width: min(300px, 78vw); margin: 0 auto; padding: 10px; border-radius: 38px; background: #1b1418; box-shadow: var(--shadow); }
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #cbb89f; }
.phone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.phone-ov { position: absolute; inset: 0; overflow: hidden; }
.phone-ov iframe { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; color-scheme: normal; }
.rv-cycle { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: .88rem; }
.rv-cycle span { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-side { display: grid; gap: 14px; min-width: 0; }
.rv-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--paper); }
.rv-card h3 { margin: 0 0 10px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-edit { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.rv-host { display: flex; gap: 12px; align-items: center; }
.rv-host img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; }
.rv-voice { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; margin-top: 4px; }
.rv-timeline { display: flex; border-radius: 10px; overflow: hidden; font-size: .75rem; font-weight: 700; color: #fff; }
.rv-timeline span { padding: 6px 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.rv-timeline .t-jual { background: var(--ant); } .rv-timeline .t-kuiz { background: #3056D3; } .rv-timeline .t-sembang { background: #1F7A8C; } .rv-timeline .t-cerita { background: #7A4B9C; }
.rv-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: .8rem; }
.rv-flags span { padding: 4px 10px; border-radius: 999px; background: var(--sand); }
.rv-flags .on { background: var(--leaf-l); color: #1d5b33; } .rv-flags .off { background: #f1e6e0; color: var(--muted); }
.rv-lineup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.rv-lineup span { background: var(--sand); border-radius: 10px; padding: 4px 8px; }
.rv-lineup span b { color: var(--ant-d); } .rv-lineup em { font-style: normal; color: var(--muted); }
.rv-lineup i { font-style: normal; color: var(--muted); }
.rv-days { margin-top: 10px; font-size: .86rem; }
.rv-days summary { cursor: pointer; font-weight: 600; }
.rv-days ul { margin: 8px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; }
.rv-days li { margin-bottom: 4px; } .rv-days li.bad { color: var(--ant-d); } .rv-days li.cur { font-weight: 700; }
.rv-days li em { font-style: normal; font-size: .8rem; margin-left: 4px; }
.rv-bad { color: var(--ant-d); font-weight: 600; }
.rv-errors { border: 1px solid var(--ant); background: var(--ant-l); border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
.rv-errors ul { margin: 6px 0 0; padding-left: 18px; }
.rv-price { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rv-price td { padding: 5px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.rv-price td.num { text-align: right; white-space: nowrap; padding-left: 10px; }
.rv-price tr.total td { font-weight: 800; font-size: 1.05rem; border-bottom: 0; padding-top: 8px; }
.rv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rv-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.rv-checks li > span { flex: 1; min-width: 0; } .rv-checks small { display: block; color: var(--muted); }
.rv-checks i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; }
.rv-checks .ok i { background: var(--leaf-l); color: #1d5b33; }
.rv-checks .no i { background: var(--ant-l); color: var(--ant-d); } .rv-checks .no b { color: var(--ant-d); }
.rv-checks .warn i { background: var(--honey-l); color: var(--honey-d); } .rv-checks .warn { color: #7a5a12; }
.rv-actions { justify-content: space-between; }

/* ── product line-up + "Jadual produk" ── */
.pp-lineup, .pp-planner-box > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--paper); }
.pp-all { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; font-size: .88rem; }
.pp-all input { width: 80px; }
.pp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pp-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pp-row img, .pp-ph { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sand); }
.pp-handle { cursor: grab; touch-action: none; user-select: none; font-size: 1.1rem; color: var(--muted); padding: 4px 2px; }
.pp-l { color: var(--ant-d); width: 16px; }
.pp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.pp-num { display: flex; align-items: center; gap: 3px; } .pp-num input { width: 58px; padding: 6px; min-height: 34px; } .pp-num small { color: var(--muted); }
.pp-btns { display: flex; gap: 2px; } .pp-btns button, .pp-x { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; min-width: 30px; min-height: 30px; cursor: pointer; font-size: .75rem; }
.pp-btns button:disabled, .pp-x:disabled { opacity: .35; cursor: default; }
.pp-sum { margin: 8px 0 0; font-size: .85rem; font-weight: 600; color: var(--ink); }
.pp-add { margin-top: 8px; }
.pp-dragging { opacity: .4; }
.pp-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; box-shadow: var(--shadow); background: #fff; border-radius: 12px; }
.pp-over { outline: 2px dashed var(--ant); outline-offset: 2px; background: var(--ant-l) !important; }
.pp-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pp-panel { border: 1px dashed var(--honey); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--honey-l); }
.pp-set { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border-radius: 10px; margin-bottom: 6px; background: #fff; }
.pp-week { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; font-size: .88rem; }
.pp-palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .8rem; max-width: 100%; }
.pp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.pp-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pp-palette .pp-chip { cursor: grab; touch-action: none; user-select: none; }
.pp-chip.is-picked { border-color: var(--ant); background: var(--ant-l); }
.pp-chip.is-def { opacity: .6; }
.pp-chip .pp-x { min-width: 22px; min-height: 22px; border-radius: 50%; padding: 0; }
.pp-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-day { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.pp-day.is-custom { border-color: var(--leaf); }
.pp-day.is-locked { background: var(--sand); opacity: .75; }
.pp-dhd { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; } .pp-dhd em { font-style: normal; font-size: .78rem; }
.pp-dchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pp-dact { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pp-dact select { max-width: 200px; min-height: 34px; padding: 4px 8px; font-size: .82rem; }
.pp-copy { margin-top: 8px; padding: 8px; border-radius: 10px; background: var(--sand); display: grid; gap: 4px; font-size: .85rem; }

/* live product control */
.live-prod { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.lp-now { display: flex; gap: 10px; align-items: center; }
.lp-now img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.lp-now small { display: block; color: var(--muted); } .lp-now b { display: block; }
.lp-btns, .lp-goto { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-goto select { flex: 1; min-width: 160px; }
.pp-lineup, .pp-planner-box, .pp-planner-box > div { min-width: 0; max-width: 100%; }
.pp-mode.seg { flex-wrap: wrap; max-width: 100%; }
.pp-mode.seg label { flex: 1 1 auto; }
.pp-handle { padding: 8px 6px; margin: -6px -2px; font-size: 1.2rem; }
@media (max-width: 480px) { .pp-row { gap: 6px; padding: 6px; } .pp-row img, .pp-ph { width: 28px; height: 28px; } .pp-num input { width: 50px; } }

/* product scenes */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.scene { display: grid; gap: 4px; align-content: start; font-size: .88rem; }
.scene-img { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--sand); border: 1px solid var(--line); display: grid; place-items: center; }
.scene-img img { width: 100%; height: 100%; object-fit: contain; }
.scene.is-diluluskan .scene-img { border: 3px solid var(--leaf); }
.scene-ph { color: var(--muted); font-size: 1.4rem; }
.scene-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.spin { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ant); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge.s-menunggu, .badge.s-sedang_jana, .badge.s-sedang_diproses, .badge.s-memuat_naik { background: var(--honey-l); color: #7a5a12; }
.badge.s-siap, .badge.s-sedia_untuk_semakan { background: var(--sky-l); color: #1d4f7a; }
.badge.s-diluluskan, .badge.s-selesai { background: var(--leaf-l); color: #1d5b33; }
.badge.s-gagal, .badge.s-ditolak { background: var(--ant-l); color: var(--ant-d); }

/* learning videos */
.upbar { position: relative; height: 26px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 10px 0; }
.upbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ant); transition: width .3s; }
.upbar span { position: relative; display: block; text-align: center; font-size: .8rem; font-weight: 700; line-height: 26px; color: var(--ink); }
.lv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.lv-row:last-child { border-bottom: 0; }
.lv-row small { display: block; }
.lv-parts { display: grid; gap: 16px; }
.lv-frames { display: flex; gap: 10px; flex-wrap: wrap; }
.lv-frames img { width: 120px; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.lv-prod { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.lv-prod img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.lv-prod > div { flex: 1; min-width: 0; }
.lv-done { color: #1d5b33; font-weight: 700; font-size: .85rem; }
.pp-scene { max-width: 150px; min-height: 32px; padding: 4px 6px; font-size: .78rem; }
@media (max-width: 480px) { .pp-row { flex-wrap: wrap; } .pp-scene { order: 9; max-width: none; flex: 1 1 100%; } }
.sc-modal { position: fixed; inset: 0; z-index: 200; background: rgba(29,21,16,.55); display: grid; place-items: center; padding: 16px; }
.sc-box { background: var(--paper); border-radius: 20px; padding: 18px; width: min(560px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 10px; }
.sc-box h3 { margin: 0; }
.sc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-compare figure { margin: 0; }
.sc-compare img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); }
.sc-compare figure:first-child img { object-fit: contain; background: #fff; }
.sc-compare figcaption { font-size: .8rem; text-align: center; color: var(--muted); margin-top: 4px; }
.confirm-card { border: 2px solid var(--honey); background: var(--honey-l); }
.confirm-card.is-invalid { border-color: var(--ant); background: var(--ant-l); }
/* stream settings */
.stream-help { float: right; font-size: .82rem; font-weight: 700; }
.stream-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.stream-key { display: flex; gap: 8px; } .stream-key input { flex: 1; min-width: 0; }
.stream-ok { color: #1d5b33; font-weight: 600; } .stream-bad { color: var(--ant-d); font-weight: 600; }
/* RTMP guides */
.guide { max-width: 820px; }
.guide-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.guide-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .9rem; color: inherit; text-decoration: none; }
.guide-tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide-steps { padding-left: 22px; display: grid; gap: 18px; }
.guide-steps li::marker { font-weight: 800; color: var(--ant-d); }
.guide-steps p { margin: 0 0 8px; }
.guide-shot { margin: 0; }
.guide-shot img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.guide-ph { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); font-size: .85rem; background: var(--paper); }
.guide-list { padding-left: 20px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.guide-card { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.guide code { font-size: .85rem; background: var(--sand); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.guide-edit { display: grid; gap: 12px; }
.guide-edit-step { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.guide-edit-img { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.guide-edit-img img { width: 120px; border-radius: 8px; border: 1px solid var(--line); }
/* avatar availability */
.av.av-off .box { opacity: .45; filter: grayscale(.8); }
.av.av-off .cap small, .av.av-part .cap small { color: var(--ant-d); }
.av .cap small:empty { display: none; }
.av-suggest { margin: 0 0 8px; color: #1d5b33; font-weight: 600; }
.av-suggest.is-bad { color: var(--ant-d); }
.slot.av-busy { text-decoration: line-through; }
.av-conflicts { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--ant); border-radius: 12px; background: var(--ant-l); display: grid; gap: 6px; }
.av-conf-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .85rem; }
.av-conf-row select { min-height: 34px; padding: 4px 8px; max-width: 180px; }
.excl-addon { margin-top: 12px; border: 1px solid var(--honey); border-radius: 12px; padding: 10px 12px; background: var(--honey-l); }
.excl-addon summary { cursor: pointer; font-weight: 700; }
.av-sched th, .av-sched td { padding: 4px 3px; text-align: center; font-size: .72rem; min-width: 26px; }
.av-sched td:first-child, .av-sched th:first-child { text-align: left; min-width: 120px; font-size: .85rem; }
.av-sched td.used { background: var(--honey-l); } .av-sched td.full { background: var(--ant-l); }
.av-sched td a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
/* product photo angles */
.angle-note { margin: -4px 0 10px; font-weight: 600; color: #1d5b33; }
.angle-slots { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.angle-slots li { display: flex; gap: 8px; align-items: flex-start; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; font-size: .85rem; background: var(--paper); }
.angle-slots li small { display: block; color: var(--muted); font-size: .78rem; }
.angle-slots li > span:nth-child(2) { flex: 1; }
.as-ic { font-size: 1.2rem; line-height: 1; }
.as-ok { font-style: normal; font-weight: 800; color: var(--line); }
.angle-slots li.is-done { border-style: solid; border-color: var(--leaf); background: var(--leaf-l); }
.angle-slots li.is-done .as-ok { color: #1d5b33; }
.up-angle { position: absolute; left: 4px; right: 4px; bottom: 34px; min-height: 26px; padding: 2px 4px; font-size: .68rem; border-radius: 8px; background: rgba(255,255,255,.94); }
.up-item .up-src { bottom: 64px; }
.imp-img .up-angle { position: static; width: 100%; margin-top: 4px; }

/* lightbox */
[data-zoom] { cursor: zoom-in; }
.zoom-btn { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: .85rem; cursor: zoom-in; display: grid; place-items: center; padding: 0; }
.av .box { position: relative; }
.up-item .zoom-btn { top: 4px; right: 4px; width: 28px; height: 28px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(12,9,8,.94); touch-action: none; }
.lb[hidden] { display: none !important; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.lb-img { max-width: 94vw; max-height: 88vh; object-fit: contain; transform-origin: center center; transition: transform .15s ease-out; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lb.lb-zoomed .lb-img { cursor: grab; }
.lb.lb-still .lb-img { transition: none; }
.lb.lb-loading .lb-img { opacity: .4; }
.lb-btn { position: absolute; z-index: 2; border: 0; border-radius: 50%; width: 46px; height: 46px; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.28); outline: 2px solid #fff; }
.lb-close { top: 14px; right: 14px; font-size: 1.2rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .85rem; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .lb-img { transition: none; } }

/* ── Spacing system (consistent vertical rhythm) ───────────────────────── */
:root { --space-section: 32px; --space-card: 20px; --space-sub: 24px; }
@media (min-width: 900px) { :root { --space-section: 40px; } }
.card { padding: 20px; }
@media (min-width: 640px) { .card { padding: 24px; } }
.card + .card, .card + section.card, section.card + .card { margin-top: var(--space-card); }
.grid { gap: var(--space-card); }
/* major blocks directly inside the page get the section rhythm */
.app-main > * + *:not(script):not(.page-title) { margin-top: var(--space-section); }
.app-main > .page-title + *, .app-main > .flash + * { margin-top: 0; }
.app-main > .flash + .flash { margin-top: 10px; }
.wizard-step + .wizard-step { margin-top: 28px; }
/* sub-sections inside a card: hairline + breathing room */
.card > h2:not(:first-child), .card > h3:not(:first-child) { margin-top: var(--space-sub); padding-top: var(--space-sub); border-top: 1px solid var(--line); }
.card > .guide-list, .card > .angle-slots { margin-bottom: 16px; }
/* form footer: its own area with a divider; right-aligned on desktop, stacked full-width on mobile */
.form-actions.form-footer { margin-top: var(--space-sub); padding-top: 20px; border-top: 1px solid var(--line); justify-content: flex-end; align-items: center; }
.card > .form-actions.form-footer:last-child { margin-bottom: 0; }
@media (max-width: 639px) {
  .form-actions.form-footer { flex-direction: column; align-items: stretch; }
  .form-actions.form-footer > .btn, .form-actions.form-footer > a.btn, .form-actions.form-footer > form > .btn { width: 100%; justify-content: center; }
  .form-actions.form-footer.is-sticky { position: sticky; bottom: 0; z-index: 15; margin-left: -16px; margin-right: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .96); backdrop-filter: blur(8px); box-shadow: 0 -6px 18px -12px rgba(29, 21, 16, .35); }
}
/* consent block breathing room */
.confirm-card { margin-top: var(--space-sub); }
.consents { margin-top: 12px; margin-bottom: 8px; }
/* independent sections after a form */
.section-standalone, form + .card, form + section.card { margin-top: var(--space-section); }
.section-divider { display: flex; align-items: center; gap: 12px; margin: 48px 0 16px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2, var(--line)); }
.section-divider + .section-standalone { margin-top: 0; }
/* validation / notices never flush against controls */
.notice, .flash.err, .rv-errors { margin-top: 12px; margin-bottom: 16px; }
.card > .notice:first-child, .card > .flash:first-child { margin-top: 0; }
.field .error, .field .soft-warn { margin-top: 4px; }
.soft-warn + .soft-warn { margin-top: 8px; }
/* side-by-side two-column pages: columns stack cards with the same rhythm */
.grid > div > .card + .card { margin-top: var(--space-card); }
.confirm-card.is-invalid { box-shadow: 0 0 0 3px rgba(214, 64, 32, .25); }
@media (max-width: 639px) {
  .form-actions.form-footer.is-sticky { flex-direction: row; }
  .form-actions.form-footer.is-sticky > .btn:first-child { flex: 1; }
  .form-actions.form-footer.is-sticky > .btn { width: auto; }
}
/* scene picker (booking) */
.sp-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; display: grid; gap: 10px; }
.sp-card + .sp-card { margin-top: 14px; }
.sp-head { display: flex; gap: 10px; align-items: center; }
.sp-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.sp-head small { display: block; color: var(--muted); }
.sp-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sp-opt { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: start; border: 2px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; background: var(--paper); }
.sp-opt input { position: absolute; opacity: 0; }
.sp-opt.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.sp-media img, .sp-none { width: 56px; height: 84px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--sand); font-size: 1.4rem; }
.sp-txt { display: grid; gap: 4px; font-size: .84rem; } .sp-txt small { color: var(--muted); }
.sp-gen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sp-gen select { max-width: 220px; min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.sp-pending { color: #7a5a12; }
/* layout library */
.lay-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lay-tabs a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; color: inherit; text-decoration: none; }
.lay-tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lay-tabs a.is-on .muted { color: rgba(255,255,255,.7); }
.lib-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lib-filters select { max-width: 240px; }
.layout-card[hidden] { display: none; }
.quick-preview .ov-frame { max-width: 360px; margin: 0 auto; border-radius: 18px; }
@media (min-width: 900px) { .quick-grid { grid-template-columns: 1fr 380px; } .quick-preview { position: sticky; top: 16px; } }
/* wizard layout picker */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 10px; }
.lp-card { display: grid; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; text-align: left; font: inherit; position: relative; }
.lp-card.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.lp-frame { border-radius: 10px; display: block; }
.lp-default { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); font-size: .8rem; }
.lp-name { font-size: .75rem; font-weight: 700; line-height: 1.2; }
.lp-sug { position: absolute; top: 10px; left: 10px; background: var(--honey); color: var(--ink); font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
/* scene actions + theme swatches */
.sp-gen-box { border-top: 1px dashed var(--line); padding-top: 10px; }
.sp-gen-box summary { cursor: pointer; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.sp-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sp-act { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: .8rem; }
.sp-act input { position: absolute; opacity: 0; }
.sp-act-ic { font-size: 1.4rem; line-height: 1; }
.sp-act-t { font-weight: 700; } .sp-act-t em { font-style: normal; color: #1d5b33; }
.sp-act small { color: var(--muted); font-size: .68rem; line-height: 1.2; }
.sp-act.is-sugg { border-color: var(--honey); }
.sp-act.is-dim { opacity: .5; }
.sp-act.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); opacity: 1; background: var(--honey-l); }
.sp-themes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scroll-snap-type: x proximity; }
.sp-theme { flex: 0 0 84px; display: grid; gap: 4px; justify-items: center; text-align: center; font-size: .68rem; font-weight: 600; cursor: pointer; scroll-snap-align: start; }
.sp-theme input { position: absolute; opacity: 0; }
.sp-sw { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; border: 2px solid var(--line); }
.sp-theme.is-on .sp-sw { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.sp-card, .sp-card > *, .sp-gen-box, [data-scene-picker] { min-width: 0; max-width: 100%; }
.sp-themes { max-width: 100%; }
.sp-theme, .sp-opt { position: relative; }
.ip-note { border: 1px solid var(--line); border-left: 4px solid var(--ant); background: var(--paper); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.ip-note p { margin: 4px 0 0; }
.ip-warn { margin: 0 0 16px; }
.mod-form { display: grid; gap: 6px; min-width: 200px; }
.mod-form select, .mod-form input { min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.help-sections { display: grid; gap: 14px; }
.help-sections .card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.help-sections .card p { margin: 0; }

/* "Kod diskaun" (review step + payment page) */
.dc-box { margin-top: 12px; }
.dc-box label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.dc-row { display: flex; gap: 8px; }
.dc-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.dc-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.rv-price tr.rv-disc td, .kv .rv-disc { color: var(--ok, #1f7a4d); font-weight: 600; }

/* avatar review: look-alike comparison */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0; }
.sim-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.sim-grid figure.is-hit { border-color: var(--danger, #c0392b); box-shadow: 0 0 0 2px rgba(192, 57, 43, .25); }
.sim-grid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; cursor: zoom-in; }
.sim-grid figcaption { font-size: .75rem; padding: 6px 8px; line-height: 1.35; }
.gen-match-thumb { width: 36px; height: 64px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-left: 4px; }
.fg-pair { padding: 12px 0; border-top: 1px solid var(--line); }
.fg-pair:first-of-type { border-top: 0; }
.fg-grid { grid-template-columns: repeat(2, minmax(0, 220px)); }
.fg-pair .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* payment page: summary, discount block, pay CTA */
.pay-summary { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; }
.pay-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.pay-summary dt, .pay-summary dd { margin: 0; font-size: .92rem; }
.pay-summary dd { text-align: right; white-space: nowrap; }
.pay-summary .tot { font-weight: 700; font-size: 1rem; padding-top: 6px; border-top: 1px dashed var(--line); }
.pay-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; }
.pay-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.dc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--sand); font-weight: 700; letter-spacing: .03em; }
.pay-cta { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.pay-methods span { font-size: .72rem; font-weight: 700; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); background: var(--paper); }
.pay-box .hint { margin-top: 10px; }
@media (max-width: 640px) {
  .pay-cta { position: sticky; bottom: 0; z-index: 20; margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .97); backdrop-filter: blur(8px); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); }
  .pay-cta .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
}

/* card action footer (booking cards): policy note above, one aligned row of actions */
.kv { grid-template-columns: minmax(110px, 140px) 1fr; align-items: baseline; }
.kv-note { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.card-actions { margin-top: var(--space-sub, 18px); padding-top: 16px; border-top: 1px solid var(--line); }
.info-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-row > form { margin: 0; }
.btn-danger-text { color: var(--danger, #c0392b); border-color: rgba(192, 57, 43, .35); }
@media (max-width: 640px) {
  .actions-row { flex-direction: column; align-items: stretch; }
  .actions-row > .btn, .actions-row > form, .actions-row > form > .btn { width: 100%; justify-content: center; }
}
.actions-row > .btn-primary { margin-right: auto; }
@media (min-width: 641px) { .actions-row { flex-wrap: nowrap; } .actions-row .btn { white-space: nowrap; } }

/* saved stream key: "••••ubVu ✓ Tersimpan  [Tunjuk] [Tukar key]" */
.key-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.key-saved .mono { font-size: .95rem; word-break: break-all; }
.key-ok { font-size: .8rem; font-weight: 700; color: var(--ok, #1f7a4d); }
.key-btns { display: flex; gap: 8px; margin-left: auto; }

/* pre-payment previews */
.pv-actions { display: block; margin-top: 12px; }
.pv-dialog { border: 0; border-radius: 18px; padding: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); color: var(--ink); }
.pv-dialog::backdrop { background: rgba(20, 14, 10, .55); }
.pv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pv-phone { position: relative; width: min(270px, 70vw); aspect-ratio: 9 / 16; margin: 0 auto 10px; border-radius: 26px; border: 8px solid #1d1510; background: #000; overflow: hidden; display: grid; place-items: center; }
.pv-phone video { width: 100%; height: 100%; object-fit: cover; }
.pv-msg { color: #fff; font-size: .85rem; text-align: center; padding: 0 12px; }
.pv-dialog > .pv-msg { color: var(--ink); text-align: left; padding: 0; }
.pv-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0; }
.pv-steps li { font-size: .75rem; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pv-steps li.on { border-color: var(--brand, #e8590c); color: var(--ink); font-weight: 700; }
.pv-steps li.done { background: var(--sand); color: var(--ink); }
.rv-clips { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 10px 0; }
.rv-clips > b { width: 100%; }
.rv-clips video { width: 150px; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; }
.pv-actions > .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 640px) { .pv-actions > .btn { width: 100%; justify-content: center; } }
.pv-head { gap: 10px; }
.pv-head b { flex: 1; }
.pv-head .btn { flex: none; }
.app-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; line-height: 1.6; }
.badge.s-preparing { background: #fff3d6; color: #8a5a00; }
.badge.s-preparing::before { opacity: 1; animation: blink 1.6s infinite; }
.pron-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 6px; align-items: center; }
@media (max-width: 640px) { .pron-row { grid-template-columns: 1fr 1fr; } }

/* preview progress bars */
.pv-bar { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 10px 0 4px; }
.pv-bar > i { display: block; height: 100%; width: 2%; border-radius: inherit; background: linear-gradient(90deg, var(--ant), #f08a4b); transition: width .9s linear; }
.pv-prow { margin-top: 10px; }
.pv-bar.is-ok > i { background: var(--ok, #1f7a4d); }
.pv-bar.is-err > i { background: var(--danger, #c0392b); }
.pv-bar.is-ind > i { width: 100% !important; background: repeating-linear-gradient(-45deg, var(--brand, #d6401f) 0 10px, #f0a489 10px 20px); background-size: 28px 28px; animation: pv-stripe 1s linear infinite; opacity: .75; }
@keyframes pv-stripe { to { background-position: 28px 0; } }
.pv-barmeta { margin: 0 0 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .pv-bar > i { transition: none; } .pv-bar.is-ind > i { animation: none; } }
.cmt-log { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; }
.cmt-log li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; word-break: break-word; }
.conn h2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-pick { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.conn .dc-row input, .pron-row input, form[action*="kamus-sebutan"] .dc-row input { text-transform: none; letter-spacing: 0; }
.cancel-policy { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .85rem; }
.cancel-policy p { margin: 4px 0 0; color: var(--muted); }
.cancel-dlg .kv { margin: 8px 0; }
.cancel-dlg .hangus { color: var(--danger, #c0392b); }
.cancel-dlg .check { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; }
.bank-fields { display: grid; gap: 6px; margin: 6px 0 8px 24px; }
.pay-cta .btn, .pay-section .btn-block { white-space: normal; line-height: 1.3; }

/* ── Product variants ("Varian") ── */
.vr-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.vr-row { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--paper); min-width: 0; }
.vr-head { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.vr-pos { font-weight: 800; padding-bottom: 12px; min-width: 1.4em; }
.vr-name { flex: 1 1 160px; margin: 0; min-width: 0; }
.vr-btns { display: flex; gap: 4px; padding-bottom: 4px; }
.vr-btns .btn { padding: 6px 10px; }
.vr-nums { margin-top: 8px; }
.vr-photos { margin-top: 6px; }
.vr-photos summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.lu-variant { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; padding-left: 28px; font-size: .88rem; }
.lu-variant select { max-width: 100%; }
.ov-variant { font-weight: 700; opacity: .9; }
.pp-row.has-variants { flex-wrap: wrap; }
.sp-variant { max-width: 100%; margin-bottom: 6px; }
.now-pitching { border: 2px solid var(--honey, #e0a93b); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; background: var(--paper); }
.now-pitching .np-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.now-pitching img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.now-pitching .np-row > div { display: grid; gap: 2px; min-width: 0; }
.now-pitching b { overflow-wrap: anywhere; }
.now-pitching small { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--ant-d, #b3321f); }

/* ── Admin "Pantau" ── */
.mon { display: grid; gap: 14px; min-width: 0; }
.mon .card { margin: 0; min-width: 0; }
.mon-alerts { border-radius: 16px; padding: 10px 14px; background: #e8f5ec; border: 1px solid #b7dfc3; }
.mon-alerts.is-red { background: #fde8e6; border-color: #f2b1a8; color: #8a1f12; font-weight: 700; }
.mon-alerts p { margin: 4px 0; overflow-wrap: anywhere; }
.mon-sess { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 10px; min-width: 0; }
.mon-sess.is-stale { border-color: #e05a45; box-shadow: 0 0 0 2px #fde8e6; }
.mon-sess p { margin: 4px 0; overflow-wrap: anywhere; }
.mon-bar { height: 6px; border-radius: 99px; background: var(--sand, #f1e8da); overflow: hidden; margin: 6px 0 2px; }
.mon-bar i { display: block; height: 100%; background: var(--ant, #d9412b); }
.mon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .mon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mon-cols { grid-template-columns: 1fr 1fr; } }
.mon-cols { display: grid; gap: 12px; }
.mon-kv { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.mon-kv span { font-size: .78rem; color: var(--ink-2, #6b5b4a); }
.mon-kv b { overflow-wrap: anywhere; }
.mon-kv small { font-size: .75rem; color: var(--ink-2, #6b5b4a); }
.mon-card h3 { margin: 0 0 8px; }
.mon-card .mon-kv { margin-bottom: 6px; }
.mon-spark { width: 100%; height: 48px; margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.mon-spark path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mon-spark .sp-util { stroke: #e0873b; } .mon-spark .sp-vram { stroke: #3b7de0; }
.mon-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.mon-list li { overflow-wrap: anywhere; font-size: .9rem; }
.mon-svc { display: inline-block; font-size: .75rem; padding: 1px 7px; border-radius: 99px; margin: 1px; background: #e8f5ec; }
.mon-svc.is-inactive, .mon-svc.is-failed { background: #fde8e6; color: #8a1f12; }

/* ── Layout zoom (🔍 full phone-screen preview) ── */
.lp-card, .layout-card { position: relative; }
.lp-card:focus-visible { outline: 3px solid var(--ant, #d9412b); outline-offset: 2px; }
.lp-card.is-on::after { content: "✓"; position: absolute; top: 12px; right: 12px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 0 0 2px #fff; }
.layout-card .lp-zoom-hint { margin: -2px 0 8px; }
.lp-chosen { margin: 0 0 4px; font-weight: 700; }
.lz { position: fixed; inset: 0; z-index: 1000; background: rgba(12,8,5,.97); display: flex; flex-direction: column; color: #fff; overflow: hidden; max-width: 100vw; }
.lz[hidden] { display: none; }
.lz-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 52px; }
.lz-title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-count { font-size: .85rem; opacity: .8; }
.lz-body { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; position: relative; }
.lz-frame-wrap { display: flex; justify-content: center; }
.lz-frame { overflow: hidden; contain: paint; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.5); flex: none; }
.lz-btn { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
.lz-btn:hover, .lz-btn:focus-visible { background: rgba(255,255,255,.3); outline: 2px solid #fff; }
.lz-close { font-size: 18px; }
@media (max-width: 599px) { .lz-prev, .lz-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.45); } .lz-prev { left: 6px; } .lz-next { right: 6px; } }
.lz-foot { padding: 10px 12px 16px; display: flex; justify-content: center; }
.lz-pick.is-on::before { content: "✓ "; }
html.lz-active body { overflow: hidden; }

/* ── Avatar filters (ethnicity + gender) ── */
.av[hidden] { display: none !important; }
.av-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.av-meta select { max-width: 100%; padding: 4px 6px; font-size: .85rem; }

/* inline big preview of the selected layout (picker + library) */
.lp-layout { display: grid; gap: 12px; min-width: 0; }
.lp-layout > .lp-grid { margin-bottom: 0; min-width: 0; }
.lp-preview { display: flex; gap: 12px; align-items: flex-end; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); cursor: zoom-in; text-align: left; font: inherit; color: inherit; min-width: 0; }
.lp-preview:focus-visible { outline: 3px solid var(--ant, #d9412b); outline-offset: 2px; }
.lp-pv-frame { flex: none; display: block; }
.lp-pv-frame .lz-inline { border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.lp-pv-cap { display: grid; gap: 4px; min-width: 0; padding-bottom: 6px; }
.lp-pv-cap b { overflow-wrap: break-word; hyphens: auto; }
.lp-pv-cap small { color: var(--ink-2, #6b5b4a); }
.lp-card, .layout-card .ov-frame { -webkit-touch-callout: none; user-select: none; }
@media (min-width: 760px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .lp-layout > .lp-preview { order: 2; position: sticky; top: 80px; flex-direction: column; align-items: stretch; }
  .lp-layout > .lp-preview .lp-pv-cap { padding: 0 4px 4px; }
}
.layout-card.is-on { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 16px; }

/* quiz: custom question rows */
.kz-rows { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 8px; counter-reset: kz; }
.kz-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); counter-increment: kz; min-width: 0; }
.kz-row::before { content: counter(kz) "."; font-weight: 800; grid-column: 1 / -1; font-size: .8rem; color: var(--ink-2); }
.kz-row input { grid-column: 1; min-width: 0; }
.kz-row [data-kz-rm] { grid-column: 2; grid-row: 2; align-self: start; }
.kz-row .error { grid-column: 1 / -1; margin: 0; }
@media (min-width: 760px) { .kz-row { grid-template-columns: 2fr 1fr 1fr auto; } .kz-row input { grid-column: auto; } .kz-row [data-kz-rm] { grid-column: auto; grid-row: auto; } }
.ai-off-warn { margin: 6px 0; }
.qw-list { padding-left: 20px; margin: 6px 0 10px; display: grid; gap: 6px; } .qw-list li { overflow-wrap: anywhere; }

/* ── Avatar picker: big preview of the selected host (no icons on the photos) ── */
.avp-layout { display: grid; gap: 12px; min-width: 0; }
.avp { display: flex; gap: 12px; align-items: flex-end; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); min-width: 0; }
.avp-btn { flex: none; width: 150px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.avp-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.avp-btn:focus-visible { outline: 3px solid var(--ant, #d9412b); outline-offset: 2px; }
.avp-cap { display: grid; gap: 3px; min-width: 0; padding-bottom: 4px; }
.avp-cap b { font-size: 1.05rem; overflow-wrap: break-word; }
.avp-tag { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ant-d, #b3321f); }
.avp.is-hover .avp-tag { color: var(--ink-2, #6b5b4a); text-transform: none; letter-spacing: 0; }
.lp-preview.is-hover .lp-pv-cap b { color: var(--ink-2, #6b5b4a); font-weight: 600; }
.avatars .av .zoom-btn { display: none; }
@media (min-width: 760px) {
  .avp-layout { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .avp-layout > .avp { order: 2; position: sticky; top: 80px; flex-direction: column; align-items: stretch; }
  .avp-btn { width: 100%; }
}

/* ── Fluid dashboard: keep text measure and single inputs readable on wide screens ── */
@media (min-width: 640px) and (max-width: 999px) { .app-body .container { padding: 0 24px; } }
.app-main .page-title p, .app-main .card > p:not(.notice):not(.soft-warn):not(.flash), .app-main .field .hint { max-width: 80ch; }
.app-main .field > input:not([type=checkbox]):not([type=radio]), .app-main .field > select, .app-main .field > textarea,
.app-main .field > .input-prefix { max-width: 720px; }
.app-main .row .field > input, .app-main .row .field > select, .app-main .row .field > .input-prefix { max-width: none; }
.app-main .prose, .app-main .kv { max-width: 1000px; }
@media (min-width: 1600px) {
  .avatars { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lp-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .avp-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
/* grid columns may shrink below their content (long names, tables) instead of pushing the page wider */
.grid > * { min-width: 0; }
@media (min-width: 760px) { .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.side { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
/* touch screens: small buttons / chips / selects stay comfortably tappable (≥ 40px) */
@media (pointer: coarse) {
  .app-main .btn-sm, .app-main .chip, .app-main select, .app-main .seg label > span, .app-main .up-tools button, .app-main .vr-btns .btn { min-height: 40px; }
  .app-main .btn-sm, .app-main .chip { padding-top: 8px; padding-bottom: 8px; }
}
.app-main input[type=file] { max-width: 100%; min-width: 0; }
.app-main .av-meta { min-width: 0; } .app-main .av-meta select { min-width: 0; flex: 1 1 90px; }
.avatars > .av { min-width: 0; }
.lp-group { grid-column: 1 / -1; font-weight: 800; font-size: .85rem; margin: 6px 0 -2px; color: var(--ink-2); }
.lp-other { position: absolute; top: 10px; left: 10px; background: var(--sand); color: var(--ink-2); font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.lp-all { margin-top: 8px; }

/* website-only live/preview indicator over preview players (the LIVE badge is no longer drawn on the video) */
.live-wrap { position: relative; }
.live-ind { position: absolute; top: 10px; left: 10px; z-index: 3; pointer-events: none; font: 800 12px/1 var(--f-body, system-ui); letter-spacing: .06em;
  color: #fff; background: #e0243d; padding: 5px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.live-ind.is-preview { background: rgba(20, 16, 12, .72); color: #ffd36b; }

/* Pantau: "Baki kredit API" */
.bal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.bal { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; background: var(--paper); }
.bal header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bal p { margin: 4px 0; overflow-wrap: anywhere; }
.bal-amt { font-size: 1.35rem; font-weight: 800; }
.bal.is-critical { border-color: #e05a45; box-shadow: 0 0 0 2px #fde8e6; }
.bal.is-low { border-color: #e0a23b; }
.bal-pill { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: #e8f5ec; color: #1e6b37; }
.bal-pill.is-low { background: #fff1d6; color: #7a4d00; }
.bal-pill.is-critical { background: #fde8e6; color: #8a1f12; }
.bal-pill.is-error { background: #ece8f5; color: #4b2a8a; }
.bal-pill.is-none { background: #eee; color: #555; }
.bal-err { color: #8a1f12; }
.bal-spark { width: 100%; height: 36px; margin-top: 4px; }
.bal-spark path { fill: none; stroke: #3b7de0; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.bal-spark.is-low path { stroke: #e0a23b; } .bal-spark.is-critical path { stroke: #e05a45; }
.beta-tag { font-size: .66rem; vertical-align: middle; margin-left: 4px; background: #ece8f5; color: #4b2a8a; }
/* rotation between session types: live card + timeline bar (wizard, booking page) */
.seg-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; background: var(--paper); }
.seg-line { margin: 0 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.seg-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; font-size: .7rem; font-weight: 700; color: #fff; }
.seg-bar i { font-style: normal; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; border-right: 2px solid #fff; }
.seg-t-jual { background: #d9412b; } .seg-t-kuiz { background: #7a3be0; } .seg-t-sembang { background: #2b8a5c; } .seg-t-cerita { background: #b8791a; }
.seg-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seg-jumps form { margin: 0; }
.rot-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.rot-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; background: var(--paper); touch-action: pan-y; }
.rot-item.is-drag { opacity: .6; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.rot-handle { cursor: grab; touch-action: none; user-select: none; font-size: 1.2rem; padding: 6px 4px; color: var(--ink-2, #6b5b4a); min-width: 32px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.rot-item select { flex: 1 1 120px; min-width: 0; }
.rot-item input[type=number] { width: 70px; }
.rot-item .rot-btns { display: flex; gap: 4px; margin-left: auto; }

/* mobile "Dipilih: <layout>" bar (layout pickers + library) */
.lp-sticky { position: fixed; left: 8px; right: 8px; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; margin-top: 6px;
  background: rgba(255, 253, 248, .97); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 20px -10px rgba(29,21,16,.45);
  font: 700 .88rem/1.2 var(--f-body); color: var(--ink); text-align: left; min-height: 44px; backdrop-filter: blur(8px); }
.lp-sticky[hidden] { display: none; }
.lp-st-thumb { flex: none; width: 27px; height: 48px; border-radius: 6px; overflow: hidden; }
.lp-st-thumb .lz-frame { border-radius: 6px; }
.lp-st-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-st-go { flex: none; color: var(--ink-2, #6b5b4a); }
@media (min-width: 760px) { .lp-sticky { display: none !important; } }
.voices-more { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--paper); }
.voices-more p { margin: 0 0 8px; }
.lang-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-b { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; }
.lang-b b { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--ink); color: var(--honey); font-size: .8rem; }
.lang-line { font-weight: 600; }

/* two-tier preview: "Pratonton pantas" (instant) + "Uji penuh" */
.pv-tier { display: grid; gap: 4px; margin-bottom: 10px; justify-items: start; }
.qp-phone { position: relative; display: block; overflow: hidden; }
.qp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform-origin: 50% 35%; animation: qpBreath 6s ease-in-out infinite; }
@keyframes qpBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03) translateY(-0.5%); } }
.qp-ov { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }
.qp-cap { position: absolute; left: 6%; right: 6%; bottom: 13%; z-index: 4; text-align: center; font: 700 13px/1.35 var(--f-body); color: #fff; background: rgba(0,0,0,.62); border-radius: 10px; padding: 6px 8px; }
.qp-cap:empty { display: none; }
.qp-wave { position: absolute; left: 50%; bottom: 6%; z-index: 4; transform: translateX(-50%); display: flex; gap: 3px; align-items: flex-end; height: 22px; opacity: 0; transition: opacity .2s; }
.qp-wave i { width: 4px; height: 30%; border-radius: 2px; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.4); }
.qp-phone.is-speaking .qp-wave { opacity: 1; }
.qp-phone.is-speaking .qp-wave i { animation: qpWave .9s ease-in-out infinite; }
.qp-wave i:nth-child(2) { animation-delay: .15s !important; } .qp-wave i:nth-child(3) { animation-delay: .3s !important; } .qp-wave i:nth-child(4) { animation-delay: .45s !important; } .qp-wave i:nth-child(5) { animation-delay: .6s !important; }
@keyframes qpWave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.qp-spin { position: absolute; inset: auto 10% 45% 10%; z-index: 5; text-align: center; font: 700 13px var(--f-body); color: #fff; background: rgba(20,16,12,.72); border-radius: 12px; padding: 10px; }
.qp-spin[hidden] { display: none; }
.qp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: qpSpin .8s linear infinite; vertical-align: -1px; }
@keyframes qpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qp-bg, .qp-phone.is-speaking .qp-wave i, .qp-dot { animation: none; } }

/* host availability in the grid */
.av.av-off .box { opacity: .5; filter: grayscale(.6); }
.av.av-off input:disabled + .box { cursor: not-allowed; }
.av [data-av-state]:not(:empty) { display: inline-block; margin-top: 4px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sand); color: var(--ink-2); }
.av.av-off [data-av-state] { background: #fde8e6; color: #8a1f12; }
.av-only-free .av.av-off { display: none; }
.av-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #fde8e6; color: #8a1f12; font-weight: 600; font-size: .9rem; }
.av-suggest[hidden] { display: none; }
.see-also { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px auto 28px; font-weight: 600; }
.see-also span { color: var(--muted); }
.ov-frame picture { position: absolute; inset: 0; }

/* scene cards (wizard step 6): responsive grid, thumbnail on top, text below, full-width button */
.sp-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sp-opt { grid-template-columns: 1fr; }
.sp-media { display: grid; gap: 4px; justify-items: center; }
/* the whole 9:16 frame, uncropped (the product card / price at the bottom must be visible at a glance) */
.sp-media img, .sp-opt .sp-none { width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 360px; object-fit: contain; background: #e9dccb; border-radius: 10px; }
.sp-opt .sp-none { aspect-ratio: auto; height: 96px; max-height: none; }
.sp-txt { min-width: 0; overflow-wrap: normal; word-break: normal; }
.sp-txt .btn, .sp-confirm { width: 100%; justify-content: center; white-space: normal; margin-top: 6px; }
.sp-elapsed { font-variant-numeric: tabular-nums; font-weight: 700; }
.sp-slow { display: block; color: #7a4d00; }
.sp-slow[hidden] { display: none; }
.sp-out { color: #8a1f12; font-weight: 700; }
.sp-media img.sp-free { aspect-ratio: 9 / 16; object-fit: contain; }
.sp-zoom { border: 0; background: none; color: var(--ink-2); font: 600 .8rem var(--f-body); cursor: zoom-in; padding: 2px 4px; text-decoration: underline; text-underline-offset: 2px; }
.sp-free-tag { color: var(--leaf, #2f6e47); }
.sc-regen { margin: 6px 0; } .sc-regen summary { cursor: pointer; font-weight: 600; font-size: .9rem; } .sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .sc-chips .chip { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

/* product photo guide + automatic checks */
.photo-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 10px 0; }
.pg-ex { margin: 0; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pg-ex svg { width: 56px; height: 56px; }
.pg-ex figcaption { font-size: .74rem; line-height: 1.25; }
.pg-ex.is-ok { border-color: #9ccfa9; } .pg-ex.is-bad { border-color: #f2b1a8; } .pg-ex.is-mid { border-color: #f0d38a; }
.pc-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.pc-chip { font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; line-height: 1.3; }
.pc-chip.is-ok { background: #e3f1e6; color: #1e6b37; } .pc-chip.is-warn { background: #fff1d6; color: #7a4d00; } .pc-chip.is-wait { background: var(--sand); color: var(--ink-2); }
.pc-cut { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 10px 10px; cursor: zoom-in; }
/* photo-check chip sits between the image and the tools, the angle select stays on the photo */
.up-item { width: 124px; }
.up-item .up-angle { bottom: auto; top: calc(124px - 34px); }
.up-item .pc-row { padding: 4px 4px 0; margin: 0; background: var(--bg); }
.up-item .pc-chip { display: block; width: 100%; white-space: normal; text-align: center; }
.up-item img.pc-cut { width: 34px; height: 34px; aspect-ratio: auto; object-fit: contain; display: inline-block; margin: 4px auto 0; }
.up-item .pc-row { justify-content: center; }

/* step-2 host picker: "Avatar saya" group first */
.av-group { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; margin: 6px 0 0; font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.av.av-na .box { opacity: .55; filter: grayscale(.7); cursor: not-allowed; }
.av-na-st { display: inline-block; margin-top: 4px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sand); }
.av.av-add .box { display: grid; place-items: center; min-height: 100%; border-style: dashed; background: var(--paper); text-decoration: none; color: var(--ink); }
.av-add-ic { font-size: 2rem; font-weight: 800; color: var(--ant); padding-top: 30px; }

/* "Pratonton sebelum bayar": three equal option cards (primary / secondary / light), full-width buttons aligned at the bottom */
.pv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.pv-opt { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); min-width: 0; }
.pv-opt.is-primary { border-color: var(--ant); background: var(--ant-l); }
.pv-opt.is-light { border-style: dashed; background: transparent; }
.pv-opt-t { display: block; font-size: .98rem; line-height: 1.3; }
.pv-opt-n { margin-left: 4px; white-space: nowrap; }
.pv-opt-n { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.pv-opt-d { margin: 0 0 4px; font-size: .85rem; line-height: 1.4; color: var(--ink-2); flex: 1; }
.pv-opt > .btn { width: 100%; min-height: 46px; padding-inline: 8px; font-size: .92rem; justify-content: center; text-align: center; white-space: normal; margin-top: auto; }
.pv-opt.is-light > .btn { border-color: var(--line-2); color: var(--ink-2); }
.pv-opts-note { margin: 10px 0 0; }
.pv-notify-msg { margin: 4px 0 0; color: var(--ink-2); }
.pv-notify-msg.is-warn { color: var(--ant-d); }
/* admin "Mula live sekarang" */
.anow-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.anow-row > div { flex: 1 1 260px; min-width: 0; }
.anow-why { color: var(--ant-d); margin: 4px 0 0; }
.anow-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
.anow-dl dt { color: var(--muted); } .anow-dl dd { margin: 0; overflow-wrap: anywhere; }
.anow-out { border: 0; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.badge.anow-pill { background: #1d1510; color: #ffd166; letter-spacing: .04em; }
.badge.anow-pill::before { display: none; }
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sand); font-size: .9rem; }
.draft-bar .btn { margin-left: auto; }
.conn-warn { margin: 10px 0 14px; padding: 12px 14px; border: 2px solid var(--ant); border-radius: var(--r); background: var(--ant-l); display: grid; gap: 6px; justify-items: start; }
.conn-warn p { margin: 0; }
.rv-checks li.is-strong { background: var(--ant-l); border-radius: 10px; padding: 8px; }
.rv-checks li.is-strong .btn { margin-left: auto; }
.conn-warn:not([hidden]) ~ .conn-hint { display: none; }
.sc-prev { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.sc-prev figure { margin: 0; width: 72px; flex: none; }
.sc-prev img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 8px; }
.sc-prev figcaption { font-size: .75rem; color: var(--muted); }
/* QA #43: phones — caption below the picture, one column (no "Dipilih: / Kemas" word-per-line) */
@media (max-width: 559px) {
  .lp-preview { flex-direction: column; align-items: center; text-align: center; }
  .lp-pv-cap { padding: 0 4px 4px; justify-items: center; }
}
.chip.av-only.is-disabled { opacity: .6; cursor: not-allowed; }
/* QA #17: desktop calendar as compact as the phone one (square cells grew very tall on wide screens) */
@media (min-width: 640px) {
  .cal-grid { gap: 3px; }
  .cal-day { aspect-ratio: auto; height: 46px; border-radius: 10px; }
}
.up-main { max-width: calc(100% - 46px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }   /* QA #42: never under the zoom icon */
.is-switchable .sp-opt input:not([value="none"]) ~ .sp-media img { filter: grayscale(.6); opacity: .7; }
.dz-item.is-empty { display: flex !important; align-items: center; justify-content: center; outline: 3px dashed rgba(140, 120, 100, .6); background: rgba(255, 255, 255, .25) !important; }
.dz-item.is-empty::before { content: attr(data-empty); font: 600 22px/1.3 Poppins, sans-serif; color: #5a4a3c; padding: 12px; text-align: center; }
.ov-frame > .sample-tag { position: absolute; z-index: 5; bottom: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
/* session recordings */
.rec-video { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; background: #000; border-radius: var(--r); display: block; }
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.rec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.rec-stats > div { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; display: grid; }
.rec-stats b { font-size: 1.15rem; } .rec-stats span { font-size: .78rem; color: var(--muted); }
.rec-filters { margin: 8px 0; }
.rec-tl { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.rec-ev { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.rec-ev:last-child { border-bottom: 0; }
.rec-t { font: 600 .8rem/1 ui-monospace, monospace; border: 1px solid var(--line-2); background: var(--paper); border-radius: 6px; padding: 3px 6px; cursor: pointer; }
.rec-k { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.rec-x { min-width: 0; overflow-wrap: anywhere; }
.rec-ev.is-error .rec-k, .rec-ev.is-stall .rec-k { color: var(--ant-d); font-weight: 700; }
.rec-ev.is-reply { background: rgba(46, 160, 67, .06); }

/* ── phones: bottom tab bar + "Lagi" drawer (desktop/tablet keep the nav) ── */
.tabbar, .drawer { display: none; }
@media (max-width: 767px) {
  body.has-tabbar { --tabbar-h: calc(60px + env(safe-area-inset-bottom)); }
  .has-tabbar .app-nav { display: none; }
  .has-tabbar .app-top .who > :not(.lang-switch):not(.jp-pill) { display: none; }   /* header: logo + BM/EN (+ the running-jobs pill) only; the rest is in "Lagi" */
  .has-tabbar .app-top .who > .jp-pill[hidden] { display: none; }
  .has-tabbar .app-body { padding-bottom: calc(var(--tabbar-h) + 28px); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 4px 4px env(safe-area-inset-bottom); background: rgba(255, 253, 248, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 2px;
    border: 0; background: none; color: var(--ink-2); text-decoration: none; font: 600 .7rem/1.1 var(--f-body); border-radius: 12px; cursor: pointer; }
  .tabbar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-on { color: var(--ant-d); }
  .tabbar a.is-primary { color: #fff; }
  .tabbar a.is-primary svg { background: var(--ant); border-radius: 12px; padding: 5px; width: 34px; height: 30px; box-shadow: 0 4px 12px rgba(228, 71, 42, .35); }
  .tabbar a.is-primary span { color: var(--ant-d); }
  .drawer[open] { display: flex; flex-direction: column; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 85vh; border: 0;
    border-radius: 20px 20px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); }
  .drawer::backdrop { background: rgba(20, 14, 10, .5); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
  .drawer-list { overflow: auto; display: grid; padding: 6px 0; }
  .drawer-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .drawer-list a.is-on { background: var(--sand); }
  .drawer-list svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
  .drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  /* things pinned to the bottom sit above the tab bar */
  .has-tabbar .chatw { bottom: calc(var(--tabbar-h) + 12px); }
  .has-tabbar .chatw.chatw--raised { bottom: calc(var(--tabbar-h) + 84px); }
  .has-tabbar .sticky-bar, .has-tabbar .form-actions.form-footer.is-sticky, .has-tabbar .pay-cta { bottom: var(--tabbar-h); }
}

/* notices: label line, text, link on its own line */
.flash.nb { display: grid; gap: 4px; margin-bottom: 12px; }
.flash.nb .nb-h { font-weight: 800; }
.flash.nb .nb-t { font-weight: 500; }
.flash.nb .nb-a { justify-self: end; font-weight: 700; padding: 4px 0; }
@media (max-width: 559px) { .flash > a:last-child:not(:first-child) { display: inline-block; margin-top: 6px; } }

/* phones: stacked table rows ("label: value"), no sideways scrolling */
@media (max-width: 640px) {
  table.table.is-stackable, table.table.is-stackable tbody, table.table.is-stackable tr, table.table.is-stackable td { display: block; width: 100%; }
  table.table.is-stackable thead { display: none; }
  table.table.is-stackable tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.table.is-stackable tr:last-child { border-bottom: 0; }
  table.table.is-stackable td { border: 0; padding: 3px 0; text-align: left; display: grid; grid-template-columns: minmax(84px, 38%) 1fr; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
  table.table.is-stackable td[data-label]::before { content: attr(data-label); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  table.table.is-stackable td:not([data-label]), table.table.is-stackable td[data-label=""] { grid-template-columns: 1fr; }
  table.table.is-stackable td.num { text-align: left; white-space: normal; }
  table.table.is-stackable td > * { justify-self: start; }
  table.table.is-stackable td > .btn, table.table.is-stackable td > form, table.table.is-stackable td > .actions { justify-self: stretch; }
  table.table.is-stackable .actions { justify-content: flex-start; }
  .table-wrap { overflow-x: visible; }
  /* rows that do scroll sideways hint at it with a fading edge */
  .sp-themes { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* home hero on phones: proof points one per line with a check, "Contoh" badge always visible, floating cards clear of the mockup's content */
@media (max-width: 559px) {
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-proof span::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf-l, #e3f3e8); color: var(--leaf); display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; }

}
.ov-frame > .sample-tag { top: 56px; left: 10px; bottom: auto; z-index: 8; font-size: .75rem; }
@media (max-width: 640px) {
  /* wide matrices (roles × permissions, avatar schedule) keep their grid and scroll sideways with a fading edge + sticky first column */
  .table-wrap:has(> table.table-keep) { overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  table.table-keep th:first-child, table.table-keep td:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; min-width: 140px; }
}
@media (max-width: 599px) { .hero-tag { display: none; } }   /* decorative cards never cover the mockup on phones */
/* hero floating cards sit OUTSIDE the phone frame (above-left / below-right), never over the overlay or the face */
@media (min-width: 600px) {
  .hero-visual { padding: 62px 0; }
  .hero-tag.t1 { top: 0; bottom: auto; left: auto; right: calc(50% + 40px); max-width: 240px; }
  .hero-tag.t2 { bottom: 0; top: auto; right: auto; left: calc(50% + 40px); max-width: 240px; }
}
.pv-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.pv-pill { position: fixed; left: 16px; bottom: 16px; z-index: 65; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100vw - 110px);
  padding: 10px 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .85rem/1.2 var(--f-body); box-shadow: 0 8px 22px rgba(0,0,0,.25); cursor: pointer; }
.pv-pill[hidden] { display: none; }
.pv-pill b { color: var(--honey); }
@media (max-width: 767px) { .has-tabbar .pv-pill { top: 66px; bottom: auto; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); white-space: nowrap; } }   /* under the header: never on top of sticky bars or the chat bubble */
.stop-live { margin: 6px 0 12px; }
.mon-stop { color: var(--ant-d); font-weight: 700; }
.pp-hero { display: flex; gap: 14px; align-items: center; }
.pp-hero h1 { margin: 0 0 4px; font-size: 1.5rem; }
.pp-hero p { margin: 0; }
.pp-av { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.pp-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.pp-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.pp-list li > i { font-style: normal; font-weight: 800; width: 20px; }
.pp-list li > span { flex: 1 1 180px; min-width: 0; }
.pp-list li small { display: block; color: var(--muted); }
.pp-list li.is-done { background: var(--leaf-l, #e8f5ec); } .pp-list li.is-done > i { color: var(--leaf); }
.pp-list li.is-opt > span { color: var(--ink-2); }
.pp-details { margin-top: var(--space-card, 20px); }
.pp-details > summary { cursor: pointer; }
.pp-details[open] > summary { margin-bottom: 12px; }
.admin-tools { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 10px 12px; margin-bottom: var(--space-card, 20px); }
.admin-tools > .card { margin: 6px 0 0; }
.stop-card { border-color: var(--ant); }
.stop-card .stop-live { margin: 0; }
.sp-table { border: 2px solid var(--honey, #f3ae2c); }
.sp-table-img { width: 140px; margin: 6px 0; } .sp-table-img img { width: 100%; aspect-ratio: 9/16; object-fit: contain; background: #000; border-radius: 10px; }
.reviewer-help { border: 2px solid var(--leaf, #2e7d4f); }
.reviewer-help ol { padding-left: 20px; display: grid; gap: 8px; }
.btn.is-disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.auto-live-box { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line, #e5dccf); border-radius: 12px; }
.auto-live-box .btn { margin-right: 6px; }
.standby-card { border: 2px solid var(--danger, #c0392b); }
.standby-banner { background: #fff1ee; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.standby-banner b { font-size: 1.1rem; }
.standby-banner p { margin: 6px 0 0; }
.stream-steps { margin: 4px 0 12px; }
.stream-steps ol { padding-left: 20px; margin: 6px 0; display: grid; gap: 4px; }
.lz-safe { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: .85rem; font-weight: 600; margin-left: auto; margin-right: 10px; cursor: pointer; white-space: nowrap; }
@media (max-width: 520px) { .lz-safe span { font-size: .75rem; } }
.badge.s-failed { background: #fde2e1; color: #9b1c1c; }
.reject-line { margin: 4px 0; color: #9b1c1c; font-weight: 700; font-size: .9rem; }
.reject-banner { background: #b91c1c; color: #fff; border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.reject-banner b { font-size: 1.08rem; display: block; margin-bottom: 4px; }
.reject-banner p { margin: 4px 0 0; }
.reject-banner a { color: #fff; text-decoration: underline; font-weight: 700; }
.hls-retry { margin: 6px 0 0; }
video.is-waiting { background: #1b1411 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23f3ae2c' stroke-width='5' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat !important; }
/* QA A6: hero eyebrow wraps as two clean lines on phones (no dangling "·"); A4: no horizontal scroll at 375 px */
.eyebrow-hero { flex-wrap: wrap; row-gap: 6px; }
.eyebrow-hero > span + span::before { content: "· "; }
@media (max-width: 520px) { .eyebrow-hero { display: flex; } .eyebrow-hero > span + span { flex-basis: 100%; padding-left: calc(22px + .5em); } .eyebrow-hero > span + span::before { content: ""; } }
.band-group, .band-groups { min-width: 0; max-width: 100%; }
.band-group * { min-width: 0; }
@media (max-width: 520px) { .band-group { padding: 14px 12px; } .band-group table, .band-group .rate-table { width: 100%; table-layout: fixed; } }
.lp-for { font-size: .68rem; color: var(--muted); line-height: 1.2; }
.btn.is-disabled { white-space: normal; max-width: 100%; text-align: center; }
@media (max-width: 520px) { .hero-copy, .hero-copy > *, .hero .container > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; } }
.shopee-check { border: 2px solid #ee4d2d; }
.shopee-check ol { padding-left: 20px; display: grid; gap: 8px; }
.pin-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff4f1; border-radius: 10px; padding: 8px 10px; margin: 6px 0 2px; }
.pin-box span { flex: 1 1 220px; font-weight: 700; }
.my-avs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.my-av { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.my-av img { width: 72px; height: 128px; object-fit: cover; border-radius: 10px; }
.my-av > div { display: grid; gap: 4px; }
.my-av.is-retired { opacity: .55; }
.gen-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0; }
@media (max-width: 700px) { .gen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gen-c { display: grid; gap: 4px; cursor: pointer; font-size: .82rem; }
.gen-c input { position: absolute; opacity: 0; }
.gen-c img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; border: 3px solid transparent; }
.gen-c input:checked + img { border-color: var(--ant, #e8456f); }
.gen-c.is-bad img { filter: grayscale(1); opacity: .5; }
.gen-attrs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gen-styles { max-height: 420px; overflow: auto; }
.gen-again { margin-top: 12px; }
.gen-wait { font-weight: 700; }
.seg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.own-cta { border: 2px solid var(--ant, #e8456f); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: #fff7f4; }
.own-cta p { margin: 4px 0 8px; }
.own-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.own-price { margin-top: 16px; } .own-price ul { padding-left: 20px; display: grid; gap: 6px; }
.gpt-help { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin: 12px 0; }
.gpt-prompt { background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.gpt-prompt .mono { white-space: normal; }

/* "Akaun / Page sasaran" */
.stream-target-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stream-target-row select { flex: 0 1 220px; min-width: 0; }
.stream-target-row input { flex: 1 1 200px; min-width: 0; }
.req-mark { color: var(--danger, #c0392b); }
.target-line { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.target-missing { color: var(--danger, #c0392b); font-weight: 600; }
.target-ok { color: var(--ok, #1e8449); font-size: .85em; }
.target-warn { color: var(--danger, #c0392b); font-size: .85em; }

/* "+ Tambah produk" during a live */
.live-add { margin-top: 12px; }
.live-add > summary { list-style: none; display: inline-flex; }
.live-add > summary::-webkit-details-marker { display: none; }
.lp-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.lp-add > b, .lp-add > label:first-of-type { flex: 1 1 100%; }
.lp-add input[name=name], .lp-add select { flex: 1 1 200px; min-width: 0; }
.lp-add input[name=price] { flex: 1 1 140px; min-width: 0; }
.lp-add input[type=file] { flex: 1 1 100%; min-width: 0; }


/* "Perubahan saat akhir" */
.last-min .lm-count { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.last-min .lm-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #7a6a5a); margin: 12px 0 4px; }
.lm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.lm-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 0; }
.lm-item .lm-t { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.lm-item .lm-t small { color: var(--muted, #7a6a5a); overflow-wrap: anywhere; }
.lm-item a.lm-t b { text-decoration: underline; text-underline-offset: 2px; }
.lm-item.is-locked { opacity: .55; background: transparent; }
.lm-item.is-later { border-style: dashed; }
@media (max-width: 520px) { .lm-list { grid-template-columns: 1fr; } }

/* "Suasana / Latar" picker */
.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.su-card { display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: left; cursor: pointer; min-width: 0; position: relative; font: inherit; color: inherit; }
.su-card.is-on { border-color: var(--ink, #2b1d14); box-shadow: 0 0 0 2px var(--ink, #2b1d14); }
.su-card.is-on::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink, #2b1d14); color: #fff; display: grid; place-items: center; font-size: 13px; }
.su-thumb { display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #e9e4dc; display: grid; place-items: center; font-size: 28px; }
.su-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.su-card b { font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
.su-card small { font-size: .7rem; color: var(--muted, #7a6a5a); }
.su-preview { margin-top: 10px; max-width: 260px; }
.su-preview img { width: 100%; border-radius: 12px; display: block; cursor: zoom-in; }
.su-none { grid-column: 1 / -1; }
.su-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.su-presets label { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.su-presets label:has(input:checked) { border-color: var(--ink, #2b1d14); box-shadow: 0 0 0 2px var(--ink, #2b1d14); }
.su-presets .su-ph { aspect-ratio: 4 / 3; border-radius: 8px; background: #efe9e0; display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.su-presets .su-ph img { width: 100%; height: 100%; object-fit: cover; }
.su-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.su-cands figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.su-cands img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.su-cands figcaption { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.su-verdict { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; line-height: 1.35; font-weight: 600; }
.su-verdict.ok { color: var(--leaf); }
.su-verdict.bad { color: var(--ant-d); }
.su-staff { font-size: .72rem; line-height: 1.3; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 4px; word-break: break-word; }
@media (max-width: 520px) { .su-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.su-presets .su-ph { aspect-ratio: 3 / 4; }
.su-ph picture { display: block; width: 100%; height: 100%; }
.su-poses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.su-poses label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; }
.su-poses label:has(input:checked) { border-color: var(--ink, #2b1d14); box-shadow: 0 0 0 2px var(--ink, #2b1d14); }
.su-poses img { width: 56px; height: 56px; }

.su-custom-tile .su-ph { font-size: 34px; background: #f6efe4; }
.su-custom { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 8px 0 12px; }
.su-tips { margin-top: 10px; }
.su-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 6px; }
.su-tips-grid ul { margin: 4px 0 0 18px; padding: 0; }

/* Live countdown */
.lc { font-variant-numeric: tabular-nums; }
.lc-big { background: linear-gradient(135deg, var(--ant) 0%, var(--ant-d) 100%); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 16px; min-height: 148px; box-sizing: border-box; }
.lc-big .lc-lead { margin: 0 0 8px; font-weight: 700; letter-spacing: .02em; opacity: .95; }
.lc-units { display: flex; gap: 10px; flex-wrap: wrap; }
.lc-u { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 6px; background: rgba(255, 255, 255, .14); border-radius: 12px; }
.lc-u b { font-size: 2rem; line-height: 1.1; font-weight: 800; }
.lc-u small { font-size: .72rem; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.lc-status { margin: 10px 0 0; font-size: .9rem; opacity: .95; }
.lc-live { margin: 6px 0 0; font-size: 1.35rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-live b { letter-spacing: .04em; }
.lc-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: lcpulse 1.6s infinite; }
@keyframes lcpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.lc-big.st-completed, .lc-big.st-cancelled, .lc-big.st-failed { background: var(--sand); color: var(--ink); min-height: 0; }
.lc-big.st-prep { background: linear-gradient(135deg, var(--honey-d) 0%, #8a5a06 100%); }
.lc-compact { display: inline-block; margin-top: 4px; }
.lc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--ant-l); color: var(--ant-d); font-size: .78rem; font-weight: 700; }
.lc-compact.st-live .lc-chip { background: var(--ant); color: #fff; }
.lc-compact.st-completed .lc-chip, .lc-compact.st-cancelled .lc-chip { background: var(--sand); color: var(--muted); }
.lc-mini { position: fixed; top: 59px; left: 0; right: 0; z-index: 29; background: var(--ant); color: #fff; font-weight: 700; font-size: .9rem; text-align: center; padding: 6px 12px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
@media (min-width: 761px) { .lc-mini { display: none; } }
@media (max-width: 520px) { .lc-u { min-width: 0; flex: 1 1 0; } .lc-u b { font-size: 1.6rem; } .lc-big { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .lc-dot { animation: none; } }
/* booking-page countdown: centred in its card */
.lc-big { text-align: center; }
.lc-big .lc-units { justify-content: center; }
.lc-big .lc-live { justify-content: center; }

/* Kuiz card options + live mini preview */
.qc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin: 10px 0; min-width: 0; }
@media (min-width: 900px) { .qc { grid-template-columns: minmax(0, 1fr) 260px; } }
.qc-form { min-width: 0; display: grid; gap: 14px; }
.qc-preview { position: sticky; top: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qc-phone { position: relative; width: 240px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: linear-gradient(180deg, #d9cfc4, #b9ab9d); overflow: hidden; border: 4px solid var(--ink); box-sizing: border-box; }
.qc-card { --qc: #3056D3; position: absolute; left: 6%; width: 88%; background: rgba(255, 255, 255, .96); color: #221A1F; border-radius: 10px; padding: 8px 9px; box-sizing: border-box; font-size: 10px; line-height: 1.25; }
.qc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.qc-badge { background: var(--qc); color: #fff; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .05em; }
.qc-timer { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--qc); display: grid; place-items: center; font-weight: 800; font-size: 8px; }
.qc-q { margin: 0 0 4px; font-weight: 800; font-size: 11.5px; }
.qc-ins { margin: 0; font-weight: 700; color: var(--qc); }
.qc-win { --qc: #3056D3; position: absolute; left: 14%; right: 14%; top: 20%; background: var(--qc); color: #fff; border-radius: 10px; padding: 8px; text-align: center; display: flex; flex-direction: column; font-size: 11px; }
.qc-win b { font-size: 12.5px; }
@media (max-width: 899px) { .qc-preview { position: static; order: -1; } .qc-phone { width: 200px; } }

/* ── Form grid: full card width, 3 / 2 / 1 columns, fields top-aligned (a long hint never stretches its neighbours) ── */
.form-grid { display: grid; gap: 12px 14px; grid-template-columns: 1fr; align-items: start; margin-bottom: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.form-grid > * { min-width: 0; }
.form-grid > .field { margin-bottom: 0; align-content: start; }
.form-grid > .span-all, .grid > .span-all { grid-column: 1 / -1; }
.app-main .form-grid .field > input:not([type=checkbox]):not([type=radio]), .app-main .form-grid .field > select, .app-main .form-grid .field > textarea,
.app-main .field.field-wide > input:not([type=checkbox]):not([type=radio]), .app-main .field.field-wide > textarea { max-width: none; width: 100%; }
.app-main .field.field-wide .hint { max-width: none; }
.form-grid .field > select, .form-grid .field > input:not([type=checkbox]):not([type=radio]):not([type=file]) { height: 46px; box-sizing: border-box; }

/* ── Host filter toolbar (one row: Etnik · Jantina · search · Tersedia sahaja) ── */
.avf { margin: 0; contain: inline-size; min-width: 0; }   /* the chip row scrolls: never widen the parent grid */
.av-tools { position: sticky; top: 59px; z-index: 6; background: var(--paper); padding: 8px 6px; margin: 0 -6px 8px; display: block; }
.avf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avf-chips { display: flex; gap: 10px; flex: none; max-width: 100%; }
.avf-seg { display: inline-flex; flex-wrap: nowrap; flex: none; background: var(--sand); border-radius: 12px; padding: 3px; gap: 2px; }
.avf-opt { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink-2); padding: 0 11px; height: 38px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.avf-opt small { font-weight: 700; opacity: .65; font-size: .75rem; }
.avf-opt.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.avf-opt:disabled { opacity: .45; cursor: default; }
.avf-opt:focus-visible { outline: 2px solid var(--ant); outline-offset: 1px; }
.avf-end { display: flex; align-items: center; gap: 10px; flex: 1 1 340px; justify-content: flex-end; }
.app-main .avf-search { height: 44px; width: auto; max-width: none; flex: 1 1 160px; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; background: var(--paper); font: inherit; margin: 0; }
.avf-switch { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; font-weight: 700; font-size: .85rem; flex: none; position: relative; }
.avf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avf-switch .sw { width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.avf-switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.avf-switch input:checked + .sw { background: var(--leaf); }
.avf-switch input:checked + .sw::after { transform: translateX(16px); }
.avf-switch input:focus-visible + .sw { outline: 2px solid var(--ant); outline-offset: 2px; }
.avf-switch-t { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.avf-switch-t small { font-weight: 600; color: var(--muted); font-size: .7rem; }
.avf-switch.is-disabled { cursor: not-allowed; color: var(--ink-2); }
.avf-switch.is-disabled .sw { background: var(--line); }
@media (max-width: 640px) {
  .av-tools { top: 52px; }
  .avf-chips { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .avf-chips::-webkit-scrollbar { display: none; }
  .avf-chips.has-more { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .avf-chips { min-width: 0; }
  .avf-end { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .app-main .avf-search { flex: 1 1 120px; }
  .avf-switch { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .avf-switch .sw, .avf-switch .sw::after { transition: none; } }
.app-main input[type=file]::file-selector-button { font: 700 .85rem var(--f-body); min-height: 40px; padding: 0 14px; margin-right: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sand); color: var(--ink); cursor: pointer; }
.guide-note + .field, .guide-note + .row, .guide-note + .form-grid { margin-top: 16px; }

/* ── Booking wizard: Mod Mudah (one decision per screen) / Mod Lanjutan (full form) ── */
.wiz-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.wiz-mode-seg { display: inline-flex; background: var(--sand); border-radius: 12px; padding: 3px; gap: 2px; }
.wiz-mode-seg button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-2); min-height: 44px; padding: 0 16px; border-radius: 9px; cursor: pointer; }
.wiz-mode-seg button.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.wiz-mode .hint { margin: 0; flex: 1 1 260px; }
.ez-head, .ez-noprod, [data-ez-next], [data-ez-back], .ez-more-btn, .ez-err { display: none; }
.wiz-easy .ez-head { display: block; margin: 0 0 14px; }
.ez-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.ez-steps button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--muted); padding: 4px 2px; min-height: 44px; }
.ez-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sand); color: var(--ink-2); }
.ez-steps .t { font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.2; }
.ez-steps li { position: relative; }
.ez-steps li + li::before { content: ''; position: absolute; top: 19px; right: calc(50% + 20px); width: calc(100% - 34px); height: 2px; background: var(--line); }
.ez-steps li.is-on .n { background: var(--ant); color: #fff; }
.ez-steps li.is-on .t { color: var(--ink); }
.ez-steps li.is-done .n { background: var(--leaf); color: #fff; }
.ez-steps li.is-done .n::after { content: ''; }
.ez-title { font-size: 1.45rem; margin: 0 0 4px; outline: none; }
.ez-sub { color: var(--muted); margin: 0; }
/* screens */
.wiz-easy:not(.is-review) .wizard-step { display: none; }
.wiz-easy[data-ez="1"]:not(.is-review) #step-3, .wiz-easy[data-ez="2"]:not(.is-review) #step-2, .wiz-easy[data-ez="3"]:not(.is-review) #step-2, .wiz-easy[data-ez="4"]:not(.is-review) #step-4 { display: block; }
.wiz-easy .wizard-step + .wizard-step { margin-top: 0; }
.wiz-easy .wizard-step > h2, .wiz-easy .wizard-step > .muted.small:first-of-type { display: none; }
.wiz-easy.is-review #step-7 > h2 { display: flex; }
.wiz-easy[data-ez="2"] [data-ez-part="time"], .wiz-easy[data-ez="3"] [data-ez-part="host"] { display: none !important; }
.wiz-easy [data-ez-adv]:not(.ez-open [data-ez-adv]) { display: none !important; }
.wiz-easy [data-ez-part="host"] > .label { display: none; }
.wiz-easy .ez-more-btn { font-size: .92rem; }
.wiz-easy #step-4 > :not([data-type-panel="jual"]):not([data-ez-only]) { display: none; }
.wiz-easy #step-4 [data-type-panel="jual"] { border: 0; padding: 0; margin: 0; background: none; }
.wiz-easy #step-4 [data-type-panel="jual"] > :not([data-ez-keep]) { display: none; }
.wiz-easy #step-4 [data-ez-keep] > .label { display: none; }
.wiz-easy .ez-noprod { display: grid; gap: 10px; justify-items: start; padding: 16px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--sand); }
.wiz-easy .ez-noprod p { margin: 0; }
.wiz-easy .ez-more-btn { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ant-d); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wiz-easy .ez-open .ez-more-btn { color: var(--ink-2); }
.wiz-easy:not(.is-review) [data-ez-next]:not([hidden]), .wiz-easy:not(.is-review) [data-ez-back]:not([hidden]) { display: inline-flex; }
.wiz-easy .ez-err:not([hidden]) { display: block; flex: 1 1 100%; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fde8e6; color: #8a1f12; font-weight: 700; font-size: .9rem; }
.sticky-bar .bar-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Mod Mudah: bigger touch targets — host cards, calendar days, time slots, products */
.wiz-easy .cal button[data-day] { min-height: 44px; font-size: 1rem; }
.wiz-easy .slots .slot { min-height: 44px; }
.wiz-easy .prod-pick label { min-height: 64px; }
@media (max-width: 640px) {
  .wiz-easy .sticky-bar .bar-btns { width: 100%; flex-wrap: nowrap; }
  .wiz-easy .ez-back-t { display: none; }
  .wiz-easy [data-ez-back] { flex: none; min-width: 56px; justify-content: center; }
  .avf-switch { flex: 1 1 auto; }
  .wiz-easy .sticky-bar .bar-btns .btn-primary { flex: 1 1 0; min-width: 0; min-height: 50px; font-size: 1.05rem; padding: 0 14px; white-space: normal; justify-content: center; }
  .wiz-easy .sticky-bar .bar-btns .btn-ghost { min-height: 50px; }
  .wiz-easy .sticky-bar .sum { flex: 1 1 100%; font-size: .85rem; }
  .ez-title { font-size: 1.25rem; }
  .wiz-mode .hint { display: none; }
}

/* ── Booking page: next-step banner + collapsible advanced cards ── */
.ns-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 16px 18px; margin: 0 0 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--paper); }
.ns-banner.is-todo { border-color: #f1b8ad; background: #fff5f2; }
.ns-banner.is-done { border-color: #b9dcc4; background: #f1faf3; }
.ns-kicker { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ant-d); }
.ns-banner.is-done .ns-kicker { color: var(--leaf); }
.ns-title { margin: 2px 0 0; font-size: 1.2rem; line-height: 1.3; }
.ns-sub { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.ns-cta { min-height: 48px; justify-content: center; }
.ns-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.ns-bar i { display: block; height: 100%; background: var(--leaf); border-radius: inherit; }
.ns-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ns-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink-2); font-size: .88rem; font-weight: 600; text-decoration: none; }
.ns-list .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: .7rem; font-weight: 900; flex: none; }
.ns-list li.done .tick { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.ns-list li.done a { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
@media (max-width: 640px) { .ns-banner { grid-template-columns: 1fr; } .ns-cta { width: 100%; } .ns-list { flex-direction: column; } }
.card.cz > h2 { margin: 0; }
.cz-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cz-chev { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); flex: none; position: relative; }
.cz-chev::before { content: ''; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: translate(-50%, -50%) rotate(45deg); transition: transform .15s; }
.cz-open .cz-chev::before { transform: translate(-50%, -25%) rotate(-135deg); }
.card.cz:not(.cz-open) > .cz-body { display: none; }
.card.cz.cz-open > .cz-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .cz-chev::before { transition: none; } }
/* dashboard: onboarding checklist */
.onboard { display: grid; gap: 14px; border: 1.5px solid #f1b8ad; background: #fff5f2; }
.onboard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.onboard-head h2 { margin: 2px 0 0; }
.onboard-head .btn { min-height: 48px; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onboard-steps a { display: flex; gap: 12px; align-items: flex-start; height: 100%; box-sizing: border-box; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); text-decoration: none; min-height: 44px; }
.onboard-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sand); color: var(--ink-2); flex: none; }
.onboard-steps .t { display: grid; gap: 2px; }
.onboard-steps .t small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.onboard-steps li.is-next a { border-color: var(--ant); box-shadow: 0 0 0 3px rgba(228, 71, 42, .12); }
.onboard-steps li.is-next .n { background: var(--ant); color: #fff; }
.onboard-steps li.done .n { background: var(--leaf); color: #fff; }
.onboard-steps li.done b { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .3); color: var(--muted); }
@media (max-width: 760px) { .onboard-steps { grid-template-columns: 1fr; } .onboard-head .btn { width: 100%; justify-content: center; } }
/* required fields: a red * after the label (inputs, selects, textareas and RM-prefixed inputs marked required) */
.app-main .field:has(> input[required]:not([type=checkbox]):not([type=radio])) > label::after,
.app-main .field:has(> select[required]) > label::after, .app-main .field:has(> textarea[required]) > label::after,
.app-main .field:has(> .input-prefix > input[required]) > label::after { content: " *"; color: var(--ant-d); font-weight: 800; }
.req-legend { margin: -4px 0 12px; font-size: .84rem; color: var(--muted); }
.req-legend span { color: var(--ant-d); font-weight: 800; }
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
/* Suasana "Latar sendiri": portrait tip, 9:16 crop preview, worker pre-check */
.su-tip { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #fff5e0; border: 1px solid #f2d59b; font-size: .9rem; }
.su-crop { margin-top: 10px; }
.su-crop-img { position: relative; display: inline-block; max-width: 100%; border-radius: 12px; overflow: hidden; line-height: 0; }
.su-crop-img img { max-width: 100%; max-height: 420px; display: block; }
.su-crop-frame { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .58); outline: 2px dashed #fff; outline-offset: -2px; display: flex; align-items: flex-end; justify-content: center; }
.su-crop-frame span { line-height: 1.2; margin: 0 0 8px; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }
.su-pre { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: .9rem; background: var(--sand); }
.su-pre ul { margin: 4px 0 0 18px; padding: 0; }
.su-pre ul:empty { display: none; }
.su-pre.is-ok { background: #f1faf3; color: #1f5a33; }
.su-pre.is-warn { background: #fff5e0; }
.su-pre.is-reject { background: #fde8e6; color: #8a1f12; }

/* ── Visual host picker (wizard, booking page, Hos page): preview + "Avatar unik saya" + "Siap guna" ── */
.hp { display: grid; gap: 18px; min-width: 0; }
.hp-sec h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 1.02rem; }
.hp-sec h3 small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.hp-own { padding: 12px; border-radius: 16px; background: #fff7f0; border: 1.5px solid #f6d3c2; }
.hp-empty { margin: 0 0 8px; }
.hp-rule { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff5e0; border: 1px solid #f2d59b; font-size: .88rem; }
.hp-rule.is-exempt { background: #f1faf3; border-color: #b9dcc4; }
.hp-rule details { margin-top: 4px; }
.hp-rule summary { cursor: pointer; font-weight: 700; color: var(--ant-d); min-height: 32px; display: inline-flex; align-items: center; }
.hp-rule ul { margin: 4px 0 0 18px; padding: 0; }
/* booking picker, own-only (owner 1 Oct: every real live uses the customer's own unique avatar) */
.hp-why { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #f6d3c2; font-size: .92rem; line-height: 1.45; }
.hp-why > b { display: block; font-size: 1rem; margin-bottom: 4px; }
.hp-why p { margin: 0 0 6px; }
.hp-why ul { margin: 6px 0 8px; padding: 0; list-style: none; }
.hp-why li { margin: 4px 0; }
.hp-own-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.hp-own-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: normal; text-align: center; max-width: 100%; }
.hp-own-actions.is-secondary { margin: 12px 0 0; }
.hp-own-only .hp, .hp-own-only .hp-own { min-width: 0; max-width: 100%; box-sizing: border-box; }
.hp-cur-stock { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff5e0; border: 1px solid #f2d59b; }
@media (max-width: 600px) { .hp-own-actions .btn { flex: 1 1 100%; } }
.av-appearance { margin-top: 6px; }
.av-appearance textarea { width: 100%; font-size: .85rem; }
.av.av-cur .box { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47, 110, 71, .15); }
.av.av-cur [data-av-state] { background: #e3f3e8; color: var(--leaf); }
.av .cap small:empty { display: none; }
.avp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); }
.avp-play { min-height: 36px; }
.host-now { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.host-now img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--leaf); }
.host-now div { display: grid; }
.host-now b { font-size: 1.15rem; }
.host-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255, 253, 248, .96); border: 1px solid var(--line); }
.host-bar .btn { min-height: 48px; min-width: 160px; justify-content: center; }
.has-tabbar .host-bar { bottom: var(--tabbar-h); }
.host-dlg { max-width: 460px; width: calc(100% - 32px); border: 0; border-radius: 18px; padding: 20px; }
.host-dlg::backdrop { background: rgba(20, 12, 8, .5); }
.host-dlg h3 { margin: 0 0 12px; }
.host-dlg-faces { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 1.4rem; }
.host-dlg-faces img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.host-dlg-list { margin: 0 0 12px 18px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.host-dlg-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.host-dlg-btns .btn { min-height: 46px; }
@media (max-width: 640px) { .host-bar .btn, .host-dlg-btns .btn { flex: 1 1 auto; } }
/* chips linking to the host picker */
.host-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; min-height: 40px; border-radius: 99px; background: var(--paper); border: 1.5px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.host-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; }
.host-chip u { color: var(--ant-d); text-underline-offset: 3px; }
.host-chip-row { margin: -4px 0 14px; }
.su-for-host { margin: 0 0 10px; }
.avp-row > span { display: inline; }

/* Kuiz form sections + toggle switches (shared) */
.kz-sec { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); min-width: 0; }
.kz-sec > .field, .kz-sec .form-grid { margin-bottom: 0; }
.kz-h { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-grid.kz-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.kz-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.kz-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .form-grid.kz-3 { grid-template-columns: 1fr; } }
.kz-sec .field > input, .kz-sec .field > select { width: 100%; max-width: none; box-sizing: border-box; height: 46px; }
.kz-seg { flex-wrap: wrap; }
.kz-toggles { display: grid; gap: 10px; }
.kz-say-n { margin: 0 0 0 52px; max-width: 280px; }
.kz-tgl-cell { align-content: end; }
.kz-tgl-cell .tgl { min-height: 46px; }
.kz-more > summary { cursor: pointer; font-weight: 800; color: var(--ant-d); min-height: 44px; display: flex; align-items: center; list-style: none; }
.kz-more > summary::-webkit-details-marker { display: none; }
.kz-more[open] > summary { margin-bottom: 10px; }
.kz-more > .kz-sec + .kz-sec { margin-top: 14px; }
.kz-adv { margin-top: 12px; }
.kz-adv .field + .field { margin-top: 12px; }
.kz-lbl-row { display: flex; align-items: center; gap: 8px; }
.kz-lbl-row label { flex: 1; margin: 0; }
.kz-q { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ant-d); font-weight: 800; font-size: 1rem; cursor: pointer; }
.kz-q[aria-expanded="true"] { background: var(--ant-d); color: #fff; }
.kz-help { margin: 6px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: .9rem; line-height: 1.45; }
.tgl { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 700; position: relative; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl .sw { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.tgl .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.tgl input:checked + .sw { background: var(--leaf); }
.tgl input:checked + .sw::after { transform: translateX(18px); }
.tgl input:focus-visible + .sw { outline: 2px solid var(--ant); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tgl .sw, .tgl .sw::after { transition: none; } }
.qc-card-opts { display: grid; gap: 12px; } .qc-card-opts[hidden] { display: none; } .qc-card-opts > .field, .qc-card-opts > .form-grid { margin-bottom: 0; }

/* ── §28 progress component (every wait on the site) ── */
.jp { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line-2); margin: 10px 0; }
.jp-title { margin: 0; font-weight: 800; }
.jp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jp-stage { font-size: .95rem; }
.jp-pct { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ant-d); }
.jp-bar { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; position: relative; }
.jp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ant), #f08a4b); transition: width .4s ease-out; position: relative; overflow: hidden; }
.jp-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: jpShine 1.6s ease-in-out infinite; }
@keyframes jpShine { to { transform: translateX(100%); } }
.jp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.jp-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 6px; }
.jp-parts img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--line-2); animation: jpIn .3s ease-out; }
@keyframes jpIn { from { opacity: 0; transform: scale(.94); } }
.jp-leave { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.jp.is-done { border-color: #b9dcc4; background: #f1faf3; }
.jp.is-done .jp-bar i { background: var(--leaf); }
.jp.is-done .jp-bar i::after, .jp.is-fail .jp-bar i::after { display: none; }
.jp.is-fail { border-color: #f1b8ad; background: #fff5f2; }
.jp.is-fail .jp-bar i { background: #e4472a; opacity: .5; }
.jp-err { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8a1f12; font-weight: 600; font-size: .9rem; }
.jp-err .btn { min-height: 40px; }
.jp.is-still .jp-bar i { transition: none; }
.jp.is-still .jp-bar i::after { display: none; }
/* top loading bar for user-started server calls */
.jp-top { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; background: linear-gradient(90deg, transparent, var(--ant), transparent); background-size: 50% 100%; background-repeat: no-repeat; }
.jp-top.is-on { opacity: 1; animation: jpTop 1.1s linear infinite; }
@keyframes jpTop { from { background-position: -50% 0; } to { background-position: 150% 0; } }
/* busy buttons */
.is-busy { position: relative; cursor: progress !important; opacity: .85; }
.is-busy::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: jpSpin .7s linear infinite; }
@keyframes jpSpin { to { transform: rotate(360deg); } }
/* header indicator */
.jp-pill { position: relative; }
.jp-pill > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 99px; background: #fff5e0; border: 1px solid #f2d59b; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.jp-pill > summary::-webkit-details-marker { display: none; }
.jp-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ant); border-right-color: transparent; animation: jpSpin .8s linear infinite; flex: none; }
.jp-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(300px, calc(100vw - 32px)); padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); display: grid; gap: 8px; }
.jp-pop ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 6px; }
.jp-pop a { font-weight: 700; }
.jp-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 9998; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.has-tabbar .jp-toasts { bottom: calc(var(--tabbar-h) + 12px); }
.jp-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #f1faf3; border: 1px solid #b9dcc4; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); font-weight: 700; font-size: .9rem; animation: jpIn .25s ease-out; }
.jp-toast.is-fail { background: #fff5f2; border-color: #f1b8ad; }
.jp-toast span { flex: 1; }
.jp-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; min-width: 32px; min-height: 32px; color: var(--muted); }
.jp-n { display: none; }
@media (max-width: 640px) { .jp-pill > summary { gap: 6px; padding: 0 10px; } .jp-pill > summary [data-jobs-t] { display: none; } .jp-n { display: inline; font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) {
  .jp-bar i::after, .jp-top.is-on, .jp-parts img, .jp-toast { animation: none; }
  .jp-spin, .is-busy::after { animation-duration: 2.4s; }
}
.sp-jp .jp { margin: 6px 0 0; padding: 8px 10px; border-radius: 12px; gap: 4px; } .sp-jp .jp-stage { font-size: .8rem; } .sp-jp .jp-bar { height: 6px; }
.jp-loading { position: relative; }
.jp-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); border-right-color: transparent; animation: jpSpin .8s linear infinite; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); pointer-events: none; }
.voice .play.is-busy::after { position: absolute; margin: 0; inset: 6px; width: auto; height: auto; }

.jp.is-done .jp-pct { color: var(--leaf); }
.qc-win-opts { display: grid; gap: 10px; }
.qc-win-opts[hidden] { display: none; }
.qc-win-opts .hint { margin-top: -6px; }
.qc-win-who { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.qc-win-ph { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--qc); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11px; border: 2px solid rgba(255, 255, 255, .7); flex: none; }
.qc-win-ph[hidden] { display: none; }
.avp-cap .avp-row { display: block; line-height: 1.5; } .avp-row .avp-play { margin-left: 4px; vertical-align: middle; }
.qc-win-sub { display: block; margin-top: 3px; font-size: 9px; opacity: .9; }
.qc-win-sub[hidden] { display: none; }
[data-qc-photo-row][hidden] { display: none; }
[data-qc-prize-box][hidden] { display: none; }

/* ── Sambungan platform (/dashboard/sambungan) ───────────────────────────
   header row (name + badges | main action) → lead text → items → picker → help → legal */
.conn .btn { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }
.conn .btn-primary { box-shadow: 0 3px 0 -1px var(--ant-d); }
.conn .btn-sm { box-shadow: none; }
.conn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; }
.conn-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.conn-title h2 { margin: 0 4px 0 0; }
.conn-head > .btn { flex: none; }
.badge.s-none { background: var(--sand); color: var(--ink-2); }
.badge.badge-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line-2); font-weight: 600; }
.badge.badge-quiet::before { display: none; }
.conn-lead { margin: 10px 0 0; max-width: 68ch; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.conn-legal { margin: 16px 0 0; max-width: 72ch; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.conn-list { margin-top: 16px; border-top: 1px solid var(--line); }
.conn-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.conn-item:last-child { border-bottom: 0; padding-bottom: 0; }
.conn-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; }
.conn-item-main { min-width: 0; }
.conn-item-main p { margin: 0; }
.conn-item-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.conn-item-id { font-size: .8rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.conn-item-err { margin-top: 4px !important; color: var(--danger, #c0392b); }
.conn-actions { flex: none; gap: 8px; }
.conn-actions .btn { min-height: 36px; padding: .4em .95em; font-size: .88rem; }
.conn .auto-live-box { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg); }
.auto-live-box p { margin: 0 0 6px; }
.auto-live-box p:last-child { margin-bottom: 0; }
.auto-live-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.auto-live-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 6px; }
.conn .auto-live-box .btn { margin-right: 0; }

/* 2-step Facebook flow: login done → choose + save */
.conn-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.conn-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: .9rem; line-height: 1.35; }
.conn-steps .step-dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .85rem; }
.conn-steps .is-done { color: var(--muted); }
.conn-steps .is-done .step-dot { background: var(--leaf-l); color: var(--leaf); }
.conn-steps .step-state { display: inline-block; color: var(--leaf); font-weight: 700; font-size: .82rem; }
.conn-steps .is-active { border: 2px solid var(--ant); background: var(--ant-l); }
.conn-steps .is-active .step-dot { background: var(--ant-d); color: #fff; }
.conn-steps, .fb-pick { scroll-margin-top: 76px; }

/* Facebook Page picker: callout, search, scrolling list, sticky save bar */
.conn .fb-pick { margin-top: 12px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.fb-pick:focus { outline: none; }
.conn-callout { margin: 0; padding: 10px 14px; border-bottom: 1px solid #f3c9a3; border-radius: var(--r) var(--r) 0 0; background: var(--honey-l); color: #7a5004; font-weight: 700; font-size: .9rem; line-height: 1.45; }
.fb-pick-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fb-pick-head p { margin: 0; }
.fb-pick-title { font-weight: 700; font-size: .95rem; }
.conn .fb-search { width: 100%; max-width: 320px; min-height: 42px; margin: 0; }
.fb-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.fb-none { margin: 8px; }
.fb-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; line-height: 1.3; }
.fb-row + .fb-row { margin-top: 2px; }
.fb-row:hover { background: var(--bg); }
.fb-row input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ant); }
.fb-row-name { flex: 0 1 auto; min-width: 0; font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.fb-row-id { flex: none; margin-left: 2px; font-size: .75rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fb-row.is-on, .fb-row:has(input:checked) { background: var(--ant-l); box-shadow: inset 0 0 0 1px #f3b6a4; }
.fb-pick-foot { position: sticky; bottom: var(--tabbar-h, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); background: rgba(255, 253, 248, .97); backdrop-filter: blur(8px); box-shadow: 0 -6px 16px -12px rgba(29, 21, 16, .35); }
/* primary first (app convention: .actions-row > .btn-primary), so the chat bubble never sits on it */
.fb-pick-foot .btn { order: -1; }
.fb-picked { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
/* the save bar is sticky: lift the chat bubble above it (same offset chat.js uses for .sticky-bar) */
body:has(.fb-pick-foot) .chatw { bottom: calc(var(--tabbar-h, 0px) + 88px); }

/* "Tak nampak Page anda?" — small collapsible help */
.conn-help { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: .86rem; line-height: 1.5; }
.conn-help summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.conn-help summary::-webkit-details-marker { display: none; }
.conn-help summary::before { content: "?"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); color: var(--ink-2); font-size: .75rem; font-weight: 800; }
.conn-help summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s ease; }
.conn-help[open] summary::after { transform: rotate(180deg); }
.conn-help-body { padding: 0 14px 12px 42px; }
.conn-help-body p { margin: 0 0 6px; }
.conn-help-body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .conn-head { flex-direction: column; align-items: stretch; }
  .conn-head > .btn { width: 100%; }
  .conn-item-row { flex-direction: column; align-items: stretch; }
  .conn-actions { flex-direction: row; flex-wrap: wrap; }
  .conn-actions > form, .conn-actions > .btn { flex: 1 1 auto; width: auto; }
  .conn-actions > form > .btn { width: 100%; }
  .conn-steps { grid-template-columns: 1fr; }
  .fb-pick-head { flex-direction: column; align-items: stretch; }
  .conn .fb-search { max-width: none; }
  .fb-list { max-height: 360px; }
  .fb-row { flex-wrap: wrap; row-gap: 0; }
  .fb-row-id { flex-basis: 100%; padding-left: 30px; }
  .fb-pick-foot { gap: 12px; }
  .fb-pick-foot .btn { flex: 1 1 auto; }
  .fb-picked { flex: none; }
  .conn-help-body { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .conn-help summary::after { transition: none; } }
