/* ============================================================
   Lootbox ID — Unified Stylesheet
   Shared across index.html, form.html, tracker.html
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:       #fffdf9;
  --panel:       #ffffff;
  --soft:        #fff4ee;
  --ink:         #1f1a16;
  --ink-soft:    #6b625a;
  --ink-faint:   #a59b90;
  --red:         #e5202a;
  --red-deep:    #b8141c;
  --red-dark:    #54080c;
  --yellow:      #f7c331;
  --yellow-deep: #d99c0a;
  --line:        #ece3d6;
  --ok:          #1f8a4c;
  --ok-bg:       #e7f6ec;
  --ok-edge:     #a6d9b8;
  --err:         #d12018;
  --err-bg:      #fdece8;
  --err-edge:    #f3b3a8;
  --blue:        #1a5276;
  --blue-bg:     #ebf5fb;
  --blue-edge:   #aed6f1;
  --radius:      10px;
  --hard:        4px 4px 0 var(--ink);
  --hard-red:    4px 4px 0 var(--red-deep);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* halftone corner dots */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(229,32,42,0.16) 21%, transparent 22%),
    radial-gradient(circle, rgba(247,195,49,0.20) 21%, transparent 22%);
  background-size: 14px 14px, 14px 14px;
  background-position: 0 0, 7px 7px;
  -webkit-mask:
    radial-gradient(60% 50% at -5% -5%, #000, transparent 70%),
    radial-gradient(60% 50% at 105% 108%, #000, transparent 70%);
  mask:
    radial-gradient(60% 50% at -5% -5%, #000, transparent 70%),
    radial-gradient(60% 50% at 105% 108%, #000, transparent 70%);
  opacity: 0.55;
}

/* ── Topbar marquee ── */
.topbar {
  background: var(--red); color: #fff;
  overflow: hidden; border-bottom: 3px solid var(--ink);
  position: relative; z-index: 10;
}
/* form/tracker use negative margin trick for full-bleed; index does not */
.topbar.bleed { margin: 0 -100vw; padding: 0 100vw; }
.topbar-track {
  display: flex; gap: 2.4rem; white-space: nowrap; width: max-content;
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 0;
  animation: marquee 26s linear infinite;
}
.topbar-track span { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar-track .jp  { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; letter-spacing: 0.05em; }
.topbar-track .sep { color: var(--yellow); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Brand ── */
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-crate {
  width: 42px; height: 42px;
  border: 2.5px solid var(--ink); border-radius: 9px;
  overflow: hidden; flex-shrink: 0; box-shadow: 3px 3px 0 var(--ink); line-height: 0;
}
.brand-crate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-word { line-height: 0.9; }
.brand-word .w {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 27px;
  color: var(--red); letter-spacing: -0.02em; text-shadow: 2px 2px 0 rgba(84,8,12,0.22);
  display: block;
}
.brand-word .sub {
  display: block; font-family: 'Spline Sans Mono', monospace; font-size: 8.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px;
}

/* ── Page wrap (form & tracker) ── */
.page-wrap { max-width: 700px; margin: 0 auto; padding: 0 1.1rem 5rem; position: relative; z-index: 1; }

/* ── Nav row (form & tracker) ── */
.navrow {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0 1.2rem;
  opacity: 0; animation: rise .6s .05s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ── Sticky navbar (index) ── */
.navbar {
  position: sticky; top: 0; z-index: 9;
  background: rgba(255,253,249,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 62px;
}
.navbar .brand-crate { width: 38px; height: 38px; background: var(--red); border-radius: 8px; }
.navbar .brand-word .w { font-size: 24px; line-height: 1; }
.navbar .brand-word .sub { font-size: 7.5px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: transform .1s, box-shadow .1s;
  white-space: nowrap;
}
.nav-btn.outline { background: var(--panel); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nav-btn.filled  { background: var(--red);   color: #fff;       box-shadow: 3px 3px 0 var(--ink); }
.nav-btn:hover  { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.nav-btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }

/* ── Wrap (index) ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.4rem; position: relative; z-index: 1; }

/* ── Hero (index) ── */
.hero {
  padding: 4.5rem 0 4rem; text-align: center;
  opacity: 0; animation: rise .8s .1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--red);
  border: 2px solid var(--red); border-radius: 999px; padding: 5px 14px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 0.92;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1.4rem;
}
.hero h1 .line-red { color: var(--red); display: block; position: relative; }
.hero h1 .line-red::after {
  content: ""; position: absolute; left: 50%; bottom: 0.05em;
  width: 0; height: 0.38em; background: var(--yellow); z-index: -1;
  border-radius: 3px; transform: translateX(-50%);
  animation: widen .55s 1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--ink-soft); line-height: 1.65;
  max-width: 520px; margin: 0 auto 2.4rem;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 12px; text-decoration: none;
  border: 3px solid var(--ink); transition: transform .1s, box-shadow .1s;
  letter-spacing: 0.01em;
}
.hero-btn.primary   { background: var(--red);   color: #fff;       box-shadow: 6px 6px 0 var(--ink); }
.hero-btn.secondary { background: var(--panel); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.hero-btn:hover  { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--ink); }
.hero-btn:active { transform: translate(6px,6px); box-shadow: 0 0 0 var(--ink); }
.hero-btn .icon { font-size: 18px; }

/* stats bar (index) */
.stats-bar {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 2.8rem;
  opacity: 0; animation: rise .7s .4s cubic-bezier(.2,.8,.2,1) forwards;
}
.stat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink);
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--ink); white-space: nowrap;
}
.stat-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.stat-chip .dot.green  { background: var(--ok); }
.stat-chip .dot.yellow { background: var(--yellow-deep); }

/* ── Hero banner (form) ── */
.hero-banner {
  position: relative; border: 3px solid var(--ink); border-radius: 16px;
  overflow: hidden; box-shadow: 7px 7px 0 var(--ink); background: var(--red);
  opacity: 0; transform: translateY(18px);
  animation: rise .7s .15s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-banner img { display: block; width: 100%; height: auto; }
.seal {
  position: absolute; z-index: 4; right: -14px; top: -14px;
  width: 92px; height: 92px; display: grid; place-items: center;
  text-align: center; color: var(--ink); transform: rotate(9deg);
  opacity: 0; animation: pop .5s .9s cubic-bezier(.2,1.5,.4,1) forwards;
}
.seal::before {
  content: ""; position: absolute; inset: 0; background: var(--yellow);
  border: 2.5px solid var(--ink);
  clip-path: polygon(50% 0,61% 12%,76% 6%,79% 22%,95% 24%,89% 39%,100% 50%,89% 61%,95% 76%,79% 78%,76% 94%,61% 88%,50% 100%,39% 88%,24% 94%,21% 78%,5% 76%,11% 61%,0 50%,11% 39%,5% 24%,21% 22%,24% 6%,39% 12%);
  box-shadow: 2px 2px 0 rgba(31,26,22,0.3);
}
.seal-txt { position: relative; z-index: 1; line-height: 1; }
.seal-txt .jp { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 16px; display: block; }
.seal-txt .en { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 2px; }

/* hero copy (form) */
.hero-copy { text-align: center; padding: 2.1rem 0 1.8rem; }
.header h1 {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(1.55rem, 5vw, 2.25rem); line-height: 1.08;
  letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; animation: rise .7s .3s cubic-bezier(.2,.8,.2,1) forwards;
}
.header h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
.header h1 em::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.08em;
  height: 0.42em; background: var(--yellow); z-index: -1; border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
  animation: swipe .5s .95s cubic-bezier(.2,.8,.2,1) forwards;
}
.header p {
  font-size: 15px; color: var(--ink-soft); max-width: 440px; margin: 0.9rem auto 0;
  line-height: 1.6; opacity: 0; animation: rise .7s .45s cubic-bezier(.2,.8,.2,1) forwards;
}

/* status block (form) */
.status-block { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 2px dashed var(--line); }
.status-block .status-label {
  font-family: 'Spline Sans Mono', monospace; font-size: 16px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.status-block .status-copy {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  max-width: 400px; margin: 0 auto 0.9rem;
}
.cta-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 9px 16px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.cta-status:hover  { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.cta-status:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }

/* ── Section shared (index) ── */
section { padding: 4rem 0; }
.section-label {
  font-family: 'Baloo 2', cursive; font-size: 14px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.1rem;
}
.section-label .num {
  background: var(--red); color: #fff; border: 2px solid var(--ink);
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px; box-shadow: 2px 2px 0 var(--ink);
}
.section-label::after {
  content: ""; flex: 1; height: 2.5px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
}
.section-title {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1;
  letter-spacing: -0.015em; color: var(--ink); margin-bottom: 0.7rem;
}
.section-title em { font-style: normal; color: var(--red); }
.section-sub { font-size: 15px; color: var(--ink-soft); line-height: 1.65; max-width: 480px; margin-bottom: 2.2rem; }

.stripe-divider {
  height: 8px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--yellow) 22px 44px);
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
}

/* ── Buy section (index) ── */
.buy-section { background: var(--paper); }
.marketplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 680px)  { .marketplace-grid { grid-template-columns: 1fr; } }
@media (min-width: 681px) and (max-width: 860px) { .marketplace-grid { grid-template-columns: 1fr 1fr; } }

.mp-card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink); padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem; position: relative;
  transition: transform .12s, box-shadow .12s;
}
.mp-card::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: -3px; height: 6px;
  border-radius: 0 0 4px 4px;
}
.mp-card.tokopedia::before { background: repeating-linear-gradient(90deg, #03ac0e 0 18px, #00880c 18px 36px); }
.mp-card.shopee::before    { background: repeating-linear-gradient(90deg, #ee4d2d 0 18px, #cc3d22 18px 36px); }
.mp-card.toco::before      { background: repeating-linear-gradient(90deg, #FFC107 0 18px, #e6ad00 18px 36px); }
.mp-card:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--ink); }

.mp-logo-row { display: flex; align-items: center; gap: 12px; }
.mp-logo {
  width: 48px; height: 48px; border-radius: 10px;
  border: 2px solid var(--ink); display: grid; place-items: center;
  font-size: 22px; font-weight: 900; flex-shrink: 0; box-shadow: 2px 2px 0 var(--ink);
  font-family: 'Baloo 2', cursive; overflow: hidden;
}
.mp-logo.tokopedia { background: #03ac0e; color: #fff; }
.mp-logo.shopee    { background: #ee4d2d; color: #fff; }
.mp-logo.toco      { background: var(--red); color: #fff; }
.mp-name   { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 18px; }
.mp-handle { font-family: 'Spline Sans Mono', monospace; font-size: 10px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 1px; }

.mp-stats { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mp-stat-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--line);
}
.mp-stat-row:last-child { border-bottom: none; }
.mp-stat-key {
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint);
  flex-shrink: 0; width: 42%;
}
.mp-stat-val { font-weight: 700; color: var(--ink); font-size: 13px; text-align: right; width: 58%; }
.mp-stat-val .star  { color: #f59f00; }
.mp-stat-val .green { color: var(--ok); }

.mp-btn {
  display: block; text-align: center; text-decoration: none;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 14px;
  padding: 11px 0; border-radius: 9px; border: 2.5px solid var(--ink);
  transition: transform .1s, box-shadow .1s; letter-spacing: 0.01em;
}
.mp-btn.tokopedia { background: #03ac0e; color: #fff;       box-shadow: 4px 4px 0 var(--ink); }
.mp-btn.shopee    { background: #ee4d2d; color: #fff;       box-shadow: 4px 4px 0 var(--ink); }
.mp-btn.toco      { background: #FFC107; color: #1a1400;    box-shadow: 4px 4px 0 var(--ink); }
.mp-btn:hover  { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.mp-btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }

/* ── Achievement section (index) ── */
.achievement-section { background: var(--soft); }
.achievement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 2rem; }
@media (max-width: 640px) { .achievement-grid { grid-template-columns: 1fr 1fr; } }

.ach-card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink); padding: 1.4rem 1.2rem; text-align: center;
  position: relative; overflow: hidden;
}
.ach-card::after {
  content: ""; position: absolute; bottom: -20px; right: -20px;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--yellow); opacity: 0.15;
}
.ach-num {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--red); line-height: 1;
  letter-spacing: -0.02em; display: block; margin-bottom: 4px;
}
.ach-label {
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.4;
}

.rating-block {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink); padding: 1.8rem 2rem;
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
}
.rating-big { text-align: center; min-width: 120px; }
.rating-big .num {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 3.8rem;
  color: var(--ink); line-height: 1; letter-spacing: -0.03em; display: block;
}
.rating-big .stars { font-size: 20px; letter-spacing: 2px; margin: 3px 0; }
.rating-big .sub {
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; font-weight: 600;
  color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase;
}
.rating-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 7px; }
.rbar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rbar-row .lbl {
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; font-weight: 700;
  color: var(--ink-soft); width: 14px; text-align: center;
}
.rbar-row .star-icon { font-size: 11px; }
.rbar-outer { flex: 1; height: 10px; background: var(--line); border-radius: 999px; border: 1.5px solid var(--ink); overflow: hidden; }
.rbar-inner { height: 100%; border-radius: 999px; background: var(--yellow); }
.rbar-inner.top { background: var(--red); }
.rbar-row .count {
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; color: var(--ink-faint);
  width: 36px; text-align: right;
}
.rating-source {
  align-self: flex-end;
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; color: var(--ink-faint);
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.7;
  border-left: 2px solid var(--line); padding-left: 1.2rem; min-width: 120px;
}
.rating-source b { color: var(--ink); font-weight: 700; }

/* ── Sell section (index) ── */
.sell-section { background: var(--paper); }
.sell-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 720px) { .sell-layout { grid-template-columns: 1fr; } }

.sell-card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--ink); padding: 2rem 1.8rem; position: relative;
}
.sell-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -3px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 20px, var(--yellow) 20px 40px);
  border-radius: 0 0 4px 4px;
}
.sell-card h3 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.5rem;
  color: var(--ink); margin-bottom: 0.7rem; letter-spacing: -0.01em;
}
.sell-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.5rem; }

