/* ==========================================================================
   DIGIMEST STOREFRONT DESIGN SYSTEM v6.4.0
   Ink-ruled editorial commerce with Level 2 Silver Mist + Architectural Grid Fade,
   spacious wide-desktop layout, and machined tactile materiality.
   Supports Dual Theme (Dark Ink default + Newsprint Light), ID & EN, 320px–1720px+.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — DARK INK (DEFAULT) & NEWSPRINT LIGHT
   -------------------------------------------------------------------------- */
:root {
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-sans: "Onest", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-ink: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Dark Ink Surface System (Neutral Carbon — Zero Tailwind Blue Cast) */
  --bg-canvas: #0c0d10;
  --bg-surface: #16181c;
  --bg-surface-2: #1f2127;
  --bg-surface-hover: #282b33;
  --bg-nav: rgba(20, 22, 27, 0.76);

  /* Level 2 Silver Mist + Architectural Grid Fade Tokens */
  --canvas-grad: linear-gradient(180deg, #252831 0%, #191b22 190px, #101116 420px, #0c0d10 720px, #0a0b0e 100%);
  --canvas-dot: rgba(244, 243, 239, 0.032);
  --arch-grid-line: rgba(244, 243, 239, 0.055);
  --arch-grid-node: rgba(244, 243, 239, 0.14);
  --border-nav: rgba(216, 212, 200, 0.22);
  --hero-sheen: linear-gradient(148deg, rgba(255, 255, 255, 0.048) 0%, transparent 46%);
  --lookup-sheen: linear-gradient(165deg, #f7f5f0 0%, #eae6dc 100%);
  --lookup-rim: rgba(255, 255, 255, 0.9);
  --surface-sheen: rgba(255, 255, 255, 0.075);
  --surface-sheen-strong: rgba(255, 255, 255, 0.13);
  --media-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  --btn-sheen: rgba(255, 255, 255, 0.72);
  --focus-halo: rgba(242, 239, 232, 0.15);

  /* Inverted Contrast Hero Panel (Warm Newsprint Paper on Dark Ink) */
  --bg-spotlight: #f2efe8;
  --spotlight-ink: #111215;
  --spotlight-secondary: #3b3e46;
  --spotlight-muted: #52555e;
  --spotlight-border: #141519;
  --spotlight-chip-border: #6b6e78;
  --spotlight-surface: #e6e2d8;
  --spotlight-dot: rgba(17, 18, 21, 0.075);
  --spotlight-input-bg: #ffffff;
  --spotlight-input-border: #141519;
  --spotlight-input-ink: #111215;
  --spotlight-input-placeholder: #575b66;
  --spotlight-cta-bg: #141519;
  --spotlight-cta-hover: #292c34;
  --spotlight-cta-ink: #ffffff;

  /* Typography Ink */
  --text-main: #f4f3ef;
  --text-secondary: #cfcdc6;
  --text-muted: #98958c;

  /* Panel Rules */
  --border-panel: #d8d4c8;
  --border-ink: #383a42;
  --border-subtle: #272930;

  /* Site Accent (Sumi Monochrome) & Semantic Status */
  --accent: #f2efe8;
  --accent-hover: #e2ddd2;
  --accent-ink-on: #111215;
  --accent-text: #e2ddd0;
  --accent-soft: rgba(242, 239, 232, 0.11);
  --focus-ring: #f2efe8;
  --kicker-ink: #b8b3a6;
  --fab-border: #101114;

  --promo-bg: #dc2626;
  --promo-text: #ffffff;
  --stock-bg: #047857;
  --stock-text: #ffffff;
  --stock-text-inline: #34d399;

  --warn-bg: rgba(217, 119, 6, 0.16);
  --warn-border: #d97706;
  --warn-text: #fbbf24;

  --danger-bg: rgba(220, 38, 38, 0.14);
  --danger-border: #ef4444;
  --danger-text: #fca5a5;

  /* Screentone & Elevation */
  --tone-dot: rgba(244, 243, 239, 0.075);
  --tone-dot-strong: rgba(244, 243, 239, 0.125);
  --speedline-ink: rgba(244, 243, 239, 0.055);
  --elevation-panel: 0 4px 14px rgba(0, 0, 0, 0.36);
  --elevation-hover: 0 10px 24px rgba(0, 0, 0, 0.48);
  --elevation-hero: 0 14px 36px rgba(0, 0, 0, 0.48);
  --elevation-nav: 0 4px 20px rgba(0, 0, 0, 0.30);

  /* White Paper Tray for Payment Logos (ensures dark QRIS/Binance/USDT ink always reads) */
  --rail-tray-bg: #f2efe8;
  --rail-tray-ink: #111215;
  --rail-tray-border: #141519;

  /* Radii & Spacing */
  --radius-panel: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --container-max: 1720px;
  --container-pad: clamp(16px, 2.2vw, 32px);
}

html[data-theme="light"] {
  --bg-canvas: #f1f1ef;
  --bg-surface: #ffffff;
  --bg-surface-2: #e7e7e5;
  --bg-surface-hover: #dcdcd9;
  --bg-nav: rgba(255, 255, 255, 0.78);

  /* Archival Studio Paper Backdrop & Drafting Grid Tokens */
  --canvas-grad: linear-gradient(180deg, #ffffff 0%, #f6f6f5 210px, #efefed 460px, #ebebea 100%);
  --canvas-dot: rgba(18, 19, 22, 0.028);
  --arch-grid-line: rgba(18, 19, 22, 0.055);
  --arch-grid-node: rgba(18, 19, 22, 0.14);
  --border-nav: rgba(22, 24, 28, 0.16);
  --hero-sheen: linear-gradient(148deg, rgba(255, 255, 255, 0.85) 0%, rgba(245, 245, 243, 0.3) 100%);
  --lookup-sheen: linear-gradient(155deg, #202229 0%, #121317 100%);
  --lookup-rim: rgba(255, 255, 255, 0.12);
  --surface-sheen: rgba(255, 255, 255, 0.9);
  --surface-sheen-strong: rgba(255, 255, 255, 1);
  --media-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 100%);
  --btn-sheen: rgba(255, 255, 255, 0.16);
  --focus-halo: rgba(20, 21, 25, 0.10);

  /* Inverted Contrast Hero Panel (Deep Sumi Ink on Newsprint Light) */
  --bg-spotlight: #141519;
  --spotlight-ink: #f4f3ef;
  --spotlight-secondary: #d4d1c9;
  --spotlight-muted: #a6a39a;
  --spotlight-border: #141519;
  --spotlight-chip-border: rgba(244, 243, 239, 0.32);
  --spotlight-surface: #22242b;
  --spotlight-dot: rgba(244, 243, 239, 0.08);
  --spotlight-input-bg: #1e2026;
  --spotlight-input-border: #52555e;
  --spotlight-input-ink: #f4f3ef;
  --spotlight-input-placeholder: #a6a39a;
  --spotlight-cta-bg: #f3f3f2;
  --spotlight-cta-hover: #e3e3e0;
  --spotlight-cta-ink: #111215;

  --text-main: #121316;
  --text-secondary: #3b3e46;
  --text-muted: #555861;

  --border-panel: #16181c;
  --border-ink: #16181c;
  --border-subtle: #c8c8c5;

  --accent: #141519;
  --accent-hover: #2a2c34;
  --accent-ink-on: #ffffff;
  --accent-text: #141519;
  --accent-soft: rgba(20, 21, 25, 0.085);
  --focus-ring: #141519;
  --kicker-ink: #555861;
  --fab-border: #ffffff;

  --warn-bg: #fef3c7;
  --warn-border: #b45309;
  --warn-text: #78350f;

  --danger-bg: #fee2e2;
  --danger-border: #dc2626;
  --danger-text: #991b1b;

  --tone-dot: rgba(18, 19, 22, 0.075);
  --tone-dot-strong: rgba(18, 19, 22, 0.125);
  --speedline-ink: rgba(18, 19, 22, 0.05);
  --elevation-panel: 0 3px 10px rgba(15, 19, 27, 0.08);
  --elevation-hover: 0 10px 22px rgba(15, 19, 27, 0.14);
  --elevation-hero: 0 12px 30px rgba(15, 19, 27, 0.09);
  --elevation-nav: 0 2px 12px rgba(15, 19, 27, 0.06);

  --rail-tray-bg: #ffffff;
  --rail-tray-ink: #121316;
  --rail-tray-border: #16181c;
}

/* --------------------------------------------------------------------------
   2. RESET & BROWSER SURFACE POLISH
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-color: var(--border-ink) var(--bg-canvas);
  background-color: var(--bg-canvas);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-main);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(var(--canvas-dot) 1px, transparent 1px),
    var(--canvas-grad);
  background-size: 32px 32px, 100% 100%;
  background-position: 0 0, 0 0;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 580px;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--arch-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--arch-grid-line) 1px, transparent 1px),
    radial-gradient(var(--arch-grid-node) 1.25px, transparent 1.25px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: center top, center top, center top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}

@media (max-width: 640px) {
  body::before {
    height: 360px;
    background-size: 36px 36px, 36px 36px, 36px 36px;
  }
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink-on);
}

input, textarea, select, button {
  font-family: inherit;
  caret-color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-ink);
  border-radius: 5px;
  border: 2px solid var(--bg-canvas);
}

.tabular-num,
.price-amount,
.price-original-striked,
.lookup-input,
.lookup-history-count,
.promo-stamp,
.stock-pill,
.timer-val-inline,
.code-pill,
.reference-code-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Dual-Theme Logo Image Toggle */
.logo-img-light { display: none; }
.logo-img-dark { display: block; }
html[data-theme="light"] .logo-img-dark { display: none; }
html[data-theme="light"] .logo-img-light { display: block; }

/* --------------------------------------------------------------------------
   3. NAVBAR (UNIFIED SINGLE-ROW BAR, ZERO MOBILE OVERFLOW)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-nav);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
  border-bottom: 1.5px solid var(--border-nav);
  box-shadow: var(--elevation-nav);
  width: 100%;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
}

.logo-navbar-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease-ink), border-color 0.16s var(--ease-ink), color 0.16s var(--ease-ink);
}

.btn-nav:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-ink);
}

.btn-nav.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.badge-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Currency & Language Dropdowns */
.currency-dropdown-wrap,
.lang-dropdown-wrap {
  position: relative;
}

.currency-btn,
.lang-btn,
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s var(--ease-ink), background-color 0.16s var(--ease-ink);
}

.theme-toggle-btn {
  width: 40px;
  padding: 0;
}

.currency-btn:hover,
.lang-btn:hover,
.theme-toggle-btn:hover {
  border-color: var(--border-ink);
  background: var(--bg-surface-2);
}

.currency-symbol-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-text);
}

