:root {
  --bg: #09070f;
  --bg-2: #14101c;
  --card: #1c1628;
  --line: rgba(196, 181, 253, 0.12);
  --text: #ffffff;
  --muted: #b8aec9;
  --accent: #c026ff;
  --accent-2: #9333ea;
  --accent-dim: rgba(192, 38, 255, 0.16);
  --purple: var(--accent);
  --purple-2: var(--accent-2);
  --glow: rgba(192, 38, 255, 0.4);
  --silver: #d4d4de;
  --danger: #ff595a;
  --radius: 12px;
  --font: "Montserrat", system-ui, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 38, 255, 0.55) rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(9, 7, 15, 0.95);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(192, 38, 255, 0.75), rgba(147, 51, 234, 0.65));
  border-radius: 999px;
  border: 2px solid rgba(9, 7, 15, 0.95);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(216, 180, 254, 0.95), rgba(192, 38, 255, 0.85));
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: transparent;
}

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 50% at 50% -12%, rgba(192, 38, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 40%, rgba(147, 51, 234, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 100% 70%, rgba(168, 85, 247, 0.08), transparent 55%),
    linear-gradient(180deg, #09070f 0%, #0c0914 45%, #050308 100%);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: auto auto -15% 50%;
  width: 55vw;
  height: 45vh;
  background: radial-gradient(ellipse, rgba(192, 38, 255, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.nav, main, .footer { position: relative; z-index: 1; }

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  text-transform: lowercase;
  color: #fff;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
}

.logo-text {
  line-height: 1;
  font-weight: 800;
}

.logo-tld {
  color: var(--accent);
  text-shadow: 0 0 18px var(--glow);
}

.logo-admin {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 0.2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link, .social, .cart-btn {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(28, 22, 40, 0.9);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  cursor: pointer;
}

.nav-link:hover, .social:hover, .cart-btn:hover {
  color: var(--text);
  border-color: rgba(192, 38, 255, 0.4);
  background: var(--accent-dim);
}

.ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cart-btn { position: relative; }

.cart-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.social.foot {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
}

.social.foot:hover {
  background: transparent;
  color: var(--purple);
}

.hero {
  max-width: 1100px;
  margin: 0.25rem auto 1.75rem;
  padding: 0 1.25rem;
}

.hero-banner {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(192, 38, 255, 0.1);
  aspect-ratio: 1600 / 597;
  object-fit: cover;
}

.hero-copy {
  margin-top: 1.25rem;
  text-align: center;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.products {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.shop-category {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-category-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(var(--shop-cols, 3), minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, #1c1628 0%, #14101c 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card.featured {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.22), 0 18px 50px rgba(124, 58, 237, 0.16);
}

.card.shop-off {
  display: none;
}

.card-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #0a0e16;
}

.card-body { padding: 1rem 1.1rem 1.15rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(192, 38, 255, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.badge-row .badge { margin-bottom: 0; }

.badge.glow { box-shadow: 0 0 18px rgba(124, 58, 237, 0.35); }

.badge.sale {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.4);
}

.card-kicker {
  color: var(--purple) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.price .was {
  display: block;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
  text-decoration: line-through;
  letter-spacing: 0;
}

.card h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.stock {
  margin-top: 0.55rem;
  font-size: 0.82rem !important;
  font-weight: 600;
  color: #86efac !important;
}

.stock.checking {
  color: #6b7280 !important;
  font-weight: 500;
  animation: stock-pulse 1.2s ease-in-out infinite;
}

@keyframes stock-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.stock.low { color: #fcd34d !important; }
.stock.oos { color: #fca5a5 !important; }

.product-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 0.2rem 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.product-sold { color: var(--muted); }

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--text);
}

.product-stars {
  color: #fbbf24;
  letter-spacing: 0.02em;
  font-size: 0.84rem;
  line-height: 1;
}

.product-score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.product-rating em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.card.sold-out { opacity: 0.78; }
.qty.disabled { opacity: 0.45; pointer-events: none; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.admin-wrap {
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.admin-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-block-head h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

.earn-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 0.55rem;
}

.earn-card {
  background: #09070f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 0.8rem;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  overflow: visible;
}

.earn-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.earn-card strong {
  color: var(--accent);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  word-break: break-word;
}

.earn-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.earn-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 1.15rem;
}

.earn-lifetime {
  border-color: rgba(192, 38, 255, 0.35);
  background: linear-gradient(180deg, rgba(192, 38, 255, 0.1), #09070f);
}

.latest-box { margin-top: 0.55rem; }

.admin-orders {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.15rem;
}

.order-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(10, 14, 22, 0.65);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.4rem;
  transition: border-color 0.15s, background 0.15s;
}

.order-card:hover {
  border-color: rgba(192, 38, 255, 0.4);
  background: rgba(192, 38, 255, 0.06);
}

.order-card.is-latest {
  border-color: rgba(192, 38, 255, 0.45);
  background: linear-gradient(180deg, rgba(192, 38, 255, 0.1), rgba(10, 14, 22, 0.8));
}

.order-card-top,
.order-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.order-card-top strong { font-weight: 800; word-break: break-word; }
.order-card-top span { color: var(--accent); font-weight: 800; white-space: nowrap; }
.order-card-meta { color: var(--muted); font-size: 0.82rem; }
.order-card-meta span { word-break: break-word; }

.order-prods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.order-prod {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #09070f;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.order-prod img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.order-tag {
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(192, 38, 255, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.order-tag.pending {
  color: #ffb020;
  border-color: rgba(255, 176, 32, 0.35);
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  background: rgba(255, 89, 90, 0.16);
  color: #ff8b8c;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-panel { width: min(520px, 100%); }

.order-dl {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.order-dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.order-dl dt { color: var(--muted); font-weight: 600; }
.order-dl dd { font-weight: 600; word-break: break-word; }
.order-dl a { color: var(--accent); }

.order-detail-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.order-detail-prod {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09070f;
}

.order-detail-prod img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.order-detail-prod strong { display: block; font-size: 0.92rem; }
.order-detail-prod span { color: var(--muted); font-size: 0.8rem; }

.muted { color: var(--muted); }

@media (max-width: 900px) {
  .earn-grid { grid-template-columns: repeat(2, 1fr); }
  .earn-lifetime { grid-column: 1 / -1; }
}

.admin-card {
  background: linear-gradient(180deg, rgba(21, 27, 43, 0.95), rgba(18, 24, 38, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.admin-card h1 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}

.admin-sub {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 38, 0.85);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--text);
  border-color: rgba(192, 38, 255, 0.4);
  background: var(--accent-dim);
}

.stock-edit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stock-edit input { flex: 1; }

.admin-meta .stock-pill {
  margin-top: 0.35rem;
  display: inline-flex;
  width: fit-content;
}

.stock-row.active {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.admin-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}

.admin-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.65);
}

.lines-panel {
  width: min(1100px, 96vw);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.lines-panel > .lines-meta,
.lines-panel > .btn {
  flex-shrink: 0;
}

.lines-panel > .field.stock-editor-field {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stock-howto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.stock-howto code {
  background: #09070f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
}

.admin-stock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.admin-stock-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-product-row {
  grid-template-columns: 64px 1fr !important;
}

.stock-editor {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0e16;
  align-items: stretch;
}

.stock-gutter {
  margin: 0;
  padding: 0.75rem 0.35rem 0.75rem 0.45rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 280px;
  background: #0c1822;
  color: #6b7c8f;
  font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
  overflow: hidden;
  user-select: none;
  border-right: 1px solid var(--line);
  box-sizing: border-box;
}

.stock-editor textarea,
.lines-panel .stock-editor textarea,
#stock-lines {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  resize: none !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.lines-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn.tiny.danger {
  border-color: rgba(255, 89, 90, 0.4);
  color: #ff8b8c;
}

.lines-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: 0.9rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
  white-space: pre;
  overflow-wrap: normal;
  word-break: keep-all;
  word-wrap: normal;
  tab-size: 2;
}

.lines-panel .stock-editor textarea {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.75rem 0.9rem;
}

.lines-panel #guide-text {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  resize: none;
  overflow: auto;
}

.lines-panel #pull-line {
  min-height: 120px;
  max-height: 160px;
  height: 140px;
  resize: none;
  overflow: auto;
}

.lines-panel .field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
}

.lines-panel textarea:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 38, 255, 0.16);
}

.lines-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
}

.admin-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-meta span { color: var(--muted); font-size: 0.85rem; }

.admin-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
  margin-top: 0.35rem;
  min-width: 0;
}

.admin-price label {
  display: grid;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-cat-pick {
  display: grid;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.35rem;
  max-width: 16rem;
}

.admin-cat-pick select {
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
  font: 0.85rem/1.2 inherit;
  outline: none;
}

.cat-manager {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.cat-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cat-add-row input,
.cat-row input {
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: 0.9rem/1.2 inherit;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 14, 22, 0.45);
}

.cat-row .cat-count {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-price input {
  width: 5.6rem;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
  border-radius: 8px;
  padding: 0.38rem 0.45rem;
  font: 0.85rem/1.2 inherit;
  outline: none;
}

.admin-price input:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 38, 255, 0.16);
}

.admin-row.is-hidden {
  opacity: 0.55;
}

.stock-field { margin: 0; }
.stock-field input { text-align: center; font-weight: 700; }

.admin-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-card code {
  color: var(--purple);
  font-family: ui-monospace, monospace;
}

@media (max-width: 560px) {
  .admin-row {
    grid-template-columns: 56px 1fr;
  }
  .stock-field { grid-column: 1 / -1; }
}

.card-bottom {
  margin-top: 1.1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #0a0e16;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.qty-btn:hover { background: var(--accent-dim); color: var(--purple); }

.qty-input {
  width: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font: inherit;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

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

.qty.mini .qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.qty.mini .qty-btn {
  width: 1.7rem;
  height: 1.7rem;
}

.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
}

.price span {
  color: var(--purple);
  font-size: 0.95rem;
  margin-right: 0.08rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #1a2233;
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s, box-shadow 0.2s;
}

.btn:hover { background: #222c42; }

.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}

.btn.full { width: 100%; }
.btn.ghost { margin-top: 0.5rem; background: transparent; }

.drawer[hidden] { display: none; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.25rem;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.drawer-head h3 {
  font-family: var(--display);
  font-size: 1.25rem;
}

.drawer-head .modal-x { position: static; }

.cart-list {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 38, 0.8);
}

.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-meta strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-meta > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover { color: var(--purple); }

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.75rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: var(--muted);
}

.cart-total strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.25rem;
}

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-socials a:hover { color: var(--purple); }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(400px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.modal-panel h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.modal-item {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.modal-item strong { color: var(--text); }

.modal-x {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  outline: none;
}

.field input:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 38, 255, 0.16);
}

.hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 60;
  background: #151b2b;
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toast[hidden] { display: none; }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.modal-panel h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stock-panel .modal-x { top: 0.75rem; right: 0.85rem; }

.stock-list {
  display: grid;
  gap: 0.65rem;
}

.stock-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 38, 0.8);
}

