/* ============================================================
   TOKOSIBER.id — style.css
   gaya: pasar jalanan jakarta. kardus, lakban, stiker, neon.
   dikerjakan manual. kalau ada kelas aneh, itu memang disengaja.
   ============================================================ */

:root {
  --aspal: #17150f;
  --aspal-2: #201d15;
  --aspal-3: #2a261b;
  --kertas: #f6f0df;
  --kertas-2: #ece4cd;
  --kuning: #ffd400;
  --kuning-2: #ffe869;
  --merah: #ff4438;
  --hijau: #3fd97f;
  --oranye: #ff8a00;
  --tinta: #15130d;
  --putih: #faf8f0;
  --abu: #9a947f;
  --abu-2: #6d6852;
  --garis: #332e20;
  --hard: 4px 4px 0 rgba(0, 0, 0, .82);
  --hard-sm: 3px 3px 0 rgba(0, 0, 0, .8);
  --f-disp: 'Bungee', system-ui, sans-serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;
  --f-hand: 'Permanent Marker', cursive;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  touch-action: pan-x pan-y; /* blok pinch-zoom; scroll biasa tetap jalan */
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 212, 0, .07), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(255, 68, 56, .05), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, .012) 2px 4px),
    var(--aspal);
  color: var(--putih);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
}

.page { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--kuning); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }

.wrap { width: min(1180px, 94vw); margin-inline: auto; }
.section { padding: 2.4rem 0 1.4rem; }
.muted { color: var(--abu); }
.small { font-size: .85rem; }
.empty { color: var(--abu); text-align: center; padding: 2rem 0; }

::selection { background: var(--kuning); color: var(--tinta); }

/* ---------- scrollbar ---------- */
.scroll-y { max-height: 24rem; overflow-y: auto; padding-right: 4px; }
.scroll-y::-webkit-scrollbar { width: 10px; }
.scroll-y::-webkit-scrollbar-track { background: var(--aspal-2); border-radius: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--abu-2); border-radius: 8px; border: 2px solid var(--aspal-2); }
.scroll-y::-webkit-scrollbar-thumb:hover { background: var(--kuning); }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--kuning); color: var(--tinta);
  border-bottom: 2px solid var(--tinta);
  font-family: var(--f-hand); font-size: .95rem; letter-spacing: .5px;
}
.ticker-inner { display: inline-block; padding: 5px 0; animation: ticker 26s linear infinite; }
.ticker-inner span { margin-right: 3rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem max(3vw, 1rem);
  background: rgba(23, 21, 15, .92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--garis);
}
.logo { display: flex; align-items: center; gap: .55rem; }
.logo:hover { text-decoration: none; }
.logo-badge {
  font-family: var(--f-mono); font-weight: 700;
  background: var(--kuning); color: var(--tinta);
  border: 2px solid var(--tinta); box-shadow: var(--hard-sm);
  padding: .12rem .4rem; font-size: 1rem;
  transform: rotate(-3deg);
}
.logo-word { font-family: var(--f-disp); font-size: 1.05rem; color: var(--putih); letter-spacing: .5px; }
.logo-word em { font-style: normal; color: var(--kuning); }
.logo-word i { font-style: normal; font-family: var(--f-hand); color: var(--merah); font-size: .9rem; margin-left: 2px; }

.topsearch { display: flex; gap: .4rem; flex: 1; max-width: 420px; }
.topsearch input {
  flex: 1; background: var(--aspal-2); color: var(--putih);
  border: 2px solid var(--garis); border-radius: 8px;
  padding: .45rem .8rem; font-family: var(--f-body);
}
.topsearch input:focus { outline: 2px solid var(--kuning); border-color: transparent; }