.svg-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(128, 128, 128, 0.35);
  flex-shrink: 0;
}

.currency-arrow,
.lang-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.currency-menu,
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 175px;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-panel);
  background: var(--bg-surface);
  box-shadow: var(--elevation-hover);
  display: none;
  z-index: 260;
}

.currency-dropdown-wrap.open .currency-menu,
.lang-dropdown-wrap.open .lang-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.currency-item,
.lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.currency-item:hover,
.lang-item:hover {
  background: var(--bg-surface-2);
}

.currency-item.active,
.lang-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}

.currency-item-name,
.lang-item-name {
  flex: 1;
}

/* Mobile Hamburger */
.nav-hamburger-btn {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-ink), opacity 0.2s var(--ease-ink);
}

.nav-hamburger-btn.open .line-1 {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger-btn.open .line-2 {
  opacity: 0;
}
.nav-hamburger-btn.open .line-3 {
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-surface);
}

@media (max-width: 860px) {
  .nav-container {
    height: 60px;
    padding: 0 14px;
  }
  .logo-navbar-img {
    height: 30px;
  }
  .nav-desktop-item {
    display: none !important;
  }
  .nav-hamburger-btn {
    display: inline-flex;
  }
  .lang-btn {
    min-height: 44px;
    padding: 0 10px;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE SLIDE-OVER DRAWER
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 9, 12, 0.74);
  display: none;
  justify-content: flex-end;
}

.mobile-drawer-overlay.open {
  display: flex;
}

