/* MBDxStore storefront — Hoshiyomi / Hoshimachi Suisei palette
   Ref: https://hoshimachi-suisei-fc.jp/ (navy night + champagne gold + comet cyan)
   Shared by index, paket, profile. Keep class/ID names stable. */

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

:root {
  --bg: #090c20;
  --bg-deep: #050712;
  --surface: #14182c;
  --surface-2: #1a1f38;
  --ink: #f4f0e6;
  --muted: #7b96ad;
  --border: rgba(196, 170, 125, 0.32);
  --accent: #33c3f0;
  --accent-deep: #1eaedb;
  --accent-soft: rgba(51, 195, 240, 0.16);
  --gold: #c4aa7d;
  --gold-light: #fffcd5;
  --gold-soft: rgba(196, 170, 125, 0.14);
  --navy: #172957;
  --cta: #33c3f0;
  --cta-ink: #090c20;
  --sale: #e85a7a;
  --sale-soft: rgba(232, 90, 122, 0.18);
  --ok: #32ae88;
  --ok-soft: rgba(50, 174, 136, 0.18);
  --warn: #c4aa7d;
  --warn-soft: rgba(196, 170, 125, 0.18);
  --err: #e85a7a;
  --err-soft: rgba(232, 90, 122, 0.18);
  --info-soft: rgba(51, 195, 240, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 36px rgba(0, 0, 0, .45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .28);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "Source Sans 3", system-ui, sans-serif;

  /* Legacy aliases */
  --cream: var(--bg);
  --white: var(--surface);
  --blue: var(--accent);
  --pink: var(--gold);
  --hotpink: var(--sale);
  --yellow: var(--gold);
  --green: var(--ok);
  --lav: #7b96ad;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 50% 8%, rgba(51, 195, 240, .12), transparent 55%),
    radial-gradient(700px 400px at 85% 0%, rgba(196, 170, 125, .1), transparent 50%),
    radial-gradient(800px 500px at 10% 100%, rgba(23, 41, 87, .55), transparent 60%),
    linear-gradient(180deg, #0f111e 0%, var(--bg) 40%, var(--bg-deep) 100%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,252,213,.7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 44% 28%, rgba(196,170,125,.65), transparent),
    radial-gradient(1px 1px at 61% 74%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 78% 22%, rgba(51,195,240,.55), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,252,213,.5), transparent),
    radial-gradient(1px 1px at 8% 82%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 52% 48%, rgba(196,170,125,.4), transparent);
  background-size: 100% 100%;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 90px; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #0f111e, #172957 50%, #0f111e);
  transform: translateY(-110%);
  transition: transform .3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(196,170,125,.25);
}
.topbar.visible { transform: translateY(0); }
.ticker { overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker-track { display: inline-block; animation: tickmove 24s linear infinite; animation-play-state: paused; will-change: transform; }
.ticker-track span { font-weight: 700; font-size: .84rem; color: #fff; margin: 0 16px; letter-spacing: .01em; }
.ticker-track i { font-style: normal; color: #fde68a; font-weight: 800; }
@keyframes tickmove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== HERO ===== */
.hero { text-align: center; padding: 26px 0 6px; }
.hero-logo { width: 210px; max-width: 65%; height: auto; display: block; margin: 0 auto 14px; }
.hero h1, .hero-card h1 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.hero h1 .hl-pink,
.hero-card h1 .hl-pink {
  background: linear-gradient(135deg, rgba(196,170,125,.2), rgba(51,195,240,.12));
  color: var(--gold-light);
  padding: 6px 14px;
  border: 1.5px solid rgba(196, 170, 125, .45);
  border-radius: 999px;
  box-shadow: none;
  display: inline-block;
  transform: none;
  max-width: 100%;
}
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 620px; margin: 14px auto 0; }
.trust-badge {
  background: rgba(20, 24, 44, .88);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  line-height: 1.25; min-height: 42px; text-align: center;
}
.trust-badge .dot {
  width: 8px; height: 8px; background: var(--ok);
  border: 0; border-radius: 50%; display: inline-block; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .2);
}

.hero-card {
  position: relative;
  background-color: #070b18;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, rgba(255,252,213,.95), transparent),
    radial-gradient(1.2px 1.2px at 16% 62%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.8px 1.8px at 28% 28%, rgba(196,170,125,.85), transparent),
    radial-gradient(1.2px 1.2px at 41% 78%, rgba(51,195,240,.75), transparent),
    radial-gradient(1.5px 1.5px at 54% 16%, rgba(255,252,213,.8), transparent),
    radial-gradient(1.2px 1.2px at 67% 48%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.7px 1.7px at 78% 22%, rgba(51,195,240,.8), transparent),
    radial-gradient(1.2px 1.2px at 88% 68%, rgba(196,170,125,.7), transparent),
    radial-gradient(1.4px 1.4px at 94% 12%, rgba(255,252,213,.75), transparent),
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(51,195,240,.14), transparent 62%),
    radial-gradient(ellipse 55% 45% at 78% 88%, rgba(23,41,87,.85), transparent 70%),
    linear-gradient(180deg, #10162c 0%, #090c20 48%, #050712 100%);
  border: 1.5px solid rgba(196, 170, 125, .42);
  border-radius: 22px;
  box-shadow: var(--shadow), inset 0 0 80px rgba(51,195,240,.06);
  text-align: center;
  padding: 28px 20px 22px;
  margin-top: 22px;
  margin-bottom: 28px;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -90px; bottom: -140px;
  border: 1px solid rgba(196,170,125,.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(51,195,240,.05),
    inset 0 0 48px rgba(51,195,240,.08);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-top {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr);
  align-items: start;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-top-spacer { display: block; }
.profile-btn.hero-profile {
  justify-self: end;
  padding: 8px 12px;
  font-size: .82rem;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.hero-logo2 {
  width: clamp(128px, 36vw, 168px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  justify-self: center;
}
.hero-card h1 { font-size: clamp(1.28rem, 5.4vw, 1.62rem); margin-top: 16px; position: relative; z-index: 1; }
.hero-card h1 .hl-pink { animation: sloganPulse 2.8s ease-in-out infinite; }
@keyframes sloganPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.zap { display: inline-block; animation: zapBlink 1.1s ease-in-out infinite; color: var(--cta); }
@keyframes zapBlink {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: .35; transform: scale(.8) rotate(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card h1 .hl-pink, .zap { animation: none; }
}
.hero-sub {
  font-weight: 500;
  color: var(--muted);
  font-size: .95rem;
  margin: 12px auto 0;
  max-width: 560px;
  line-height: 1.5;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px; position: relative; z-index: 1;
}
.hero-btn {
  width: min(100%, 340px);
  font-family: inherit;
  font-weight: 800;
  font-size: .95rem;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--border);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.hero-btn.primary,
#btnHeroSearch.hero-btn {
  background: linear-gradient(135deg, var(--accent), #5ed4f7);
  border-color: transparent;
  color: var(--cta-ink);
  box-shadow: 0 8px 24px rgba(51, 195, 240, .38);
}
.hero-btn:active { transform: translateY(1px); }

.promo-strip {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--sale), #fb7185);
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px; margin: 16px 0 4px;
}
.promo-logo {
  width: 34px; height: 34px; object-fit: contain;
  background: var(--surface); border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px; padding: 2px; flex-shrink: 0;
}
.promo-txt { flex: 1; color: #fff; line-height: 1.3; text-align: left; }
.promo-txt b { display: block; font-size: .8rem; letter-spacing: .4px; }
.promo-txt span { font-weight: 800; font-size: .95rem; }
.promo-btn {
  font-family: inherit; background: var(--cta); border: 0;
  border-radius: 999px; font-weight: 800; padding: 9px 14px;
  cursor: pointer; box-shadow: var(--shadow-sm); flex-shrink: 0; font-size: .88rem;
}

@media (max-width: 640px) {
  .hero-card { padding: 22px 14px 18px; border-radius: 18px; }
  .hero-top { grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr); }
  .profile-btn.hero-profile { padding: 7px 9px; font-size: .78rem; }
  .hero-logo2 { width: 122px; }
  .hero-card h1 { font-size: clamp(1.18rem, 5.6vw, 1.35rem); }
  .hero-sub { font-size: .88rem; }
  .trust-badge { font-size: .72rem; padding: 7px 4px; }
  .promo-logo { width: 28px; height: 28px; }
  .promo-txt span { font-size: .88rem; }
}
@media (max-width: 360px) {
  .hero-top { grid-template-columns: minmax(52px, 1fr) auto minmax(52px, 1fr); }
  .hero-logo2 { width: 108px; }
  .profile-btn.hero-profile { padding: 6px 7px; font-size: .74rem; }
  .trust-row { gap: 6px; }
}

/* ===== PROMO CAROUSEL ===== */
.carousel { position: relative; margin: 18px 0; }
.slide {
  display: none;
  background: linear-gradient(135deg, var(--sale), #fb7185);
  border: 0; border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow); transform: none;
}
.slide.active { display: block; }
.slide.alt { background: linear-gradient(135deg, var(--accent), #14b8a6); transform: none; }
.slide-title { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: .04em; margin-bottom: 6px; color: #fff; text-shadow: none; }
.slide-text { font-size: .95rem; font-weight: 700; color: #fff; }
.slide-btn {
  display: inline-block; margin-top: 12px; background: var(--cta); color: var(--ink);
  font-weight: 800; font-size: .9rem; border: 0; border-radius: 999px;
  padding: 10px 22px; text-decoration: none; box-shadow: var(--shadow-sm);
}
.dots { text-align: center; margin-top: 10px; }
.dots span {
  display: inline-block; width: 10px; height: 10px;
  border: 0; border-radius: 50%; margin: 0 4px;
  background: rgba(196,170,125,.25); cursor: pointer;
}
.dots span.on { background: var(--accent); }

/* ===== SECTION BASICS ===== */
.sec-title {
  font-family: var(--display);
  font-size: 1.22rem; font-weight: 800;
  margin: 30px 0 4px;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.02em;
}
.sec-title .numbadge {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 0; border-radius: 12px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; box-shadow: none; flex-shrink: 0;
}
.sec-sub { font-size: .88rem; font-weight: 500; margin-bottom: 14px; color: var(--muted); }
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.1rem; margin-bottom: 12px; font-weight: 800; font-family: var(--display); }
.card h2 .tag {
  font-size: .7rem; background: var(--accent); color: #fff;
  border: 0; border-radius: 999px; padding: 3px 10px;
  margin-left: 8px; vertical-align: middle; font-weight: 700;
}

/* ===== PROVIDER STRIP ===== */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.logo-grid button {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .08s, background .12s;
}
.logo-grid button:active { transform: translateY(1px); }
.logo-grid button.sel { background: var(--accent-soft); border-color: var(--accent); }
.logo-grid img { width: 100%; height: 40px; object-fit: contain; display: block; }

/* ===== FLASH SALE ===== */
.flash {
  position: relative;
  overflow: hidden;
  background-color: #070b18;
  background-image:
    radial-gradient(1.6px 1.6px at 6% 22%, rgba(255,252,213,.95), transparent),
    radial-gradient(1.2px 1.2px at 18% 70%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.8px 1.8px at 32% 24%, rgba(196,170,125,.85), transparent),
    radial-gradient(1.2px 1.2px at 46% 80%, rgba(51,195,240,.75), transparent),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,252,213,.8), transparent),
    radial-gradient(1.2px 1.2px at 72% 56%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.7px 1.7px at 84% 28%, rgba(51,195,240,.8), transparent),
    radial-gradient(1.2px 1.2px at 93% 74%, rgba(196,170,125,.7), transparent),
    radial-gradient(ellipse 70% 80% at 70% 40%, rgba(51,195,240,.12), transparent 60%),
    radial-gradient(ellipse 40% 50% at 12% 90%, rgba(23,41,87,.9), transparent 70%),
    linear-gradient(180deg, #10162c 0%, #090c20 50%, #050712 100%);
  color: #fff;
  border: 1.5px solid rgba(196, 170, 125, .42);
  border-radius: 20px;
  padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow), inset 0 0 70px rgba(51,195,240,.06);
}
.flash > * { position: relative; z-index: 1; }
.flash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.flash-title { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.flash-title .fire {
  background: var(--sale); padding: 4px 12px;
  border: 0; border-radius: 999px; display: inline-block; transform: none;
}
.countdown { display: flex; gap: 6px; align-items: center; font-weight: 800; }
.countdown .cd-box {
  background: var(--cta); color: var(--ink);
  border: 0; border-radius: 10px;
  padding: 6px 10px; font-size: 1rem; min-width: 46px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.flash-rail {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 14px 2px 6px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.5) transparent;
}
.flash-rail::-webkit-scrollbar { height: 8px; }
.flash-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.45); border-radius: 99px; }
.flash-rail::-webkit-scrollbar-track { background: rgba(255,255,255,.15); border-radius: 99px; }
.flash-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
/* Shared starfield surface for product / category cards */
.star-card,
.flash-card,
.prod-card,
.sub-tile,
.prod,
.search-item,
.cat-card {
  background-color: #10152a;
  background-image:
    radial-gradient(1.6px 1.6px at 10% 16%, rgba(255,252,213,.95), transparent),
    radial-gradient(1.2px 1.2px at 22% 72%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.8px 1.8px at 36% 28%, rgba(196,170,125,.9), transparent),
    radial-gradient(1.2px 1.2px at 48% 84%, rgba(51,195,240,.8), transparent),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,252,213,.85), transparent),
    radial-gradient(1.2px 1.2px at 70% 62%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.8px 1.8px at 82% 34%, rgba(51,195,240,.85), transparent),
    radial-gradient(1.2px 1.2px at 90% 78%, rgba(196,170,125,.75), transparent),
    radial-gradient(1.4px 1.4px at 94% 12%, rgba(255,252,213,.7), transparent),
    linear-gradient(160deg, rgba(20,24,44,.94) 0%, rgba(23,41,87,.72) 55%, rgba(9,12,32,.92) 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.flash-card {
  flex: 0 0 200px; scroll-snap-align: start;
  color: var(--ink);
  border: 1.5px solid rgba(196,170,125,.35);
  border-radius: var(--radius-sm); padding: 14px; position: relative;
  box-shadow: var(--shadow-sm), inset 0 0 24px rgba(51,195,240,.04);
}
.flash-card .disc {
  position: absolute; top: -10px; right: 10px;
  background: var(--sale); color: #fff;
  font-weight: 800; font-size: .72rem;
  border: 0; border-radius: 999px; padding: 3px 10px; transform: none;
}
.flash-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: 6px; }
.flash-card .old-price { text-decoration: line-through; color: var(--muted); font-size: .82rem; font-weight: 600; }
.flash-card .price { font-size: 1.25rem; font-weight: 800; color: var(--sale); }
.flash-card button { margin-top: 10px; background: var(--cta); width: 100%; border: 0; box-shadow: none; }
.flash-all {
  margin-top: 8px; background: rgba(20,24,44,.95); color: var(--gold-light);
  border: 0; border-radius: 999px; padding: 10px 18px;
  font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm);
}
.flash-all:active { transform: translateY(1px); }

/* ===== FORMS ===== */
label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=tel] {
  width: 100%; padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2); font-size: 1rem; font-weight: 600;
  margin-bottom: 12px; box-shadow: none; font-family: inherit; color: var(--ink);
}
input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 195, 240, .25);
  background: var(--surface);
}
button {
  width: 100%; padding: 13px 14px;
  border: 0; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .08s, box-shadow .08s, filter .12s;
  font-family: inherit; color: var(--ink); background: var(--surface);
}
button:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-green { background: linear-gradient(135deg, var(--ok), #2a9a78); color: #fff; }
.btn-pink { background: linear-gradient(135deg, var(--accent), #3860be); color: #fff; }
.btn-yellow { background: linear-gradient(135deg, var(--accent), #5ed4f7); color: var(--cta-ink); }
.detect-result {
  margin-top: 12px; padding: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; text-align: center; display: none; box-shadow: var(--shadow-sm);
}
.detect-ok { display: block; background: var(--accent-soft); }
.detect-warn { display: block; background: var(--warn-soft); }
.detect-err { display: block; background: var(--sale); color: #fff; }
.confirm-row { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.confirm-btn { width: auto; padding: 10px 20px; font-size: .92rem; }
.confirm-btn.yes { background: var(--ok); color: #fff; }
.confirm-btn.edit { background: var(--surface); border: 1.5px solid var(--border); }

/* ===== PANEL PROVIDER ===== */
.tabpanel { display: none; }
.tabpanel.show { display: block; }
iframe.embed {
  width: 100%; height: 640px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 14px;
}
.hint { font-size: .82rem; margin-bottom: 10px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.await-hint {
  text-align: center; font-weight: 600; font-size: .9rem;
  padding: 24px 12px; border: 1.5px dashed var(--border);
  border-radius: var(--radius); margin-bottom: 20px; background: var(--surface-2);
}

/* ===== VOUCHER ===== */
.voucher-row { display: flex; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.voucher-row input { flex: 1; min-width: 150px; margin-bottom: 0; padding: 10px 14px; }
.voucher-msg { font-size: .85rem; font-weight: 700; margin: 8px 0 12px; display: none; line-height: 1.5; }
.voucher-msg.v-ok { display: block; color: var(--ok); }
.voucher-msg.v-err { display: block; color: var(--sale); }

/* ===== PRICE LIST ===== */
.price-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price-tools input { margin-bottom: 0; flex: 1; min-width: 180px; padding: 10px 14px; }
.price-table-wrap { overflow-x: auto; border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.price { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .85rem; }
table.price th { background: #0f111e; color: var(--gold-light); padding: 10px 12px; text-align: left; font-weight: 700; white-space: nowrap; }
table.price td { padding: 10px 12px; border-top: 1px solid var(--border); font-weight: 500; }
table.price tr:nth-child(even) td { background: var(--surface-2); }
table.price .pr { font-weight: 800; color: var(--sale); white-space: nowrap; }
table.price .st-ok {
  display: inline-block; background: var(--ok-soft); color: var(--ok);
  border: 0; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 700;
}

/* ===== TESTIMONI / RECENT ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.testi {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.testi .stars { color: var(--cta); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.testi p { font-size: .88rem; font-weight: 500; line-height: 1.5; margin-bottom: 10px; }
.testi .who { font-size: .78rem; font-weight: 700; color: var(--muted); }
.testi .who b { color: var(--accent); }
.recent-list {
  display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.recent-track { display: flex; gap: 10px; width: max-content; animation: recentScroll 45s linear infinite; }
.recent-list:hover .recent-track { animation-play-state: paused; }
@keyframes recentScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .recent-track { animation: none; } }
.recent-row {
  flex: 0 0 auto; width: 285px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.recent-row .r-ava { font-size: 1.35rem; }
.recent-row .r-main { flex: 1; font-size: .88rem; font-weight: 500; line-height: 1.4; }
.recent-row .r-main b { color: var(--accent-deep); }
.recent-row .r-stars { color: var(--cta); font-size: .72rem; letter-spacing: 1px; }
.recent-row .r-side { text-align: right; white-space: nowrap; }
.recent-row .r-time { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.recent-row .r-ok { display: block; font-size: .78rem; font-weight: 800; color: var(--ok); }

/* ===== CATEGORY / PRODUCTS ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.cat-card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
  font-weight: 700; box-shadow: var(--shadow-sm), inset 0 0 28px rgba(196,170,125,.04);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.cat-card .cat-ico { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.cat-card small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; margin-top: 2px; }
button.cat-card { cursor: pointer; font-family: inherit; font-size: 1rem; width: 100%; }
button.cat-card.act {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(51, 195, 240, .2);
}
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; margin-top: 12px; }
.prod-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
  box-shadow: var(--shadow-sm), inset 0 0 24px rgba(51,195,240,.05);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.prod-card h3 { font-size: .86rem; margin-bottom: 3px; line-height: 1.3; font-weight: 700; }
.prod-card p { font-size: .74rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }
.prod-card .prod-price { display: block; font-size: .95rem; font-weight: 800; color: var(--accent-deep); margin-bottom: 8px; }
.prod-card button { padding: 8px 10px; font-size: .84rem; background: var(--cta); border: 0; box-shadow: none; }
#prodModal .prod-grid { margin-top: 0; }
.order-form { margin-top: 16px; border-top: 1.5px solid var(--border); padding-top: 6px; }
.order-form.plain { border-top: 0; margin-top: 0; padding-top: 0; }
.order-form label { display: block; font-weight: 700; font-size: .9rem; margin: 12px 0 6px; }
.order-summary { font-weight: 600; font-size: .92rem; line-height: 1.55; margin: 12px 0; }
.prod-card.sel {
  border-color: var(--accent);
  background-image:
    radial-gradient(1.2px 1.2px at 14% 20%, rgba(255,252,213,.55), transparent),
    radial-gradient(1px 1px at 82% 58%, rgba(51,195,240,.55), transparent),
    linear-gradient(160deg, rgba(51,195,240,.22), rgba(23,41,87,.75));
}
.prod-pick { font-size: .74rem; font-weight: 700; color: var(--accent); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 7, 18, .72);
  backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: overlayIn .18s ease backwards;
}
/* Izinkan salin No. Order / SN / voucher di modal pembayaran */
#payModal,
#payModal .modal-box,
#payModal #payInfo,
#payModal #payContent,
#payModal #payStatus,
#payModal #payDelivery {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
.modal-overlay.holding { background: rgba(15, 23, 42, .72); }
.modal-box {
  background:
    linear-gradient(180deg, rgba(20,24,44,.97), rgba(23,41,87,.95)),
    url('../assets-bg/bg-pattern.jpg') center / cover;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  width: 100%; max-width: 520px; max-height: 86vh;
  overflow-y: auto; padding: 18px; position: relative;
  animation: popIn .3s cubic-bezier(.2, 1.35, .35, 1) backwards;
}
.modal-box.modal-wide { max-width: 660px; }
@keyframes overlayIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

#paketModal { padding: 0; }
#paketModal .modal-box {
  width: 100%; max-width: none; height: 100vh; height: 100dvh;
  max-height: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 12px; display: flex; flex-direction: column;
  background-image: none; background: var(--surface-2);
}
#paketModal .sec-sub { display: none; }
#paketModal #cekPaketWrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#paketModal .tabpanel.show { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#paketModal .card {
  border: 0; box-shadow: none; padding: 0; margin-bottom: 0;
  background: transparent; display: flex; flex-direction: column; flex: 1; min-height: 0;
}
#paketModal iframe.embed { flex: 1; height: auto; min-height: 0; margin-bottom: 10px; }
#paketModal .modal-box { position: relative; padding: 10px; }
#paketModal .modal-head { position: absolute; top: 10px; right: 10px; z-index: 5; margin: 0; }
#paketModal .modal-head span { display: none; }
#paketModal .tabpanel h2, #paketModal .tabpanel p.hint { display: none; }
#paketModal .modal-close { box-shadow: 0 4px 16px rgba(15,23,42,.2); }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head span { font-size: 1.08rem; font-weight: 800; font-family: var(--display); }
.modal-close {
  width: auto; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 999px;
  height: 37px; padding: 0 12px 0 10px; cursor: pointer; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: .85rem; font-weight: 800; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease;
}
.modal-close:active { transform: translateY(1px); }
.holding-now { filter: brightness(.9); }
.float-wrap { position: sticky; top: 10px; z-index: 6; height: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.float-wrap > button { pointer-events: auto; }

.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sub-tile {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), inset 0 0 24px rgba(196,170,125,.05);
  cursor: pointer; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 6px; font-family: inherit;
  transition: transform .08s, border-color .12s;
}
.sub-tile:active { transform: translateY(1px); }
.sub-tile .sub-ico { font-size: 2.5rem; line-height: 1; }
.sub-tile .sub-label { font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.25; color: var(--ink); }
.prod-ico { font-size: 1.5rem; line-height: 1; margin-bottom: 5px; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-q {
  padding: 14px 16px; font-weight: 800; font-size: .92rem;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  user-select: none;
}
.faq-q .plus {
  background: var(--accent-soft); color: var(--accent);
  border: 0; border-radius: 8px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .3s ease, color .3s ease;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.22, 1, .36, 1);
}
.faq-a-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px;
  font-size: .88rem; font-weight: 500; line-height: 1.6; color: var(--muted);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .28s ease,
    transform .36s cubic-bezier(.22, 1, .36, 1),
    padding .36s cubic-bezier(.22, 1, .36, 1),
    color .3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a-inner {
  padding: 0 16px 16px;
  opacity: 1;
  transform: translateY(0);
  color: var(--ink);
}
.faq-item.open .faq-q .plus {
  background: var(--accent); color: #fff;
  transform: rotate(45deg);
}

/* ===== CEK TRANSAKSI ===== */
.cek-tx { display: flex; gap: 8px; flex-wrap: wrap; }
.cek-tx input { flex: 1; min-width: 180px; margin-bottom: 0; }
.cek-tx button { width: auto; padding: 12px 24px; }

/* ===== FOOTER ===== */
.footer {
  margin-top: 36px; border: 1.5px solid var(--border);
  border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow); padding: 28px 22px;
}
.footer-brand {
  text-align: center; margin-bottom: 6px;
}
.footer-logo {
  display: block; margin: 0 auto;
  width: clamp(96px, 28vw, 140px);
  max-width: 42%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 420px) {
  .footer-logo { width: 108px; max-width: 38%; }
}
@media (max-width: 360px) {
  .footer-logo { width: 96px; max-width: 36%; }
}
.footer-tag { text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 18px; }
.footer-links a { font-size: .88rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin-top: 12px; font-size: .8rem; font-weight: 600; opacity: .7; text-align: center; }
.footer-bottom {
  text-align: center; font-size: .8rem; font-weight: 600;
  border-top: 1.5px solid var(--border); padding-top: 16px; line-height: 1.7;
}
.footer-bottom a { color: var(--accent-deep); font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; text-align: left; margin-bottom: 16px; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 10px; color: var(--muted);
}
.footer-desc { font-size: .85rem; font-weight: 500; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.footer-contact { display: flex; flex-direction: column; gap: 7px; font-size: .84rem; font-weight: 600; }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact .ic { display: inline-block; width: 18px; }
.footer-info { display: flex; flex-direction: column; gap: 8px; }
.footer-info a { font-size: .86rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-info a:hover { color: var(--accent); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.footer-badge {
  font-size: .68rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px; background: var(--surface-2);
}

/* ===== MASCOT ===== */
body.modal-open #mascotWrap { display: none !important; }
.mascot-wrap {
  position: fixed; right: 18px; bottom: 94px; z-index: 999;
  display: flex; align-items: flex-end; gap: 8px;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.mascot-wrap.is-dragging { cursor: grabbing !important; }
.mascot-wrap.is-dragging .mascot-img,
.mascot-wrap.is-dragging .mascot-bubble { cursor: grabbing !important; transform: scale(1.05); }
.mascot-bubble {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 8px 12px; font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow); max-width: 190px;
  display: flex; align-items: center; gap: 6px;
  cursor: grab; position: relative; animation: mascotPop .3s ease; touch-action: none;
}
.mascot-bubble:hover { background: var(--accent-soft); }
.mascot-close {
  background: none; border: none; font-size: 1.15rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 2px; font-weight: 800;
  width: auto; box-shadow: none;
}
.mascot-close:hover { color: var(--sale); }
.mascot-img {
  width: 88px; height: 88px; object-fit: contain; cursor: grab;
  transition: transform .2s ease;
  filter: drop-shadow(0 8px 16px rgba(15,23,42,.18));
  touch-action: none; -webkit-user-drag: none;
}
.mascot-img:hover { transform: scale(1.06) translateY(-2px); }
.mascot-img:active { cursor: grabbing; }
@media (max-width: 600px) {
  .mascot-wrap { right: 14px; bottom: 90px; }
  .mascot-img { width: 76px; height: 76px; }
  .mascot-bubble { font-size: .78rem; padding: 6px 10px; max-width: 155px; }
}
@keyframes mascotPop {
  from { opacity: 0; transform: scale(.85) translateY(5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hide, .hidden { display: none !important; }

@media (max-width: 560px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 1.35rem; }
  iframe.embed { height: 560px; }
}

.sub-logo { width: 64px; height: 48px; object-fit: contain; }
.prod-logo { width: 42px; height: 42px; object-fit: contain; display: block; margin: 0 auto; }
.sec-panel {
  background:
    linear-gradient(180deg, rgba(20,24,44,.9), rgba(23,41,87,.85)),
    url('../assets-bg/bg-pattern.jpg') center / cover;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 20px 16px 16px;
  margin-bottom: 18px;
}
.sec-panel .sec-title { margin-top: 0; }
@media (max-width: 640px) { #catGrid .cat-card:last-child { grid-column: 1 / -1; } }

.panel-actions { display: flex; gap: 10px; margin: 4px 0 14px; }
.search-btn {
  flex: 1; display: flex; align-items: center; gap: 8px;
  justify-content: flex-start; padding: 12px 14px; font-size: .95rem;
}
.search-btn span { font-weight: 600; opacity: .55; }
.profile-btn { width: auto; padding: 12px 18px; border: 1.5px solid var(--border); }
.search-results { display: grid; gap: 8px; margin-top: 6px; }
.search-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), inset 0 0 20px rgba(51,195,240,.04);
}
.search-item .s-ico { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; font-size: 1.4rem; text-align: center; }
.search-item .s-name { font-weight: 800; font-size: .92rem; display: block; }
.search-item .s-cat { font-size: .74rem; font-weight: 600; opacity: .6; display: block; }
.search-item .s-price { margin-left: auto; font-weight: 800; font-size: .85rem; white-space: nowrap; color: var(--accent-deep); }
.search-hint { font-size: .85rem; font-weight: 600; opacity: .6; text-align: center; padding: 8px 0; }

.profile-card { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-ava {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--accent-soft));
  color: var(--gold-light);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; flex: 0 0 auto;
}
.profile-name { font-size: 1.15rem; font-weight: 800; font-family: var(--display); }
.profile-since { font-size: .8rem; font-weight: 600; opacity: .6; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.pstat {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 10px; text-align: center;
}
.pstat span { display: block; font-size: .72rem; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .4px; }
.pstat b { display: block; font-size: 1rem; margin: 2px 0; }
.pstat small { font-size: .68rem; font-weight: 600; opacity: .55; }
.profile-h { font-size: 1rem; font-weight: 800; margin: 16px 0 8px; font-family: var(--display); }
.hist-item {
  display: flex; gap: 10px; align-items: baseline;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.hist-item .h-name { font-weight: 800; font-size: .88rem; }
.hist-item .h-meta { font-size: .74rem; font-weight: 600; opacity: .6; display: block; }
.hist-item .h-total { margin-left: auto; font-weight: 800; font-size: .85rem; white-space: nowrap; color: var(--accent-deep); }
.hist-empty { font-size: .85rem; font-weight: 600; opacity: .6; text-align: center; padding: 10px 0; }

.sub-tile, .prod-card { animation: tileIn .3s ease backwards; }
.sub-grid .sub-tile:nth-child(2), .prod-grid .prod-card:nth-child(2) { animation-delay: .04s; }
.sub-grid .sub-tile:nth-child(3), .prod-grid .prod-card:nth-child(3) { animation-delay: .08s; }
.sub-grid .sub-tile:nth-child(4), .prod-grid .prod-card:nth-child(4) { animation-delay: .12s; }
.sub-grid .sub-tile:nth-child(5), .prod-grid .prod-card:nth-child(5) { animation-delay: .16s; }
.sub-grid .sub-tile:nth-child(6), .prod-grid .prod-card:nth-child(6) { animation-delay: .20s; }
.sub-grid .sub-tile:nth-child(7), .prod-grid .prod-card:nth-child(7) { animation-delay: .24s; }
.sub-grid .sub-tile:nth-child(8), .prod-grid .prod-card:nth-child(8) { animation-delay: .28s; }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px); } }

.cat-card, .prod-card { transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
@media (hover: hover) {
  .cat-card:hover, .prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(51, 195, 240, .18);
    border-color: var(--accent);
  }
  .sub-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(196, 170, 125, .18);
    border-color: var(--accent);
  }
}

#catGrid .cat-card.act {
  border-color: var(--gold);
  background-image:
    radial-gradient(1.2px 1.2px at 20% 24%, rgba(255,252,213,.6), transparent),
    radial-gradient(1px 1px at 78% 60%, rgba(51,195,240,.5), transparent),
    linear-gradient(160deg, rgba(196,170,125,.22), rgba(23,41,87,.8));
  box-shadow: 0 0 24px rgba(196,170,125,.2);
}

.rv-init { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.rv-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-box, .sub-tile, .prod-card, .flash, .mascot-wrap, .mascot-bubble { animation: none !important; }
}

/* ========== PAKET PAGE ========== */
body.page-paket .wrap { max-width: 560px; padding: 14px 14px 120px; }
.toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.back, .back-link {
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: .9rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 7px;
}
.back:active, .back-link:active { transform: translateY(1px); }
.brand { font-weight: 800; font-size: .9rem; font-family: var(--display); }
.brand i { font-style: normal; color: var(--accent); }
body.page-paket h1 {
  font-family: var(--display); font-size: 1.4rem; font-weight: 800;
  margin: 4px 0 2px; letter-spacing: -.02em;
}
.sub { font-weight: 500; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.provbadge {
  display: inline-block; background: var(--gold-soft); color: var(--gold-light);
  border: 0; border-radius: 999px; box-shadow: none;
  padding: 4px 12px; font-weight: 800; font-size: .88rem; margin-bottom: 12px;
}
.provrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.provchip {
  font: inherit; font-weight: 700; font-size: .82rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px 13px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.provchip.on { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.provchip:active { transform: translateY(1px); }

#brandBar {
  display: none; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding: 2px 2px 4px; margin: 0 -2px 10px;
  scrollbar-width: none;
}
#brandBar::-webkit-scrollbar { display: none; }
#brandBar.show { display: flex; }
#brandBar .gchip.on { background: var(--sale); color: #fff; border-color: var(--sale); }

#groupBar { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; margin: 0 0 4px; }
.gchip {
  flex: 0 0 auto; font: inherit; font-weight: 700; font-size: .82rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px 13px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.gchip.on { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.gchip:active { transform: translateY(1px); }
.grouphead {
  font-size: 1.02rem; font-weight: 800; margin: 18px 2px 10px;
  padding-bottom: 5px; border-bottom: 1.5px solid var(--border);
  font-family: var(--display);
}
.grouphead:first-child { margin-top: 6px; }

label.flabel { display: block; font-weight: 800; font-size: .85rem; margin-bottom: 6px; }
body.page-paket input[type="tel"],
body.page-paket input[type="text"] {
  width: 100%; font: inherit; font-size: 1.05rem; font-weight: 600;
  padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); margin-bottom: 0;
}
body.page-paket input:focus { outline: none; box-shadow: 0 0 0 3px rgba(51, 195, 240, .25); border-color: var(--accent); }

.btn {
  display: block; width: 100%; font: inherit; font-weight: 800; font-size: 1rem;
  border: 0; border-radius: var(--radius-sm); padding: 13px 16px; cursor: pointer;
  box-shadow: var(--shadow-sm); text-align: center; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--border);
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5ed4f7);
  border-color: transparent; color: var(--cta-ink);
  box-shadow: 0 8px 20px rgba(51, 195, 240, .35);
}
.btn.blue { background: linear-gradient(135deg, var(--accent), #1eaedb); color: #fff; border-color: transparent; }
.btn:disabled { opacity: .55; cursor: wait; }
.mt { margin-top: 12px; }

.alert {
  display: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; font-weight: 600; font-size: .9rem; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.alert.show { display: block; }
.alert.err { background: var(--err-soft); border-color: rgba(232,90,122,.45); }
.alert.ok { background: var(--ok-soft); border-color: rgba(50,174,136,.45); }
.alert.info { background: var(--info-soft); border-color: rgba(51,195,240,.4); }

.filterrow { display: none; margin-bottom: 10px; }
.filterrow.show { display: block; }
.count { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 8px 2px 4px; }

.prod {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px; margin-bottom: 9px;
  cursor: pointer; box-shadow: var(--shadow-sm), inset 0 0 22px rgba(51,195,240,.04);
  color: var(--ink);
}
.prod:active { transform: translateY(1px); }
.prod.sel {
  outline: 2px solid var(--gold);
  border-color: transparent;
  background-image:
    radial-gradient(1.2px 1.2px at 14% 20%, rgba(255,252,213,.55), transparent),
    radial-gradient(1px 1px at 82% 58%, rgba(51,195,240,.5), transparent),
    linear-gradient(160deg, rgba(196,170,125,.2), rgba(23,41,87,.78));
}
.prod .pinfo { flex: 1; min-width: 0; }
.prod .pname { font-weight: 700; font-size: .93rem; line-height: 1.3; }
.prod .pmeta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: .76rem; font-weight: 600; }
.prod .pprice { font-weight: 800; font-size: .95rem; white-space: nowrap; color: var(--accent-deep); }
.badge {
  display: inline-block; background: var(--ok); color: #fff;
  border: 0; border-radius: 999px; padding: 0 8px; font-size: .72rem; font-weight: 700;
}
.badge.sub2 {
  background: var(--sale, #e85a7a);
  color: #fff;
}

#checkoutBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(9,12,32,.94); backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--border);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  display: none; box-shadow: 0 -8px 24px rgba(15,23,42,.08);
}
#checkoutBar.show { display: block; }
#checkoutBar .inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
#checkoutBar .cinfo { flex: 1; min-width: 0; }
#checkoutBar .cname { font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#checkoutBar .cprice { font-weight: 700; color: var(--muted); font-size: .88rem; }
#checkoutBar .btn { width: auto; padding: 12px 22px; }

.inv {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 1px; text-align: center;
  background: var(--surface-2); border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 12px 6px; margin: 10px 0; word-break: break-all; font-family: var(--display);
}
.kv {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: .92rem; padding: 5px 0; border-bottom: 1px dotted var(--border);
}
.kv b { text-align: right; }
.status-line { text-align: center; font-weight: 800; margin-top: 10px; font-size: .95rem; }

#sheetWrap, #confirmWrap {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5,7,18,.72); display: flex; align-items: flex-end; justify-content: center;
}
#confirmWrap { z-index: 90; }
#sheetWrap.hidden, #confirmWrap.hidden { display: none !important; }
.sheet {
  background: var(--surface); border: 1.5px solid var(--border); border-bottom: none;
  border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(15,23,42,.18);
  width: 100%; max-width: 560px; max-height: 84vh; overflow-y: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); position: relative;
}
.sheetx {
  position: absolute; top: 10px; right: 10px; font: inherit; font-weight: 800;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
  width: 36px; height: 36px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.sheetx:active { transform: translateY(1px); }
.sheet h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; padding-right: 44px; font-family: var(--display); }
.sheetprice { font-weight: 800; font-size: 1.05rem; color: var(--sale); margin: 6px 0 8px; }

.total-quota-box {
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; margin: 10px 0; font-size: .9rem; font-weight: 700;
  display: flex; justify-content: space-between; gap: 8px;
}
.total-quota-box span { color: var(--accent-deep); }

.dhead { font-weight: 800; font-size: .88rem; margin: 14px 0 6px; border-bottom: 1.5px solid var(--border); padding-bottom: 3px; }
.drow { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.drow b { text-align: right; white-space: nowrap; }
.drow small { display: block; color: var(--muted); font-weight: 600; text-align: right; font-size: .75rem; }
.ddesc { font-size: .88rem; line-height: 1.55; white-space: pre-line; margin-top: 6px; color: var(--muted); }
.sheet details { margin-top: 12px; }
.sheet summary { font-weight: 800; font-size: .85rem; cursor: pointer; }
.dterms { font-size: .78rem; line-height: 1.5; color: var(--muted); white-space: pre-line; margin-top: 6px; }

.qrbox { text-align: center; }
.qrbox img {
  width: 230px; height: 230px; max-width: 80%;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); padding: 6px;
}
.foot { text-align: center; font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.foot a { color: var(--accent-deep); font-weight: 700; }
.spin {
  display: inline-block; width: 15px; height: 15px;
  border: 3px solid rgba(15,23,42,.15); border-top-color: var(--accent);
  border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -2px;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ========== PROFILE PAGE ========== */
body.page-profile { padding: 24px 16px 48px; }
body.page-profile .wrap { max-width: 720px; }
body.page-profile .panel {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); padding: 22px;
}
body.page-profile h1 {
  font-family: var(--display); font-size: 1.35rem; font-weight: 800; margin-bottom: 16px;
}
body.page-profile .back-link { height: 37px; margin-bottom: 14px; }
/* Override global button/btn width:100% — tombol profil mengikuti isi teks */
body.page-profile button,
body.page-profile .btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.page-profile #btnLogout {
  flex-shrink: 0;
  width: auto;
  white-space: nowrap;
}
body.page-profile .profile-balance-row {
  margin-top: 14px; padding: 12px; background: var(--surface); border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
body.page-profile .profile-balance-row .btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}
body.page-profile .claim-row {
  display: flex; gap: 8px; align-items: stretch;
}
body.page-profile .claim-row input#claimOrderIdInput {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin-bottom: 0;
  padding: 8px 12px;
  font-size: .85rem;
}
body.page-profile .claim-row #btnClaimOrderRefund {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 800;
  border-radius: 999px;
}
body.page-profile #profSave,
body.page-profile #profClear {
  width: auto;
  max-width: 100%;
  padding: 12px 22px;
}
body.page-profile #googleLoginBtn {
  width: auto;
  max-width: 100%;
}
.foot-note { text-align: center; font-size: .78rem; font-weight: 600; opacity: .7; margin-top: 14px; line-height: 1.6; }
.foot-note a { color: var(--accent-deep); font-weight: 800; }

/* ========== LEGAL PAGES ========== */
body.page-legal { line-height: 1.7; }
body.page-legal .wrap { max-width: 720px; padding: 16px 16px 60px; }
body.page-legal .back { margin: 6px 0 16px; }
body.page-legal .doc {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px 28px 36px;
}
body.page-legal .doc h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 8px;
}
body.page-legal .doc .updated {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
body.page-legal .doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
body.page-legal .doc p,
body.page-legal .doc li {
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #ebe6da;
}
body.page-legal .doc p { margin-bottom: 12px; }
body.page-legal .doc ul { margin: 0 0 8px 1.15rem; padding: 0; }
body.page-legal .doc li { margin-bottom: 8px; padding-left: 4px; }
body.page-legal .doc b { font-weight: 650; color: var(--gold-light); }
body.page-legal .foot {
  text-align: center;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
}
body.page-legal .foot a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) {
  body.page-legal .doc { padding: 22px 16px 26px; }
  body.page-legal .doc h1 { font-size: 1.45rem; }
}

/* ========== ANNOUNCEMENT POPUP ========== */
.announce-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(5, 7, 18, .78);
  backdrop-filter: blur(6px);
  animation: overlayIn .2s ease backwards;
}
.announce-box {
  width: min(100%, 440px);
  border-radius: 20px;
  border: 1.5px solid rgba(196,170,125,.45);
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,252,213,.9), transparent),
    radial-gradient(1.2px 1.2px at 82% 28%, rgba(51,195,240,.7), transparent),
    linear-gradient(160deg, rgba(20,24,44,.98), rgba(23,41,87,.82));
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 60px rgba(51,195,240,.06);
  padding: 22px 20px 18px;
  animation: popIn .32s cubic-bezier(.2, 1.35, .35, 1) backwards;
}
.announce-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cta-ink); background: linear-gradient(135deg, var(--accent), #5ed4f7);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.announce-box h2 {
  font-family: var(--display); font-size: 1.28rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--gold-light); margin: 0 0 10px; line-height: 1.3;
}
.announce-box p {
  font-size: .94rem; line-height: 1.55; color: var(--muted); margin: 0 0 12px;
}
.announce-box p strong { color: var(--ink); font-weight: 700; }
.announce-actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 6px;
}
.announce-actions a,
.announce-actions button {
  width: 100%; text-align: center; text-decoration: none;
  font-family: inherit; font-weight: 800; font-size: .95rem;
  border-radius: 999px; padding: 12px 16px; cursor: pointer; border: 0;
}
.announce-actions .announce-primary {
  background: linear-gradient(135deg, var(--accent), #5ed4f7); color: var(--cta-ink);
  box-shadow: 0 8px 20px rgba(51, 195, 240, .35);
}
.announce-actions .announce-secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border) !important;
  box-shadow: none;
}
.announce-actions .announce-ghost {
  background: transparent; color: var(--muted); box-shadow: none;
  font-weight: 600; font-size: .85rem; padding: 6px;
}