.stock-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.stock-row strong {
  display: block;
  font-size: 0.92rem;
}

.stock-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stock-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.25);
  white-space: nowrap;
}

.stock-pill.low {
  background: rgba(234, 179, 8, 0.14);
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.25);
}

.stock-pill.oos {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.25);
}

.pay-panel { width: min(460px, 100%); }

.pay-panel:has(#pay-step-crypto:not([hidden])),
.pay-panel:has(#pay-step-crypto-verify:not([hidden])) {
  width: min(480px, 100%);
}

.pay-amount {
  margin: 0.2rem 0 0.35rem;
  color: var(--muted);
}

.pay-amount strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.35rem;
}

.pay-demo-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(192, 38, 255, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

.pay-methods {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 38, 0.85);
  cursor: pointer;
  transition: 0.15s ease;
}

.pay-method:has(input:checked) {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.1);
}

.pay-method input { accent-color: var(--purple-2); }

.pay-method-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pay-method-body small { color: var(--muted); font-size: 0.8rem; }

.pay-fields { margin-bottom: 0.9rem; }

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.crypto-box {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--muted);
  font-size: 0.88rem;
}

.crypto-box code {
  color: var(--text);
  font-size: 0.78rem;
  word-break: break-all;
}

.crypto-box strong {
  color: var(--text);
  font-size: 1.2rem;
}