.mobile-drawer-panel {
  width: min(350px, 88vw);
  height: 100%;
  background: var(--bg-surface);
  border-left: 2px solid var(--border-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.drawer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
}

.drawer-nav-item {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.drawer-nav-item:hover {
  border-color: var(--border-ink);
}

.drawer-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.drawer-item-icon.brand-wa {
  background: #25d366;
  color: #ffffff;
}

.drawer-item-icon.brand-tg {
  background: #229ed9;
  color: #ffffff;
}

.drawer-item-text {
  flex: 1;
  min-width: 0;
}

.drawer-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.drawer-lang-grid,
.drawer-currency-grid,
.drawer-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-lang-btn,
.drawer-currency-btn,
.drawer-theme-btn {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
}

.drawer-lang-btn.active,
.drawer-currency-btn.active,
.drawer-theme-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.drawer-lang-left,
.drawer-currency-left,
.drawer-theme-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.currency-symbol-badge,
.theme-symbol-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.drawer-footer {
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1.5px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. HERO SCREENTONE SPREAD (ASYMMETRIC EDITORIAL PANEL + QUICK ORDER LOOKUP)
   -------------------------------------------------------------------------- */
.hero-spread {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 22px var(--container-pad) 10px;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

/* Left Panel: Halftone + Subtle Corner Speedlines + Material Sheen */
.hero-main-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background-color: var(--bg-surface);
  background-image:
    var(--hero-sheen),
    repeating-conic-gradient(from 0deg at 92% 14%, var(--speedline-ink) 0deg 1.2deg, transparent 1.2deg 9deg),
    radial-gradient(var(--tone-dot) 1.25px, transparent 1.25px);
  background-size: 100% 100%, 100% 100%, 8px 8px;
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--elevation-hero), inset 0 1px 0 var(--surface-sheen);
}

.hero-copy-block {
  position: relative;
  z-index: 1;
}

.hero-headline {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-wrap: balance;
}

.hero-honesty-line {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Bottom Strip in Hero: Static Payment Rail Tray + Mobile Track Order Link */
.hero-bottom-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding-top: 4px;
}

.hero-rails-tray {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--rail-tray-bg);
  border: 1.5px solid var(--rail-tray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  cursor: default;
}

.rail-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.rail-logo-img[src*="kris.png"] {
  width: 56px;
  height: 28px;
  object-fit: cover;
  object-position: center;
}

.rail-logo-usdt-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rail-tray-ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-track-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-ink), background-color 0.16s var(--ease-ink);
}

.hero-track-link svg {
  transition: transform 0.18s var(--ease-ink);
}

.hero-track-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-track-link:hover svg {
  transform: translateX(3px);
}

.hero-mobile-track-link {
  display: none;
}

/* Right Inverted-Contrast Quick Order Lookup Panel */
.hero-lookup-panel {
  border: 2px solid var(--spotlight-border);
  border-radius: var(--radius-panel);
  background-color: var(--bg-spotlight);
  background-image:
    radial-gradient(var(--spotlight-dot) 1.2px, transparent 1.2px),
    var(--lookup-sheen);
  background-size: 9px 9px, 100% 100%;
  color: var(--spotlight-ink);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--elevation-hero), inset 0 1px 0 var(--lookup-rim);
}

.lookup-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lookup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--spotlight-ink);
  text-wrap: balance;
}

.lookup-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--spotlight-secondary);
  max-width: 48ch;
  text-wrap: pretty;
}

.lookup-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lookup-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 2px solid var(--spotlight-input-border);
  border-radius: var(--radius-sm);
  background: var(--spotlight-input-bg);
  color: var(--spotlight-input-ink);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: border-color 0.16s var(--ease-ink), box-shadow 0.16s var(--ease-ink);
}

.lookup-input::placeholder {
  color: var(--spotlight-input-placeholder);
  opacity: 1;
}

.lookup-input:focus {
  box-shadow: 0 0 0 3px var(--focus-halo);
}

.lookup-input:focus-visible {
  outline: 2px solid var(--spotlight-cta-bg);
  outline-offset: 2px;
}

.btn-lookup-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--spotlight-cta-bg);
  color: var(--spotlight-cta-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background-color 0.16s var(--ease-ink), transform 0.16s var(--ease-ink);
}

.btn-lookup-submit:hover {
  background: var(--spotlight-cta-hover);
  transform: translateY(-1px);
}

.btn-lookup-submit:active {
  transform: translateY(0) scale(0.985);
}

.lookup-footer-links {
  padding-top: 10px;
  border-top: 1.5px dashed var(--spotlight-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.lookup-inline-btn,
.lookup-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: var(--spotlight-ink);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 3px;
}

.lookup-inline-link svg {
  transition: transform 0.18s var(--ease-ink);
}

.lookup-inline-btn:hover,
.lookup-inline-link:hover {
  text-decoration: underline;
}

.lookup-inline-link:hover svg {
  transform: translateX(3px);
}

.lookup-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--spotlight-cta-bg);
  color: var(--spotlight-cta-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 1279px) {
  .hero-panel-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.98fr);
    gap: 18px;
  }
}

@media (max-width: 960px) {
  .hero-panel-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-lookup-panel {
    padding: 16px 18px;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .hero-spread {
    padding: 10px 12px 4px;
  }
  .hero-main-panel {
    padding: 14px 12px 12px;
    gap: 10px;
    background-image:
      var(--hero-sheen),
      radial-gradient(var(--tone-dot) 1.2px, transparent 1.2px);
    background-size: 100% 100%, 8px 8px;
  }
  .hero-headline {
    font-size: 1.375rem;
    line-height: 1.12;
    margin-bottom: 4px;
  }
  .hero-honesty-line {
    font-size: 0.84rem;
    line-height: 1.42;
  }
  .hero-bottom-strip {
    padding-top: 2px;
    gap: 8px;
  }
  .hero-rails-tray {
    gap: 12px;
    padding: 7px 12px;
  }
  .rail-logo-img {
    height: 22px;
  }
  .rail-logo-img[src*="kris.png"] {
    width: 44px;
    height: 22px;
  }
  .rail-logo-usdt-wrap {
    font-size: 0.78rem;
  }
  .hero-mobile-track-link {
    display: inline-flex;
    min-height: 38px;
    padding: 5px 11px;
    font-size: 0.8125rem;
  }
  .hero-lookup-panel {
    display: none;
  }
}

@media (max-width: 379px) {
  .hero-headline {
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   6. PRODUCT CATALOG TOOLBAR & GRID (4 COLS DESKTOP / 2 COLS MOBILE >=380PX)
   -------------------------------------------------------------------------- */
.products-section {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 20px var(--container-pad) 52px;
  flex: 1;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-subtle);
}

.catalog-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.catalog-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.catalog-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.catalog-count-pill:empty {
  display: none;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-search-box {
  width: min(100%, 540px);
}

.search-field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 38px 0 14px;
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
  transition: border-color 0.16s var(--ease-ink), background-color 0.16s var(--ease-ink), box-shadow 0.16s var(--ease-ink);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-halo);
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.search-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  background: var(--bg-surface-hover);
}

.search-action-btn {
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: background-color 0.16s var(--ease-ink), transform 0.14s var(--ease-ink);
}

.search-action-btn:hover {
  background: var(--accent-hover);
}

.search-action-btn:active {
  transform: scale(0.985);
}

.catalog-filter-row {
  position: relative;
  width: 100%;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-ink), color 0.16s var(--ease-ink), border-color 0.16s var(--ease-ink), transform 0.14s var(--ease-ink);
}

