/* ============================================================================
   VYS PRODUCTION — TAMPILAN PRO ("NOIR")
   Kanvas gelap bertekstur, HUD mono, navigasi pil, showcase satu kartu per layar.
   Semua warna Pro memakai token --nx-* supaya teks selalu terbaca di gelap & terang.
   ============================================================================ */

/* ---------- Clean Default Standar Mode Refinement ---------- */
html:not([data-pro="1"]) .vys-bg-layer,
html:not([data-pro="1"]) .vys-canvas-layer {
  opacity: .16 !important;
}
.vys-pro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line));
  background: linear-gradient(135deg, #171717, #2d2d35);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s, background .18s;
}
.vys-pro-toggle:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.vys-pro-toggle .pro-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4ff00;
  box-shadow: 0 0 8px #c4ff00;
}


/* ---------- Token ---------- */
/* Di tampilan Standar, komponen bersama (gelembung, sheet, halaman sukses) ikut warna tema aktif */
html:not([data-pro="1"]) {
  --nx-bg: var(--bg); --nx-bg2: var(--card); --nx-card: var(--card); --nx-ink: var(--text); --nx-mut: var(--muted); --nx-line: var(--line);
  --nx-chip: var(--soft); --nx-chip2: var(--soft); --nx-acc: var(--accent); --nx-ok: #22c55e; --nx-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  --nx-mono: 'JetBrains Mono', ui-monospace, monospace; --nx-sans: var(--font);
}
html[data-pro="1"] {
  --nx-bg: #1a1a1a; --nx-bg2: #232323; --nx-card: #242424; --nx-ink: #f5f5f2; --nx-mut: #a3a29d;
  --nx-line: rgba(255, 255, 255, .11); --nx-chip: rgba(255, 255, 255, .08); --nx-chip2: rgba(255, 255, 255, .14);
  --nx-acc: #f4c95d; --nx-ok: #6ee7a0; --nx-grain: .22; --nx-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --nx-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nx-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: var(--nx-bg); --card: var(--nx-card); --card2: var(--nx-bg2); --text: var(--nx-ink); --muted: var(--nx-mut);
  --line: var(--nx-line); --soft: var(--nx-chip); --primary: #8b6dff; --accent: var(--nx-acc); --radius: 18px;
  --font: var(--nx-sans); --font-display: var(--nx-sans); --shadow-card: none; --shadow-hover: 0 14px 34px rgba(0, 0, 0, .28);
  --btn-shadow: none; --border-w: 1px; --gb-pad: clamp(20px, 5vw, 88px);
  color-scheme: dark;
}
html[data-pro="1"][data-pro-tone="light"] {
  --nx-bg: #efeeea; --nx-bg2: #e6e5e0; --nx-card: #fbfbf9; --nx-ink: #161616; --nx-mut: #66655f;
  --nx-line: rgba(0, 0, 0, .12); --nx-chip: rgba(0, 0, 0, .06); --nx-chip2: rgba(0, 0, 0, .11);
  --nx-acc: #a8610a; --nx-ok: #15803d; --nx-grain: .12; --nx-shadow: 0 24px 60px rgba(0, 0, 0, .16); --primary: #5b3df5;
  color-scheme: light;
}
html[data-pro="1"] body {
  background: var(--nx-bg) !important; background-image: none !important; color: var(--nx-ink);
  font-family: var(--nx-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* tekstur grain + garis kisi tipis */
html[data-pro="1"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--nx-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-pro="1"] body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(var(--nx-line), var(--nx-line)) 0 30% / 100% 1px no-repeat, linear-gradient(var(--nx-line), var(--nx-line)) 0 68% / 100% 1px no-repeat,
    linear-gradient(90deg, var(--nx-line), var(--nx-line)) 56% 0 / 1px 100% no-repeat; opacity: .35;
}
html[data-pro="1"] .vys-bg-layer, html[data-pro="1"] .vys-canvas-layer, html[data-pro="1"] .vys-bg-veil,
html[data-pro="1"] .top, html[data-pro="1"] footer, html[data-pro="1"] .vys-arcade-fab { display: none !important; }
html[data-pro="1"] main#app { position: relative; z-index: 1; }
html[data-pro="1"] main#app.wrap:not(.pro-subpage-shell) { max-width: none !important; padding: 0 !important; margin: 0 !important; }
html[data-pro="1"] main#app.pro-subpage-shell { padding-top: 104px; padding-bottom: 120px; max-width: 1080px; }

/* ---------- Header + HUD ---------- */
.nx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; pointer-events: none; font-family: var(--nx-sans); color: var(--nx-ink);
  background: linear-gradient(var(--nx-bg) 0%, var(--nx-bg) 78%, transparent); padding-bottom: 12px; }