.step-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.6rem; }
.step-item { display: flex; align-items: flex-start; gap: 12px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 700; color: var(--ink);
}
.step-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; padding-top: 4px; }
.step-text b { font-weight: 700; }

.sell-cta {
  display: block; text-align: center; text-decoration: none;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 16px;
  padding: 14px 0; border-radius: 12px; border: 3px solid var(--ink);
  background: var(--red); color: #fff; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .1s, box-shadow .1s; position: relative; overflow: hidden;
}
.sell-cta::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-20deg); transition: left .5s;
}
.sell-cta:hover        { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.sell-cta:hover::before { left: 130%; }
.sell-cta:active       { transform: translate(5px,5px); box-shadow: 0 0 0 var(--ink); }

.sell-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card {
  background: var(--panel); border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink); padding: 1.4rem 1.3rem;
  display: flex; align-items: flex-start; gap: 13px;
}
.aside-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.aside-text h4 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 14px;
  color: var(--ink); margin-bottom: 4px;
}
.aside-text p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* ── Footer (index) ── */
footer { background: var(--ink); color: #fff; border-top: 3px solid var(--ink); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand .w {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 24px;
  color: var(--red); text-shadow: 2px 2px 0 var(--red-dark);
  display: block; letter-spacing: -0.01em;
}
.footer-brand .sub {
  font-family: 'Spline Sans Mono', monospace; font-size: 9px;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.4);
  display: block; margin-top: 2px;
}
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-link {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 6px 12px;
  transition: background .15s, color .15s;
}
.footer-link:hover { background: var(--red); color: #fff; border-color: var(--red); }
.footer-copy {
  width: 100%; text-align: center;
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em; text-transform: uppercase; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy .jp  { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; color: rgba(255,255,255,0.4); }
.footer-copy .dot { color: var(--red); }

/* ── Form card ── */
.form-card {
  position: relative; background: var(--panel); border: 3px solid var(--ink);
  border-radius: 16px; box-shadow: 7px 7px 0 var(--ink);
  padding: 2.3rem 2.1rem 2.5rem;
  opacity: 0; transform: translateY(18px);
  animation: rise .7s .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.form-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -3px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 20px, var(--yellow) 20px 40px);
  border-radius: 0 0 4px 4px;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-bottom: 1.2rem; margin-bottom: 1.6rem;
  border-bottom: 2.5px solid var(--ink);
}
.sheet-head h2 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.4rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.sheet-head .ref {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; color: #fff;
  background: var(--ink); padding: 4px 9px; border-radius: 6px; letter-spacing: 0.06em;
}

/* ── Form inputs ── */
.form-group { margin-bottom: 1.3rem; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 0.45rem; }
label .req { color: var(--red); margin-left: 2px; }
label .opt {
  font-family: 'Spline Sans Mono', monospace; font-weight: 400; font-size: 10px;
  color: var(--ink-faint); margin-left: 5px; text-transform: uppercase; letter-spacing: 0.06em;
}

input[type="text"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"],
textarea, select {
  width: 100%; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px;
  font-weight: 500; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; transition: border-color .16s, box-shadow .16s;
  outline: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); font-weight: 400; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: var(--hard-red); }
textarea { resize: vertical; min-height: 104px; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .grid-2 { grid-template-columns: 1fr; } }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: center; gap: 12px; position: relative;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: border-color .14s, transform .12s, box-shadow .14s;
}
.radio-option:hover { border-color: var(--ink); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.radio-option input[type="radio"] { accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.radio-option.selected { border-color: var(--ink); background: var(--soft); box-shadow: 3px 3px 0 var(--red); }
.radio-option.selected::after {
  content: "PILIH \2713"; position: absolute; right: 11px;
  font-family: 'Baloo 2', cursive; font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; color: var(--ink); background: var(--yellow);
  border: 1.5px solid var(--ink); border-radius: 5px; padding: 1px 6px; transform: rotate(-4deg);
}

/* ── Kelengkapan checklist ── */
.checklist-sublabel {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 8px;
}
.checklist-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.check-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: border-color .14s, transform .12s, box-shadow .14s; user-select: none;
}
.check-item:hover { border-color: var(--ink); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.check-item input[type="checkbox"] { accent-color: var(--red); width: 17px; height: 17px; flex-shrink: 0; pointer-events: none; }
.check-item.checked { border-color: var(--ink); background: var(--soft); box-shadow: 3px 3px 0 var(--ok); }

/* ── Kelengkapan badge (tracker) ── */
.cl-badge {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; padding: 2px 8px; border-radius: 5px; white-space: nowrap;
}
.cl-yes  { background: var(--ok-bg);   color: var(--ok);  border: 1px solid var(--ok-edge); }
.cl-no   { background: var(--err-bg);  color: var(--err); border: 1px solid var(--err-edge); }
.cl-warn { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-edge); }

/* ── Platform Transaksi cards ── */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 500px) { .platform-grid { grid-template-columns: 1fr; } }