.tag-btn:hover {
  border-color: var(--border-panel);
  color: var(--text-main);
}

.tag-btn:active {
  transform: scale(0.97);
}

.tag-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink-on);
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 8px rgba(0, 0, 0, 0.20);
}

.catalog-state-box {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.catalog-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.catalog-error-state a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--elevation-panel), inset 0 1px 0 var(--surface-sheen);
  transition: transform 0.18s var(--ease-ink), border-color 0.18s var(--ease-ink), box-shadow 0.18s var(--ease-ink);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--elevation-hover), inset 0 1px 0 var(--surface-sheen-strong);
}

.product-card:hover .prod-logo {
  transform: scale(1.045);
}

.product-card:hover .btn-buy-catalog:not(.btn-buy-out) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.product-card.out-of-stock {
  opacity: 0.78;
}

.prod-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.prod-media-head {
  position: relative;
  padding: 16px 18px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--bg-surface-2);
  background-image:
    var(--media-sheen),
    radial-gradient(var(--tone-dot-strong) 1.25px, transparent 1.25px);
  background-size: 100% 100%, 7px 7px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.prod-logo {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease-ink);
}

.prod-media-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-stock {
  background: var(--stock-bg);
  color: var(--stock-text);
  font-family: var(--font-mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.badge-stock.empty {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
  box-shadow: none;
}

.promo-stamp {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--promo-bg);
  color: var(--promo-text);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}

.prod-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.prod-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.prod-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--kicker-ink);
}

.prod-sold-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.prod-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.badge-warranty,
.badge-region {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
}