.crypto-pick-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.crypto-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.crypto-asset {
  border: 1px solid var(--line);
  background: rgba(18, 24, 38, 0.85);
  color: var(--muted);
  border-radius: 12px;
  padding: 0.55rem 0.35rem;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.crypto-asset strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
}

.crypto-asset small {
  font-size: 0.68rem;
  color: var(--muted);
}

.crypto-asset.active,
.crypto-asset:hover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(124, 58, 237, 0.16);
  color: var(--text);
}

.crypto-checkout { text-align: center; }

.crypto-qr-wrap {
  display: inline-grid;
  place-items: center;
  margin: 0.75rem auto 1rem;
  padding: 0.7rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.crypto-amount-box {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(180deg, rgba(192, 38, 255, 0.16), rgba(18, 24, 38, 0.6));
  cursor: pointer;
  user-select: none;
}

.crypto-amount-box:hover {
  border-color: rgba(167, 139, 250, 0.55);
}

.crypto-qr-wrap img {
  display: block;
  width: 180px;
  height: 180px;
}

.crypto-amount-box span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.crypto-amount-box strong {
  font-size: 1.35rem;
  font-family: var(--display);
  color: var(--text);
  word-break: break-all;
}

.crypto-amount-box em {
  font-style: normal;
  color: var(--purple);
  font-size: 0.88rem;
  font-weight: 600;
}

.crypto-addr-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.crypto-addr-row code {
  flex: 1;
  text-align: left;
  font-size: 0.72rem;
  word-break: break-all;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
}

.crypto-checkout .field { text-align: left; margin-bottom: 0.75rem; }
.crypto-checkout .btn { margin-top: 0.35rem; }

.crypto-verify {
  text-align: center;
  padding: 1rem 0.25rem 0.5rem;
}

.crypto-verify-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 0deg, var(--purple-2), #7dffa0, transparent 65%);
  animation: crypto-spin 1.1s linear infinite;
  display: grid;
  place-items: center;
}