.nx-header.hide { display: none; }
.nx-header > * { pointer-events: auto; }
.nx-hud { display: flex; gap: 6px; padding: 5px 16px 0; font: 500 9.5px/1 var(--nx-mono); letter-spacing: .04em; color: var(--nx-mut); white-space: nowrap; overflow: hidden; }
.nx-hud span { padding: 4px 7px; border-radius: 4px; background: var(--nx-chip); }
.nx-hud b { color: var(--nx-ink); font-weight: 700; }
.nx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 0; }
.nx-logo { display: inline-flex; gap: 3px; align-items: center; text-decoration: none; color: var(--nx-ink); }
.nx-logo i { font: 700 15px/1 var(--nx-sans); font-style: normal; width: 27px; height: 27px; display: grid; place-items: center; border: 1.6px solid currentColor; border-radius: 50%; }
.nx-logo i + i { border-radius: 6px; }
.nx-nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; border: 1px solid var(--nx-line); background: color-mix(in srgb, var(--nx-bg2) 86%, transparent); backdrop-filter: blur(14px); }
.nx-nav a, .nx-nav button { border: 0; background: none; color: var(--nx-ink); font: 500 14.5px/1 var(--nx-sans); padding: 9px 13px; border-radius: 9px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nx-nav a:hover, .nx-nav button:hover, .nx-nav .on { background: var(--nx-chip2); }
.nx-tools { display: flex; align-items: center; gap: 7px; }
.nx-ib { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--nx-line); background: color-mix(in srgb, var(--nx-bg2) 86%, transparent); color: var(--nx-ink); cursor: pointer; backdrop-filter: blur(14px); padding: 0; }
.nx-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nx-ib:active { transform: scale(.94); }
.nx-ib sup { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--nx-ink); color: var(--nx-bg); font: 700 10px/17px var(--nx-mono); text-align: center; }
.nx-ib sup:empty, .nx-ib sup[data-n="0"] { display: none; }
.nx-ib.off { color: var(--nx-mut); }
.nx-seg { display: flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--nx-line); background: color-mix(in srgb, var(--nx-bg2) 86%, transparent); backdrop-filter: blur(14px); }
.nx-seg button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--nx-mut); cursor: pointer; padding: 0; }
.nx-seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nx-seg button.on { background: var(--nx-chip2); color: var(--nx-ink); }
@media (max-width: 860px) {
  .nx-nav { display: none; }
  .nx-hud span:nth-child(n+4) { display: none; }
  .nx-ib { width: 38px; height: 38px; }
}
@media (min-width: 861px) { .nx-only-mob { display: none !important; } .nx-bar { padding: 12px 22px 0; } .nx-hud { padding: 5px 22px 0; } }

/* ---------- Pil kategori (bisa digeser, tetap bisa diketuk) ---------- */
.nx-cats { position: sticky; top: 92px; z-index: 40; display: flex; gap: 7px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; scroll-padding: 16px;
  background: var(--nx-bg); }
.nx-cats::-webkit-scrollbar { display: none; }
.nx-cat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--nx-line); background: var(--nx-chip); color: var(--nx-ink);
  font: 600 13.5px/1 var(--nx-sans); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.nx-cat small { font: 500 10.5px/1 var(--nx-mono); color: var(--nx-mut); }