.topnav { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.topnav-link { color: var(--putih); font-weight: 500; padding: .3rem .5rem; border-radius: 6px; }
.topnav-link:hover { color: var(--kuning); text-decoration: none; background: var(--aspal-2); }
.saldo-chip {
  background: var(--aspal-3); border: 2px dashed var(--abu-2);
  color: var(--kuning-2); border-radius: 999px; padding: .28rem .7rem; font-size: .85rem;
}
.cart-btn {
  position: relative; font-size: 1.25rem; padding: .25rem .45rem;
  border: 2px solid var(--garis); border-radius: 10px; background: var(--aspal-2);
}
.cart-btn:hover { border-color: var(--kuning); text-decoration: none; }
.cart-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--merah); color: #fff; border: 2px solid var(--tinta);
  font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 0 .35rem;
  font-family: var(--f-mono);
}

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--f-body); font-weight: 700; font-size: .95rem;
  border: 2px solid var(--tinta); border-radius: 10px;
  padding: .55rem 1.05rem; cursor: pointer; user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  box-shadow: var(--hard-sm);
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0, 0, 0, .85); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .85); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-kuning { background: var(--kuning); color: var(--tinta); }
.btn-kuning:hover { background: var(--kuning-2); }
.btn-ghost { background: var(--aspal-2); color: var(--putih); border-color: var(--garis); box-shadow: none; }
.btn-ghost:hover { border-color: var(--kuning); color: var(--kuning); }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #222; }
.btn-google:disabled { opacity: .5; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem;
  align-items: center; padding-top: 2.6rem; padding-bottom: 1.6rem;
}
.spanduk {
  display: inline-block; background: var(--merah); color: #fff;
  font-family: var(--f-hand); font-size: 1.02rem; letter-spacing: .5px;
  border: 2px solid var(--tinta); box-shadow: var(--hard-sm);
  padding: .35rem .9rem; transform: rotate(-1.4deg);
  margin-bottom: 1.1rem;
}
.spanduk.small { background: var(--kuning); color: var(--tinta); font-size: .95rem; }
.hero-title {
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.02; margin: 0 0 1rem;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
}
.hero-title .hl { color: var(--kuning); position: relative; display: inline-block; }
.hero-title .hl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 10px; background: var(--merah); opacity: .85; z-index: -1;
  transform: rotate(-.6deg);
}
.hero-sub { color: #cfc9b4; max-width: 34rem; margin: 0 0 1.4rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-stickers { display: flex; gap: .8rem; flex-wrap: wrap; }
.sticker {
  font-family: var(--f-hand); font-size: .9rem;
  background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); box-shadow: var(--hard-sm);
  padding: .3rem .7rem;
}
.sticker.s1 { transform: rotate(-2.5deg); background: var(--kuning); }
.sticker.s2 { transform: rotate(1.8deg); background: #b8f7c9; }
.sticker.s3 { transform: rotate(-1deg); background: #ffd9d5; }

.hero-right { position: relative; }
#hero3d {
  width: 100%; height: clamp(300px, 38vw, 430px); display: block;
  background:
    radial-gradient(340px 220px at 50% 45%, rgba(255, 212, 0, .10), transparent 70%),
    var(--aspal-2);
  border: 2px solid var(--garis); border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}
.hero-3d-tape {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%) rotate(-1.6deg);
  background: var(--kertas); color: var(--tinta); font-family: var(--f-mono); font-size: .8rem;
  border: 2px solid var(--tinta); box-shadow: var(--hard-sm); padding: .25rem .8rem; white-space: nowrap;
}

/* ---------- section head & chips ---------- */
.section-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-title {
  font-family: var(--f-disp); font-weight: 400; font-size: 1.35rem; margin: 0;
  letter-spacing: .5px;
}
.section-title::before { content: '▚ '; color: var(--kuning); }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-left: auto; }
.chip {
  font-family: var(--f-mono); font-size: .78rem;
  background: var(--aspal-2); color: var(--putih);
  border: 2px solid var(--garis); border-radius: 999px;
  padding: .28rem .8rem; cursor: pointer;
}
.chip:hover { border-color: var(--kuning); }
.chip.active { background: var(--kuning); color: var(--tinta); border-color: var(--tinta); box-shadow: var(--hard-sm); }

/* ---------- flash strip ---------- */
.flashstrip {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(90deg, var(--merah), var(--oranye));
  border: 2px solid var(--tinta); box-shadow: var(--hard);
  border-radius: 12px; padding: .6rem .9rem; margin-bottom: 1.4rem;
  transform: rotate(-.3deg);
}
.flash-label { font-family: var(--f-hand); color: #fff; white-space: nowrap; font-size: 1.05rem; }
.flash-items { display: flex; gap: .8rem; overflow-x: auto; }
.flash-item {
  display: flex; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .92); color: var(--tinta);
  border-radius: 8px; padding: .3rem .6rem; min-width: 200px;
}
.flash-item img { width: 42px; height: 42px; border-radius: 6px; border: 2px solid var(--tinta); object-fit: cover; }
.flash-item b { font-size: .82rem; display: block; line-height: 1.15; }
.flash-item .fi-price { color: var(--merah); font-weight: 700; font-size: .82rem; }

