/* ============================================================
   Bokyerthe Store — design system
   Premium • techy • clean • trusted • dark-first
   No framework. Handwritten tokens + components.
   ============================================================ */

:root {
  /* base surfaces (deep techy navy, not pure black) */
  --bg:        #0a0e16;
  --bg-2:      #0d121c;
  --surface:   #121824;
  --surface-2: #171f2e;
  --border:    #1f2937;
  --border-2:  #2a3648;

  /* text */
  --text:      #e6ebf4;
  --text-2:    #9aa7bd;
  --text-3:    #64748b;

  /* single restrained accent + support */
  --accent:    #6366f1;   /* indigo */
  --accent-2:  #22d3ee;   /* cyan (sparingly) */
  --accent-ink:#c7d2fe;
  --success:   #34d399;
  --warn:      #fbbf24;
  --danger:    #f87171;

  --grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.28);
  --shadow-lg: 0 20px 60px rgba(2,6,23,.55);

  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ambient background glow — subtle, not norak */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px circle at 15% -5%, rgba(99,102,241,.12), transparent 45%),
    radial-gradient(680px circle at 88% 8%, rgba(34,211,238,.08), transparent 42%);
  pointer-events: none;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- typography ---------- */
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 8px; }
.section-sub { color: var(--text-2); max-width: 560px; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
  background-size: 200% 200%;
  color: #fff; font-weight: 700;
  border: none;
  box-shadow:
    0 4px 15px rgba(99,102,241,.4),
    0 8px 30px rgba(99,102,241,.25),
    0 1px 0 rgba(255,255,255,.2) inset,
    0 -2px 0 rgba(0,0,0,.15) inset;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background-position: 100% 0;
  box-shadow:
    0 8px 25px rgba(99,102,241,.5),
    0 15px 40px rgba(99,102,241,.3),
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -2px 0 rgba(0,0,0,.1) inset;
}
.btn-primary:active { transform: translateY(-1px) scale(.99); }
.btn-ghost {
  background: linear-gradient(145deg, rgba(23,31,46,.9), rgba(18,24,36,.95));
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 4px 12px rgba(0,0,0,.3),
    0 1px 0 rgba(255,255,255,.04) inset,
    0 -1px 0 rgba(0,0,0,.2) inset;
}
.btn-ghost:hover {
  border-color: rgba(99,102,241,.4);
  color: #fff;
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(0,0,0,.4),
    0 4px 12px rgba(99,102,241,.2),
    0 1px 0 rgba(255,255,255,.06) inset;
}
.btn-ghost:active { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,22,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #06121f; font-weight: 900; font-size: 18px;
  box-shadow: 0 6px 18px rgba(99,102,241,.4);
}
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .04em; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; transition: border-color .15s; }
.cart-btn:hover { border-color: var(--accent); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #06121f; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; margin: 18px 0 18px; }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 26px; font-weight: 800; display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--text-3); }

/* hero visual card */
.hero-visual { position: relative; }
.glass-card {
  background: linear-gradient(160deg, rgba(23,31,46,.9), rgba(18,24,36,.75));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.terminal-head { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.terminal-head i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-head i:nth-child(1){ background:#ff5f56; } .terminal-head i:nth-child(2){ background:#ffbd2e; } .terminal-head i:nth-child(3){ background:#27c93f; }
.terminal-head span { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.code-line { font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--text-2); min-height: 152px; }
.code-line .k { color: var(--accent-2); } .code-line .s { color: var(--success); } .code-line .c { color: var(--text-3); }
.code-line .p { color: var(--accent-ink); }
.code-line .term-row { min-height: 1.9em; white-space: pre-wrap; word-break: break-word; }
/* Blinking block cursor for the hero terminal typewriter. */
.term-cursor { display: inline-block; color: var(--accent-ink); animation: term-blink 1.05s steps(1) infinite; margin-left: 1px; }
@keyframes term-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-cursor { animation: none; } .code-line { min-height: 0; } }

/* ---------- trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.trust-item { padding: 26px 20px; display: flex; align-items: center; gap: 13px; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent-2); flex-shrink: 0; }
.trust-item b { display: block; font-size: 14.5px; }
.trust-item span { font-size: 12.5px; color: var(--text-3); }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1000px; }
.cat-card {
  background: linear-gradient(145deg, rgba(18,24,36,.95), rgba(13,18,28,.98));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 22px 24px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; gap: 16px;
  position: relative;
  box-shadow:
    0 4px 20px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.04) inset,
    0 -1px 0 rgba(0,0,0,.2) inset;
  transform: translateZ(0);
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.cat-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(99,102,241,.35);
  box-shadow:
    0 12px 40px rgba(0,0,0,.45),
    0 6px 20px rgba(99,102,241,.2),
    0 1px 0 rgba(255,255,255,.08) inset;
}
.cat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(34,211,238,.15));
  border: 1px solid rgba(99,102,241,.2);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
  transition: all .25s ease;
}
.cat-card:hover .cat-icon {
  background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(34,211,238,.25));
  box-shadow: 0 6px 20px rgba(99,102,241,.4);
  transform: scale(1.05);
}
.cat-icon svg { width: 24px; height: 24px; color: var(--accent-ink); filter: drop-shadow(0 2px 4px rgba(99,102,241,.3)); }
.cat-card b { font-size: 15px; color: var(--text); }
.cat-card p { font-size: 12.5px; color: var(--text-3); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.product-card {
  background: linear-gradient(160deg, rgba(18,24,36,.95), rgba(13,18,28,.98));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  box-shadow:
    0 8px 32px rgba(0,0,0,.4),
    0 2px 8px rgba(0,0,0,.2),
    0 1px 0 rgba(255,255,255,.04) inset;
  transform: translateZ(0);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99,102,241,.3);
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 8px 25px rgba(99,102,241,.2),
    0 1px 0 rgba(255,255,255,.08) inset;
}
.product-thumb { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.product-thumb .pattern { position: absolute; inset: 0; opacity: .85; }
.product-thumb .glyph {
  position: relative; width: 62px; height: 62px; color: #fff; opacity: .95;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
  transition: transform .3s ease;
}
.product-card:hover .product-thumb .glyph { transform: scale(1.1) translateY(-4px); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px;
  background: linear-gradient(145deg, rgba(10,14,22,.85), rgba(10,14,22,.75));
  border: 1px solid rgba(255,255,255,.1);
  color: var(--accent-ink);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.product-badge.hot {
  color: var(--warn);
  border-color: rgba(251,191,36,.35);
  background: linear-gradient(145deg, rgba(251,191,36,.15), rgba(251,191,36,.08));
  box-shadow: 0 4px 16px rgba(251,191,36,.25);
}
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .05em; text-transform: uppercase; }
.product-title { font-size: 16px; font-weight: 700; margin: 8px 0 7px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.product-desc { font-size: 13px; color: var(--text-2); flex: 1; margin-bottom: 16px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.product-price b { font-size: 20px; font-weight: 800; background: linear-gradient(135deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.product-price s { font-size: 13px; color: var(--text-3); margin-left: 7px; }
.product-type {
  font-size: 11px; padding: 5px 12px; border-radius: 20px; font-weight: 600;
  background: linear-gradient(135deg, rgba(52,211,153,.15), rgba(52,211,153,.08));
  color: var(--success);
  border: 1px solid rgba(52,211,153,.2);
  box-shadow: 0 2px 8px rgba(52,211,153,.15);
}
.product-type.service {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(99,102,241,.08));
  color: var(--accent-ink);
  border-color: rgba(99,102,241,.2);
  box-shadow: 0 2px 8px rgba(99,102,241,.15);
}
.product-type.physical {
  background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(251,191,36,.08));
  color: var(--warn);
  border-color: rgba(251,191,36,.2);
  box-shadow: 0 2px 8px rgba(251,191,36,.15);
}
.product-actions { display: flex; gap: 9px; }
.product-actions .btn { flex: 1; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.rating svg { width: 15px; height: 15px; color: var(--warn); fill: var(--warn); stroke: none; filter: drop-shadow(0 2px 4px rgba(251,191,36,.4)); }

/* ---------- filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; perspective: 800px; }
.filter-chip {
  padding: 10px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(23,31,46,.9), rgba(18,24,36,.95));
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px; font-weight: 500;
  color: var(--text-2);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(0,0,0,.3),
    0 1px 0 rgba(255,255,255,.04) inset,
    0 -1px 0 rgba(0,0,0,.2) inset;
  transform: translateZ(0);
}
.filter-chip:hover {
  border-color: rgba(99,102,241,.3);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0,0,0,.35),
    0 2px 8px rgba(99,102,241,.15),
    0 1px 0 rgba(255,255,255,.06) inset;
}
.filter-chip.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow:
    0 4px 15px rgba(99,102,241,.45),
    0 8px 25px rgba(99,102,241,.25),
    0 1px 0 rgba(255,255,255,.2) inset;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
  transform: translateY(-2px) scale(1.02);
}
.filter-chip.active:hover {
  box-shadow:
    0 6px 20px rgba(99,102,241,.55),
    0 12px 35px rgba(99,102,241,.3),
    0 1px 0 rgba(255,255,255,.25) inset;
}

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.why-card .why-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 16px; }
.why-card .why-icon svg { width: 24px; height: 24px; color: #06121f; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.testi-card .quote { font-size: 14.5px; color: var(--text); margin-bottom: 18px; line-height: 1.7; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #06121f; font-weight: 800; font-size: 15px; }
.testi-user b { display: block; font-size: 14px; } .testi-user span { font-size: 12px; color: var(--text-3); }
.testi-stars { display: flex; gap: 2px; margin-bottom: 13px; } .testi-stars svg { width: 15px; height: 15px; color: var(--warn); fill: var(--warn); stroke: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 54px 40px; text-align: center; background: linear-gradient(140deg, rgba(99,102,241,.16), rgba(34,211,238,.08)); border: 1px solid var(--border-2); }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-2); max-width: 480px; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 54px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 16px; font-family: var(--mono); font-weight: 600; }
.footer-grid a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { font-size: 13.5px; color: var(--text-2); margin: 14px 0 18px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; transition: all .15s; }
.footer-social a:hover { border-color: var(--accent); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 44px 0; }
.detail-visual { aspect-ratio: 4/3; border-radius: var(--radius-lg); display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--border-2); }
.detail-visual .glyph { width: 96px; height: 96px; color: #fff; position: relative; }
.detail-info .product-cat { font-size: 12.5px; }
.detail-info h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 14px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.detail-price b { font-size: 34px; font-weight: 800; } .detail-price s { font-size: 17px; color: var(--text-3); }
.detail-price .off { font-size: 12px; font-weight: 700; color: var(--success); background: rgba(52,211,153,.12); padding: 4px 9px; border-radius: 7px; }
.feature-list { margin: 22px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 14.5px; color: var(--text); }
.feature-list svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.detail-actions { display: flex; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.manual-variants { flex: 1 1 100%; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.manual-variants legend { padding: 0 6px; font-weight: 700; }
.manual-variant-group { margin: 10px 0; }
.manual-variant-group > span { display: block; margin-bottom: 7px; color: var(--text-2); font-size: 13px; }
.manual-variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.manual-variant-options [aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: rgba(34,211,238,.1); }
.manual-variant-status { margin: 10px 0 0; color: var(--text-2); font-size: 13px; }
.detail-trust { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); }
.detail-trust .dt { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.detail-trust svg { width: 18px; height: 18px; color: var(--accent-2); }

/* ---------- breadcrumb / page head ---------- */
.page-head { padding: 48px 0 10px; }
.breadcrumb { font-size: 13px; color: var(--text-3); font-family: var(--mono); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--text); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 30px; margin: 40px 0; align-items: start; }
.cart-item { display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 13px; align-items: center; }
.cart-item .ci-thumb { width: 66px; height: 66px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.cart-item .ci-thumb svg { width: 28px; height: 28px; color: #fff; }
.cart-item .ci-info { flex: 1; } .cart-item .ci-info b { font-size: 15px; } .cart-item .ci-info span { font-size: 12px; color: var(--text-3); display: block; }
.cart-item .ci-price { font-weight: 800; font-size: 16px; }
.cart-item .ci-remove { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--text-3); transition: all .15s; }
.cart-item .ci-remove:hover { color: #ff5f56; border-color: rgba(255,95,86,.4); }
.cart-summary { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 24px; position: sticky; top: 82px; }
.cart-summary h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--text-2); }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 18px; font-weight: 800; color: var(--text); }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 64px; height: 64px; color: var(--text-3); margin: 0 auto 18px; }
.empty-state h3 { margin-bottom: 8px; } .empty-state p { color: var(--text-2); margin-bottom: 22px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 34px; margin: 40px 0; }
/* Only 2 contact channels remain (email + telegram). Center the group in a
   readable max-width column instead of an auto-fit grid that packed the cards
   to the left and left a dead gap on the right. */