.platform-card {
  display: flex; flex-direction: column; gap: 5px; position: relative;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 13px 13px 11px; cursor: pointer;
  transition: border-color .14s, transform .12s, box-shadow .14s;
}
.platform-card:hover { border-color: var(--ink); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.platform-card.selected { border-color: var(--ink); background: var(--soft); box-shadow: 3px 3px 0 var(--red); }
.platform-card.selected::after {
  content: "PILIH \2713"; position: absolute; right: 10px; top: 10px;
  font-family: 'Baloo 2', cursive; font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; color: var(--ink); background: var(--yellow);
  border: 1.5px solid var(--ink); border-radius: 5px; padding: 1px 6px; transform: rotate(-4deg);
}
.pc-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.pc-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.pc-title {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 15px;
  color: var(--ink); letter-spacing: -0.01em;
}
.pc-tag {
  font-family: 'Spline Sans Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 5px; border: 1.5px solid rgba(0,0,0,0.4); color: #fff;
  background: var(--ink);
}
.pc-tag--green  { background: #1f8a4c; }
.pc-tag--blue   { background: #1a5276; }
.pc-tag--orange { background: #c0392b; }
.pc-tag--purple { background: #6c3483; }
.pc-name {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 13.5px;
  color: var(--ink); line-height: 1.25;
}
.pc-desc {
  font-size: 12px; color: var(--ink-soft); line-height: 1.55; font-weight: 500;
}
.pc-note {
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; color: var(--ink-faint);
  line-height: 1.5; letter-spacing: 0.01em;
  border-top: 1.5px dashed var(--line); padding-top: 7px; margin-top: 3px;
}
.platform-card--featured {
  grid-column: 1 / -1;
  padding: 18px 18px 14px;
}
.platform-card--featured.selected { box-shadow: 4px 4px 0 var(--red); }

.upload-zone {
  border: 2.5px dashed var(--line); border-radius: var(--radius);
  background: var(--soft); padding: 1.4rem 1rem; text-align: center;
  cursor: pointer; transition: border-color .18s, background .18s; position: relative;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--red); background: #ffe9e2; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 30px; margin-bottom: 6px; }
.upload-zone p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; font-weight: 500; }
.upload-zone strong { color: var(--red); font-weight: 800; }
.upload-zone small { font-family: 'Spline Sans Mono', monospace; font-size: 10px; letter-spacing: 0.03em; color: var(--ink-faint); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap: 8px; margin-top: 12px; }
.preview-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; border: 2px solid var(--ink); background: #eee; box-shadow: 3px 3px 0 var(--ink);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-btn {
  position: absolute; top: 4px; right: 4px; background: var(--red); color: #fff;
  border: 1.5px solid var(--ink); border-radius: 50%; width: 21px; height: 21px;
  font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}

.video-preview {
  margin-top: 10px; font-size: 13px; color: var(--red); font-weight: 600;
  background: var(--soft); border: 2px solid var(--err-edge); border-radius: var(--radius);
  padding: 9px 13px; display: flex; align-items: center; gap: 8px;
}
.video-preview span { font-family: 'Spline Sans Mono', monospace; font-size: 12px; }

.toggle-row {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px;
}
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-slider {
  position: absolute; inset: 0; background: #fff; border: 2px solid var(--ink);
  border-radius: 999px; cursor: pointer; transition: background .2s;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink); transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: var(--red); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); background: #fff; }

.divider {
  height: 2.5px; margin: 1.8rem 0; border: 0; border-radius: 2px; position: relative;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 15px);
}
.divider::before, .divider::after {
  content: ""; position: absolute; top: 50%; width: 13px; height: 13px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 50%; transform: translateY(-50%);
}
.divider::before { left: -27px; }
.divider::after  { right: -27px; }

.hint {
  font-family: 'Spline Sans Mono', monospace; font-size: 10.5px;
  color: var(--ink-faint); margin-top: 5px; line-height: 1.5; letter-spacing: 0.01em;
}

.lokasi-wrap { position: relative; }
.lokasi-wrap input { padding-right: 120px; }
.detect-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; border: none; border-radius: 7px;
  padding: 7px 11px; font-family: 'Spline Sans Mono', monospace; font-size: 11px;
  font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  display: flex; align-items: center; gap: 5px; transition: background .2s;
  white-space: nowrap; text-transform: uppercase;
}
.detect-btn:hover    { background: var(--red); }
.detect-btn:disabled { background: var(--ink-faint); cursor: not-allowed; }
.detect-btn svg      { flex-shrink: 0; }