.prod-footer {
  padding: 14px 18px;
  border-top: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-original-striked {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-amount {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-buy-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: background-color 0.16s var(--ease-ink), transform 0.16s var(--ease-ink);
}

.btn-buy-catalog:active {
  transform: translateY(0) scale(0.98);
}

.btn-buy-catalog.btn-buy-out {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  border: 1.5px solid var(--border-subtle);
  box-shadow: none;
}

@media (max-width: 1279px) {
  .products-grid {
    gap: 18px;
  }
}

@media (max-width: 1119px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .products-section {
    padding: 16px 12px 72px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .prod-media-head {
    padding: 10px;
    min-height: 76px;
  }
  .prod-logo {
    width: 44px;
    height: 44px;
  }
  .prod-card-body {
    padding: 10px;
  }
  .prod-desc {
    display: none;
  }
  .prod-title {
    font-size: 0.9375rem;
  }
  .prod-footer {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn-buy-catalog {
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 640px) {
  .products-section {
    padding: 12px 12px 76px;
  }
  .catalog-toolbar {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .catalog-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .catalog-title-group {
    justify-content: space-between;
    align-items: center;
  }
  .catalog-section-title {
    font-size: 1.2rem;
  }
  .catalog-search-box {
    width: 100%;
  }
  .search-input {
    height: 44px;
  }
  .search-action-btn {
    height: 44px;
    padding: 0 14px;
  }
  .search-action-btn .search-btn-text {
    display: none;
  }
  .filter-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 18px 2px 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .filter-tags::-webkit-scrollbar {
    display: none;
  }
  .tag-btn {
    flex-shrink: 0;
    min-height: 36px;
    padding: 5px 12px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 379px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .prod-desc {
    display: -webkit-box;
  }
  .prod-footer {
    flex-direction: row;
    align-items: center;
  }
  .btn-buy-catalog {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   7. MODALS (HISTORY, ANNOUNCEMENT, CHECKOUT, CANCEL)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(8, 9, 12, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 20px;
  box-shadow: var(--elevation-hover);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-subtle);
  margin-bottom: 12px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-subtitle-note {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.history-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
}

.history-clear-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-clear-expired {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--warn-border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.order-history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
}

.order-history-card.active-card {
  cursor: pointer;
}

.order-history-card.active-card:hover {
  border-color: var(--accent);
}

.order-history-card.order-card-disabled {
  opacity: 0.72;
}

.order-card-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-card-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.badge-history {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-history-paid {
  background: var(--stock-bg);
  color: var(--stock-text);
}

.badge-history-unpaid {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

.badge-history-expired,
.badge-history-cancelled {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.order-card-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.order-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-history-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-history-disabled {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-history-delete {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 560px) {
  .order-history-card {
    flex-direction: column;
    align-items: stretch;
  }
  .order-card-action {
    justify-content: flex-end;
  }
}

/* Announcement Modal */
.announcement-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  color: var(--text-main);
  overflow: hidden;
  box-shadow: var(--elevation-hover);
}

.announcement-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-panel);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
}

.announcement-banner-wrap {
  background: var(--bg-surface-2);
  border-bottom: 1.5px solid var(--border-subtle);
}

.announcement-banner-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.announcement-content-wrap {
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.announcement-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.announcement-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.announcement-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.announcement-action-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.announcement-footer {
  padding: 14px 20px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-announcement-dismiss,
.btn-announcement-ok {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-announcement-dismiss {
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
}

.btn-announcement-ok {
  border: none;
  background: var(--accent);
  color: var(--accent-ink-on);
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 6px rgba(0, 0, 0, 0.16);
}

.btn-announcement-ok:active {
  transform: scale(0.985);
}

@media (max-width: 420px) {
  .announcement-footer {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   8. ANTI-AI EDITORIAL FOOTER (FLAT HIERARCHY, SEPARATE CS VS SOCIAL, OFFICIAL COLORS)
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1.5px solid var(--border-ink);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-canvas) 100%);
  color: var(--text-main);
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--container-pad) 64px;
}

.footer-streamlined-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(240px, 0.92fr) minmax(340px, 1.25fr);
  gap: 40px;
  align-items: start;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.footer-brand-desc {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.58;
  color: var(--text-secondary);
  max-width: 34ch;
  text-wrap: pretty;
}

.footer-rails-tray {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--rail-tray-bg);
  border: 1.5px solid var(--rail-tray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  margin-top: 2px;
}

.footer-col-links h3,
.footer-col-action h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.footer-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-nav-links a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.footer-support-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-reseller-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  cursor: pointer;
  transition: border-color 0.16s var(--ease-ink);
}

.footer-reseller-card:hover {
  border-color: var(--accent);
}

.footer-reseller-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reseller-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.reseller-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Flat Help CS Panel (NO nested bordered boxes inside!) */
.footer-help-panel {
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  overflow: hidden;
}

.footer-help-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-help-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-help-icon svg {
  width: 22px;
  height: 22px;
}

.footer-help-copy {
  display: flex;
  flex-direction: column;
}

.footer-help-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-help-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-help-channels {
  display: flex;
  flex-direction: column;
}

.footer-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background-color 0.16s var(--ease-ink);
}

.footer-channel:first-child {
  border-top: none;
}

.footer-channel:hover {
  background: var(--bg-surface-hover);
}

.footer-channel-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.footer-channel-icon svg {
  width: 21px;
  height: 21px;
}

.footer-channel-wa .footer-channel-icon {
  background: #25d366;
}

.footer-channel-tg .footer-channel-icon {
  background: #229ed9;
}

.footer-channel-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.footer-channel-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-channel-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-channel-arrow {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.footer-channel-arrow svg {
  width: 18px;
  height: 18px;
}

/* Social Group (Kept Distinct from CS) */
.footer-social-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.footer-social-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-ink);
  cursor: pointer;
}

.footer-social-btn svg {
  width: 22px;
  height: 22px;
}

.footer-social-btn.social-tiktok {
  background: #0f131b;
  color: #ffffff;
  border-color: #25f4ee;
  box-shadow: 2px 0 0 #fe2c55, -2px 0 0 #25f4ee;
}

.footer-social-btn.social-threads {
  background: #ffffff;
  color: #0f131b;
}

html[data-theme="light"] .footer-social-btn.social-threads {
  background: #0f131b;
  color: #ffffff;
}

.footer-bottom-simple {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .footer-streamlined-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 28px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-streamlined-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-container {
    padding: 24px 16px calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .footer-logo-img {
    height: 38px;
    max-width: 185px;
  }
  .footer-rails-tray {
    gap: 12px;
    padding: 8px 12px;
  }
}

/* --------------------------------------------------------------------------
   9. FLOATING HELP CS BUTTON, TOAST & VERSION BANNER (Z-INDEX ISOLATED)
   -------------------------------------------------------------------------- */
.floating-telegram-btn {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--fab-border);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--elevation-hover), inset 0 1px 0 var(--btn-sheen);
  cursor: pointer;
  transition: background-color 0.16s var(--ease-ink), transform 0.18s var(--ease-ink), box-shadow 0.18s var(--ease-ink);
}

.floating-telegram-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 var(--btn-sheen);
}

.floating-telegram-btn:active {
  transform: translateY(0) scale(0.97);
}

body.has-sticky-bar .floating-telegram-btn {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
  .floating-telegram-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .floating-telegram-btn span {
    display: none;
  }
  body.has-sticky-bar .floating-telegram-btn {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

.toast-notice {
  position: fixed;
  top: 80px;
  right: 20px;
  bottom: auto;
  left: auto;
  transform: translateY(-10px);
  z-index: 900;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-panel);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--elevation-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-ink), transform 0.2s var(--ease-ink);
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.version-update-banner {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 750;
  max-width: calc(100vw - 32px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-panel);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--elevation-hover);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s var(--ease-ink), transform 0.2s var(--ease-ink);
}

.version-update-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.version-update-banner button {
  min-height: 36px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. SECONDARY OPERATE & READ SURFACES (PRODUCT, PAYMENT, CLAIM, INFO)
   Shared foundation so Phases 2B & 2C inherit the exact same token/panel system.
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: min(var(--container-max), 1440px);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--container-pad) 52px;
  flex: 1;
}

.panel-card {
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 22px;
  box-shadow: var(--elevation-panel), inset 0 1px 0 var(--surface-sheen);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.16s var(--ease-ink), box-shadow 0.16s var(--ease-ink);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-halo);
}

.btn-primary-solid,
.btn-submit,
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: background-color 0.16s var(--ease-ink), transform 0.14s var(--ease-ink);
}

.btn-primary-solid:hover,
.btn-submit:hover,
.btn-buy:hover {
  background: var(--accent-hover);
}

.btn-primary-solid:active,
.btn-submit:active,
.btn-buy:active {
  transform: scale(0.985);
}

.btn-secondary-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. READ / INFO EDITORIAL SURFACES (About, How to Buy, Warranty, Privacy, Terms)
   Single-level ink-ruled editorial measure, zero nested bordered cards.
   -------------------------------------------------------------------------- */
.info-container {
  max-width: 78ch;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 88px;
  flex: 1;
}

.info-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.info-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.info-breadcrumb a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.info-header {
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-panel);
}

.info-header h1,
.brand-hero-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-wrap: balance;
}

.info-lead,
.brand-hero-desc {
  margin: 0;
  font-size: 1.03125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 60ch;
  text-wrap: pretty;
}

.brand-masthead {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 26px;
  margin-bottom: 32px;
}

.brand-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--tone-dot) 1.25px, transparent 1.25px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(225deg, rgba(0, 0, 0, 0.65) 0%, transparent 48%);
  mask-image: linear-gradient(225deg, rgba(0, 0, 0, 0.65) 0%, transparent 48%);
  pointer-events: none;
}

.brand-masthead-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.brand-masthead-copy {
  min-width: 0;
  flex: 1;
}

.brand-masthead-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.brand-facts-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px solid var(--border-subtle);
}

.brand-fact-item {
  min-width: 0;
}

.brand-fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.brand-fact-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.info-section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.info-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.info-sec-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-text);
  flex-shrink: 0;
}

.info-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.info-section p {
  margin: 0 0 14px;
  max-width: 60ch;
  font-size: 0.96875rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section strong {
  color: var(--text-main);
  font-weight: 700;
}

.info-section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface-2);
  color: var(--text-main);
}