.crypto-verify-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(167, 139, 250, 0.5), transparent 55%);
  animation: crypto-spin 2.2s linear infinite reverse;
  opacity: 0.7;
}

.crypto-verify-core {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #0d121c;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.35);
}

.crypto-verify-core::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #7dffa0, var(--purple-2));
  animation: crypto-pulse 1.4s ease-in-out infinite;
}

@keyframes crypto-spin { to { transform: rotate(360deg); } }
@keyframes crypto-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.05); opacity: 1; }
}

.crypto-verify-steps {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0.85rem;
  text-align: left;
}

.crypto-verify-steps li {
  position: relative;
  padding: 0.45rem 0.65rem 0.45rem 2rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(18, 24, 38, 0.65);
}

.crypto-verify-steps li::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.crypto-verify-steps li.active {
  color: var(--text);
  border-color: rgba(192, 38, 255, 0.4);
}

.crypto-verify-steps li.active::before {
  background: var(--purple);
  box-shadow: 0 0 10px var(--glow);
  animation: crypto-pulse 1s ease-in-out infinite;
}

.crypto-verify-steps li.done {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.35);
}

.crypto-verify-steps li.done::before {
  background: #4ade80;
  box-shadow: none;
  animation: none;
}

.pay-loading, .pay-success {
  text-align: center;
  padding: 1.2rem 0.4rem 0.4rem;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(167, 139, 250, 0.2);
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pay-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.deliver-box {
  text-align: left;
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0e16;
}

.deliver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.deliver-head > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.btn.tiny {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

.deliver-box pre,
.deliver-scroll {
  margin: 0;
  white-space: pre;
  overflow: auto;
  max-height: 200px;
  padding: 0.55rem 0.45rem 0.55rem 0.15rem;
  font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.55) rgba(255, 255, 255, 0.06);
}

.deliver-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.deliver-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.deliver-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.75), rgba(124, 58, 237, 0.65));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.deliver-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.9), rgba(139, 92, 246, 0.85));
  background-clip: padding-box;
}