.lokasi-hint {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; color: var(--ink-soft);
  margin-top: 5px; display: flex; align-items: center; gap: 5px; min-height: 18px; letter-spacing: 0.01em;
}
.lokasi-hint.detecting { color: var(--yellow-deep); }
.lokasi-hint.success   { color: var(--ok); }
.lokasi-hint.fail      { color: var(--err); }

.field-error {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--err); margin-top: 5px; display: none; letter-spacing: 0.01em;
}
.field-error::before { content: "\26A0 "; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--err); background: #fdf2f0; }

.submit-btn {
  width: 100%; padding: 16px; margin-top: 0.5rem; background: var(--red); color: #fff;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 18px; letter-spacing: 0.01em;
  border: 3px solid var(--ink); border-radius: 12px; cursor: pointer;
  position: relative; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .1s, box-shadow .1s, background .2s; overflow: hidden;
}
.submit-btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left .55s;
}
.submit-btn:hover        { background: var(--red-deep); transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.submit-btn:hover::before { left: 130%; }
.submit-btn:active       { transform: translate(5px,5px); box-shadow: 0 0 0 var(--ink); }
.submit-btn:disabled     { background: var(--ink-faint); box-shadow: 3px 3px 0 var(--ink); cursor: not-allowed; }

.status {
  margin-top: 1.3rem; padding: 13px 16px; border-radius: var(--radius);
  font-family: 'Spline Sans Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; border: 2px solid; display: none;
}
.status.success { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-edge);  display: block; }
.status.error   { background: var(--err-bg);  color: var(--err);  border-color: var(--err-edge); display: block; }
.status.loading { background: var(--soft);    color: var(--ink-soft); border-color: var(--line); display: block; }