.info-list {
  margin: 12px 0 14px;
  max-width: 60ch;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list:last-child {
  margin-bottom: 0;
}

.info-list li {
  font-size: 0.96875rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.info-list li::marker {
  color: var(--accent-text);
  font-weight: 700;
}

.info-inline-link {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-inline-link:hover {
  color: var(--text-main);
}

.info-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.info-step-panel {
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-step-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.info-step-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.info-step-panel p {
  margin: 0;
  font-size: 0.9125rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.info-rails-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.info-rail-panel {
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-rail-logo-bar {
  background: var(--rail-tray-bg);
  border-bottom: 1.5px solid var(--border-ink);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
}

.info-rail-logo-bar img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.info-rail-logo-bar img[src*="kris.png"] {
  width: 60px;
  height: 30px;
  object-fit: cover;
  object-position: center;
}

.info-rail-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-rail-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.info-rail-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.info-callout {
  margin-top: 28px;
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-callout h2,
.info-callout h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.info-callout p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.info-callout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.info-callout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink-on);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: background 0.15s var(--ease-ink), border-color 0.15s var(--ease-ink), transform 0.14s var(--ease-ink);
}

.info-callout-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.info-callout-btn:active {
  transform: scale(0.985);
}

.info-callout-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-main);
  border: 1.5px solid var(--border-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s var(--ease-ink);
}

.info-callout-secondary:hover {
  background: var(--bg-surface-hover);
}

@media (max-width: 720px) {
  .info-steps-grid,
  .info-rails-grid,
  .brand-facts-strip {
    grid-template-columns: 1fr;
  }
  .brand-masthead-row {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .info-container {
    padding: 20px 14px 88px;
  }
  .brand-masthead,
  .info-callout {
    padding: 18px 16px;
  }
  .info-callout-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Shared Semantic Helpers for Operate Surfaces */
.is-hidden {
  display: none !important;
}

.is-invalid {
  border-color: var(--danger-border) !important;
}

.form-required-mark {
  color: var(--promo-bg);
  font-weight: 800;
}

.form-label-opt {
  font-weight: 500;
  color: var(--text-muted);
}

.form-input-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.checkout-input-error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--danger-text);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 6px;
  padding: 6px 10px;
}

.state-callout-box {
  border-top: 1.5px solid var(--border-ink);
  border-bottom: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.state-callout-warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
}

.state-callout-danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.state-callout-neutral {
  border-color: var(--border-ink);
  background: var(--bg-surface-2);
}

.state-callout-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-main);
}

.state-callout-warn .state-callout-title {
  color: var(--warn-text);
}

.state-callout-danger .state-callout-title {
  color: var(--danger-text);
}

.state-callout-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 54ch;
}

.state-callout-warn .state-callout-body,
.state-callout-danger .state-callout-body {
  color: var(--text-main);
}

.state-callout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.btn-whatsapp-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #15803d;
  background: #15803d;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-ink);
}

.btn-whatsapp-support:hover {
  background: #166534;
}

.badge-discount-mini {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--promo-bg);
  color: var(--promo-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.price-strike-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   11. PRODUCT DETAIL & FLATTENED CHECKOUT MODAL
   -------------------------------------------------------------------------- */
.detail-container {
  max-width: min(var(--container-max), 1440px);
  width: 100%;
  margin: 0 auto;
  padding: 22px var(--container-pad) 56px;
  flex: 1;
}

.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-bar a {
  color: var(--text-secondary);
  font-weight: 600;
}

.breadcrumb-bar a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 700;
}

.detail-status-panel {
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--elevation-panel);
}

.detail-status-panel h2,
.detail-status-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.detail-status-panel.is-error h2,
.detail-status-panel.is-error h3 {
  color: var(--danger-text);
}

.detail-status-panel p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  max-width: 50ch;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "header action"
    "content action";
  gap: 24px;
  align-items: start;
}

#dBlockHeader { grid-area: header; }
#dBlockAction { grid-area: action; position: sticky; top: 82px; }
#dBlockContent { grid-area: content; }

.detail-card-main {
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  padding: 20px;
  box-shadow: var(--elevation-panel);
}

.detail-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-big-logo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  flex-shrink: 0;
}

.detail-header-info {
  flex: 1;
  min-width: 0;
}

.detail-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-main);
  text-wrap: balance;
}

.detail-rating-sold-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.detail-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--text-main);
  font-weight: 600;
}

.detail-rating-link:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.detail-stars-inline {
  color: #f59e0b;
}

html[data-theme="light"] .detail-stars-inline {
  color: #b45309;
}

.detail-rating-count,
.detail-sold-text {
  color: var(--text-muted);
  font-weight: 600;
}

.detail-action-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.detail-price-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-unit-price-val {
  font-family: var(--font-mono);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
}

.detail-unit-price-val.promo-highlight {
  color: #f87171;
}

html[data-theme="light"] .detail-unit-price-val.promo-highlight {
  color: #b91c1c;
}