/* ---------- grid & product card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.2rem; }
.pcard {
  background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 10px;
  box-shadow: var(--hard);
  transform: rotate(-.45deg);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.pcard:nth-child(even) { transform: rotate(.55deg); }
.pcard:nth-child(3n) { transform: rotate(-.2deg); }
.pcard:hover { transform: rotate(0) translateY(-4px); box-shadow: 7px 9px 0 rgba(0, 0, 0, .85); }
.pcard-imgwrap {
  position: relative; display: block; overflow: hidden;
  border-bottom: 2px solid var(--tinta); border-radius: 8px 8px 0 0;
  background: var(--kertas-2); aspect-ratio: 1 / .86;
}
.pcard-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pcard-imgwrap img { transform: scale(1.05) rotate(.4deg); }
.badge-corner {
  position: absolute; top: 10px; left: -4px;
  background: var(--merah); color: #fff; font-family: var(--f-hand); font-size: .8rem;
  border: 2px solid var(--tinta); box-shadow: var(--hard-sm);
  padding: .12rem .6rem; transform: rotate(-3deg);
}
.badge-corner.b-kuning { background: var(--kuning); color: var(--tinta); }
.badge-corner.b-hijau { background: var(--hijau); color: var(--tinta); }
.pcard-hover {
  position: absolute; inset: auto 0 0 0; text-align: center;
  background: rgba(21, 19, 13, .82); color: var(--kuning);
  font-family: var(--f-disp); font-size: .8rem; letter-spacing: 1px;
  padding: .45rem 0; opacity: 0; transition: opacity .18s;
}
.pcard:hover .pcard-hover { opacity: 1; }
.pcard-body { padding: .8rem .9rem .95rem; }
.pcard-seller { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: #6d6852; margin-bottom: .3rem; flex-wrap: wrap; }
.pcard-seller b { color: var(--tinta); }
.loc { opacity: .75; }
.pcard-title { font-size: .98rem; line-height: 1.25; margin: 0 0 .35rem; font-weight: 700; min-height: 2.4em; }
.pcard-title a { color: var(--tinta); }
.pcard-title a:hover { color: #8a6d00; }
.pcard-meta { font-size: .78rem; color: #6d6852; margin-bottom: .55rem; }
.pcard-pricerow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; color: var(--tinta); }
.price s { color: #a09a83; font-weight: 400; font-size: .8em; margin-left: .3rem; }
.price.big { font-size: 1.5rem; }

/* ---------- avatar ---------- */
.avatar {
  width: 26px; height: 26px; border-radius: 999px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kuning); color: var(--tinta);
  font-weight: 700; font-size: .8rem; font-family: var(--f-mono);
  border: 2px solid var(--tinta);
}
.avatar.big { width: 58px; height: 58px; font-size: 1.4rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.step {
  background: var(--aspal-2); border: 2px solid var(--garis); border-radius: 12px;
  padding: 1.1rem 1.2rem; position: relative;
}
.step-num {
  position: absolute; top: -14px; left: 14px;
  font-family: var(--f-disp); background: var(--kuning); color: var(--tinta);
  border: 2px solid var(--tinta); box-shadow: var(--hard-sm);
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
}
.step h3 { margin: .4rem 0 .3rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--abu); font-size: .9rem; }