/* ── Tracking card (form) ── */
.tracking-card {
  display: none; position: relative; background: var(--panel);
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 7px 7px 0 var(--ink);
  padding: 2.7rem 2.1rem 2.5rem; text-align: center; margin-top: 1.6rem; overflow: hidden;
}
.tracking-card.show { display: block; animation: pop2 .55s cubic-bezier(.2,1.2,.4,1); }
.tracking-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 28%, rgba(247,195,49,0.18) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle at 50% 28%, #000 0%, transparent 60%);
  mask: radial-gradient(circle at 50% 28%, #000 0%, transparent 60%);
}
.tracking-card > * { position: relative; z-index: 1; }
.tracking-icon { font-size: 52px; margin-bottom: 0.8rem; }
.tracking-card h2 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.7rem;
  color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.tracking-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.4rem; }
.tracking-code-box {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--red-dark); border: 2.5px dashed var(--yellow); border-radius: 10px;
  padding: 15px 22px; margin-bottom: 1.3rem; position: relative; box-shadow: 4px 4px 0 var(--ink);
}
.tracking-code-box::before, .tracking-code-box::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px;
  background: var(--panel); border-radius: 50%; transform: translateY(-50%);
}
.tracking-code-box::before { left: -9px; }
.tracking-code-box::after  { right: -9px; }
.tracking-code-box span {
  font-family: 'Spline Sans Mono', monospace; font-size: 1.45rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--yellow);
}
.copy-btn {
  background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 7px;
  padding: 7px 13px; font-family: 'Baloo 2', cursive; font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em; cursor: pointer; transition: background .2s; box-shadow: 2px 2px 0 var(--ink);
}
.copy-btn:hover { background: var(--red-deep); }
.track-link {
  display: inline-block; font-family: 'Spline Sans Mono', monospace; font-size: 12px;
  color: var(--red); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; margin-top: 0.5rem; letter-spacing: 0.02em; font-weight: 600;
}