.detail-stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--stock-bg);
  color: var(--stock-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.detail-stock-badge.empty {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.detail-action-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.detail-action-qty-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-stepper-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-stepper-btn:hover:not(:disabled) {
  background: var(--bg-surface-hover);
}

.qty-stepper-btn:disabled,
.qty-stepper-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-stepper-input {
  width: 54px;
  height: 44px;
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}

.qty-stepper-input::-webkit-inner-spin-button,
.qty-stepper-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.order-summary-box {
  border-top: 1.5px solid var(--border-subtle);
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 12px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-row strong {
  color: var(--text-main);
}

.summary-row-discount {
  color: var(--stock-text-inline);
  font-weight: 700;
}

html[data-theme="light"] .summary-row-discount {
  color: #047857;
}

.summary-row-rate {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.summary-row.total {
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.m-total-price-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.detail-buy-btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

.detail-guarantee-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.guarantee-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-content-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.detail-section-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-desc-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
  max-width: 72ch;
}

.detail-terms-box {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.detail-terms-text {
  color: var(--text-main);
  font-size: 0.9375rem;
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 12px;
}

.detail-terms-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.detail-reviews-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-header-title p {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.reviews-notice-banner {
  padding: 12px 14px;
  border-top: 1.5px solid var(--border-ink);
  border-bottom: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.reviews-notice-link {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.reviews-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.reviews-score-big {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.reviews-stars-row {
  color: #f59e0b;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

html[data-theme="light"] .reviews-stars-row {
  color: #b45309;
}

.reviews-count-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.reviews-breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.bar-star-label {
  color: var(--text-secondary);
  font-weight: 700;
}

.bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
}

.bar-count {
  text-align: right;
  color: var(--text-muted);
}

.reviews-list-wrap {
  display: flex;
  flex-direction: column;
}

.reviews-empty-state {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-item-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-item-card:last-child {
  border-bottom: none;
}

.review-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.8125rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-author-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.verified-buyer-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--stock-bg);
  color: var(--stock-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.review-stars-val {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

html[data-theme="light"] .review-stars-val {
  color: #b45309;
}

.review-comment {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.review-date-val {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-show-more-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile Sticky Buy Bar */
.mobile-sticky-buy-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background: var(--bg-surface);
  border-top: 2px solid var(--border-panel);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--elevation-hover);
}

.mobile-sticky-price-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-sticky-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mobile-sticky-price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.mobile-sticky-btn {
  min-height: 46px;
  padding: 10px 22px;
  flex-shrink: 0;
}

/* Flattened Checkout Modal */
.checkout-modal-card {
  max-width: 860px;
  max-height: 92vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-modal-header {
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.checkout-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.checkout-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.checkout-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-product-card {
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.modal-product-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.modal-prod-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  object-fit: cover;
  flex-shrink: 0;
}

.modal-prod-details {
  flex: 1;
  min-width: 140px;
}

.modal-prod-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-prod-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.modal-prod-badge,
.modal-prod-stock {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.modal-prod-stock.is-out {
  color: var(--danger-text);
}

.modal-prod-stepper-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.modal-prod-stepper-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checkout-currency-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-ink);
  color: var(--text-main);
}

.checkout-currency-badge.is-idr {
  background: var(--stock-bg);
  border-color: var(--stock-bg);
  color: var(--stock-text);
}

.checkout-currency-badge.is-crypto {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.gw-inline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gw-option-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  min-height: 58px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-ink), background-color 0.16s var(--ease-ink);
}

.gw-option-item:hover {
  border-color: var(--border-panel);
}

.gw-option-item.active {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}

.gw-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.gw-option-item.active .gw-option-radio {
  border-color: var(--accent);
}

.gw-option-item.active .gw-option-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.gw-option-logo-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.gw-option-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

.gw-option-logo[src*="kris.png"] {
  width: 48px;
  height: 24px;
  object-fit: cover;
  object-position: center;
}

.gw-option-details {
  flex: 1;
  min-width: 0;
}

.gw-option-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.gw-option-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.gw-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.gw-option-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.qris-inline-notice {
  margin-top: 8px;
  padding: 12px 14px;
  border-top: 1.5px solid var(--warn-border);
  border-bottom: 1.5px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text-main);
  font-size: 0.84rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qris-inline-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--warn-text);
}

.qris-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.qris-inline-actions button {
  min-height: 44px;
  flex: 1;
}

.voucher-input-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voucher-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.voucher-field {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.btn-voucher-apply,
.btn-voucher-cancel {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-voucher-apply {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink-on);
}

.voucher-feedback {
  font-size: 0.8125rem;
  font-weight: 600;
}

.voucher-feedback.feedback-success {
  color: var(--stock-text-inline);
}

html[data-theme="light"] .voucher-feedback.feedback-success {
  color: #047857;
}

.voucher-feedback.feedback-error {
  color: var(--danger-text);
}

.voucher-status-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stock-text-inline);
}

html[data-theme="light"] .voucher-status-tag {
  color: #047857;
}

.summary-payment-value {
  color: var(--accent-text);
  font-weight: 700;
}

.checkout-sticky-footer {
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.checkout-footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-footer-total-row {
  display: flex;
  flex-direction: column;
}

.footer-total-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.checkout-submit-btn {
  min-height: 46px;
  padding: 10px 24px;
}

.checkout-trust-row {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .detail-container {
    padding: 14px 12px 92px;
  }
  .product-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  #dBlockHeader { order: 1; width: 100%; }
  #dBlockAction { order: 2; width: 100%; position: static; }
  #dBlockContent { order: 3; width: 100%; }
  .detail-card-main { padding: 16px; }
  .mobile-sticky-buy-bar {
    display: flex;
  }
  body.has-sticky-bar.product-error .mobile-sticky-buy-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .checkout-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .checkout-modal-header,
  .checkout-modal-body,
  .checkout-sticky-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .checkout-footer-content {
    flex-direction: column;
    align-items: stretch;
  }
  .checkout-submit-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .detail-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .reviews-summary-grid {
    grid-template-columns: 1fr;
  }
  .voucher-input-row {
    flex-wrap: wrap;
  }
  .voucher-field {
    min-width: 100%;
  }
  .btn-voucher-apply,
  .btn-voucher-cancel {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   12. PAYMENT CASHIER (QRIS / BINANCE PAY / USDT BEP-20)
   -------------------------------------------------------------------------- */
.payment-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--container-pad) 52px;
  flex: 1;
}

.payment-card {
  border: 2px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 22px;
  box-shadow: var(--elevation-panel);
}

.payment-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.payment-top-left,
.payment-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.payment-top-inv-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.payment-meta-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.payment-meta-inv {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.payment-top-email-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  word-break: normal;
}

.payment-top-email-wrap.is-paid {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-ink);
  color: var(--text-main);
}

.timer-box-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
}

.timer-val-inline {
  font-size: 0.875rem;
  font-weight: 800;
}

.payment-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid var(--border-ink);
}

.payment-meta-badge.status-pending {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.payment-meta-badge.status-paid {
  background: var(--stock-bg);
  border-color: var(--stock-bg);
  color: var(--stock-text);
}

.payment-meta-badge.status-processing {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

.payment-meta-badge.status-expired,
.payment-meta-badge.status-cancelled {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.payment-meta-badge.status-refunded {
  background: var(--bg-surface-2);
  border-color: var(--border-ink);
  color: var(--text-secondary);
}

.payment-error-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-top: 1.5px solid var(--danger-border);
  border-bottom: 1.5px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--text-main);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-error-text strong {
  display: block;
  color: var(--danger-text);
  margin-bottom: 2px;
}

.payment-error-text p {
  margin: 0;
  font-size: 0.875rem;
}

.btn-retry-status {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--danger-border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.payment-split-grid {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.payment-col-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
}

.visual-gateway-pane {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.payment-method-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
}

/* White High-Contrast QR Tray in Both Themes */
.qris-box {
  background: #ffffff;
  border: 2px solid #0f131b;
  border-radius: var(--radius-md);
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qris-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.btn-download-qr {
  min-height: 44px;
  width: 100%;
  max-width: 244px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-download-qr:hover {
  border-color: var(--accent);
}

.payment-scan-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 28ch;
}

.payment-col-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.payment-product-snippet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface-2);
  border-bottom: 1.5px solid var(--border-subtle);
}

.payment-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.payment-product-snippet-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-main);
}

.payment-product-snippet-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  color: var(--text-main);
  flex-shrink: 0;
}

.payment-unified-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0;
}

.unified-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.unified-row-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.unified-row-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.unified-row-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.payment-amount-display {
  font-family: var(--font-mono);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
}

.payment-currency-tag {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.unified-id-text,
.unified-address-box {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.unified-sub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.unified-card-divider {
  height: 1px;
  background: var(--border-subtle);
}

.unified-notice-warn,
.unified-cex-alert {
  padding: 10px 12px;
  border-top: 1.5px solid var(--warn-border);
  border-bottom: 1.5px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text-main);
  font-size: 0.84rem;
  line-height: 1.5;
}

.unified-card-footer-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-copy-action,
.btn-copy-claim,
.copy-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy-action:hover,
.btn-copy-claim:hover,
.copy-mini-btn:hover {
  border-color: var(--accent);
}

.btn-copy-action.copied,
.btn-copy-claim.copied,
.copy-mini-btn.copied {
  background: var(--stock-bg);
  border-color: var(--stock-bg);
  color: var(--stock-text);
}

.payment-actions-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1.5px solid var(--border-subtle);
}

.btn-check-paid {
  width: 100%;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: var(--accent-ink-on);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 var(--btn-sheen), 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: background-color 0.16s var(--ease-ink), transform 0.14s var(--ease-ink);
}

.btn-check-paid:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-check-paid:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-check-paid:disabled {
  opacity: 0.7;
  cursor: wait;
}

.payment-auto-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.payment-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.btn-cancel-order-link {
  min-height: 44px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--danger-text);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-return-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-text);
}

/* Payment Paid / Delivered View */
.success-header-compact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 0 16px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--stock-bg);
  background: transparent;
}