.nx-cat.on { background: var(--nx-ink); color: var(--nx-bg); border-color: var(--nx-ink); }
.nx-cat.on small { color: color-mix(in srgb, var(--nx-bg) 70%, var(--nx-ink)); }
@media (min-width: 861px) { .nx-cats { position: static; justify-content: center; flex-wrap: wrap; padding: 10px 22px; max-width: 1180px; margin: 0 auto; } .nx-intro h1 { min-height: 1.1em; } }

/* ---------- Beranda: intro + showcase ---------- */
.nx-home { padding-top: 92px; padding-bottom: 110px; scroll-margin-top: 0; }
.nx-intro { padding: 16px 16px 0; max-width: 1120px; margin: 0 auto; }
.nx-kicker { font: 500 11px/1.4 var(--nx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--nx-mut); }
.nx-intro h1 { font: 700 clamp(24px, 4.2vw, 40px)/1.1 var(--nx-sans); letter-spacing: -.03em; margin: 8px 0 6px; min-height: 1.1em; }
.nx-intro h1 .nx-caret { display: inline-block; width: .06em; height: .9em; margin-left: .06em; background: currentColor; vertical-align: -.08em; animation: nxBlink 1s steps(2) infinite; }
@keyframes nxBlink { 50% { opacity: 0; } }
.nx-intro p { font-size: 14px; line-height: 1.55; color: var(--nx-mut); margin: 0; max-width: 560px; }
@media (max-width: 599px) { .nx-intro p { display: none; } }
.nx-shop { padding-top: 22px; }
.nx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
@media (min-width: 600px) { .nx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; } }
@media (min-width: 860px) { .nx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .nx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; } }
.nx-pc { display: flex; flex-direction: column; min-width: 0; color: var(--nx-ink); text-decoration: none; font-family: var(--nx-sans); cursor: pointer; -webkit-tap-highlight-color: transparent; animation: nxPcIn .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes nxPcIn { from { opacity: 0; transform: translateY(10px); } }
.nx-pc-art { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--nx-bg2); margin-bottom: 9px; }
.nx-pc-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.nx-pc-art.logo { background: #fff; }
.nx-pc-art.logo img { object-fit: contain; padding: 14%; }
.nx-pc-art .tile { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; }
.nx-pc:hover .nx-pc-art img { transform: scale(1.05); }
.nx-pc:active .nx-pc-art { transform: scale(.98); }
.nx-pc.out .nx-pc-art img { opacity: .55; filter: grayscale(.6); }
.nx-flag { position: absolute; left: 7px; top: 7px; z-index: 2; padding: 4px 7px; border-radius: 5px; font: 700 9.5px/1 var(--nx-mono); letter-spacing: .04em; background: #f4c95d; color: #1a1a1a; }
.nx-flag.mute { background: var(--nx-ink); color: var(--nx-bg); }
.nx-pc-cat { font-size: 11.5px; line-height: 1.3; color: var(--nx-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-pc-name { font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-pc-price { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.nx-pc-price s { color: var(--nx-mut); font-weight: 500; font-size: 11.5px; margin-left: 6px; }
.nx-pc-sub { font: 500 10.5px/1.3 var(--nx-mono); color: var(--nx-mut); margin-top: 3px; }
.nx-more { display: flex; justify-content: center; margin-top: 20px; }
.nx-more[hidden] { display: none; }
.nx-empty { grid-column: 1 / -1; padding: 30px 10px; text-align: center; color: var(--nx-mut); font-size: 14px; }
.nx-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: var(--nx-chip2); color: var(--nx-ink); font: 600 14px/1 var(--nx-sans); cursor: pointer; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.nx-btn:hover { background: var(--nx-ink); color: var(--nx-bg); }
.nx-btn:active { transform: scale(.97); }
.nx-btn.solid { background: var(--nx-ink); color: var(--nx-bg); }

/* ---------- Katalog ---------- */
.nx-section { position: relative; padding: 46px 16px 10px; max-width: 1120px; margin: 0 auto; }
.nx-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.nx-sec-head h2 { font: 700 clamp(19px, 2.6vw, 26px)/1.15 var(--nx-sans); letter-spacing: -.02em; margin: 6px 0 0; }
.nx-shop .nx-sec-head { align-items: center; margin-bottom: 14px; } .nx-shop .nx-sec-head h2 { margin: 0; }
.nx-search { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--nx-line); background: var(--nx-chip); flex: 1 1 260px; max-width: 420px; color: var(--nx-mut); }
.nx-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: 0 0 auto; }
.nx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--nx-ink); font: 500 14.5px var(--nx-sans); }
.nx-search input::placeholder { color: var(--nx-mut); }
.nx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nx-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; border: 1px solid var(--nx-line); background: var(--nx-chip); color: var(--nx-ink); text-decoration: none; cursor: pointer; text-align: left; font-family: var(--nx-sans); transition: background .18s, transform .18s; }
.nx-tile:hover { background: var(--nx-chip2); transform: translateY(-2px); }
.nx-tile .ic { font-size: 24px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--nx-chip2); overflow: hidden; }
.nx-tile .ic img { width: 100%; height: 100%; object-fit: cover; }
.nx-tile b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.nx-tile small { font: 500 10.5px/1 var(--nx-mono); color: var(--nx-mut); }
.nx-tile.hot { border-color: var(--nx-acc); }
.nx-tile.hot small { color: var(--nx-acc); }
@media (max-width: 520px) { .nx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nx-sheet-ov { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: nxFade .2s ease; }
.nx-sheet { width: min(100%, 560px); max-height: 82svh; overflow: auto; background: var(--nx-bg2); color: var(--nx-ink); border: 1px solid var(--nx-line); border-radius: 22px 22px 0 0; padding: 10px 16px calc(22px + env(safe-area-inset-bottom, 0px)); animation: nxUp .32s cubic-bezier(.22, 1, .36, 1); font-family: var(--nx-sans); }
.nx-sheet::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--nx-chip2); margin: 0 auto 14px; }
.nx-sheet h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.nx-sheet p { margin: 0 0 14px; color: var(--nx-mut); font-size: 13.5px; }
.nx-menu { display: grid; gap: 6px; }
.nx-menu a, .nx-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--nx-line); background: var(--nx-chip); color: var(--nx-ink); font: 600 14.5px var(--nx-sans); text-decoration: none; cursor: pointer; text-align: left; }
.nx-menu small { font: 500 10.5px var(--nx-mono); color: var(--nx-mut); }
@media (min-width: 861px) { .nx-sheet-ov { align-items: center; } .nx-sheet { border-radius: 22px; padding-bottom: 22px; } .nx-sheet::before { display: none; } }
@keyframes nxFade { from { opacity: 0; } }
@keyframes nxUp { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Komponen toko di dalam Pro (kartu produk, form, tombol) ---------- */
html[data-pro="1"] .pcard, html[data-pro="1"] .card, html[data-pro="1"] .cat, html[data-pro="1"] .lrow { background: var(--nx-card); border: 1px solid var(--nx-line); color: var(--nx-ink); box-shadow: none; border-radius: 18px; }
html[data-pro="1"] .pcard:hover { border-color: var(--nx-chip2); transform: translateY(-3px); }
html[data-pro="1"] .pname { color: var(--nx-ink); }
html[data-pro="1"] .pro-subpage-shell h1, html[data-pro="1"] .pro-subpage-shell h2, html[data-pro="1"] .pro-subpage-shell h3 { font-family: var(--nx-sans); letter-spacing: -.02em; text-transform: none; }
html[data-pro="1"] .price { color: var(--nx-acc); }
html[data-pro="1"] .btn:not(.ghost):not(.danger):not(.accent) { background: var(--nx-ink); color: var(--nx-bg); border-color: var(--nx-ink); box-shadow: none; }
html[data-pro="1"] .btn.ghost, html[data-pro="1"] .pcard-act-btn, html[data-pro="1"] .chip { background: var(--nx-chip); color: var(--nx-ink); border: 1px solid var(--nx-line); box-shadow: none; }
html[data-pro="1"] .chip.on, html[data-pro="1"] .opt.on { background: var(--nx-ink); color: var(--nx-bg); border-color: var(--nx-ink); }
html[data-pro="1"] .opt.on small, html[data-pro="1"] .opt.on .muted { color: inherit; opacity: .75; }
html[data-pro="1"] .input, html[data-pro="1"] select, html[data-pro="1"] textarea, html[data-pro="1"] .qty input { background: var(--nx-chip); color: var(--nx-ink); border-color: var(--nx-line); }
html[data-pro="1"] .tag { background: var(--nx-chip); color: var(--nx-ink); }
html[data-pro="1"] .ann, html[data-pro="1"] .sum { background: var(--nx-chip); border-color: var(--nx-line); color: var(--nx-ink); }
html[data-pro="1"] .toast { background: var(--nx-ink); color: var(--nx-bg); border: 0; font-weight: 600; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
html[data-pro="1"] .vys-modal { background: var(--nx-bg2); color: var(--nx-ink); border-color: var(--nx-line); }
html[data-pro="1"] .cs-fab { background: var(--nx-ink); color: var(--nx-bg); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); height: 40px; font-size: 13px; }
html[data-pro="1"] .music-btn { display: none !important; }

/* ---------- Halaman produk ---------- */
.tm-product-stage { animation: nxStage .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes nxStage { from { opacity: 0; transform: translateY(22px); } }
.tm-display-banner { border-bottom: 1px solid var(--nx-line); padding-bottom: 16px; margin-bottom: 20px; }
.tm-fig-label { font: 500 11px/1.4 var(--nx-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--nx-mut); }
.tm-giant-title { font: 700 clamp(26px, 5vw, 46px)/1.1 var(--nx-sans) !important; letter-spacing: -.03em !important; text-transform: none !important; color: var(--nx-ink) !important; margin: 8px 0; text-wrap: balance; }
.tm-artwork-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); background: var(--nx-bg2); }
html[data-pro="1"] .pd-interact-bar .btn { flex: 1 1 0; min-width: 0; font-size: 13px; padding-inline: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* dock checkout */
.tm-checkout-dock { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 65; display: flex; gap: 6px; padding: 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--nx-bg2) 92%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); max-width: calc(100vw - 24px); }
.tm-dock-btn { height: 44px; padding: 0 16px; border-radius: 11px; border: 0; font: 600 13.5px/1 var(--nx-sans); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: transform .16s; }
.tm-dock-btn:active { transform: scale(.96); }
.tm-dock-btn.primary { background: var(--nx-ink); color: var(--nx-bg); }
.tm-dock-btn.secondary { background: var(--nx-chip2); color: var(--nx-ink); }
@media (min-width: 861px) { .tm-checkout-dock { bottom: 22px; } }
html[data-pro="1"] body.has-tm-dock .cs { display: none !important; }