.contact-left { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 460px; margin: 0 auto; }
.contact-left .contact-card { margin-bottom: 0; }
.contact-card {
  --contact-pop: #38bdf8;
  background: var(--surface);
  border: 2px solid #050b12;
  border-left: 7px solid var(--contact-pop);
  border-radius: 9px;
  padding: 22px;
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 7px 7px 0 #050b12;
  transform: translate(0, 0);
  transition: transform .14s ease, box-shadow .14s ease;
}
.contact-card:hover { border-color: #050b12; transform: translate(-2px,-2px); box-shadow: 9px 9px 0 #050b12; }
.contact-card:focus-visible { outline: 3px solid var(--contact-pop); outline-offset: 5px; }
.contact-card:nth-of-type(1) { --contact-pop: #facc15; }
.contact-card:nth-of-type(2) { --contact-pop: #38bdf8; }
.contact-card-wa { --contact-pop: #4ade80 !important; }
.contact-card .cc-icon {
  width: 48px; height: 48px; border-radius: 5px;
  background: var(--contact-pop); border: 2px solid #050b12;
  box-shadow: 4px 4px 0 #050b12;
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-card .cc-icon svg { width: 23px; height: 23px; color: #06121f; }
@media (max-width: 940px) { .contact-left { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .contact-card { box-shadow: 5px 5px 0 #050b12; }
  .contact-card:hover { transform: none; box-shadow: 5px 5px 0 #050b12; }
}
/* Stack the label + value so they don't run together ("Emailadmin@..."). */
.contact-card > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card b { font-size: 15px; } .contact-card span { font-size: 13px; color: var(--text-3); word-break: break-word; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 14.5px; transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- about ---------- */
.about-hero { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.about-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.about-hero p { font-size: 17px; color: var(--text-2); }
.about-avatar { width: 108px; height: 108px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #06121f; font-weight: 900; font-size: 42px; margin: 0 auto 26px; box-shadow: var(--shadow-lg); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--surface-2); border: 1px solid var(--accent); color: var(--text); padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200; transition: transform .3s cubic-bezier(.2,.9,.3,1.2); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .center { text-align: center; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RECONCILIATION — classes rendered by JS / static markup.
   Maps runtime vocabulary to the design tokens above.
   ============================================================ */

/* ---- header (rendered by app.js renderHeader) ---- */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #06121f; font-weight: 900; font-size: 18px; box-shadow: 0 6px 18px rgba(99,102,241,.4); flex-shrink: 0; }
.brand-text { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-dot { color: var(--accent-2); }
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--accent); color: #fff; }
.icon-btn svg { width: 19px; height: 19px; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #06121f; font-size: 11px; font-weight: 800; place-items: center; }
.nav-toggle { display: none; }
.nav-mobile { display: none; }

/* ---- product card (rendered by app.js productCard) ---- */
.card-media { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
.card-glyph svg { width: 56px; height: 56px; color: var(--accent-ink); opacity: .95; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.card-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px; background: rgba(10,14,22,.72); border: 1px solid rgba(251,191,36,.4); color: var(--warn); backdrop-filter: blur(4px); }
.card-type { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 4px 9px; border-radius: 20px; background: rgba(10,14,22,.72); border: 1px solid var(--border-2); color: var(--accent-ink); backdrop-filter: blur(4px); }
.card-body { padding: 17px 17px 19px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .05em; text-transform: uppercase; }
.card-title { font-size: 16px; font-weight: 700; margin: 7px 0 6px; line-height: 1.3; }
.card-title a:hover { color: var(--accent-ink); }
.card-desc { font-size: 13px; color: var(--text-2); flex: 1; margin-bottom: 14px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.card-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-meta .sold { font-size: 12.5px; color: var(--text-3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price-wrap { display: flex; flex-direction: column; }
.price { font-size: 19px; font-weight: 800; }
.price-old { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.star { color: var(--warn); fill: var(--warn); stroke: none; }
.star svg, svg.star { fill: var(--warn); stroke: none; }

/* ---- price states: period / variable-contact / coming-soon ---- */
.price-per { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-left: 1px; }
.price.price-alt { font-size: 15px; font-weight: 700; color: var(--accent, #22d3ee); }
.price.price-soon { font-size: 15px; font-weight: 700; color: var(--text-3); }
.price-from { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }

/* ---- pager (catalog pagination) ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 34px 0 8px; }
.pager:empty { display: none; }
.pager-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pager-btn:hover:not(:disabled):not(.active) { border-color: var(--accent); color: #fff; }
.pager-btn.active { background: var(--accent); border-color: var(--accent); color: #06121f; cursor: default; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-gap { color: var(--text-3); padding: 0 2px; }

/* ---- custom variant dropdown (product detail buy-now) ---- */
/* buynow-variant is a flex item in .detail-actions (row+wrap); force it to a
   full-width row so the dropdown + its absolute menu span the column, not just
   shrink to content (~122px) and clip the option labels/prices. */
.buynow-variant { flex: 1 1 100%; width: 100%; }
.vdrop { position: relative; width: 100%; }
.vdrop-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 14.5px; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; }
.vdrop-trigger:hover { border-color: var(--accent); }
.vdrop.open .vdrop-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.vdrop-trigger-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.vdrop-trigger-label { font-weight: 600; line-height: 1.3; word-break: break-word; }
.vdrop-trigger-price { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.vdrop-chev { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; transition: transform .18s; }
.vdrop.open .vdrop-chev { transform: rotate(180deg); }
.vdrop-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 300px; overflow-y: auto; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s, transform .16s; }
.vdrop.open .vdrop-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.vdrop-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.vdrop-opt:hover { background: var(--surface-2); }
.vdrop-opt.is-sel { background: rgba(99,102,241,.14); }
.vdrop-opt.is-sel .vdrop-opt-label { color: #fff; font-weight: 700; }
.vdrop-opt-label { flex: 1; min-width: 0; font-size: 14px; color: var(--text); line-height: 1.3; word-break: break-word; }
.vdrop-opt-price { flex-shrink: 0; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.vdrop-opt.is-sel .vdrop-opt-price { color: var(--accent-2); }
.card-badge.badge-soon { background: rgba(148,163,184,.18); color: var(--text-2); border: 1px solid var(--border-2); }
.card-badge.badge-new { color:#86efac; border-color:rgba(134,239,172,.45); }
.card-badge.badge-restock { color:#7dd3fc; border-color:rgba(125,211,252,.45); }
.soon-note { font-size: 12.5px; color: var(--text-3); font-style: italic; }
.product-card.is-soon { opacity: .82; }
.product-card.is-soon .card-glyph { opacity: .6; }

/* ---- footer (rendered by app.js renderFooter) ---- */
.footer-brand .footer-desc { font-size: 13.5px; color: var(--text-2); margin: 14px 0 18px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 16px; font-family: var(--mono); font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-badges { display: inline-flex; align-items: center; gap: 4px; }
.footer-badges svg { width: 15px; height: 15px; vertical-align: middle; color: var(--accent-2); }

/* ---- home extras (rendered by home.js) ---- */
.cat-ico { width: 46px; height: 46px; border-radius: 11px; background: rgba(99,102,241,.12); display: grid; place-items: center; flex-shrink: 0; }
.cat-ico svg { width: 23px; height: 23px; color: var(--accent-ink); }
.cat-card .cat-desc { font-size: 12.5px; color: var(--text-3); }
.trust-ico svg { width: 26px; height: 26px; color: var(--accent-2); flex-shrink: 0; }
.why-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 16px; }
.why-ico svg { width: 24px; height: 24px; color: #06121f; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #06121f; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.testi-who b { display: block; font-size: 14px; }
.testi-who span { font-size: 12px; color: var(--text-3); }

/* ---- product detail (rendered by product.js) ---- */
.detail-media { aspect-ratio: 4/3; border-radius: var(--radius-lg); display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--border-2); background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
.detail-glyph svg { width: 96px; height: 96px; color: var(--accent-ink); }
.detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-meta { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.detail-desc { font-size: 15px; color: var(--text-2); margin: 6px 0 4px; }
.save-badge { font-size: 12px; font-weight: 700; color: var(--success); background: rgba(52,211,153,.12); padding: 4px 9px; border-radius: 7px; }
.target-card { width: 100%; margin-bottom: 12px; padding: 16px; border: 1px solid rgba(34,211,238,.26); border-radius: var(--radius); background: rgba(34,211,238,.06); display: grid; gap: 12px; }
.target-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.target-head b { color: var(--text); }
.target-head span { color: var(--text-3); font-size: 12px; }
.target-grid { display: grid; gap: 10px; }
.target-field { margin: 0; }
.target-result { min-height: 18px; color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.target-result.ok { color: var(--success); }
.target-result.err { color: var(--danger); }
.target-result span { color: var(--text-3); font-family: var(--mono); }
.target-result.loading { color: var(--accent-2); }
.target-result .inq-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(34,211,238,.25); border-top-color: var(--accent-2); border-radius: 50%; animation: inq-spin .7s linear infinite; flex-shrink: 0; }
@keyframes inq-spin { to { transform: rotate(360deg); } }
.target-result.loading .inq-dots::after { content: ''; animation: inq-dots 1.4s steps(4) infinite; }
@keyframes inq-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---- Review system (order detail + product detail) ---- */
.order-card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.order-review-cta { margin-top: 16px; padding: 16px; background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius); text-align: center; }
.order-review-cta .btn { margin-bottom: 8px; }
.review-hint { color: var(--text-3); font-size: 13px; margin: 0; }

/* Review modal overlay */
.review-overlay { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); animation: cf-fade .15s ease; }
.review-modal { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.review-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.review-modal-head h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.review-modal-head h3 svg { width: 20px; height: 20px; color: var(--warn); }
.review-close { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; }
.review-close:hover { color: var(--text); }
.review-modal-body { padding: 20px; display: grid; gap: 20px; }
.review-product { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.review-product:last-child { border-bottom: none; padding-bottom: 0; }
.review-prod-name { font-weight: 600; color: var(--text); font-size: 15px; }
.review-stars { display: flex; gap: 4px; }
.star-btn { background: none; border: none; padding: 4px; cursor: pointer; color: var(--border-2); transition: color .15s, transform .1s; }
.star-btn:hover { transform: scale(1.15); }
.star-btn svg { width: 28px; height: 28px; }
.star-btn.active { color: var(--warn); }
.star-btn.active svg { fill: var(--warn); }
.review-rating-label { font-size: 13px; color: var(--text-3); min-height: 18px; }
.review-comment { width: 100%; min-height: 70px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; resize: vertical; }
.review-comment:focus { outline: none; border-color: var(--accent); }
.review-comment::placeholder { color: var(--text-3); }
.review-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }
/* Reviews section on product detail */
.reviews-section {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(18,24,36,.95), rgba(13,18,28,.98));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0,0,0,.4),
    0 1px 0 rgba(255,255,255,.03) inset,
    0 -1px 0 rgba(0,0,0,.2) inset;
  position: relative;
  overflow: hidden;
}
.reviews-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.4), rgba(34,211,238,.3), transparent);
}
.reviews-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.reviews-head h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
  color: var(--text);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.reviews-head h2 svg { width: 22px; height: 22px; color: var(--warn); filter: drop-shadow(0 2px 4px rgba(251,191,36,.4)); }
.reviews-summary {
  font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 20px;
}
.reviews-summary svg { width: 16px; height: 16px; color: var(--warn); fill: var(--warn); }
.reviews-summary b { color: var(--warn); font-size: 15px; }
.reviews-list { display: grid; gap: 16px; perspective: 1000px; }
.reviews-loading, .reviews-empty {
  color: var(--text-3); font-size: 14px; padding: 32px 0;
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.reviews-loading svg { width: 18px; height: 18px; animation: inq-spin .7s linear infinite; }
.reviews-empty svg { width: 18px; height: 18px; color: var(--text-3); }
.review-item {
  padding: 18px 20px;
  background: linear-gradient(160deg, rgba(23,31,46,.9), rgba(18,24,36,.95));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    0 8px 32px rgba(0,0,0,.3),
    0 2px 8px rgba(0,0,0,.2),
    0 1px 0 rgba(255,255,255,.04) inset;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.review-item::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.review-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 12px 40px rgba(0,0,0,.4),
    0 4px 12px rgba(99,102,241,.15),
    0 1px 0 rgba(255,255,255,.06) inset;
}
.review-item.auto-gen { opacity: .65; }
.review-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-name {
  font-weight: 600; color: var(--text); font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.review-name::before {
  content: '';
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,.4);
}
.review-time {
  font-size: 11px; color: var(--text-3);
  padding: 4px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
}
.review-rating { display: flex; gap: 3px; margin-bottom: 10px; }
.rv-star { color: rgba(255,255,255,.15); transition: transform .15s ease; }
.rv-star svg { width: 18px; height: 18px; }
.rv-star.filled { color: var(--warn); filter: drop-shadow(0 2px 4px rgba(251,191,36,.5)); }
.rv-star.filled svg { fill: var(--warn); }
.review-text {
  margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6;
  padding: 12px 14px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin-top: 4px;
}
.reviews-more {
  text-align: center; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.05); margin-top: 12px;
}
.reviews-more a {
  color: var(--accent); font-size: 14px; text-decoration: none;
  padding: 8px 20px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 20px;
  display: inline-block;
  transition: all .2s ease;
}
.reviews-more a:hover {
  background: rgba(99,102,241,.2);
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
  transform: translateY(-1px);
}
/* ---- cart (rendered by cart.js) ---- */
/* ---- cart (rendered by cart.js) ---- */
.cart-items { display: flex; flex-direction: column; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; }
.qty-ctrl button { width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 16px; font-weight: 700; transition: background .15s; }
.qty-ctrl button:hover { background: var(--border-2); color: var(--text); }
.qty-ctrl span { min-width: 38px; text-align: center; font-weight: 700; font-size: 14px; }
.checkout-note { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ---- products page toolbar (static markup) ---- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: all .15s; }
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip.active { background: var(--grad); color: #06121f; font-weight: 700; border-color: transparent; }
.shop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.search-box input { padding: 10px 14px 10px 38px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 14px; min-width: 220px; transition: border-color .15s; }

.search-box input:focus { outline: none; border-color: var(--accent); }
.search-suggest {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 45;
  min-width: 280px; max-height: 310px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.search-suggest[hidden] { display: none; }
.search-suggest button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 11px; border-radius: 7px; text-align: left; color: var(--text);
}
.search-suggest button:hover, .search-suggest button.active { background: var(--surface-2); }
.search-suggest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest small { flex: 0 0 auto; color: var(--text-3); font-size: 10.5px; }

.sort-select { padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 14px; cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--accent); }
.result-count { font-size: 13px; color: var(--text-3); font-family: var(--mono); margin-bottom: 20px; }

/* ---- contact page (static markup) ---- */
.contact-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 6px; }
.contact-note b { font-size: 14px; } .contact-note p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.form-hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

/* ---- section alt bg + misc ---- */
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center-cta { justify-content: center; }
.hide-mobile { display: inline-flex; }

/* ---- icon base default (safety for any un-contextualized .ico) ---- */
.ico { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   ACCOUNT PAGES — login / orders / account settings
   ============================================================ */

/* ---- login ---- */
.auth-section { min-height: 70vh; display: flex; align-items: center; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow-lg); }
.auth-title { font-size: 1.7rem; margin: 10px 0 8px; }
.auth-sub { color: var(--text-2); font-size: 14.5px; margin-bottom: 26px; }
.auth-methods { display: flex; flex-direction: column; gap: 12px; }
.auth-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--surface-2); font-size: 14.5px; font-weight: 600; transition: border-color .15s, background .15s, transform .12s; position: relative; }
.auth-btn:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-1px); }
.auth-btn[disabled] { opacity: .55; cursor: not-allowed; }
.auth-ico { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; }
.auth-ico svg { width: 20px; height: 20px; }
.auth-google:hover:not([disabled]) { border-color: #ea4335; }
.auth-telegram:hover:not([disabled]) { border-color: #229ed9; }
.soon-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 20px; background: rgba(251,191,36,.14); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }
.auth-preview { margin-top: 22px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.22); font-size: 12.5px; color: var(--text-2); }
.auth-terms { margin-top: 18px; font-size: 12px; color: var(--text-3); text-align: center; }

/* ---- orders ---- */
.tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px; width: fit-content; margin-bottom: 26px; }
.tab { padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .15s, background .15s; }
.tab.active { background: var(--accent); color: #06121f; }
.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .15s; }
.order-card:hover { border-color: var(--border-2); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.order-ref { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Neobrutal treatment: order cards only. */
.order-card {
  --order-pop: var(--accent);
  position: relative;
  border: 2px solid #050b12;
  border-left: 7px solid var(--order-pop);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 7px 7px 0 #050b12;
  transform: translate(0, 0);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.order-card:hover {
  border-color: #050b12;
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 #050b12;
}
.order-card:focus-visible {
  outline: 3px solid var(--order-pop);
  outline-offset: 5px;
}
.order-card .order-ref {
  display: inline-flex;
  padding: 5px 9px;
  border: 2px solid #050b12;
  border-radius: 5px;
  background: var(--order-pop);
  color: #06121f;
  font-weight: 800;
  box-shadow: 3px 3px 0 #050b12;
}
.order-card .badge {
  border-width: 2px;
  border-color: #050b12;
  border-radius: 5px;
  box-shadow: 3px 3px 0 #050b12;
  font-weight: 800;
}
.order-card .order-item { font-weight: 650; }
.order-card .order-foot { border-top: 2px dashed var(--border-2); }
.order-card-pending { --order-pop: #facc15; }
.order-card-processing { --order-pop: #38bdf8; }
.order-card-paid,
.order-card-success { --order-pop: #4ade80; }
.order-card-failed,
.order-card-expired,
.order-card-cancelled { --order-pop: #fb7185; }
.order-card-refund,
.order-card-refunded { --order-pop: #c084fc; }
@media (max-width: 640px) {
  .order-card { box-shadow: 5px 5px 0 #050b12; padding: 17px; }
  .order-card:hover { transform: none; box-shadow: 5px 5px 0 #050b12; }
}
.badge { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 20px; }
.badge-paid, .badge-success { background: rgba(52,211,153,.14); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.badge-pending { background: rgba(251,191,36,.14); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }
.badge-processing { background: rgba(99,102,241,.14); color: var(--accent-ink); border: 1px solid rgba(99,102,241,.3); }
.badge-done { background: rgba(148,163,184,.14); color: var(--text-2); border: 1px solid rgba(148,163,184,.3); }
.badge-refund, .badge-refunded { background: rgba(251,191,36,.14); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }
.badge-failed, .badge-cancelled { background: rgba(248,113,113,.14); color: #f87171; border: 1px solid rgba(248,113,113,.3); }

/* ---- account settings ---- */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.account-side { display: flex; flex-direction: column; gap: 4px; }
.acc-nav { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s, background .15s; cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; }
.acc-nav svg { width: 18px; height: 18px; }
.acc-nav:hover { background: var(--surface-2); color: var(--text); }
.acc-nav.active { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.acc-nav-danger { color: #f87171; margin-top: 8px; }
.acc-nav-danger:hover { background: rgba(248,113,113,.1); color: #f87171; }
.account-panels { min-width: 0; }
.acc-panel { display: none; }
.acc-panel.active { display: block; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel-note { font-size: 13px; color: var(--text-3); margin-top: 4px; margin-bottom: 20px; }
.profile-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select { padding: 11px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); font-size: 14px; font-family: inherit; transition: border-color .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } .account-side { flex-direction: row; flex-wrap: wrap; } .acc-nav { width: auto; } }

/* ---- account (avatar + dropdown, rendered by app.js) ---- */
.account { position: relative; }
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; overflow: hidden; transition: border-color .15s, transform .15s; padding: 0; }
.avatar-btn:hover { border-color: var(--accent); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-init { font-weight: 800; font-size: 15px; color: var(--accent-ink); }
.account-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 244px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; }
.account-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.account-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.avatar-lg { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.avatar-lg .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.account-id { min-width: 0; }
.account-id b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-id span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.account-balance { color: var(--accent) !important; font-family: var(--mono); margin-top: 2px; }
.saldo-card { margin: -4px 0 18px; padding: 14px 16px; border: 1px solid rgba(34,211,238,.28); border-radius: var(--radius-sm); background: rgba(34,211,238,.07); display: grid; gap: 3px; }
.saldo-card span { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.saldo-card b { color: var(--accent); font-size: 1.35rem; }
.saldo-card small { color: var(--text-3); }
.saldo-card small a { color: var(--accent); font-weight: 600; }
/* Larger saldo card on the dedicated saldo panel. */
.saldo-card-lg { margin: 0 0 22px; padding: 18px 20px; }
.saldo-card-lg b { font-size: 1.9rem; }
.saldo-sub { font-size: 15px; font-weight: 700; color: var(--text); margin: 22px 0 4px; }
/* Top-up preset amount chips. */
.topup-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.topup-chip { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; font-family: var(--mono); transition: border-color .13s, color .13s, background .13s; }
.topup-chip:hover { border-color: var(--accent); color: var(--text); }
.topup-msg { font-size: 13px; color: var(--warn); margin-top: 10px; min-height: 1em; }
/* Balance ledger (statement) list. */
.ledger-list { display: grid; gap: 2px; margin-top: 6px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--border); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-info { display: grid; gap: 2px; min-width: 0; }
.ledger-info b { font-size: 14px; font-weight: 600; color: var(--text); }
.ledger-info small { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.ledger-delta { font-family: var(--mono); font-size: 13.5px; font-weight: 600; flex-shrink: 0; }
.ledger-delta.is-credit { color: var(--ok, #22c55e); }
.ledger-delta.is-debit { color: var(--text-2); }
/* Disabled payment method (e.g. wallet with insufficient saldo). */
.co-method.is-disabled { opacity: .5; cursor: not-allowed; }
.co-method.is-disabled:hover { border-color: var(--border); }
/* Card action row: cart + buy-now buttons side by side. */
.card-actions { display: inline-flex; gap: 6px; align-items: center; }
/* Order confirmation modal (yes/no before creating the order). */
.cf-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); animation: cf-fade .15s ease; }
@keyframes cf-fade { from { opacity: 0; } to { opacity: 1; } }
.cf-modal { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.cf-modal h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.cf-lines { display: grid; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.cf-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.cf-line span:last-child { font-family: var(--mono); color: var(--text); text-align: right; }
.cf-total { font-weight: 700; font-size: 15px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.cf-total span:last-child { color: var(--accent); }
.cf-note { font-size: 12.5px; color: var(--text-3); margin: 14px 0 16px; }
.cf-pw { margin: 14px 0 4px; }
.cf-pw label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.cf-pw input { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; }
.cf-pw input:focus { border-color: var(--accent); outline: none; }
.cf-pw-msg { font-size: 12px; color: #f87171; margin-top: 6px; min-height: 1em; }
.cf-actions { display: flex; gap: 10px; }
.cf-actions .btn { flex: 1; }
.account-menu a, .account-menu button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 9px; font-size: 14px; color: var(--text-2); text-align: left; transition: background .13s, color .13s; }
.account-menu a:hover, .account-menu button:hover { background: var(--surface-2); color: var(--text); }
.account-menu svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-3); }
.account-menu a:hover svg, .account-menu button:hover svg { color: var(--accent-ink); }
.account-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.account-danger:hover { background: rgba(255,95,86,.1) !important; color: #ff5f56 !important; }
.account-danger:hover svg { color: #ff5f56 !important; }

/* ---- brand logo (real logo images) ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo-mark { height: 30px; width: auto; display: block; }
.brand-logo-word { height: 17px; width: auto; display: block; }
.site-header .brand-logo-mark { height: 32px; }
.site-header .brand-logo-word { height: 18px; }
@media (max-width: 420px) { .brand-logo-word { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .detail-grid, .contact-grid, .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .cat-grid, .product-grid, .why-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Mobile header: hide desktop nav, show hamburger + drawer.
     NOTE: the DOM (rendered by app.js) uses .nav-desktop / .nav-mobile /
     .nav-toggle — earlier CSS targeted stale .nav-links/.menu-toggle that
     don't exist, so on mobile the desktop nav never collapsed and the
     hamburger never appeared. */
  .nav-desktop { display: none; }
  .nav-toggle { display: grid; }
  .nav-mobile {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2);
    border-bottom: 1px solid var(--border); padding: 12px; gap: 4px;
    box-shadow: var(--shadow-lg); z-index: 55; max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a, .nav-mobile button { padding: 12px 14px; }
  .product-grid, .why-grid, .testi-grid, .trust-row { grid-template-columns: 1fr; }
  /* Product category tabs: single-row horizontal swipe on mobile. */
  .cat-chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cat-chips::-webkit-scrollbar { display: none; }
  .shop-tools, .search-box { width: 100%; }
  .search-box input { width: 100%; min-width: 0; }
  .search-suggest { min-width: 0; }
  .cat-chips .chip {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  /* categories → horizontal scroll pills on mobile */
  .cat-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    /* hide scrollbar but keep swipe */
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-card {
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px 16px;
    border-radius: 40px;
    gap: 10px;
    scroll-snap-align: start;
  }
  .cat-card::before { display: none; }
  .cat-ico { width: 32px; height: 32px; border-radius: 8px; }
  .cat-ico svg { width: 18px; height: 18px; }
  .cat-card b { font-size: 13px; white-space: nowrap; }
  .cat-card .cat-desc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 54px 0 40px; }
  .section { padding: 54px 0; }
  .cta-band { padding: 40px 22px; }
}

/* ============================================================
   Maintenance page (full-screen overlay when SITE.maintenance is on)
   ============================================================ */
body.is-maintenance { overflow: hidden; }
.maint-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(99,102,241,0.15), transparent 60%),
    var(--bg);
}
.maint-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.maint-glyph {
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
}
.maint-glyph svg { width: 34px; height: 34px; }
.maint-title {
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--text);
}
.maint-msg {
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 26px;
}

/* ============================================================
   Out-of-stock state (dimmed card + diagonal rubber stamp)
   Applied to product cards and detail media when p.soldOut.
   ============================================================ */
.product-card.is-soldout .card-media,
.detail-media.is-soldout { position: relative; }
.product-card.is-soldout .card-glyph,
.product-card.is-soldout .card-body,
.detail-media.is-soldout .detail-glyph {
  filter: grayscale(0.85) brightness(0.55);
  opacity: 0.7;
}
.product-card.is-soldout { opacity: 0.9; }
.soldout-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  z-index: 3;
  pointer-events: none;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #ff4d4d;
  border: 3px solid #ff4d4d;
  border-radius: 8px;
  padding: 6px 14px;
  background: rgba(10, 14, 22, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.detail-media.is-soldout .soldout-stamp {
  font-size: 1.5rem;
  padding: 10px 22px;
}

/* ============================================================
   Checkout page — 2-column layout, payment method cards
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.co-h { font-size: 1.05rem; margin: 0 0 14px; color: var(--text); }
.co-methods { display: flex; flex-direction: column; gap: 18px; }
.co-method-group-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.co-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 8px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.co-method:hover { border-color: var(--accent); }
.co-method.is-selected {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 2px rgba(99,102,241,.25);
}
.co-method input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.co-method-body { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.co-method-icon { width: 38px; height: 24px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; flex-shrink: 0; }
.co-method-icon-fallback { display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.co-method-name { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-method-fee { font-family: var(--mono); font-size: 12.5px; color: var(--warn); flex-shrink: 0; }
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 82px;
}
.checkout-summary h3 { font-size: 1.05rem; margin: 0 0 16px; }
.co-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.co-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.co-line-name { min-width: 0; }
.co-target { display: block; margin-top: 4px; color: var(--accent); font-size: 12px; line-height: 1.35; }
.co-qty { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.co-line-price { flex-shrink: 0; color: var(--text); }
@media (max-width: 780px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ---------- Promo & Voucher (Modul 3) ---------- */
/* Promo discount badge on product cards (top-left, distinct from Populer/Soon) */
.card-badge.badge-promo {
  background: linear-gradient(135deg, #ff5470, #ff2d55);
  color: #fff; font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 2px 10px rgba(255,45,85,.35);
}

/* Checkout voucher block */
.co-voucher-wrap { margin: 12px 0 4px; }
.co-voucher { display: flex; gap: 8px; align-items: center; }
.co-voucher-input {
  flex: 1; min-width: 0; padding: 10px 12px;
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 10px; color: var(--text);
  font: inherit; text-transform: uppercase; letter-spacing: .5px;
}
.co-voucher-input:focus { outline: none; border-color: var(--brand, #6c5ce7); }
.co-voucher.applied {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(46, 213, 115, .08);
  border: 1px solid rgba(46, 213, 115, .3);
}
.co-voucher-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }
.co-voucher-tag svg { width: 15px; height: 15px; color: #2ed573; }
.co-voucher-off { color: #2ed573; font-weight: 700; }
.co-voucher-remove {
  background: none; border: none; color: var(--text-2);
  cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline;
}
.co-voucher-remove:hover { color: var(--text); }
.co-voucher-msg { margin: 6px 2px 0; font-size: 13px; color: var(--warn, #ffb020); }
.summary-row.discount span:last-child { color: #2ed573; font-weight: 600; }

/* ============================================================
   Polish & mobile hardening (Modul 5)
   ============================================================ */

/* --- Reveal safety net: if JS/observer never fires (error, slow load),
   content must never stay invisible. Fade in after 1.6s regardless. --- */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal { animation: reveal-failsafe 0s linear 1.6s forwards; }
.reveal.in { animation: none; } /* observer won — normal transition drives it */

/* --- Respect users who ask for less motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Card entrance: subtle lift-in for product/category cards --- */
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.product-card, .cat-card { animation: card-in .45s ease both; }

/* --- Promo badge gentle pulse (draws the eye without being norak) --- */
@keyframes promo-pulse { 0%,100% { box-shadow: 0 2px 10px rgba(255,45,85,.35); } 50% { box-shadow: 0 2px 16px rgba(255,45,85,.6); } }
.card-badge.badge-promo { animation: promo-pulse 2.4s ease-in-out infinite; }

/* --- Global overflow guard: nothing should force horizontal scroll --- */
html, body { max-width: 100%; overflow-x: hidden; }
.glass-card, .code-line { max-width: 100%; overflow-x: auto; }
.code-line { white-space: pre-wrap; word-break: break-word; }

/* --- Fluid heading floor so long words don't overflow tiny screens --- */
.section-title { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h1, h2 { overflow-wrap: break-word; }

/* ============================================================
   Mobile refinements (<=560px): touch targets, spacing, type
   ============================================================ */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 46px 0 34px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { gap: 20px; margin-top: 28px; }
  .hero-stats .stat b { font-size: 22px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1; justify-content: center; min-width: 0; }

  /* touch targets: min 44px tap height on interactive controls */
  .btn, .filter-chip, .chip, .nav-mobile a, .nav-mobile button, .sort-select { min-height: 44px; }
  .btn-sm { min-height: 38px; }

  /* Account dropdown: on narrow phones an absolute right:0 menu with a fixed
     244px min-width overflows the viewport edge and gets clipped ("ketutupan").
     Pin it to both edges so it stays fully on-screen. */
  .account-menu {
    position: fixed; top: 62px; left: 12px; right: 12px;
    min-width: 0; width: auto; max-height: calc(100vh - 78px); overflow-y: auto;
  }

  /* section rhythm tighter on phones */
  .section { padding: 42px 0; }
  .section-sub { font-size: 14.5px; }

  /* stat cards single column already; keep price legible */
  .price { font-size: 18px; }

  /* footer readable on phone */
  .footer-grid, .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* very small phones */
@media (max-width: 380px) {
  .footer-grid, .footer-cols { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
}

/* ============================================================
   Support tickets (contact page)
   ============================================================ */
.ticket-login {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.ticket-login p { color: var(--text-2); margin: 0; max-width: 60ch; }

.ticket-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.ticket-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border); cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.ticket-row:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Neobrutal treatment: ticket cards only. */
.ticket-row {
  --ticket-pop: #facc15;
  position: relative;
  border: 2px solid #050b12;
  border-left: 7px solid var(--ticket-pop);
  border-radius: 9px;
  background: var(--card);
  box-shadow: 6px 6px 0 #050b12;
  transform: translate(0, 0);
  transition: transform .14s ease, box-shadow .14s ease;
}
.ticket-row:hover {
  border-color: #050b12;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #050b12;
}
.ticket-row:focus-visible {
  outline: 3px solid var(--ticket-pop);
  outline-offset: 5px;
}
.ticket-row .ticket-row-main b {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 2px solid #050b12;
  border-radius: 4px;
  background: var(--ticket-pop);
  color: #06121f;
  box-shadow: 3px 3px 0 #050b12;
}
.ticket-row .ticket-row-cat {
  width: fit-content;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
}
.ticket-row .tk-status,
.ticket-row .tk-reply-badge {
  border: 2px solid #050b12;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #050b12;
}
.ticket-row-pending { --ticket-pop: #facc15; }
.ticket-row-in_progress { --ticket-pop: #38bdf8; }
.ticket-row-success { --ticket-pop: #4ade80; }
.ticket-row-unknown { --ticket-pop: #c084fc; }
.ticket-row.is-unread {
  --ticket-pop: #a78bfa;
  border-color: #050b12;
  box-shadow: 6px 6px 0 #050b12, 0 0 0 3px rgba(167,139,250,.28);
}
@media (max-width: 640px) {
  .ticket-row { box-shadow: 5px 5px 0 #050b12; padding: 13px 14px; }
  .ticket-row:hover { transform: none; box-shadow: 5px 5px 0 #050b12; }
}
.ticket-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ticket-row-main b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row-cat { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.ticket-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ticket-row-date { font-size: 11.5px; color: var(--text-3); }
.ticket-empty { padding: 18px; text-align: center; color: var(--text-3); background: var(--card); border: 1px dashed var(--border-2); border-radius: var(--radius-sm); }

.ticket-form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.ticket-form h3 { font-size: 16px; margin-bottom: 16px; }

.tk-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .02em; white-space: nowrap; }
.tk-pending  { background: rgba(251,191,36,.15); color: var(--warn); border: 1px solid rgba(251,191,36,.4); }
.tk-progress { background: rgba(99,102,241,.16); color: var(--accent-ink); border: 1px solid rgba(99,102,241,.4); }
.tk-success  { background: rgba(46,213,115,.14); color: #2ed573; border: 1px solid rgba(46,213,115,.4); }

.tk-modal-bg { position: fixed; inset: 0; background: rgba(3,7,14,.74); display: grid; place-items: center; padding: 20px; z-index: 120; }
.tk-modal { width: 100%; max-width: 540px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 22px; max-height: 88vh; display: flex; flex-direction: column; }
.tk-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.tk-modal-head b { color: var(--text); }
.tk-modal-head-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tk-close { font-size: 18px; color: var(--text-3); background: none; border: none; cursor: pointer; line-height: 1; padding: 2px 6px; }
.tk-close:hover { color: var(--text); }

.tk-thread { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 8px 2px; margin-bottom: 16px; }
/* Chat row: avatar + bubble. user = left, admin = right (reversed). */
.tkm { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.tkm.user { align-self: flex-start; }
.tkm.admin { align-self: flex-end; flex-direction: row-reverse; }
.tkm-avatar {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 5px;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
  color: #06121f; letter-spacing: .02em;
  border: 2px solid #050b12;
  box-shadow: 3px 3px 0 #050b12;
}
.tkm.user .tkm-avatar { background: #facc15; }
.tkm.admin .tkm-avatar { background: #a78bfa; }
.tkm-bubble {
  padding: 11px 14px;
  border: 2px solid #050b12;
  border-radius: 7px;
  position: relative;
  box-shadow: 5px 5px 0 #050b12;
}
.tkm.user .tkm-bubble { background: #20293a; border-bottom-left-radius: 2px; }
.tkm.admin .tkm-bubble { background: #30294a; border-bottom-right-radius: 2px; }
.tkm.user .tkm-bubble::before,
.tkm.admin .tkm-bubble::before {
  content: "";
  position: absolute;
  top: -2px;
  width: 26px;
  height: 5px;
  background: #facc15;
  border: 2px solid #050b12;
}
.tkm.user .tkm-bubble::before { left: 10px; }
.tkm.admin .tkm-bubble::before { right: 10px; background: #a78bfa; }
.tkm-body { font-size: 14px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tkm-meta { display: block; font-size: 10px; color: var(--text-3); margin-top: 5px; font-weight: 600; letter-spacing: .03em; }
.tkm.admin .tkm-meta { text-align: right; }

.tk-reply-form { display: flex; gap: 10px; align-items: flex-end; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 8px 8px 8px 14px; transition: border-color .15s; }
.tk-reply-form:focus-within { border-color: var(--accent); }
.tk-reply-form textarea { flex: 1; min-height: 24px; max-height: 120px; padding: 6px 0; border: none; background: none; color: var(--text); font: inherit; resize: none; outline: none; }
.tk-reply-form button { align-self: flex-end; flex-shrink: 0; border-radius: 12px; }
.tk-closed-note { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(46,213,115,.08); border: 1px solid rgba(46,213,115,.3); color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* ---- unread badge / notif (ticket admin replied) ---- */
.ticket-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ticket-list-head b { color: var(--text); font-size: 14px; }
.tk-unread-count { font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#6366f1,#8b5cf6); padding: 3px 11px; border-radius: 20px; }
.ticket-row.is-unread { border-color: rgba(99,102,241,.5); box-shadow: 0 0 0 1px rgba(99,102,241,.25); }
.tk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6366f1; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.tk-reply-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; color: #fff; background: linear-gradient(135deg,#6366f1,#8b5cf6); }
/* header account menu + avatar notif */
.tk-menu-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 20px; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.avatar-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: #6366f1; border: 2px solid var(--bg, #0a0e16); }
.tk-menu-badge[hidden],
.avatar-dot[hidden] { display: none !important; }

/* ---- Payment (QRIS in-site) ---- */
.pay-card { max-width: 420px; margin: 0 auto; padding: 30px 26px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.pay-ref { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); letter-spacing: .04em; }
.pay-items { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.qris-wrap { margin: 22px auto 18px; padding: 16px; width: fit-content; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.qris-img { display: block; width: 260px; height: 260px; }
.pay-amount { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--text); }
.pay-timer { margin-top: 12px; font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.pay-timer svg { width: 17px; height: 17px; color: var(--warn); }
.pay-timer b { font-family: var(--mono); font-size: 16px; color: var(--warn); }
.pay-status { margin-top: 14px; padding: 9px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: rgba(251,191,36,.12); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }
.pay-status svg { width: 15px; height: 15px; }
.pay-status.ok { background: rgba(52,211,153,.12); color: var(--success); border-color: rgba(52,211,153,.3); }
/* ---- Payment (VA in-site) ---- */
.va-wrap { margin: 22px auto 4px; max-width: 340px; }
.va-label { font-size: 12.5px; color: var(--text-3); letter-spacing: .03em; margin-bottom: 8px; }
.va-number { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; background: var(--surface-2, rgba(255,255,255,.04)); border: 1px solid var(--border); border-radius: var(--radius); }
.va-number code { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .06em; color: var(--text); word-break: break-all; }
.va-number svg { width: 15px; height: 15px; }
.va-guides { margin-top: 16px; text-align: left; }
.va-guide { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.va-guide summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); list-style: none; }
.va-guide summary::-webkit-details-marker { display: none; }
.va-guide[open] summary { border-bottom: 1px solid var(--border); color: var(--text); }
.va-steps { margin: 0; padding: 12px 16px 14px 30px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.va-steps li { margin-bottom: 4px; }
/* ---- Order detail page ---- */
.od-card { max-width: 520px; margin: 0 auto; padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.od-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.od-date { margin-top: 8px; font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.od-date svg { width: 14px; height: 14px; }
.od-section { margin-top: 22px; }
.od-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.od-lines { display: flex; flex-direction: column; gap: 8px; }
.od-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.od-line-name { color: var(--text); }
.od-qty { color: var(--text-3); font-size: 12.5px; }
.od-line-price { font-family: var(--mono); color: var(--text-2); white-space: nowrap; }
.od-mono { font-family: var(--mono); letter-spacing: .04em; }
.od-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
/* ---- Account credentials (delivered accounts in order card) ---- */
.order-accounts { margin: 14px 0; padding: 14px; border-radius: var(--radius-sm); background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.28); }
.acct-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--success); margin-bottom: 10px; }
.acct-head svg { width: 16px; height: 16px; }
.acct-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.acct-payload { flex: 1; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; overflow-x: auto; }
.acct-copy { flex-shrink: 0; align-self: flex-start; }
.acct-note { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); }
.account-guide-card { margin: 12px 0 16px; padding: 14px; border: 1px solid rgba(34,211,238,.34); border-radius: var(--radius-sm); background: rgba(34,211,238,.07); }
.account-guide-title { display:flex; align-items:center; gap:7px; margin-bottom:8px; color:var(--accent); font-size:13px; font-weight:700; }
.account-guide-title svg { width:16px; height:16px; }
.account-guide-text { color:var(--text-2); font-size:12.5px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.account-guide-text + .account-guide-text { margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
.pln-detail { display: grid; gap: 5px; }
.pln-detail .acct-row { margin-bottom: 5px; }
.pln-label { margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.pln-detail strong { margin-bottom: 5px; font-size: 13px; text-transform: uppercase; }

/* Game order detail card. */
.game-order-card { margin: 18px 0; overflow: hidden; border: 1px solid rgba(34,211,238,.32); border-radius: var(--radius); background: linear-gradient(145deg, rgba(34,211,238,.08), rgba(139,92,246,.06)); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.game-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px; border-bottom: 1px solid var(--border); }
.game-card-kicker { display: block; margin-bottom: 4px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.game-card-head h3 { margin: 0; font-size: 18px; }
.game-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.game-detail-row { min-width: 0; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.game-detail-row:nth-child(odd) { border-right: 1px solid var(--border); }
.game-detail-row span { display: block; margin-bottom: 5px; color: var(--text-3); font-size: 11.5px; }
.game-detail-row strong { display: block; overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
.game-total-item strong { color: var(--accent); font-size: 16px; }
.game-total-pay strong { color: var(--success); font-family: var(--mono); font-size: 16px; }
@media (max-width: 520px) {
  .game-detail-grid { grid-template-columns: 1fr; }
  .game-detail-row:nth-child(odd) { border-right: 0; }
  .game-card-head { padding: 15px; }
}

/* ---------- Leaderboard ---------- */
.lb-hero { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.lb-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.lb-hero p { font-size: 16px; color: var(--text-2); }
.lb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.lb-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.lb-card-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.lb-card-ico svg { width: 21px; height: 21px; color: #06121f; }
.lb-card-head b { font-size: 16px; display: block; }
.lb-card-sub { font-size: 12px; color: var(--text-3); }
.lb-rows { display: flex; flex-direction: column; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text-3); flex-shrink: 0; }
.lb-rank-top { color: #06121f; border: none; font-weight: 800; }
.lb-rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.lb-rank-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.lb-rank-3 { background: linear-gradient(135deg, #f0a56a, #c2703c); }
.lb-name { flex: 1; font-family: var(--mono); color: var(--text); letter-spacing: .03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-total { font-family: var(--mono); font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.lb-empty { padding: 18px 0; text-align: center; font-size: 13px; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 7px; }
.lb-empty svg { width: 15px; height: 15px; }
.lb-error { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--text-3); }
@media (max-width: 860px) { .lb-grid { grid-template-columns: 1fr; } }

/* ---------- Page-head subtitle centered, contact cards keep normal desktop layout ---------- */
.page-head { text-align: center; }
.page-head .breadcrumb { justify-content: center; }
.page-head .section-sub { margin-left: auto; margin-right: auto; }

/* Contact desktop: use the available width instead of stacking every card in a
   narrow centered column. Card internals stay horizontal + left-aligned. */
.contact-grid { max-width: 960px; margin-left: auto; margin-right: auto; }
.contact-left {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  text-align: left;
}
.contact-left .contact-card {
  flex-direction: row;
  align-items: center;
  text-align: left;
  min-height: 94px;
}
.contact-card > div { align-items: flex-start; }
.contact-note {
  grid-column: 1 / -1;
  text-align: left;
}
#ticketSection > .container { max-width: 960px; }
#ticketSection .ticket-head,
#ticketSection #ticketBody {
  width: 588px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
#ticketSection .ticket-head { text-align: left; }
#ticketSection .ticket-head > div { margin: 0; }
@media (max-width: 680px) {
  .contact-left { grid-template-columns: 1fr; }
  .contact-note { grid-column: auto; }
}

.pay-hint { margin-top: 18px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }

/* ---------- Affiliate page ---------- */
.aff-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.aff-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.aff-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 16px; color: var(--text); }
.aff-note-warn {
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  color: var(--warn); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; line-height: 1.55;
}
.aff-link-row, .aff-code-form { display: flex; gap: 8px; margin-top: 6px; }
.aff-link-row input, .aff-code-form input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text);
  font-family: var(--mono); font-size: 13px;
}
.aff-link-row input:focus, .aff-code-form input:focus { outline: none; border-color: var(--accent); }
.aff-link-row .btn, .aff-code-form .btn { flex-shrink: 0; }
.aff-code { font-family: var(--mono); color: var(--accent-ink); letter-spacing: 1px; }
.aff-code-msg { margin: 8px 0 0; font-size: 12.5px; min-height: 1em; }
.aff-code-msg.ok { color: var(--success); }
.aff-code-msg.err { color: var(--danger); }
.aff-summary { display: flex; gap: 14px; }
.aff-stat {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.aff-stat span { font-size: 12px; color: var(--text-3); }
.aff-stat b { font-family: var(--display); font-size: 20px; color: var(--text); }
.aff-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.aff-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.aff-row-name { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.aff-badge {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-3);
}
.aff-badge-ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); color: var(--success); }
.aff-empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.aff-error { padding: 40px; text-align: center; color: var(--text-3); }
@media (max-width: 560px) { .aff-summary { flex-direction: column; } }

/* ============================================================
   Elegant solid theme — 2026-08-19
   Visual-only override: cleaner typography, flat surfaces, no gradients.
   ============================================================ */
:root {
  --bg: #0b0d10;
  --bg-2: #101318;
  --surface: #15191f;
  --surface-2: #1a2028;
  --border: #252c35;
  --border-2: #313a46;
  --text: #f1f3f5;
  --text-2: #b2bbc7;
  --text-3: #7f8a99;
  --accent: #7c8cff;
  --accent-2: #8ea0b8;
  --accent-ink: #c9d0ff;
  --grad: #7c8cff;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 8px 24px rgba(0,0,0,.22);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.3);
}
body { line-height: 1.65; letter-spacing: -.005em; }
body::before { display: none; }
h1,h2,h3,h4 { letter-spacing: -.025em; line-height: 1.2; }
.text-grad,
.product-price b {
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}
.btn-primary,
.filter-chip.active,
.brand .logo,
.why-card .why-icon,
.testi-avatar,
.tkm.admin .tkm-avatar,
.tk-unread-count,
.tk-reply-badge,
.tk-menu-badge,
.lb-rank-1,
.lb-rank-2,
.lb-rank-3 { background: var(--accent); }
.btn-primary {
  border: 1px solid #8e9cff;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  text-shadow: none;
}
.btn-primary:hover { background: #8997ff; box-shadow: 0 9px 24px rgba(0,0,0,.28); }
.btn-ghost,
.glass-card,
.cat-card,
.product-card,
.product-badge,
.filter-chip,
.cta-band,
.card-media,
.detail-media,
.reviews-section,
.review-item,
.checkout-card,
.order-card,
.contact-card,
.aff-card { background: var(--surface); }
.cat-icon,
.product-type,
.product-type.service,
.product-type.physical,
.tkm.user .tkm-avatar,
.tkm.admin .tkm-bubble { background: var(--surface-2); }
.cat-card::before,
.product-card::before,
.review-item::before { background: var(--border-2); opacity: .45; }
.filter-chip.active { border-color: #8e9cff; box-shadow: none; text-shadow: none; }
.cat-card,
.product-card,
.filter-chip,
.btn { transform-style: flat; }
.cat-card:hover,
.product-card:hover,
.filter-chip:hover,
.filter-chip.active { transform: translateY(-2px); }
.product-card:hover,
.cat-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.cta-band { border-color: var(--border-2); }
.lb-rank-1 { background: #d6a942; color: #17120a; }
.lb-rank-2 { background: #aab4c0; color: #11151a; }
.lb-rank-3 { background: #b8784f; color: #160e09; }
/* ============================================================
   STOREFRONT PRODUCT CARDS — clean premium treatment (2026-08-23)
   Scope: cards rendered by productCard(); product-detail untouched.
   ============================================================ */
.product-grid { gap: 20px; perspective: none; align-items: stretch; }
.product-card {
  isolation: isolate;
  border-color: rgba(255,255,255,.09);
  border-radius: 18px;
  background: #111621;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card::before {
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(255,255,255,.14) 50%, transparent 92%);
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142,156,255,.38);
  box-shadow: 0 16px 36px rgba(0,0,0,.34), 0 0 0 1px rgba(142,156,255,.08);
}
.product-card:focus-within { border-color: rgba(142,156,255,.58); }
.product-card .card-media {
  aspect-ratio: 16/10;
  margin: 8px 8px 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: #171d29;
}
.product-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(4,7,12,.24));
}
.product-card .card-img { transition: transform .28s ease; }
.product-card:hover .card-img { transform: scale(1.025); }
.product-card .card-glyph svg {
  width: 52px;
  height: 52px;
  filter: none;
  transition: transform .22s ease;
}
.product-card:hover .card-glyph svg { transform: translateY(-2px); }
.product-card .card-badges { top: 10px; left: 10px; }
.product-card .card-badge,
.product-card .card-type {
  border-radius: 7px;
  background: rgba(9,12,18,.82);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.product-card .card-type { top: 10px; right: 10px; z-index: 2; }
.product-card .card-body { padding: 17px 18px 18px; }
.product-card .card-cat { color: #8f9aae; font-size: 10.5px; }
.product-card .card-title {
  min-height: 2.6em;
  margin: 7px 0 7px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-card .card-title a { transition: color .16s ease; }
.product-card .card-desc {
  min-height: 3.15em;
  margin-bottom: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-card .card-meta { min-height: 20px; margin-bottom: 12px; gap: 10px; }
.product-card .stock-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.product-card .stock-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.product-card .stock-status.is-in { color: #6ee7b7; }
.product-card .stock-status.is-out { color: #fda4af; }
.product-card .card-meta:empty { visibility: hidden; }
.product-card .card-foot {
  align-items: flex-end;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.product-card .price-wrap { min-width: 0; }
.product-card .price { font-size: 20px; line-height: 1.2; color: #f5f7fb; }
.product-card .price-old { margin-top: 3px; }
.product-card .card-actions { flex-shrink: 0; gap: 7px; }
.product-card .card-actions .btn-ghost { width: 38px; flex: 0 0 38px; padding-inline: 0; }
.product-card .card-detail-btn { border-radius: 50%; color: var(--text-2); }
.product-card .card-detail-btn:hover { color: #fff; border-color: rgba(142,156,255,.55); }
.product-card .card-actions .btn-primary { min-width: 78px; }
.product-card .card-actions .btn,
.product-card .card-foot > .btn {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}
.product-card .card-actions .card-detail-btn {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 50%;
}
.product-card .card-actions .btn:hover,
.product-card .card-foot > .btn:hover { transform: translateY(-1px); }
.product-card.is-soldout { opacity: .72; }
.product-card.is-soldout:hover { transform: none; box-shadow: 0 8px 24px rgba(0,0,0,.22); }

.product-skeleton { pointer-events: none; }
.skeleton-media { aspect-ratio: 16/10; margin: 8px 8px 0; border-radius: 12px; }
.skeleton-body { padding: 17px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-line { display: block; height: 12px; border-radius: 6px; }
.skeleton-action { display: block; height: 40px; margin-top: 14px; border-radius: 10px; }
.skeleton-pulse { background: linear-gradient(90deg, #171d29 25%, #222a39 50%, #171d29 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.25s linear infinite; }
.w-35 { width: 35%; } .w-45 { width: 45%; } .w-65 { width: 65%; } .w-80 { width: 80%; }
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }
.catalog-inline-error { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; border: 1px solid var(--border-2); border-radius: 16px; background: var(--surface); }
.catalog-inline-error span { color: var(--text-2); }
.error-state { border: 1px solid rgba(253,164,175,.22); border-radius: 16px; background: rgba(253,164,175,.035); }

@media (max-width: 640px) {
  .product-grid { gap: 16px; }
  .product-card .card-media { aspect-ratio: 16/9; }
  .product-card .card-body { padding: 15px 16px 16px; }
  .product-card .card-desc { min-height: 0; }
}

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

/* PRODUCT CARD POLISH 20260912 — clean hierarchy, aligned actions */
.product-card {
  background: linear-gradient(180deg,#121824 0%,#0e141e 100%);
  border-color: rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(125,211,252,.3); box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.product-card:focus-within { border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(125,211,252,.16),0 16px 36px rgba(0,0,0,.3); }
.product-card .card-media { margin: 9px 9px 0; width: auto; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg,#1b2433,#111722); }
.product-card .card-img { transition: transform .35s ease; }
.product-card:hover .card-img { transform: scale(1.025); }
.product-card .card-body { padding: 16px 18px 18px; }
.product-card .card-cat { color: #94a3b8; letter-spacing: .09em; }
.product-card .card-title { font-size: 17px; min-height: 2.75em; margin: 7px 0 8px; }
.product-card .card-desc { min-height: 4.65em; -webkit-line-clamp: 3; color: #aeb9ca; line-height: 1.55; }
.product-card .card-meta { min-height: 23px; padding: 8px 10px; margin: 0 0 13px; border-radius: 9px; background: rgba(255,255,255,.035); }
.product-card .card-foot { display:grid; grid-template-columns:minmax(88px,auto) minmax(0,1fr); align-items:end; gap:12px; padding-top:14px; }
.product-card .price-wrap { align-self:center; }
.product-card .price { font-size:21px; font-weight:800; letter-spacing:-.025em; }
.product-card .card-actions { display:grid; grid-template-columns:minmax(0,1fr) 40px; gap:7px; width:100%; }
.product-card .card-actions .btn-primary { width:100%; min-width:0; }
.product-card .card-actions .btn-ghost:not(.card-detail-btn) { width:40px; }
.product-card .card-actions:has(> .btn-ghost:not(.card-detail-btn) + .btn-primary + .card-detail-btn) { grid-template-columns:40px minmax(0,1fr) 40px; }
.product-card .card-badge { font-weight:750; box-shadow:none; }
.product-card .card-type { background:rgba(8,12,19,.82); }
@media (max-width:640px) {
  .product-card .card-media { aspect-ratio:16/9; }
  .product-card .card-title { min-height:0; }
  .product-card .card-desc { min-height:0; }
  .product-card .card-foot { grid-template-columns:1fr; }
  .product-card .price-wrap { min-height:43px; }
  .product-card .card-actions .btn { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  .product-card:hover,.product-card:hover .card-img { transform:none; }
}