/* ── Searchable brand combobox (form) ── */
.combo { position: relative; }
.combo > input { padding-right: 40px; }
.combo-caret {
  position: absolute; right: 8px; top: 9px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: none; border-radius: 6px;
  font-size: 11px; line-height: 1; padding: 0; cursor: pointer;
}
.combo-caret:hover { background: var(--red); }
.combo-list {
  list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 30; max-height: 228px; overflow-y: auto; background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard);
  padding: 5px; display: none;
}
.combo-list.open { display: block; }
.combo-item {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ink); padding: 9px 11px; border-radius: 7px; cursor: pointer; line-height: 1.25;
}
.combo-item:hover, .combo-item.active { background: var(--soft); }
.combo-item.combo-other { color: var(--red); font-weight: 800; }
.combo-item.combo-other:not(:first-child) { border-top: 2px dashed var(--line); margin-top: 4px; padding-top: 11px; }
.combo-item.combo-other::before { content: "\271A  "; }

/* ── Tracker page ── */
.page-wrap.tracker { max-width: 560px; }

.header {
  text-align: center; padding: 1.6rem 0 2rem;
  opacity: 0; animation: rise .7s .15s cubic-bezier(.2,.8,.2,1) forwards;
}
.header-kicker {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--red);
  margin-bottom: 0.7rem; display: block;
}
.header h1 {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.9rem); line-height: 0.95;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.85rem;
}
.header h1 em {
  font-style: normal; color: var(--red); display: block; position: relative;
}
.header h1 em::after {
  content: ""; position: absolute; left: 50%; bottom: 0.06em;
  width: 0; height: 0.4em; background: var(--yellow); z-index: -1;
  border-radius: 3px; transform: translateX(-50%);
  animation: widen .5s .85s cubic-bezier(.2,.8,.2,1) forwards;
}
.header p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 380px; margin: 0 auto; }

.search-card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--ink); padding: 1.8rem 1.8rem 1.6rem;
  margin-bottom: 1.4rem; position: relative;
  opacity: 0; animation: rise .7s .3s cubic-bezier(.2,.8,.2,1) forwards;
}
.search-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -3px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 20px, var(--yellow) 20px 40px);
  border-radius: 0 0 4px 4px;
}
.card-label {
  font-family: 'Baloo 2', cursive; font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.card-label .num {
  background: var(--red); color: #fff; border: 2px solid var(--ink);
  font-family: 'Spline Sans Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px; box-shadow: 2px 2px 0 var(--ink);
}
.input-row { display: flex; gap: 10px; }
.code-input {
  flex: 1; font-family: 'Spline Sans Mono', monospace; font-size: 15px;
  font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; outline: none; transition: border-color .16s, box-shadow .16s;
  -webkit-appearance: none;
}
.code-input::placeholder { color: var(--ink-faint); font-weight: 400; letter-spacing: 0.06em; }
.code-input:focus { border-color: var(--ink); box-shadow: 4px 4px 0 var(--red-deep); }
.search-btn {
  padding: 12px 20px; background: var(--red); color: #fff;
  font-family: 'Baloo 2', cursive; font-size: 15px; font-weight: 800;
  border: 2.5px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); white-space: nowrap;
  transition: transform .1s, box-shadow .1s, background .15s; letter-spacing: 0.01em;
}
.search-btn:hover    { background: var(--red-deep); transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.search-btn:active   { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.search-btn:disabled { background: var(--ink-faint); box-shadow: 2px 2px 0 var(--ink); cursor: not-allowed; transform: none; }
.input-hint {
  font-family: 'Spline Sans Mono', monospace; font-size: 10.5px; color: var(--ink-faint);
  margin-top: 8px; letter-spacing: 0.02em;
}

.alert {
  border-radius: var(--radius); padding: 12px 14px;
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em; border: 2px solid; display: none; margin-top: 1rem;
}
.alert.show     { display: block; }
.alert.error    { background: var(--err-bg);  color: var(--err);       border-color: var(--err-edge); }
.alert.notfound { background: #f5f5f2;         color: var(--ink-soft);  border-color: var(--line); }

/* Mode toggle tabs */
.mode-toggle {
  display: flex; margin-bottom: 1rem;
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}
.mode-btn {
  flex: 1; padding: 9px 12px; border: none; cursor: pointer;
  font-family: 'Baloo 2', cursive; font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  background: #fff; color: var(--ink-soft);
  transition: background .14s, color .14s;
}
.mode-btn + .mode-btn { border-left: 2px solid var(--ink); }
.mode-btn.active      { background: var(--red); color: #fff; }
.mode-btn:hover:not(.active) { background: var(--soft); color: var(--ink); }

/* Phone results list */
.phone-list {
  display: none; background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--ink); overflow: hidden; margin-bottom: 1.4rem;
}
.phone-list.show { display: block; animation: rise .4s cubic-bezier(.2,.8,.2,1); }
.phone-list-head {
  padding: 1rem 1.5rem 0.85rem; border-bottom: 2px solid var(--line);
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 0.95rem; color: var(--ink);
}
.phone-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0.95rem 1.5rem; border-bottom: 1.5px solid var(--line);
  cursor: pointer; transition: background .14s;
}
.phone-list-item:last-child { border-bottom: none; }
.phone-list-item:hover { background: var(--soft); }
.phone-list-code {
  font-family: 'Spline Sans Mono', monospace; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--ink); flex-shrink: 0; min-width: 100px;
}
.phone-list-info {
  flex: 1; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; min-width: 0;
}
.phone-list-info strong { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-list-item .status-badge { font-size: 11px; padding: 3px 9px; flex-shrink: 0; }

/* ── Phone list table layout ── */
.phone-list-table { width: 100%; }
.plt-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0.55rem 1.5rem;
  background: var(--soft); border-bottom: 2px solid var(--line);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink-soft);
}
.plt-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0.9rem 1.5rem; border-bottom: 1.5px solid var(--line);
  transition: background .14s;
}
.plt-row:last-child { border-bottom: none; }
.plt-row:hover { background: var(--soft); }
.plt-col-code   { flex: 0 0 130px; }
.plt-col-info   { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plt-col-date   { flex: 0 0 90px; font-size: 12px; color: var(--ink-soft); }
.plt-col-status { flex: 0 0 160px; }
.plt-col-action { flex: 0 0 120px; text-align: right; }
.plt-detail-btn {
  display: inline-block;
  font-family: 'Baloo 2', cursive; font-size: 11.5px; font-weight: 800;
  color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 4px 12px; text-decoration: none;
  transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}
.plt-detail-btn:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 600px) {
  .plt-header { display: none; }
  .plt-row { flex-direction: column; gap: 0; padding: 0.75rem 1rem; }
  .plt-col { display: flex; align-items: center; justify-content: space-between; gap: 8px;
             padding: 5px 0; border-bottom: 1px solid var(--line); flex: unset; width: 100%; }
  .plt-col:last-child { border-bottom: none; }
  .plt-col[data-label]::before {
    content: attr(data-label);
    font-size: 10.5px; font-weight: 700; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: 0.05em;
    flex: 0 0 auto; white-space: nowrap;
  }
  .plt-col-code   { font-size: 13px; }
  .plt-col-info   { white-space: normal; overflow: visible; text-overflow: unset; font-size: 12.5px; }
  .plt-col-status .status-badge { font-size: 11px; }
  .plt-col-action { padding-top: 8px; }
  .plt-detail-btn { display: block; text-align: center; padding: 8px 12px; width: 100%; box-sizing: border-box; }
}