.deliver-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.reviews {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.reviews-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.reviews-head h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.reviews-head p { color: var(--muted); font-size: 0.95rem; }

.reviews-all-btn {
  display: inline-flex;
  margin-top: 0.85rem;
  text-decoration: none;
}

.reviews-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reviews-marquee.is-static {
  mask-image: none;
  -webkit-mask-image: none;
  overflow: visible;
}

.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  width: max-content;
  animation: none;
}

.reviews-track.is-scrolling {
  animation: reviews-scroll linear infinite;
}

.reviews-marquee.is-static .reviews-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  gap: 0.85rem;
  transform: none;
}

.reviews-track .review-card {
  width: min(280px, 78vw);
  flex: 0 0 auto;
  min-height: 220px;
  height: 220px;
  padding: 0.85rem 0.9rem;
  align-self: stretch;
}

.reviews-marquee.is-static .review-card {
  width: 100%;
  min-height: 220px;
  height: 100%;
}

.reviews-track .review-card p,
.review-card .review-body {
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 3.6em;
}

.reviews-marquee:hover .reviews-track.is-scrolling {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.reviews-grid .review-card {
  min-height: 220px;
  height: auto;
}

.reviews-page {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.review-card {
  display: grid;
  grid-template-rows: auto 40px minmax(3.6em, 1fr) auto;
  gap: 0.55rem;
  height: 100%;
  background: linear-gradient(180deg, #221a30 0%, #14101c 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  min-width: 0;
  overflow: hidden;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.review-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.9rem;
}

.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.review-stars {
  display: inline-flex;
  gap: 0.08rem;
  letter-spacing: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.review-stars .star.on {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.review-stars .star.off {
  color: rgba(255, 255, 255, 0.18);
}

.review-score {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  letter-spacing: 0.02em;
}

.review-product {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}

.bought-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bought-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
}

.bought-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(192, 38, 255, 0.1);
  border: 1px solid rgba(192, 38, 255, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.5rem 0.18rem 0.18rem;
}

.bought-item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(192, 38, 255, 0.35);
  flex-shrink: 0;
}

.bought-item em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.bought-qty {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 0.1rem;
}

.review-card p,
.review-card .review-body {
  color: var(--text);
}

.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  min-width: 0;
}

.review-foot span:first-child {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .reviews-marquee.is-static .reviews-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reviews-marquee.is-static .reviews-track {
    grid-template-columns: 1fr;
  }
}

.auto-tag {
  color: #fcd34d;
  font-weight: 600;
}

@media (max-width: 520px) {
  .crypto-asset-grid { grid-template-columns: repeat(2, 1fr); }
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin: 0.4rem 0 1rem;
}

.stars button {
  border: 0;
  background: transparent;
  color: #3f3f46;
  font-size: 1.55rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.stars button.on { color: #7dffa0; }

.review-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  outline: none;
  resize: vertical;
}

.review-panel textarea:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 38, 255, 0.16);
}

.review-products {
  color: var(--purple);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

@media (max-width: 860px) {
  .shop-category-grid { grid-template-columns: 1fr; }
  .card.featured { order: -1; }
  .reviews-grid { grid-template-columns: 1fr; }
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 14, 22, 0.65);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: rgba(192, 38, 255, 0.22);
  color: var(--text);
}

#apology-modal { z-index: 80; }

.apology-panel {
  width: min(440px, 100%);
  text-align: center;
  animation: apology-in 0.35s ease-out;
}

.apology-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), var(--purple-2));
  box-shadow: 0 0 28px var(--glow);
}

.apology-panel h3 { margin-bottom: 0.65rem; }

.apology-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.apology-reward {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(192, 38, 255, 0.28);
  background: rgba(192, 38, 255, 0.1);
}

.apology-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}

.apology-actions .btn {
  display: block;
  width: 100%;
  margin: 0 !important;
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.25;
  padding: 0.8rem 1rem;
}