/* ---------- quotes ---------- */
.quotebox { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.quote {
  background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 10px; box-shadow: var(--hard-sm);
  padding: 1.1rem 1.15rem; font-size: .95rem; position: relative;
}
.quote:nth-child(1) { transform: rotate(-.7deg); }
.quote:nth-child(2) { transform: rotate(.5deg); }
.quote:nth-child(3) { transform: rotate(-.35deg); }
.quote::after {
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 84px; height: 22px; background: rgba(255, 212, 0, .65);
  border: 1px solid rgba(0, 0, 0, .15);
}

/* ---------- hazard ---------- */
.hazardband {
  margin-top: 2.4rem; padding: .8rem 0;
  background: repeating-linear-gradient(45deg, var(--kuning) 0 20px, var(--tinta) 20px 40px);
  border-top: 3px solid var(--tinta); border-bottom: 3px solid var(--tinta);
}
.hazard-inner {
  background: rgba(23, 21, 15, .94); color: var(--putih);
  border: 2px solid var(--tinta); border-radius: 10px;
  padding: .75rem 1.1rem; font-size: .92rem;
}
.hazard-inner u { text-decoration-color: var(--merah); }

/* ---------- footer ---------- */
.footer { margin-top: auto; background: #100e09; border-top: 2px solid var(--garis); padding-bottom: env(safe-area-inset-bottom, 0); }
.footer-inner { padding: 1.6rem 0 1.4rem; }
.footer-brand { font-family: var(--f-disp); font-size: 1.15rem; }
.footer-brand em { font-style: normal; color: var(--kuning); }
.footer-brand i { font-style: normal; font-family: var(--f-hand); color: var(--merah); font-size: .85rem; }
.footer-note { color: var(--abu); font-size: .85rem; max-width: 560px; margin: .4rem 0 .8rem; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .88rem; margin-bottom: .8rem; }
.footer-links a { color: #cfc9b4; }
.footer-links a:hover { color: var(--kuning); }
.footer-copy { color: var(--abu-2); font-size: .78rem; margin: 0; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.field span { font-size: .82rem; color: var(--abu); font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--aspal-2); color: var(--putih);
  border: 2px solid var(--garis); border-radius: 8px;
  padding: .55rem .8rem; font-family: var(--f-body); font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--kuning); border-color: transparent; }
.field.grow { flex: 1; }

/* ---------- auth ---------- */
.authwrap { display: grid; place-items: start center; padding: 3rem 0; }
.authcard {
  width: min(460px, 100%); background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 12px; box-shadow: 7px 7px 0 rgba(0, 0, 0, .85);
  padding: 1.5rem 1.6rem 1.7rem; position: relative;
}
.authcard .field span { color: #6d6852; }
.authcard .field input, .authcard .field select { background: #fff; color: var(--tinta); border-color: #b9b29a; }
.auth-title { font-family: var(--f-disp); font-weight: 400; margin: .2rem 0 .3rem; font-size: 1.5rem; }
.auth-sub { color: #6d6852; font-size: .9rem; margin: 0 0 1.1rem; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.auth-tab {
  flex: 1; font-family: var(--f-body); font-weight: 700;
  background: transparent; border: 2px solid var(--tinta); border-radius: 8px;
  padding: .5rem 0; cursor: pointer; color: var(--tinta);
}
.auth-tab.active { background: var(--kuning); box-shadow: var(--hard-sm); }
.authform .btn { margin-top: .2rem; }
.auth-demo { font-size: .8rem; color: #6d6852; margin: .8rem 0 0; }
.auth-or { text-align: center; color: #6d6852; font-size: .8rem; margin: 1rem 0 .7rem; position: relative; }
.auth-or::before, .auth-or::after { content: ''; position: absolute; top: 50%; width: 40%; border-top: 1px dashed #b9b29a; }
.auth-or::before { left: 0; } .auth-or::after { right: 0; }
.auth-note { font-size: .78rem; color: #6d6852; margin: .7rem 0 0; text-align: center; }
.auth-demo code, .auth-note code { background: #fff; border: 1px solid #d8d1b8; border-radius: 5px; padding: 0 .3em; }

/* ---------- product detail ---------- */
.crumbs { font-size: .85rem; color: var(--abu); margin-bottom: 1.1rem; }
.crumbs a { color: var(--abu); } .crumbs a:hover { color: var(--kuning); }
.pdetail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2rem; }
.pdetail-img {
  position: relative; align-self: start;
  background: var(--kertas); border: 2px solid var(--tinta); border-radius: 12px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .8); overflow: hidden;
}
.pdetail-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pdetail-title { font-size: 1.55rem; line-height: 1.2; margin: .1rem 0 .5rem; }
.pdetail-meta { color: var(--abu); font-size: .88rem; margin-bottom: .9rem; }
.pdetail-pricerow { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.stock { color: var(--hijau); font-size: .85rem; font-weight: 700; }
.stock.low { color: var(--merah); }
.pdetail-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.sellerbox {
  display: flex; align-items: center; gap: .7rem;
  background: var(--aspal-2); border: 2px solid var(--garis); border-radius: 10px;
  padding: .7rem .9rem; margin-bottom: 1.2rem;
}
.sellerbox-name { font-weight: 700; }
.sellerbox-loc { color: var(--abu); font-size: .82rem; }
.sellerbox .btn { margin-left: auto; }
.pdetail-desc { color: #d8d2bd; }
.mini-title { font-family: var(--f-disp); font-weight: 400; font-size: .95rem; margin: 1.3rem 0 .6rem; }
.mini-title::before { content: '» '; color: var(--kuning); }
.blurhint { font-family: var(--f-hand); font-size: .78rem; color: var(--merah); }
.speclist { margin: 0; padding-left: 1.1rem; color: #d8d2bd; font-size: .92rem; }
.speclist li { margin-bottom: .25rem; }
.payloadpreview {
  position: relative; background: var(--aspal-2); border: 2px solid var(--garis);
  border-radius: 10px; padding: 1rem; overflow: hidden;
}
.payloadpreview .blurcover { filter: blur(7px); user-select: none; pointer-events: none; color: var(--abu); overflow: hidden; }
.payloadpreview.open .blurcover { filter: none; pointer-events: auto; color: var(--putih); }
.payloadpreview.open .btn-blurbuy { display: none; }
.payloadpreview .btn-blurbuy {
  position: absolute; inset: 0; margin: auto; height: max-content; width: max-content;
  filter: none;
}
.payloadpreview code { display: block; padding: .35rem 0; border-bottom: 1px dashed var(--garis); white-space: pre-wrap; word-break: break-all; font-size: .82rem; }

/* ---------- reviews ---------- */
.count { font-family: var(--f-hand); font-size: .9rem; color: var(--merah); }
.revlist { display: grid; gap: .8rem; }
.revitem {
  background: var(--aspal-2); border: 2px solid var(--garis); border-radius: 10px;
  padding: .75rem .95rem;
}
.revitem .revhead { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--abu); margin-bottom: .3rem; }
.revitem .revhead b { color: var(--putih); }
.revitem .revtext { font-size: .95rem; color: #e8e2cc; word-break: break-word; }
.revform { background: var(--aspal-2); border: 2px dashed var(--abu-2); border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1rem; }
.revform h3 { margin: 0 0 .7rem; font-family: var(--f-hand); font-weight: 400; }
.revform-row { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.revform-row .field { margin-bottom: 0; }

/* ---------- lab ---------- */
.labhead { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; flex-wrap: wrap; }
.labhead-icon {
  font-size: 2rem; width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--kertas); border: 2px solid var(--tinta); border-radius: 14px;
  box-shadow: var(--hard); transform: rotate(-3deg);
}
.labhead-title { font-family: var(--f-disp); font-weight: 400; font-size: 1.5rem; margin: 0; }
.labhead-meta { color: var(--abu); font-size: .88rem; }
.labhead-side { margin-left: auto; }
.progresschip {
  font-family: var(--f-mono); font-weight: 700; font-size: 1.05rem;
  background: var(--kuning); color: var(--tinta); border: 2px solid var(--tinta);
  box-shadow: var(--hard-sm); border-radius: 10px; padding: .45rem .9rem;
  transform: rotate(1.5deg);
}
.labgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; }
.labmain { display: grid; gap: 1.3rem; }
.labside { display: grid; gap: 1.3rem; position: sticky; top: 76px; }
.labcard {
  background: var(--aspal-2); border: 2px solid var(--garis); border-radius: 12px;
  padding: 1.05rem 1.15rem;
}
.labcard-title { font-family: var(--f-disp); font-weight: 400; font-size: .95rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .6rem; }
.labcard-title .btn { margin-left: auto; }
.labdesc { color: #d8d2bd; font-size: .95rem; }
.hintbox { margin-top: .8rem; display: grid; gap: .5rem; }
.hintitem { background: #fffbe8; color: var(--tinta); border: 2px solid var(--tinta); border-radius: 8px; padding: .55rem .8rem; font-size: .88rem; box-shadow: var(--hard-sm); }
.hintbtn {
  align-self: start; font-family: var(--f-hand); font-size: .85rem;
  background: transparent; border: 2px dashed var(--abu-2); color: var(--abu);
  border-radius: 8px; padding: .3rem .8rem; cursor: pointer;
}
.hintbtn:hover { color: var(--kuning); border-color: var(--kuning); }

.terminal { background: #0d0c09; border: 2px solid #000; box-shadow: 6px 6px 0 rgba(0, 0, 0, .8); }
.termbar { display: flex; align-items: center; gap: .4rem; background: #1c1913; border-bottom: 2px solid #000; padding: .5rem .8rem; }
.termbar .dot { width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.5); }
.termbar .d1 { background: var(--merah); } .termbar .d2 { background: var(--kuning); } .termbar .d3 { background: var(--hijau); }
.termtitle { margin-left: .6rem; font-family: var(--f-mono); font-size: .78rem; color: #8d876d; }
.termbody { padding: 1.1rem; color: #d9f7c5; font-family: var(--f-mono); font-size: .9rem; }
.termbody .field span { color: #8d876d; }
.termbody input, .termbody textarea, .termbody select {
  background: #14120d; color: #d9f7c5; border: 2px solid #2c281c; border-radius: 8px;
  padding: .55rem .75rem; font-family: var(--f-mono); font-size: .88rem; width: 100%;
}
.termbody input:focus, .termbody textarea:focus { outline: 2px solid var(--kuning); }
.termbody textarea { min-height: 130px; resize: vertical; }
.termrow { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.termrow .grow { flex: 1; }
.termout {
  margin-top: .9rem; background: #14120d; border: 1px dashed #2c281c; border-radius: 8px;
  padding: .8rem .9rem; white-space: pre-wrap; word-break: break-word; color: #b7e59a; min-height: 1.4em;
}
.termout.err { color: #ff9d94; }
.termnote { color: #8d876d; font-size: .8rem; margin: .7rem 0 0; }

.loginbox { display: grid; gap: .5rem; }
.logitem { background: #14120d; border: 1px dashed var(--garis); border-radius: 8px; padding: .5rem .7rem; font-size: .82rem; word-break: break-all; }
.logitem .logat { color: var(--abu-2); font-size: .72rem; }

.payloaditem { margin-bottom: .8rem; }
.payloaditem .pname { font-family: var(--f-hand); font-size: .8rem; color: var(--kuning-2); margin-bottom: .25rem; }
.payloaditem code {
  display: block; background: #14120d; border: 1px solid var(--garis); border-radius: 8px;
  padding: .5rem .6rem; font-size: .76rem; color: #d9f7c5; word-break: break-all; margin-bottom: .3rem;
}
.insertbtn {
  font-family: var(--f-mono); font-size: .74rem; font-weight: 700;
  background: var(--aspal-3); color: var(--putih);
  border: 2px solid var(--garis); border-radius: 6px; padding: .22rem .6rem; cursor: pointer;
}
.insertbtn:hover { border-color: var(--kuning); color: var(--kuning); }
.kitlabel { font-weight: 700; color: var(--putih); border-bottom: 1px dashed var(--garis); margin: .6rem 0 .7rem; font-size: .85rem; }

.submitcard { background: linear-gradient(180deg, var(--aspal-2), #241f12); border-color: #4a421f; }
.labquicknav { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.qnav {
  font-family: var(--f-mono); font-size: .76rem; color: var(--putih);
  background: var(--aspal-3); border: 2px solid var(--garis); border-radius: 8px;
  padding: .4rem .5rem; text-align: center;
}
.qnav:hover { border-color: var(--kuning); text-decoration: none; }
.qnav.done { border-color: var(--hijau); color: var(--hijau); }
.qnav.current { background: var(--kuning); color: var(--tinta); border-color: var(--tinta); }

/* ---------- cart ---------- */
.cartgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: start; }
.cartitems { display: grid; gap: .9rem; }
.cartitem {
  display: flex; gap: 1rem; align-items: center;
  background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 10px; box-shadow: var(--hard-sm);
  padding: .7rem .9rem;
}
.cartitem img { width: 72px; height: 72px; border-radius: 8px; border: 2px solid var(--tinta); object-fit: cover; }
.cartitem .ci-title { font-weight: 700; font-size: .95rem; }
.cartitem .ci-price { font-family: var(--f-mono); font-weight: 700; }
.qtybox { display: flex; align-items: center; gap: .4rem; }
.qtybox button {
  width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--tinta);
  background: var(--kertas-2); font-weight: 700; cursor: pointer; font-family: var(--f-mono);
}
.qtybox button:hover { background: var(--kuning); }
.qtybox .qty { min-width: 26px; text-align: center; font-family: var(--f-mono); font-weight: 700; }
.ci-del { background: none; border: none; cursor: pointer; font-size: 1.1rem; margin-left: auto; opacity: .6; }
.ci-del:hover { opacity: 1; }
.sumrow { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .92rem; color: var(--abu); }
.sumrow b { color: var(--putih); }
.sumrow.big { border-top: 2px dashed var(--garis); margin-top: .5rem; padding-top: .7rem; font-size: 1.05rem; color: var(--putih); }
.sumrow.big b { color: var(--kuning); font-size: 1.2rem; }
.cartside .btn { margin: .8rem 0 .4rem; }

/* ---------- profile ---------- */
.profhead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.profname { font-family: var(--f-disp); font-weight: 400; margin: 0; font-size: 1.6rem; }
.profhead-right { margin-left: auto; text-align: right; display: grid; gap: .4rem; justify-items: end; }
.saldo-big { font-size: 1.15rem; color: var(--kuning); }
.flagboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 1rem 0; }
.slot {
  background: var(--aspal-2); border: 2px solid var(--garis); border-radius: 10px;
  padding: .6rem .7rem; min-height: 74px;
}
.slot .slotnum { font-family: var(--f-mono); font-size: .7rem; color: var(--abu-2); }
.slot .slotpiece { font-family: var(--f-mono); font-weight: 700; word-break: break-all; margin-top: .2rem; }
.slot.done { border-color: var(--hijau); }
.slot.done .slotpiece { color: var(--hijau); }
.slot.empty .slotpiece { color: #3f3a28; letter-spacing: 2px; }
.assemblerow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.orderitem {
  background: var(--aspal-2); border: 2px solid var(--garis); border-radius: 10px;
  padding: .8rem 1rem; margin-bottom: .8rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.orderitem .oinv { font-family: var(--f-mono); font-weight: 700; }
.orderitem .oitems { color: var(--abu); font-size: .85rem; flex: 1; min-width: 200px; }
.orderitem .ototal { font-family: var(--f-mono); color: var(--kuning); font-weight: 700; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 14px; bottom: 14px; z-index: 100; display: grid; gap: .5rem; width: min(340px, calc(100vw - 28px)); }
.toast {
  background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 10px; box-shadow: var(--hard-sm);
  padding: .65rem .9rem; font-size: .88rem; font-weight: 500;
  animation: pop .18s ease;
}
.toast.err { background: #ffd9d5; border-color: var(--merah); }
.toast.ok { background: #e2ffec; }
@keyframes pop { from { transform: translateY(8px) scale(.97); opacity: 0; } }

/* ---------- modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
.modal-root.open { display: grid; place-items: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 9, 5, .78); }
.modal {
  position: relative; width: min(560px, calc(100vw - 30px));
  background: var(--kertas); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 14px; box-shadow: 9px 9px 0 rgba(0, 0, 0, .8);
  padding: 1.4rem 1.5rem; max-height: 86vh; overflow-y: auto;
}
.modal h3 { font-family: var(--f-disp); font-weight: 400; margin: 0 0 .8rem; }
.modal .closex {
  position: absolute; top: 10px; right: 12px; border: 2px solid var(--tinta);
  background: var(--kuning); width: 30px; height: 30px; border-radius: 8px;
  font-weight: 700; cursor: pointer; font-family: var(--f-mono);
}
.flag-reveal {
  font-family: var(--f-mono); font-weight: 700; font-size: .95rem;
  background: var(--tinta); color: var(--kuning);
  border: 2px dashed var(--kuning); border-radius: 10px;
  padding: .9rem 1rem; word-break: break-all; margin: .8rem 0;
}
.cert { text-align: center; }
.cert .cert-rib { font-family: var(--f-hand); color: var(--merah); font-size: 1.05rem; }
.cert .qr { display: grid; grid-template-columns: repeat(11, 12px); gap: 2px; width: max-content; margin: 1rem auto .4rem; }
.cert .qr i { width: 12px; height: 12px; background: var(--tinta); }
.cert .qr i.o { background: transparent; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i {
  position: absolute; top: -14px; width: 9px; height: 15px;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(105vh) rotate(660deg); opacity: .9; } }

/* ---------- chat ---------- */
.chatlog { background: #fff; border: 2px solid #b9b29a; border-radius: 10px; padding: .8rem; max-height: 250px; overflow-y: auto; display: grid; gap: .5rem; }
.chatmsg { max-width: 82%; padding: .45rem .7rem; border-radius: 12px; font-size: .88rem; }
.chatmsg.me { background: var(--kuning); justify-self: end; border: 2px solid var(--tinta); }
.chatmsg.bot { background: #eee7d2; border: 2px solid #d8d1b8; justify-self: start; }
.chatrow { display: flex; gap: .5rem; margin-top: .7rem; }
.chatrow input { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  #hero3d { height: 280px; }
  .labgrid { grid-template-columns: 1fr; }
  .labside { position: static; }
  .pdetail { grid-template-columns: 1fr; }
  .cartgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topsearch { display: none; }
  .topbar { gap: .5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
  .chips { margin-left: 0; }
  .section { padding: 1.6rem 0 1rem; }
  .labhead-icon { width: 52px; height: 52px; font-size: 1.5rem; }
  .profhead-right { margin-left: 0; text-align: left; justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
  * { transition: none !important; }
}

/* ============================================================
   TAMBAHAN v1.1 — tanpa emoji, tanpa SVG
   ============================================================ */

/* topbar: label teks pengganti emoji */
.cart-btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: .42rem .6rem; font-family: var(--f-mono);
  display: inline-flex; align-items: center; gap: .3rem;
}
.saldo-chip { font-family: var(--f-mono); font-weight: 700; letter-spacing: .03em; }
.saldo-chip .saldo-label { color: var(--abu); font-weight: 400; margin-right: .35rem; }

/* login: zona google */
.google-zone { margin-top: 1.1rem; }
.glogo {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-right: .55rem; border-radius: 999px;
  background: #4285F4; color: #fff; font-weight: 700; font-size: .95rem;
  font-family: var(--f-mono);
}
.btn-google { border: 2px solid #dadce0; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn-google.is-busy { opacity: .65; }
.gerrbox {
  margin-top: .8rem; text-align: left;
  background: #2a1608; border: 2px dashed var(--oranye); border-radius: 10px;
  padding: .7rem .9rem; font-size: .82rem; color: #ffe1b8;
}
.gerrbox p { margin: .2rem 0; }
.gerrbox b { color: var(--oranye); }
.auth-dbnote { font-size: .75rem; color: #6d6852; margin: 1rem 0 0; text-align: center; }

/* fallback gambar produk (pengganti placeholder svg) */
.img-fallback {
  display: grid; place-items: center; width: 100%; aspect-ratio: 400 / 344;
  background:
    repeating-linear-gradient(45deg, #ece4cd 0 14px, #e4dbc0 14px 28px);
  color: #6d6852; font-family: var(--f-mono); font-weight: 700;
  font-size: .85rem; letter-spacing: .08em; text-align: center;
  border-bottom: 2px solid #d8d1b8;
}
.pdetail-img .img-fallback { aspect-ratio: auto; min-height: 420px; }

/* lab: ikon challenge sekarang kode teks monospace */
.labhead-icon { font-family: var(--f-mono); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.avatar.iconcode { font-size: .62rem; letter-spacing: .02em; }

/* tombol hapus item keranjang (pengganti ikon tempat sampah) */
.ci-del {
  font-size: .68rem; font-weight: 700; font-family: var(--f-mono);
  letter-spacing: .05em; padding: .35rem .55rem;
}