.result-card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--ink); padding: 2rem 1.8rem;
  display: none; position: relative; overflow: hidden;
  animation: rise .4s cubic-bezier(.2,.8,.2,1);
}
.result-card.show { display: block; }
.result-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -3px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 20px, var(--yellow) 20px 40px);
  border-radius: 0 0 4px 4px;
}

.status-section {
  text-align: center; padding: 1rem 0 1.2rem;
  border-bottom: 2.5px dashed var(--line); margin-bottom: 1.4rem;
}
.tracking-pill {
  display: inline-block; font-family: 'Spline Sans Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  background: var(--ink); color: #fff; border-radius: 6px;
  padding: 4px 12px; margin-bottom: 0.8rem; box-shadow: 2px 2px 0 var(--red);
}
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Baloo 2', cursive; font-size: 15px; font-weight: 700;
  padding: 8px 20px; border-radius: 8px; margin-bottom: 0.6rem;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.status-badge.menunggu   { background: #fef9e7; color: #7d6608; }
.status-badge.ditinjau   { background: var(--blue-bg); color: var(--blue); }
.status-badge.penawaran  { background: #e8f8f5; color: #0e6655; }
.status-badge.deal       { background: var(--ok-bg); color: var(--ok); }
.status-badge.tidak-deal { background: var(--err-bg); color: var(--err); }
#resultTs {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.04em;
}

.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.4rem; position: relative; }
.tl-item { display: flex; align-items: flex-start; gap: 14px; padding: 9px 0; position: relative; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--line); background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 700;
  position: relative; z-index: 1; margin-top: 1px;
}
.tl-dot.done   { background: var(--red);    border-color: var(--ink); color: #fff;       box-shadow: 2px 2px 0 var(--ink); }
.tl-dot.active { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.tl-line {
  position: absolute; left: 12px; top: 36px;
  width: 2px; height: calc(100% - 10px); background: var(--line); z-index: 0;
}
.tl-line.done { background: var(--red); }
.tl-label { font-size: 13px; font-weight: 500; color: var(--ink-faint); padding-top: 4px; font-family: 'Plus Jakarta Sans', sans-serif; }
.tl-label.done   { color: var(--ink); font-weight: 600; }
.tl-label.active { color: var(--red); font-weight: 700; }

.catatan-box {
  margin-bottom: 1.3rem; background: #fef9e7;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; color: #7d6608; line-height: 1.6;
  display: none; box-shadow: 3px 3px 0 var(--ink);
}
.catatan-box.show { display: block; }
.catatan-box strong {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 13px;
  margin-bottom: 5px; color: var(--ink);
}

/* ── Offer box ── */
.offer-box {
  margin-bottom: 1.3rem;
  background: #e8f8f5;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 16px; box-shadow: 3px 3px 0 var(--ink);
}
.offer-box.deal-done   { background: var(--ok-bg); }
.offer-box.no-deal-done{ background: var(--err-bg); }
.offer-box-title {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 14px;
  color: var(--ink); margin-bottom: 12px;
}
.offer-compare {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.6); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 12px;
  border: 1.5px dashed var(--line);
}
.offer-compare-item { flex: 1; }
.offer-compare-label {
  display: block; font-family: 'Spline Sans Mono', monospace;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 4px;
}
.offer-compare-price {
  display: block; font-family: 'Baloo 2', cursive;
  font-size: 18px; font-weight: 800; color: var(--ink);
}
.offer-compare-price.offered { color: var(--ok); }
.offer-compare-price.dimmed  { color: var(--ink-faint); text-decoration: line-through; }
.offer-compare-arrow { font-size: 20px; color: var(--ink-faint); flex-shrink: 0; }
.offer-desc {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px;
}
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.offer-btn {
  flex: 1; min-width: 140px; padding: 11px 14px;
  font-family: 'Baloo 2', cursive; font-size: 14px; font-weight: 700;
  border: 2px solid var(--ink); border-radius: 8px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.offer-btn:hover  { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.offer-btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.offer-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.offer-btn.deal    { background: var(--ok); color: #fff; }
.offer-btn.no-deal { background: var(--panel); color: var(--ink); }
.offer-status { margin-top: 10px; font-size: 12.5px; font-weight: 600; }
.offer-status.loading { color: var(--ink-soft); }
.offer-status.error   { color: var(--err); }

.detail-section { border-top: 2.5px dashed var(--line); padding-top: 1.2rem; }
.detail-section-label {
  font-family: 'Baloo 2', cursive; font-size: 13px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-bottom: 0.8rem;
}
.detail-section-label .num {
  background: var(--ink); color: #fff;
  font-family: 'Spline Sans Mono', monospace; font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px; letter-spacing: 0.04em;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-family: 'Spline Sans Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint);
}
.detail-value { font-weight: 700; text-align: right; max-width: 60%; color: var(--ink); }

/* ── Tracker status date log ── */
.status-timeline-dates {
  margin: 0.5rem 0 1.2rem;
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.stdates-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; gap: 8px;
}
.stdates-label {
  font-family: 'Spline Sans Mono', monospace; font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.stdates-time { color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 1.8rem;
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--panel);
  border: 2px solid var(--ink); border-radius: 8px; padding: 9px 16px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.back-link:hover  { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.back-link:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }

/* ── Footer (form & tracker) ── */
.foot {
  margin-top: 2.3rem; text-align: center; line-height: 1.9;
  font-family: 'Spline Sans Mono', monospace; font-size: 10.5px;
  color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase;
}
.foot .jp  { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; }
.foot .dot { color: var(--red); }

/* ── Scroll reveal (index) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Animations ── */
@keyframes rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop   { from { opacity: 0; transform: scale(.85) rotate(9deg); } to { opacity: 1; transform: scale(1) rotate(9deg); } }
@keyframes pop2  { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes swipe { to { transform: scaleX(1); } }
@keyframes widen { to { width: 70%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .navrow, .hero-banner, .header, .hero, .stats-bar,
  .form-card, .search-card, .reveal { opacity: 1 !important; transform: none !important; }
  .seal { transform: rotate(9deg) !important; }
  .header h1 em::after { transform: scaleX(1); width: 80%; }
  .hero h1 .line-red::after { width: 70%; }
  .topbar-track { animation: none; }
}

/* ── Floating WhatsApp button ── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform .15s, box-shadow .15s;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,0.22); }
.wa-fab svg { flex-shrink: 0; }
@media (max-width: 500px) {
  .wa-fab { bottom: 16px; right: 16px; padding: 11px 16px 11px 12px; font-size: 13px; }
}

/* ── iOS auto-zoom fix ── */
@media (max-width: 768px) {
  input[type="text"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"],
  textarea, select, .code-input {
    font-size: 16px !important;
  }
}

/* ── Responsive tweaks (index) ── */
@media (max-width: 560px) {
  .navbar-inner { height: 54px; }
  .navbar .brand-word .w { font-size: 20px; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-btn { font-size: 14px; padding: 12px 20px; }
  .rating-block { flex-direction: column; }
  .rating-source { border-left: none; padding-left: 0; border-top: 2px solid var(--line); padding-top: 0.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   ADDRESS SECTION — form step 09
   ════════════════════════════════════════════════════════════ */

/* Pinpoint row */
.pinpoint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9fc;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pinpoint-icon { flex-shrink: 0; color: var(--ink-soft); display: flex; }
.pinpoint-label-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pinpoint-ubah-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #27ae60;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
}
.pinpoint-ubah-btn:hover { text-decoration: underline; }

/* Char counters */
.char-counter {
  text-align: right;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-family: 'Spline Sans Mono', monospace;
}

/* Divider soft (within section, no full width) */
.divider-soft {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

/* Phone input with icon button */
.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.phone-input-wrap input {
  flex: 1;
  padding-right: 40px;
}
.phone-contact-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0;
  display: flex;
  align-items: center;
}
.phone-contact-btn:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   ADDRESS PICKER MODAL & MAP MODAL
   ════════════════════════════════════════════════════════════ */

.addr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.addr-modal-overlay.open { display: flex; }

@media (min-width: 600px) {
  .addr-modal-overlay { align-items: center; }
}

.addr-modal {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
}
@media (min-width: 600px) {
  .addr-modal { border-radius: 16px; }
}

.addr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1.5px solid var(--line);
}
.addr-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.addr-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
  padding: 2px 6px;
}
.addr-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addr-modal-footer {
  padding: 12px 16px;
  border-top: 1.5px solid var(--line);
}

/* Address cards in picker */
.addr-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
}
.addr-card-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.addr-card-area {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.addr-card-full {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}
.addr-card-recipient {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.addr-use-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.addr-use-btn:hover { opacity: .85; }

/* Add new address button */
.addr-add-new-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: none;
  border: 2px dashed var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s;
}
.addr-add-new-btn:hover { border-color: var(--ink); }

/* Map modal specifics */
.map-modal .addr-modal-body { padding: 0; }
#leafletMap {
  height: 55dvh;
  min-height: 260px;
  width: 100%;
}
.map-hint {
  padding: 10px 16px 0;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 28px;
  margin: 0;
}
.map-confirm-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.map-confirm-btn:hover { opacity: .88; }