.apology-panel .modal-x {
  z-index: 3;
}

.trust {
  max-width: 1100px;
  margin: 0 auto 2.25rem;
  padding: 0 1.25rem;
}

.trust-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(192, 38, 255, 0.45);
  animation: trust-pulse 1.8s ease-out infinite;
}

@keyframes trust-pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 38, 255, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(192, 38, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 38, 255, 0); }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.trust-item {
  background: linear-gradient(180deg, #221a30 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.1rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
}

@keyframes apology-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .lang-switch { order: -1; }
}

/* Stake-like nav chips */
.nav-link, .social, .cart-btn {
  border-radius: 8px;
  background: var(--card);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(192, 38, 255, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.arcade {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.arcade-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.arcade-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.arcade-head p {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.arcade-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.arcade-balance strong {
  color: var(--accent);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.arcade-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.arcade-tab {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
}

.arcade-tab:hover { color: var(--text); }

.arcade-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(192, 38, 255, 0.35);
}

.arcade-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.arcade-panel[hidden] { display: none; }

.game-stage {
  background: #09070f;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.dice-stage { padding: 1.25rem; gap: 1rem; align-content: center; }

.dice-meter {
  position: relative;
  width: min(100%, 420px);
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 89, 90, 0.35);
  overflow: visible;
}

.dice-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9333ea, #c026ff);
}

.dice-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 22px;
  background: #fff;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.dice-readout {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dice-readout strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
}

.coin-stage {
  perspective: 900px;
}

.coin3d {
  width: 148px;
  height: 148px;
  position: relative;
  transform-style: preserve-3d;
}

.coin3d-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.coin-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.coin-tails { transform: rotateY(180deg); }

.coin-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.coin3d.win .coin-face {
  box-shadow: 0 0 0 3px rgba(192, 38, 255, 0.35), 0 14px 40px rgba(192, 38, 255, 0.25);
}

.coin3d.lose .coin-face {
  box-shadow: 0 0 0 3px rgba(255, 89, 90, 0.3), 0 14px 34px rgba(0, 0, 0, 0.45);
}

.coin-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #09070f;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}

.coin-side-btn:hover { color: var(--text); }

.coin-side-btn.active {
  border-color: rgba(192, 38, 255, 0.55);
  color: var(--text);
  background: var(--accent-dim);
}

.coin-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.35);
  color: #1a1224;
}

.coin-mini svg {
  width: 16px;
  height: 16px;
  display: block;
}

.coin-mini.heads {
  background: radial-gradient(circle at 35% 30%, #f4f0ff, #c8c4d8 55%, #6b6580);
  color: #1a1224;
}

.coin-mini.tails {
  background: radial-gradient(circle at 35% 30%, #f0e6ff, #a855f7 55%, #4c1d6b);
  color: #12081c;
}

.crash-stage { padding: 0; }
.crash-stage canvas { width: 100%; height: 220px; display: block; }

.crash-multi {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.crash-multi.bust { color: var(--danger); }

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}

.field.compact { margin-bottom: 0; }
.field.compact em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.game-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.game-meta strong { color: var(--text); }

.coin-pick, .crash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}


.game-msg {
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.game-msg.win { color: var(--accent); }
.game-msg.lose { color: var(--danger); }

@media (max-width: 860px) {
  .arcade-panel { grid-template-columns: 1fr; }
}

.invoice-body .invoice-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.invoice-card {
  background: rgba(13, 18, 28, 0.92);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.18);
}

.invoice-card h1 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.35rem;
  text-align: center;
}

.invoice-meta {
  text-align: center;
}

.invoice-block {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0e16;
}

.invoice-block h2,
.invoice-review h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.invoice-guide {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.invoice-guide a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.invoice-guide a:hover {
  text-decoration: underline;
}

.invoice-support {
  margin: 0.75rem 0 0;
}

.invoice-body .deliver-scroll {
  max-height: 280px;
}

.invoice-review {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.invoice-reviewed {
  margin-top: 1rem;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
}

.invoice-missing {
  text-align: center;
}

.invoice-nav {
  margin-bottom: 0.5rem;
}