/* ---------- Tirai ---------- */
#vys-curtain-overlay { position: fixed; inset: 0; z-index: 200; overflow: hidden; display: grid; place-items: center; transition: opacity .32s ease; }
#vys-curtain-overlay.bye { opacity: 0; pointer-events: none; }
#vys-curtain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tm-curtain-crest { position: relative; z-index: 5; text-align: center; color: #fff; padding: 22px 28px; max-width: min(400px, 86vw); font-family: var(--nx-sans, sans-serif);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1); text-shadow: 0 2px 18px rgba(0, 0, 0, .65); }
.tm-curtain-crest.pre { opacity: 0; transform: translateY(14px); }
.tm-curtain-crest.hide-crest { opacity: 0; transform: translateY(-18px) scale(.96); }
.tm-curtain-crest .crest-kicker { font: 500 10.5px/1.4 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.tm-curtain-crest h3 { font-size: clamp(22px, 5vw, 34px); font-weight: 700; letter-spacing: -.03em; margin: 8px 0 6px; line-height: 1.12; color: #fff; text-wrap: balance; }
.tm-curtain-crest p { margin: 0; font-size: 14px; opacity: .88; }

/* ---------- Gelembung notifikasi (ulasan, bintang, info) ---------- */
#nxBubbles { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
body.has-tm-dock #nxBubbles { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
.nx-bubble { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: min(340px, 100%); padding: 10px 13px; border-radius: 14px; font-family: var(--nx-sans, 'Plus Jakarta Sans', sans-serif);
  background: color-mix(in srgb, var(--nx-bg2, #232323) 94%, transparent); color: var(--nx-ink, #fff); border: 1px solid var(--nx-line, rgba(255, 255, 255, .12)); box-shadow: 0 14px 34px rgba(0, 0, 0, .32); backdrop-filter: blur(14px);
  animation: nxBubIn .45s cubic-bezier(.22, 1.3, .36, 1) both; cursor: pointer; }
.nx-bubble.out { animation: nxBubOut .35s ease forwards; }
.nx-bubble .dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--nx-ok, #6ee7a0); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-ok, #6ee7a0) 22%, transparent); }
.nx-bubble b { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.nx-bubble .stars { color: #eab308; letter-spacing: 1px; font-size: 12px; margin-right: 4px; }
.nx-bubble span.t { display: block; font: 500 11.5px/1.45 var(--nx-mono, monospace); color: var(--nx-mut, #a3a29d); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes nxBubIn { from { opacity: 0; transform: translateY(18px) scale(.92); } }
@keyframes nxBubOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 860px) { #nxBubbles { right: 100px; } }
@media (min-width: 861px) { #nxBubbles { left: 22px; bottom: 22px; } }

/* ---------- Halaman sukses checkout ---------- */
.nx-done { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 26px 20px; text-align: center; margin: 14px 0; }
.nx-done .seal { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e; animation: nxSeal .7s cubic-bezier(.22, 1.5, .36, 1) both; }
.nx-done .seal svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: nxTick .5s .35s ease forwards; }
@keyframes nxSeal { from { transform: scale(.4); opacity: 0; } }
@keyframes nxTick { to { stroke-dashoffset: 0; } }
.nx-done h2 { margin: 0 0 6px; font-size: clamp(21px, 4.4vw, 28px); letter-spacing: -.03em; line-height: 1.15; }
.nx-done p { margin: 0 auto; max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.nx-done .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.nx-done .facts span { padding: 6px 10px; border-radius: 8px; background: var(--soft); font: 500 11.5px/1 'JetBrains Mono', monospace; }
.nx-rate { border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 20px; margin: 14px 0; }
.nx-rate h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.nx-rate .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.nx-stars { display: flex; gap: 6px; margin: 4px 0 10px; }
.nx-stars button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; transition: transform .15s, color .15s; padding: 0; }
.nx-stars button.on { color: #f4b740; transform: scale(1.06); }
.nx-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nx-quick button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.nx-quick button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.nx-tips { display: grid; gap: 8px; margin: 14px 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.nx-tips a, .nx-tips button { display: flex; gap: 10px; align-items: center; padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.nx-tips small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- Operator (Pulsa / Paket Data) ---------- */
.nx-ops { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; touch-action: pan-x; }
.nx-ops::-webkit-scrollbar { display: none; }
.nx-op { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nx-op.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.nx-op small { font-weight: 500; opacity: .7; margin-left: 4px; }
.nx-kind { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); gap: 3px; margin: 8px 0 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nx-kind::-webkit-scrollbar { display: none; }
.nx-kind a { padding: 9px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap; }
.nx-kind a.on { background: var(--text); color: var(--bg); }

/* ---------- Navigasi bawah (HP) ---------- */
html[data-pro="1"] .vys-mnav { background: color-mix(in srgb, var(--nx-bg2) 92%, transparent) !important; backdrop-filter: blur(16px); color: var(--nx-ink); border-top: 1px solid var(--nx-line); }
html[data-pro="1"] .vys-mnav button, html[data-pro="1"] .vys-mnav a { color: var(--nx-mut); }
html[data-pro="1"] .vys-mnav .on { color: var(--nx-ink); background: var(--nx-chip); }
.vys-mnav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 3px; }
.vys-mnav .mid { color: var(--text) !important; font-weight: 800; }
.vys-mnav .mid .pip { display: grid; place-items: center; width: 44px; height: 30px; margin: 0 auto 3px; border-radius: 10px; background: var(--text); color: var(--bg); }
.vys-mnav .mid .pip svg { margin: 0; width: 17px; height: 17px; }
html[data-pro="1"] .vys-mnav .mid { color: var(--nx-ink) !important; }
html[data-pro="1"] .vys-mnav .mid .pip { background: var(--nx-ink); color: var(--nx-bg); }
@media (prefers-reduced-motion: reduce) { .nx-pc, .tm-product-stage, .nx-bubble { transition: none !important; animation: none !important; } }

/* ---------- Langkah pesanan + daftar ulasan ---------- */
.nx-steps { display: flex; gap: 6px; margin: 12px 0; }
.nx-steps span { flex: 1; text-align: center; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--line); font: 600 11.5px/1 'JetBrains Mono', monospace; color: var(--muted); }
.nx-steps .done { color: #22c55e; border-color: color-mix(in srgb, #22c55e 40%, transparent); }
.nx-steps .now { background: var(--text); color: var(--bg); border-color: var(--text); }
.nx-revs summary { cursor: pointer; font-size: 13.5px; font-weight: 700; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); list-style: none; }
.nx-revs summary::-webkit-details-marker { display: none; }
.nx-revs summary::after { content: " ↓"; }
.nx-revs[open] summary::after { content: " ↑"; }
@media (max-width: 768px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

/* ============================================================================
   PANGGUNG PEMBUKA — tanda tangan pena + garis cerita (warna kertas/tinta diatur JS lewat --stage-paper/--stage-ink)
   ============================================================================ */
/* ---------- 2. GIANLUCA BOCCIA EXACT STICKY STAGE & SIGNATURE ---------- */
#vys-journey {
  position: relative;
  width: 100%;
  background: var(--stage-paper, #ffffff);
  color: var(--stage-ink, #171717);
  transition: background-color .15s linear;
}
.gb-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: var(--stage-paper, #ffffff);
  color: var(--stage-ink, #171717);
}
#vys-scroll-space {
  height: 580svh;
  pointer-events: none;
}
@media (max-width: 700px) {
  #vys-scroll-space { height: 480svh; }
}

.gb-copy {
  position: absolute;
  top: 16.5%;
  left: var(--gb-pad);
  right: var(--gb-pad);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: 1080px;
  color: var(--stage-ink, #171717);
}
.gb-copy h1, .gb-copy h2, .gb-copy p, .gb-copy .gb-eyebrow {
  color: var(--stage-ink, #171717);
}
.gb-copy.active {
  pointer-events: auto;
  visibility: visible;
}
.gb-copy.hero { top: 22%; }
.gb-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .62;
  margin: 0 0 22px;
  line-height: 1.5;
  font-weight: 600;
}
.gb-copy h1, .gb-copy h2 {
  font-family: "Helvetica Neue", "Space Grotesk", Helvetica, Arial, sans-serif;
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.02;
  margin: 0 0 22px;
  text-wrap: balance;
}
.gb-copy p {
  max-width: 540px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.52;
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
.gb-copy .gb-note {
  font-size: clamp(13px, 1.25vw, 15px);
  opacity: .68;
  max-width: 500px;
}
.gb-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}
.gb-inline-links button,
.gb-inline-links a {
  font-size: 13px;
  font-weight: 600;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  padding: 0 0 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gb-inline-links button:hover,
.gb-inline-links a:hover { opacity: .65; }

/* Signature Art & Hand */
.gb-sig-title {
  position: relative;
  width: min(640px, 84vw);
  margin: 0 0 24px !important;
  will-change: transform;
}
.gb-sig-readable {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.gb-sig-art {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  color: currentColor;
}
.gb-sig-anchor {
  position: absolute;
  right: 1.5%;
  bottom: 24%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  pointer-events: none;
}
.gb-narration {
  opacity: var(--sig-caption, 0);
  transition: opacity .25s ease, transform .25s ease;
}

#vys-signature-hand,
#vys-author-hand {
  position: absolute;
  left: 0;
  top: 0;
  width: 1240px;
  height: 760px;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  will-change: transform, opacity;
}
#vys-signature-hand svg,
#vys-author-hand svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#vys-motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Gianluca Exact Stage Footer & Progress Track */
.gb-stage-footer {
  position: absolute;
  bottom: 26px;
  left: var(--gb-pad);
  right: clamp(120px, 11vw, 180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: .03em;
  z-index: 12;
  color: var(--stage-ink, #171717);
}
.gb-stage-footer button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 6px 0;
}
.gb-chapter-num {
  font-variant-numeric: tabular-nums;
  opacity: .58;
  font-weight: 700;
}
.gb-plus {
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}
.gb-reading-links {
  display: flex;
  gap: 18px;
  opacity: .68;
}
.gb-reading-links a:hover, .gb-reading-links button:hover { opacity: 1; }
.gb-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: color-mix(in srgb, var(--stage-ink, #171717) 10%, transparent);
  z-index: 14;
}
#vys-progress {
  height: 100%;
  width: 100%;
  background: var(--stage-ink, #171717);
  transform-origin: left;
  transform: scaleX(0);
}
@media (max-width: 768px) {
  .gb-stage-footer { bottom: 72px; font-size: 11px; }
  .gb-reading-links { display: none; }
  .gb-copy.hero { top: 18%; }
  .gb-copy { top: 14%; }
  .gb-copy h1, .gb-copy h2 { font-size: clamp(32px, 9vw, 48px); }
}

/* Gianluca Chapter Dialog */
dialog#vys-gb-panel {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(820px, 94vw);
  max-height: 88vh;
  background: #ffffff;
  color: #171717;
  border-radius: 16px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .35);
  overflow: hidden;
}
dialog#vys-gb-panel::backdrop {
  background: rgba(15, 15, 20, .55);
  backdrop-filter: blur(8px);
}
.gb-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #deded9;
}
.gb-panel-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  max-height: calc(88vh - 70px);
}
.gb-chapter-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.gb-chapter-list li { border-top: 1px solid #deded9; }
.gb-chapter-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  background: none;
  border: 0;
  color: #171717;
  text-align: left;
  cursor: pointer;
  font-size: 17px;
  transition: padding-left .15s;
}
.gb-chapter-list button:hover { padding-left: 10px; opacity: .72; }
.gb-chapter-list .idx { font-size: 12px; color: #72716c; font-variant-numeric: tabular-nums; }
.gb-chapter-list .place { font-size: 11px; color: #72716c; text-transform: uppercase; letter-spacing: .08em; }

/* Header di atas panggung: transparan dan memakai warna tinta panggung supaya selalu kontras */
.nx-header.on-stage { background: none; --nx-ink: var(--stage-ink, #171717); --nx-bg: var(--stage-paper, #ffffff); --nx-bg2: transparent;
  --nx-mut: color-mix(in srgb, var(--stage-ink, #171717) 62%, transparent); --nx-line: color-mix(in srgb, var(--stage-ink, #171717) 24%, transparent);
  --nx-chip: color-mix(in srgb, var(--stage-ink, #171717) 9%, transparent); --nx-chip2: color-mix(in srgb, var(--stage-ink, #171717) 18%, transparent); }
.nx-header.on-stage .nx-nav, .nx-header.on-stage .nx-ib, .nx-header.on-stage .nx-seg { backdrop-filter: none; }
dialog#vys-gb-panel h2 { color: #171717; }