.success-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--stock-bg);
  color: var(--stock-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-header-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.success-header-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.success-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.success-col-product,
.success-col-reference {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-col-reference {
  padding-left: 20px;
  border-left: 1.5px solid var(--border-subtle);
}

.success-card-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.success-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.success-product-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.license-list-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.license-item-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-main);
  word-break: normal;
  overflow-wrap: anywhere;
}

.btn-copy-all-keys {
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.warranty-alert-note {
  padding: 10px 12px;
  border-top: 1.5px solid var(--warn-border);
  border-bottom: 1.5px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text-main);
  font-size: 0.84rem;
  line-height: 1.45;
}

.reference-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.reference-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1.5px solid var(--border-ink);
  border-bottom: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  margin-bottom: 10px;
}

.reference-code-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.reference-notice-box {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-open-claim-link,
.btn-shop-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.btn-open-claim-link {
  background: var(--accent);
  color: var(--accent-ink-on);
  margin-bottom: 8px;
}

.btn-shop-more {
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
}

.tx-hash-row {
  margin-top: 12px;
  padding: 10px 12px;
  border-top: 1.5px solid var(--border-ink);
  border-bottom: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tx-hash-row a {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-text);
  text-decoration: underline;
}

.payment-state-view {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.payment-state-view h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-main);
}

.payment-state-view.is-expired h2 {
  color: var(--danger-text);
}

.payment-state-view p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.payment-footer-help {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.payment-footer-help a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
}

/* Cancel Modal */
.cancel-modal-card {
  max-width: 440px;
}

.cancel-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.cancel-modal-desc {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cancel-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-modal-back,
.btn-modal-confirm-cancel {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-back {
  border: 1.5px solid var(--border-ink);
  background: var(--bg-surface-2);
  color: var(--text-main);
}

.btn-modal-confirm-cancel {
  border: 1.5px solid var(--danger-border);
  background: var(--promo-bg);
  color: #ffffff;
}

@media (max-width: 780px) {
  .payment-container {
    padding: 14px 12px 44px;
  }
  .payment-card {
    padding: 16px;
  }
  .payment-split-grid,
  .success-split-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .success-col-reference {
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    border-top: 1.5px solid var(--border-subtle);
  }
  .btn-copy-action,
  .btn-copy-claim,
  .copy-mini-btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .payment-secondary-actions {
    flex-direction: column;
    gap: 4px;
  }
  .payment-secondary-actions .action-sep {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   13. TRACK ORDER & LICENSE CLAIM PAGE (claim.html / en/claim.html)
   -------------------------------------------------------------------------- */
.claim-container {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 26px var(--container-pad) 56px;
  flex: 1;
}

.claim-header-block {
  margin-bottom: 18px;
}

.claim-main-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-main);
}

.claim-main-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.claim-form-box {
  margin-bottom: 18px;
}

.claim-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-input-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.claim-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.claim-input-field {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.claim-submit-btn {
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

.claim-guide-section {
  border-top: 1.5px solid var(--border-subtle);
  padding-top: 16px;
}

.claim-section-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.claim-guide-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.claim-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-text > strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.guide-text p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.claim-loading-box {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.claim-error-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-top: 1.5px solid var(--danger-border);
  border-bottom: 1.5px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--text-main);
  font-size: 0.9rem;
}

.claim-error-box a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
}

.claim-result-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-panel);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.claim-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.claim-res-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.claim-res-invoice {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.claim-items-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.claim-warranty-box {
  padding: 10px 12px;
  border-top: 1.5px solid var(--warn-border);
  border-bottom: 1.5px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text-main);
  font-size: 0.875rem;
  line-height: 1.5;
}

.claim-meta-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.claim-meta-footer a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.claim-review-box {
  padding-top: 16px;
  border-top: 1.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.claim-review-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.claim-review-header span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.star-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.star-btn {
  font-size: 1.75rem;
  line-height: 1;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--border-ink);
  user-select: none;
}

.star-btn.active,
.star-btn.hovered {
  color: #f59e0b;
}

html[data-theme="light"] .star-btn.active,
html[data-theme="light"] .star-btn.hovered {
  color: #d97706;
}

.star-label-badge {
  margin-left: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.claim-review-success {
  padding: 12px 14px;
  border-top: 1.5px solid var(--stock-bg);
  border-bottom: 1.5px solid var(--stock-bg);
  background: var(--bg-surface-2);
  color: var(--stock-text-inline);
  font-size: 0.9rem;
  font-weight: 600;
}

html[data-theme="light"] .claim-review-success {
  color: #047857;
}

@media (max-width: 600px) {
  .claim-container {
    padding: 14px 12px 84px;
  }
  .claim-input-row {
    flex-direction: column;
  }
  .claim-submit-btn {
    width: 100%;
  }
  .claim-guide-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
