:root {
  color-scheme: dark;
  --bg: #0b0a0c;
  --panel: #100f12;
  --surface: #131216;
  --surface-hover: #1c1a22;
  --text: #f5f6f8;
  --secondary: #c9c2c2;
  --muted: #9b9797;
  --faint: #6b6767;
  --line: rgba(255,255,255,.14);
  --line-soft: rgba(255,255,255,.09);
  --accent: #f5f6f8;
  --accent-hover: #e0e3e8;
  --chrome-red: #ff2d2d;
  --chrome-red-glow: rgba(255,45,45,.25);
  --chrome-black: #0a0a0c;
  --gold: #d4af37;
  --gold-glow: rgba(212,175,55,.15);
  --gold-subtle: rgba(212,175,55,.06);
  --purple: #a855f7;
  --purple-glow: rgba(168,85,247,.2);
  --purple-subtle: rgba(168,85,247,.08);
  --purple-deep: #3a1f6e;
  --purple-deep-2: #240f3f;
  --red: #ff747b;
  --radius: 14px;
  --border: rgba(255,255,255,.14);
  --green: #35c98a;
  --plum: #4c1d95;
  --aubergine: #2e1a4a;
  --ink: #1a0a2e;
  --font: "Fredoka One", "Inter", "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  font-family: var(--font);
  font-feature-settings: normal;
  font-variation-settings: "wght" 500;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(168,85,247,.16), transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(255,45,45,.07), transparent 34rem),
    radial-gradient(ellipse at 12% 92%, rgba(212,175,55,.05), transparent 32rem),
    linear-gradient(180deg, #0b0a0c 0%, #100d10 45%, #0b0a0c 100%);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ── Shell container: centres and constrains the app ── */
.shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Luxury purple background layer ── */
:root {
  --bg-lean: #0b0a0c;
  --bg-primary: #100d10;
  --bg-elevated: #141115;
  --accent-glow: rgba(168,85,247,.12);
  --purple-glow-subtle: rgba(168,85,247,.06);
}

/* ── Rounded display font for cartoony chrome letters ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400;500;600;700&display=swap');

:root {
  font-family: "Fredoka One", "Inter", "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: normal;
  font-variation-settings: "wght" 500;
}

body {
  font-family: "Fredoka One", "Inter", "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Base background with luxury purple tint ── */
body {
  background:
    radial-gradient(ellipse at 12% 18%, rgba(168,85,247,.10), transparent 34rem),
    radial-gradient(ellipse at 88% 82%, rgba(212,175,55,.06), transparent 30rem),
    radial-gradient(ellipse at 50% 50%, rgba(255,45,45,.06), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(168,85,247,.04) 0%, transparent 60%),
    linear-gradient(180deg, #0b0a0c 0%, #100d10 45%, #0b0a0c 100%);
}

/* ── Topbar brand (cartoony chrome letters) ── */
.brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(168,85,247,.08), rgba(255,45,45,.04));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-mark {
  font-size: 30px;
  animation: float 3s ease-in-out infinite;
  color: var(--chrome-red);
  box-shadow: 0 0 12px rgba(255,45,45,.2);
}

.brand-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--text);
}

.brand-name .echelon-red {
  background: linear-gradient(135deg, #fff 30%, var(--chrome-red) 100%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255,45,45,.25), 0 0 48px rgba(255,45,45,.12);
  font-family: "Fredoka One", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Cart badge glow ── */
.cart-badge-glow {
  position: relative;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.cart-badge-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,45,45,.3), rgba(168,85,247,.2));
  z-index: -1;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Animated gradient hero ── */
.hero-grad {
  background: linear-gradient(135deg, rgba(168,85,247,.15) 0%, rgba(255,45,45,.08) 50%, rgba(212,175,55,.06) 100%);
  background-size: 300% 300%;
  animation: gradient-shine 6s ease-in-out infinite;
}

@keyframes gradient-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Glow pulse keyframes (cartoony buttons) ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,45,45,.2), 0 0 24px rgba(168,85,247,.08); }
  50% { box-shadow: 0 0 16px rgba(255,45,45,.3), 0 0 32px rgba(168,85,247,.12); }
}

@keyframes gradient-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,45,45,.035) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(168,85,247,.05) 100%);
}

body { font-family: var(--font), cursive; }

/* Cartoony decorative elements */
.cartoon-glow { animation: cartoonPulse 2.5s ease-in-out infinite; }
@keyframes cartoonPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,45,45,.15); }
  50% { box-shadow: 0 0 16px rgba(255,45,45,.25), 0 0 32px rgba(255,45,45,.10); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes wobble {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(2px) rotate(-1deg); }
  75% { transform: translateX(-2px) rotate(1deg); }
}
@keyframes rubber {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes sparkle {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.5); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.8); }
  70% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes springIn {
  0% { opacity: 0; transform: scale(.7) translateY(14px); }
  60% { transform: scale(1.05) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-1deg); }
  40% { transform: translateX(4px) rotate(1deg); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,.35); }
  50% { box-shadow: 0 0 0 7px rgba(168,85,247,0); }
}
@keyframes shine {
  0% { transform: translateX(-120%); }
  60% { transform: translateX(20%); }
  100% { transform: translateX(120%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(168,85,247,.12); }
  50% { box-shadow: 0 0 14px rgba(168,85,247,.22); }
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(24px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.sparkle { position: relative; }
.sparkle::before, .sparkle::after {
  content: "✦"; position: absolute; pointer-events: none;
  font-size: 10px; color: var(--gold);
  animation: sparkle 1.5s ease-in-out infinite;
}
.sparkle::before { top: -6px; left: -8px; animation-delay: 0s; }
.sparkle::after { bottom: -6px; right: -8px; animation-delay: .5s; }

/* Red carpet decorative border */
.red-carpet {
  display: flex; justify-content: center; padding: 6px 0; margin: 12px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,45,45,.12) 10%, rgba(255,45,45,.18) 50%, rgba(255,45,45,.12) 90%, transparent 100%);
  border-radius: 4px;
}

/* Luxury panel with purple accents (chrome-black base) */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  box-shadow: 0 6px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.panel-purple {
  border-color: rgba(168,85,247,.2);
  background: linear-gradient(180deg, rgba(168,85,247,.09) 0%, rgba(168,85,247,.03) 100%);
  box-shadow: 0 6px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(168,85,247,.05);
}
.panel-glow { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 6px 30px rgba(168,85,247,.12); }

/* Luxury buttons with purple accents */
.button-purple {
  border-color: rgba(168,85,247,.45);
  background: linear-gradient(135deg, #432a6d, #20102c);
  color: var(--purple);
  box-shadow: 0 2px 10px rgba(168,85,247,.14), inset 0 1px 0 rgba(255,255,255,.06);
}
.button-purple:hover {
  background: linear-gradient(135deg, #523582, #2a1a44);
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 4px 18px rgba(168,85,247,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
.button-purple:active {
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(168,85,247,.12);
}

/* Cartoony buttons with bounce */
.button-cartoon {
  animation: bounce 2s ease-in-out infinite;
  border-color: rgba(255,45,45,.5);
  background: linear-gradient(135deg, #2c1a1a, #140b0c);
  color: var(--chrome-red);
  box-shadow: 0 2px 10px rgba(255,45,45,.16);
}
.button-cartoon:hover {
  animation: none;
  background: linear-gradient(135deg, #3a1f1f, #220f0f);
  border-color: rgba(255,45,45,.7);
  box-shadow: 0 5px 20px rgba(255,45,45,.26), 0 0 0 1px rgba(255,45,45,.10);
  transform: translateY(-1px);
}
.button-cartoon:active {
  animation: none;
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(255,45,45,.14);
}

/* Brand primary button (purple) */
.button-brand {
  border-color: rgba(168,85,247,.45);
  background: linear-gradient(135deg, #432a6d, #20102c);
  color: var(--purple);
  box-shadow: 0 2px 8px rgba(168,85,247,.14), inset 0 1px 0 rgba(255,255,255,.06);
}
.button-brand:hover {
  background: linear-gradient(135deg, #523582, #2a1a44);
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 4px 18px rgba(168,85,247,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
.button-brand:active {
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(168,85,247,.12);
}

/* Purple accent elements */
.purple-accent { color: var(--purple); }
.purple-glow { box-shadow: 0 0 8px rgba(168,85,247,.15); }
.gold-accent { color: var(--gold); }

/* Cartoony chrome-themed product cards */
.product-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, #16141a 0%, #0f0d11 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .16s, box-shadow .16s;
  animation: fadeInUp .3s ease-out;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(168,85,247,.08) 0%, rgba(255,45,45,.04) 25%, rgba(255,255,255,.02) 50%, rgba(168,85,247,.06) 100%);
  pointer-events: none;
  animation: shine 4s ease-in-out infinite;
}
.product-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,.32), 0 0 24px rgba(168,85,247,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.product-card:hover .product-shorting { color: var(--secondary); }
.product-card:hover .product-name { color: var(--text); }
.product-card .product-name .sparkle { display: inline-block; animation: bounce 2s ease-in-out infinite; }
.product-card .product-name .sparkle::before { content: "º6"; }
.product-card:hover::before { animation: shine 2s ease-in-out infinite; }
.product-card:active { transform: translateY(0) scale(.995); }
.product-card .product-shorting { color: var(--muted); font-size: 10px; }
.product-card .product-seller { color: var(--purple); font-weight: 500; }
.product-card .product-price { color: var(--text); font: 600 16px/1 "DM Mono", ui-monospace, monospace; letter-spacing: -.02em; }
.product-card .product-price small { font-size: 11px; color: var(--muted); }
.product-card .buy-row { display: flex; align-items: center; gap: 8px; }
.product-card .stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(168,85,247,.12); color: var(--purple);
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid rgba(168,85,247,.3);
}
.product-card .stock-badge::before { content: "º6"; font-size: 9px; }
.product-card .stock-badge.out {
  background: rgba(255,45,45,.1); color: #ff7a7a;
  border-color: rgba(255,45,45,.3);
}
.product-card .stock-badge.out::before { color: #ff7a7a; }
.product-card .price-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(168,85,247,.14));
  color: var(--gold); font-size: 11px; font-weight: 600;
  border: 1px solid rgba(212,175,55,.35);
}
.product-card .product-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.product-card .product-meta { font-size: 11px; color: var(--muted); }
.product-card .sticker {
  position: absolute; top: 8px; right: 8px;
  padding: 6px 8px; border-radius: 6px;
  background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.25);
  color: var(--purple); font-size: 9px; font-weight: 600;
}
.product-card .featured {
  border-color: rgba(255,45,45,.3);
  box-shadow: 0 6px 20px rgba(255,45,45,.1), inset 0 1px 0 rgba(255,45,45,.04);
}
.product-card .featured:hover {
  box-shadow: 0 10px 30px rgba(255,45,45,.18), 0 0 24px rgba(168,85,247,.12);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 50%, rgba(168,85,247,.05) 100%);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0,0,0,.32), 0 0 20px rgba(168,85,247,.14), inset 0 1px 0 rgba(255,255,255,.08);
}
.product-card:active { transform: translateY(0) scale(.995); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.product-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.product-name .product-shorting { color: var(--muted); font-size: 10px; }
.product-batch { color: var(--muted); font-size: 11px; font-weight: 500; }
.product-seller { font-size: 11px; color: var(--purple); font-weight: 500; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-price { color: var(--text); font: 600 16px/1 "DM Mono", ui-monospace, monospace; letter-spacing: -.02em; }
.product-price small { font-size: 11px; color: var(--muted); }
.buy-row { display: flex; align-items: center; gap: 8px; }
.stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(168,85,247,.1); color: var(--purple);
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid rgba(168,85,247,.25);
}
.stock-badge::before { content: "✦"; font-size: 9px; }
.stock-badge.out {
  background: rgba(255,45,45,.1); color: #ff7a7a;
  border-color: rgba(255,45,45,.3);
}
.stock-badge.out::before { color: #ff7a7a; }
.price-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(168,85,247,.12));
  color: var(--gold); font-size: 11px; font-weight: 600;
  border: 1px solid rgba(212,175,55,.3);
}
.product-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.product-meta { font-size: 11px; color: var(--muted); }

/* Cartoony cart items - chrome themed with purple accents */
.cart-item {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: transform .16s, box-shadow .16s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  position: relative; overflow: hidden;
}
.cart-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--chrome-red), transparent);
  animation: shine 2s ease-in-out infinite;
}
.cart-item:hover { transform: translateX(5px) translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.cart-item .cart-item-name { display: flex; align-items: center; gap: 8px; }
.cart-item .cart-item-meta { color: var(--muted); font-size: 12px; }
.cart-item .cart-item-price { color: var(--text); font: 600 14px "DM Mono", monospace; }
.cart-item .cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item .cart-item-qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.cart-item .cart-item-qty button:hover { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.3); }
.cart-item .cart-item-remove { color: var(--muted); font-size: 16px; cursor: pointer; }
.cart-item .cart-item-remove:hover { color: var(--red); }
.cart-item .cart-item-hint { font-size: 10px; color: var(--faint); margin-top: 4px; }

/* Luxury red carpet effect for featured items */
.featured-card {
  border-color: rgba(255,45,45,.3);
  background: linear-gradient(180deg, rgba(255,45,45,.05) 0%, rgba(255,45,45,.02) 100%);
  box-shadow: 0 4px 20px rgba(255,45,45,.12), inset 0 1px 0 rgba(255,45,45,.05);
}

/* Luxury headings with gold */
.luxury-heading { color: var(--text); }
.luxury-heading h2 { color: var(--text); }

/* Red carpet divider */
.red-carpet-divider {
  display: flex; align-items: center; gap: 12px; padding: 6px 0; margin: 12px 0;
  color: var(--chrome-red); font-size: 12px; opacity: .8;
}
.red-carpet-divider::before, .red-carpet-divider::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,45,45,.2), transparent);
}

/* Cartoony toast with bounce */
.toast {
  animation: springIn .28s ease-out;
  position: fixed; bottom: 22px; right: 22px; z-index: 10;
  max-width: min(420px, calc(100vw - 40px));
}

/* Cartoony modal with bounce + purple corner shine */
.modal {
  animation: popIn .3s ease-out;
  width: min(480px, calc(100% - 28px)); padding: 27px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
  color: var(--text); box-shadow: 0 24px 90px rgba(0,0,0,.65);
}
.modal::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.modal::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-bottom: 14px solid var(--purple); opacity: .25;
}
.modal-mark {
  display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 18px;
  border-radius: 50%; background: linear-gradient(135deg, rgba(255,45,45,.2), rgba(255,45,45,.08));
  border: 1px solid rgba(255,45,45,.3); box-shadow: 0 0 12px rgba(255,45,45,.15);
}
.modal h2 { margin-bottom: 8px; font-size: 21px; letter-spacing: -.5px; font-weight: 500; }
.issued-code-wrap { display: flex; gap: 8px; align-items: center; margin: 18px 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.3); }
.issued-code-wrap code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--text); font: 12px/1.6 "DM Mono", monospace; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 10; max-width: min(420px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%); box-shadow: 0 10px 35px rgba(0,0,0,.4); color: var(--text); font-size: 12px; }

/* Cartoony nav link hover */
.nav-link:hover, .side-link:hover { transform: translateY(-1px); }

/* Cartoony section head */
.section-head { animation: float 3s ease-in-out infinite; }
.section-head { position: relative; overflow: hidden; }
.section-head::before {
  content: "";
  position: absolute; bottom: -4px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--chrome-red), var(--purple), transparent);
  border-radius: 2px; opacity: .5;
}

/* Cartoony balance card - chrome themed with purple glow */
.balance-card {
  animation: float 2.5s ease-in-out infinite;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,.18), 0 0 0 1px rgba(168,85,247,.04);
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.08) 0%, transparent 70%);
  pointer-events: none;
}
.balance-card::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,45,.05) 0%, transparent 70%);
  pointer-events: none;
}
.balance-card .balance-amount { color: var(--text); font: 600 22px "DM Mono", monospace; letter-spacing: -.05em; }
.balance-card .balance-label { color: var(--muted); font-size: 11px; }
.balance-card .balance-detail { color: var(--secondary); font-size: 11px; margin-top: 4px; }

/* Cartoony status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px;
  color: var(--secondary); font: 400 9px "DM Mono", monospace; text-transform: uppercase; white-space: nowrap;
}
.status-pill.paid { border-color: rgba(53,201,138,.24); color: #67d9a9; background: rgba(53,201,138,.05); }
.status-pill.pending { color: #e7bd6d; border-color: rgba(231,189,109,.2); background: rgba(231,189,109,.05); }
.status-pill.awaiting_approval { color: #e7bd6d; border-color: rgba(231,189,109,.3); background: rgba(231,189,109,.05); }
.status-pill.failed, .status-pill.expired { color: #ff9ca2; border-color: rgba(255,116,123,.2); }

/* Cartoony auth layout - properly bounded from app screen */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr minmax(350px, 430px);
  align-items: center;
  gap: 9%;
  min-height: calc(100vh - 150px);
  padding: 60px 4% 70px;
  max-width: 1240px;
  margin: 0 auto;
}
.auth-layout .hero-copy { max-width: 590px; }
.auth-layout .hero-copy h1 { margin: 0 0 22px; font-size: clamp(42px, 6vw, 68px); line-height: .99; letter-spacing: -.065em; font-weight: 500; }
.auth-layout .hero-copy h1 .echelon-red {
  background: linear-gradient(135deg, #fff 30%, var(--chrome-red) 100%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255,45,45,.25), 0 0 48px rgba(255,45,45,.12);
}
.auth-layout .hero-copy h1 { font-family: var(--font), cursive; }
.auth-layout .hero-subtitle { max-width: 530px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.auth-layout .hero-copy { max-width: 590px; }
.auth-layout .sparkle-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid rgba(168,85,247,.3);
  border-radius: 99px; background: rgba(168,85,247,.06); color: var(--purple);
  font: 600 11px var(--mono); letter-spacing: .06em; margin-top: 16px;
}
.auth-layout .sparkle-badge::before { content: 'º6'; animation: sparkle 1.5s ease-in-out infinite; }
.auth-layout .trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-layout .trust-item { font-size: 12px; color: var(--muted); }
.auth-layout .trust-icon { color: var(--chrome-red); font-size: 16px; }
.auth-layout .trust-item strong { color: var(--secondary); display: block; }
.auth-layout .hero-copy { max-width: 590px; }
.auth-layout .hero-copy h1 { margin: 0 0 22px; font-size: clamp(42px, 6vw, 68px); line-height: .99; letter-spacing: -.065em; font-weight: 500; }
.auth-layout .hero-copy h1 .echelon-red {
  background: linear-gradient(135deg, #fff 30%, var(--chrome-red) 100%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255,45,45,.25), 0 0 48px rgba(255,45,45,.12);
}
.auth-layout .hero-copy h1 { font-family: var(--font), cursive; }
.auth-layout .hero-subtitle { max-width: 530px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.auth-layout .hero-copy { max-width: 590px; }

/* Cartoony admin login layout */
.admin-login-layout {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  align-items: center;
  gap: 10%;
  min-height: calc(100vh - 150px);
  padding: 60px 5% 70px;
}
.admin-login-copy .hero-subtitle { max-width: 440px; }
.admin-login-panel { padding: 27px; }
.admin-login-panel h2 { margin: 0 0 19px; font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.admin-login-panel .micro-note { display: block; margin-top: 15px; }
.security-callout, .admin-status { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--muted); font-size: 11px; }
.admin-status { padding: 9px 11px; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); }
.admin-workspace .side-nav { min-height: 470px; }

/* Cartoony auth panel */
.auth-panel { padding: 27px; }
.panel-auth { padding: 27px; }

/* Cartoony form */
.form-stack { display: flex; flex-direction: column; gap: 10px; }

/* Cartoony form fields */
.field { margin-top: 10px; }
.field-label { display: block; color: var(--secondary); font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.field-input {
  width: 100%; color: var(--text); background: rgba(0,0,0,.28); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 12px; outline: none;
}
.field-input:focus {
  border-color: rgba(168,85,247,.5); background: rgba(0,0,0,.4);
  box-shadow: 0 0 0 3px rgba(168,85,247,.12), 0 0 8px rgba(168,85,247,.06);
}
.field-error { color: var(--red); font-size: 12px; margin-top: 8px; }

/* Cartoony form hint */
.form-hint { color: var(--muted); font-size: 11px; line-height: 1.6; }
.micro-note { margin: 0; font-size: 10px; }
.fine-print { margin: 18px 0 0; color: var(--faint); text-align: center; font-size: 10px; }

/* Cartoony captcha box */
.captcha-box { padding: 13px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.captcha-box img { border-radius: 6px; background: #0a0a0a; }

/* Cartoony login/signup toggle */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(0,0,0,.23); margin-bottom: 23px; }
.segment { border: 0; background: transparent; color: var(--muted); border-radius: 5px; padding: 8px; font-size: 12px; cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.segment.active { color: var(--text); background: #212226; border-color: rgba(255,255,255,.12); }

/* Cartoony buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 9px; font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.16) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%); transition: transform .8s ease;
}
.button:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.button:hover::after { transform: translateX(100%); }
.button:active { transform: translateY(1px); }
.button-primary { border-color: rgba(255,255,255,.5); background: linear-gradient(135deg, #2e2e2e, #1a1a1a); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05); }
.button-primary:hover { background: linear-gradient(135deg, #3a3a3a, #222222); border-color: rgba(255,255,255,.65); box-shadow: 0 4px 16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); }
.button-primary:active { background: linear-gradient(135deg, #1f1f1f, #0f0f0f); }
.button-red { border-color: rgba(255,45,45,.5); background: linear-gradient(135deg, #2d1a1a, #1a0f0f); color: var(--chrome-red); box-shadow: 0 2px 8px rgba(255,45,45,.15); }
.button-red:hover { background: linear-gradient(135deg, #3a1f1f, #220f0f); border-color: rgba(255,45,45,.7); box-shadow: 0 4px 16px rgba(255,45,45,.25); }
.button-red:active { transform: translateY(1px); }
.button-quiet { background: transparent; border-color: var(--line); }
.button-quiet:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.button-wide { width: 100%; margin-top: 7px; min-height: 42px; }
.button-small { padding: 7px 11px; font-size: 11px; }
.text-button { background: none; border: none; padding: 7px 0 0; color: var(--text); font-size: 11px; cursor: pointer; }
.text-button:hover { color: #fff; }
.hidden { display: none !important; }

/* Cartoony notice */
.notice { padding: 10px 12px; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.04); color: var(--secondary); font-size: 12px; }
.notice.error { border-color: rgba(255,116,123,.3); background: rgba(255,116,123,.08); color: #ffb8bc; }

/* Cartoony app screen - properly separated from auth */
.app-screen {
  padding: 38px 0 52px;
  min-height: calc(100vh - 150px);
  max-width: 1240px;
  margin: 0 auto;
}
.app-screen.hidden { display: none !important; }
.app-screen.hidden { display: none !important; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.dashboard-heading h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.055em; font-weight: 500; }
.dashboard-heading .eyebrow { margin-bottom: 9px; }
.muted { color: var(--muted); font-size: 12px; margin-bottom: 0; }

/* Cartoony input focus */
input:focus, textarea:focus {
  border-color: rgba(168,85,247,.5); background: rgba(0,0,0,.4);
  box-shadow: 0 0 0 3px rgba(168,85,247,.12), 0 0 8px rgba(168,85,247,.06);
}

/* Cartoony product price */
.product-price { color: var(--text); font: 500 16px/1 "DM Mono", ui-monospace, monospace; }

/* Cartoony payment icon */
.payment-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; font: 500 16px "DM Mono", monospace; }
.payment-icon.btc { background: rgba(247,147,26,.1); color: #f1a84b; }
.payment-icon.cash { background: rgba(53,201,138,.09); color: var(--green); }

/* Cartoony invoice card */
.invoice-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.005) 100%); margin-bottom: 9px; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.invoice-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.invoice-head strong { font-size: 12px; font-weight: 500; }
.invoice-address { display: block; padding: 10px; margin: 10px 0; background: rgba(0,0,0,.28); border: 1px solid var(--line-soft); border-radius: 6px; overflow-wrap: anywhere; color: var(--text); font: 11px/1.6 "DM Mono", monospace; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Cartoony list card */
.list-card { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.005) 100%); padding: 13px 15px; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.list-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; cursor: pointer; }
.list-card-title { font-size: 12px; font-weight: 500; margin: 0; }
.list-card-meta { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.list-card-data { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.list-card-data code { color: var(--text); font: 11px "DM Mono", monospace; }

/* Cartoony batch form */
.batch-form, .credit-form { padding: 17px; margin-bottom: 18px; }
.batch-form label, .credit-form label { margin-bottom: 7px; }

/* Cartoony form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 15px; }

/* Cartoony form foot */
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }

/* Cartoony table wrap */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }

/* Cartoony table */
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line-soft); font-size: 10px; white-space: nowrap; }
th { color: var(--faint); font: 500 9px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--secondary); }
tr:last-child td { border-bottom: 0; }
td code { color: var(--text); font: 10px "DM Mono", monospace; }

/* Cartoony table buttons */
.table-wrap .button { margin-right: 6px; }
.table-wrap .button:last-child { margin-right: 0; }
td .button { padding: 7px 12px; font-size: 11px; border-radius: 6px; }

/* Cartoony batch card */
.batch-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; }
.batch-stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.batch-stat-row strong { color: var(--secondary); font-weight: 500; }
.batch-actions { display: flex; align-items: center; gap: 8px; }
.batch-details { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border); }
.batch-details.hidden { display: none; }
.batch-details-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.batch-details-table { overflow-x: auto; }
.batch-details-table .table { margin-top: 0; }

/* Cartoony admin body */
.admin-body .topbar { min-height: 70px; }

/* Cartoony shop layout */
.shop-layout { display: grid; grid-template-columns: minmax(320px, 400px) minmax(260px, 1fr); gap: 18px; align-items: start; }
.shop-selectors { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.shop-selectors label { margin: 0; }
.shop-label { margin-top: 8px; }
.shop-products { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.shop-batch-group {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.shop-batch-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; user-select: none; }
.shop-batch-header:hover { background: rgba(255,255,255,.03); }
.shop-batch-title { font-size: 12px; font-weight: 500; }
.shop-batch-count { font-size: 11px; color: var(--muted); }
.shop-batch-items { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.shop-batch-items.hidden { display: none; }
.shop-product {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.15);
  transition: background .12s, transform .12s;
}
.shop-product:hover { background: rgba(255,255,255,.035); }
.shop-product-name { font-weight: 500; }
.shop-product-meta { color: var(--muted); font-size: 12px; }
.shop-product-price { color: var(--text); font: 500 14px/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: -.02em; }
.shop-product-actions { display: flex; gap: 8px; align-items: center; }
.shop-cart { padding: 18px; }
.cart-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cart-total strong { font: 600 18px "DM Mono", monospace; }

/* Brand topbar mark */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 18px; }
.topbar { position: relative; overflow: hidden; }
.topbar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--chrome-red), var(--purple), transparent);
  opacity: .3;
  animation: shimmer 4s ease-in-out infinite;
}
.topbar .brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; letter-spacing: -.35px; white-space: nowrap; }
.topbar .brand .brand-mark {
  display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px;
  background: linear-gradient(135deg, var(--chrome-red), #d4af37); color: #fff;
  font-weight: 600; border: 1px solid var(--line);
}
.topbar .brand .brand-name .echelon-red {
  background: linear-gradient(135deg, #fff 30%, var(--chrome-red) 100%, #d4af37 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.topbar .top-actions { display: flex; align-items: center; gap: 10px; }
.brand-top { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--chrome-red), #d4af37); color: #fff;
  font-size: 16px; box-shadow: 0 2px 10px rgba(255,45,45,.3), 0 0 0 1px rgba(255,45,45,.15);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.brand-name .echelon-red {
  background: linear-gradient(135deg, #fff 30%, var(--chrome-red) 100%, #d4af37 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Cartoony side-nav (cartridge track + pill links) */
.side-nav {
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.side-label {
  display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.side-link .side-icon { font-size: 14px; }
.side-link .side-label-text { flex: 1; }
.side-link.active {
  background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(168,85,247,.06));
  border-color: rgba(168,85,247,.4); box-shadow: 0 0 0 1px rgba(168,85,247,.15), 0 2px 8px rgba(168,85,247,.10);
}
.side-link:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

/* Cartoony quantity stepper */
.qty-input {
  width: 58px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04);
  color: var(--text); text-align: center; font: 600 15px "DM Mono", monospace; outline: none;
}
.qty-input:focus { border-color: rgba(168,85,247,.5); box-shadow: 0 0 0 3px rgba(168,85,247,.12); }

/* Cartoony deco sparkles (CSS-only canvas) */
.deco-sparkles { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.deco-sparkles span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: sparkle 3s ease-in-out infinite; }

/* Cartoony topup layout */
/* Cartoony topup layout - chrome themed with purple accents */
.topup-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(230px,.8fr); gap: 14px; }
.topup-form { padding: 19px; position: relative; overflow: hidden; }
.topup-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--chrome-red), var(--gold)); opacity: .5; animation: shine 3s ease-in-out infinite; }
.topup-form::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,45,45,.15), transparent); }
.payment-choice:hover { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.3); }
.topup-form { padding: 19px; }
.money-input { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: rgba(0,0,0,.28); border-radius: 8px; padding-left: 12px; }
.money-input span { color: var(--muted); font: 13px "DM Mono", monospace; }
.money-input input { border: 0; background: transparent; padding-left: 2px; }
.payment-methods { display: grid; gap: 8px; margin: 19px 0 14px; }
.payment-choice {
  display: flex; align-items: center; gap: 11px; width: 100%; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(255,255,255,.02); padding: 11px; text-align: left;
  cursor: pointer; transition: background .12s, border-color .12s;
}
.payment-choice:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.15); }
.payment-choice strong, .payment-choice small { display: block; }
.payment-choice strong { font-size: 12px; font-weight: 500; }
.payment-choice small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.choice-arrow { margin-left: auto; color: var(--faint); }
.payment-info { padding: 19px; }
.info-icon { color: var(--accent-hover); font-size: 19px; }
.payment-info h3 { margin: 15px 0 7px; font-size: 14px; font-weight: 500; }
.payment-info p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.payment-note { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line-soft); color: var(--secondary); font-size: 10px; }

/* Cartoony invoice list */
.invoice-list { margin-top: 14px; }

/* Cartoony history heading */
.history-heading { margin-top: 27px; }
.stack-list { display: grid; gap: 9px; }

/* Cartoony list card */
.list-card { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.005) 100%); padding: 13px 15px; box-shadow: 0 1px 6px rgba(0,0,0,.12); }

/* Cartoony status pills */
.status-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; color: var(--secondary); font: 400 9px "DM Mono", monospace; text-transform: uppercase; white-space: nowrap; }
.status-pill .pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulseGlow 2s ease-in-out infinite; }
.status-pill.paid .pill-dot { background: #67d9a9; }
.status-pill.pending .pill-dot { background: #e7bd6d; }
.status-pill.awaiting_approval .pill-dot { background: #e7bd6d; animation-delay: .5s; }
.status-pill.failed .pill-dot, .status-pill.expired .pill-dot { background: #ff9ca2; }
.status-pill.paid { border-color: rgba(53,201,138,.24); color: #67d9a9; background: rgba(53,201,138,.05); }
.status-pill.pending { color: #e7bd6d; border-color: rgba(231,189,109,.2); background: rgba(231,189,109,.05); }
.status-pill.awaiting_approval { color: #e7bd6d; border-color: rgba(231,189,109,.3); background: rgba(231,189,109,.05); }
.status-pill.failed, .status-pill.expired { color: #ff9ca2; border-color: rgba(255,116,123,.2); }

/* Cartoony account summary */
.account-summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px; margin-bottom: 23px; }
.account-summary::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--purple), var(--chrome-red), var(--purple), transparent); }
.account-summary .summary-amount { color: var(--text); font: 600 18px "DM Mono", monospace; }
.account-summary .summary-label { color: var(--muted); font-size: 11px; }
.account-summary strong { display: block; margin-top: 5px; font: 600 18px "DM Mono", monospace; }
.account-summary code { display: block; margin-top: 6px; color: var(--text); font: 11px "DM Mono", monospace; }

/* Cartoony subsection title */
.subsection-title { margin: 0 0 12px; color: var(--secondary); font-size: 13px; font-weight: 500; }

/* Cartoony footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 24px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 10px; }
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--chrome-red), transparent);
}
.footer .footer-mark {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--chrome-red); padding: 0 4px;
  box-shadow: 0 0 8px rgba(255,45,45,.15), 0 0 16px rgba(255,45,45,.06);
}
.footer .footer-mark::before { content: "º6"; font-size: 14px; }
.footer-mark { color: var(--chrome-red); padding: 0 4px; box-shadow: 0 0 8px rgba(255,45,45,.15), 0 0 16px rgba(255,45,45,.06); }
.footer a { color: var(--muted); }

/* Cartoony modal */
.modal { width: min(480px, calc(100% - 28px)); padding: 27px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%); color: var(--text); box-shadow: 0 24px 90px rgba(0,0,0,.65); }
.modal { position: relative; overflow: hidden; }
.modal::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--chrome-red), var(--gold));
  animation: shimmer 3s ease-in-out infinite;
}
.modal::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,45,45,.1), transparent);
}
.modal-mark {
  position: relative;
  display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 18px;
  border-radius: 50%; background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(255,45,45,.08));
  border: 1px solid rgba(168,85,247,.3); box-shadow: 0 0 12px rgba(168,85,247,.15);
}
.modal-mark::before {
  content: "";
  position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.12) 0%, transparent 70%);
  pointer-events: none;
}
.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.modal-mark { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,45,45,.2), rgba(255,45,45,.08)); border: 1px solid rgba(255,45,45,.3); box-shadow: 0 0 12px rgba(255,45,45,.15); }
.modal h2 { margin-bottom: 8px; font-size: 21px; letter-spacing: -.5px; font-weight: 500; }
.issued-code-wrap { display: flex; gap: 8px; align-items: center; margin: 18px 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.3); }
.issued-code-wrap code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--text); font: 12px/1.6 "DM Mono", monospace; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 10; max-width: min(420px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%); box-shadow: 0 10px 35px rgba(0,0,0,.4); color: var(--text); font-size: 12px; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 10; max-width: min(420px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%); box-shadow: 0 10px 35px rgba(0,0,0,.4); color: var(--text); font-size: 12px; }
.toast::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--chrome-red), var(--gold));
  animation: shimmer 2.5s ease-in-out infinite;
}

/* Cartoony admin login layout */
.admin-login-layout { display: grid; grid-template-columns: 1fr minmax(340px,420px); align-items: center; gap: 10%; min-height: calc(100vh - 150px); padding: 60px 5% 70px; }
.admin-login-copy .hero-subtitle { max-width: 440px; }
.admin-login-panel { padding: 27px; }
.admin-login-panel h2 { margin: 0 0 19px; font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.admin-login-panel .micro-note { display: block; margin-top: 15px; }
.security-callout, .admin-status { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--muted); font-size: 11px; }
.admin-status { padding: 9px 11px; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); }
.admin-workspace .side-nav { min-height: 470px; }

/* Cartoony batch form */
.batch-form, .credit-form { padding: 17px; margin-bottom: 18px; }
.batch-form label, .credit-form label { margin-bottom: 7px; }

/* Cartoony form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 15px; }

/* Cartoony form foot */
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }

/* Cartoony table wrap */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line-soft); font-size: 10px; white-space: nowrap; }
th { color: var(--faint); font: 500 9px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--secondary); }
tr:last-child td { border-bottom: 0; }
td code { color: var(--text); font: 10px "DM Mono", monospace; }
.table-wrap .button { margin-right: 6px; }
.table-wrap .button:last-child { margin-right: 0; }
td .button { padding: 7px 12px; font-size: 11px; border-radius: 6px; }

/* Cartoony batch card */
.batch-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; }
.batch-stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.batch-stat-row strong { color: var(--secondary); font-weight: 500; }
.batch-actions { display: flex; align-items: center; gap: 8px; }
.batch-details { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border); }
.batch-details.hidden { display: none; }
.batch-details-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.batch-details-table { overflow-x: auto; }
.batch-details-table .table { margin-top: 0; }

/* Cartoony admin body */
.admin-body .topbar { min-height: 70px; }

@media (max-width: 900px) {
  .auth-layout, .admin-login-layout { gap: 5%; padding-left: 0; padding-right: 0; grid-template-columns: 1fr minmax(320px,390px); }
  .hero-copy h1, .admin-login-copy h1 { font-size: 52px; }
  .workspace { grid-template-columns: 175px minmax(0,1fr); gap: 15px; }
}
.shop-layout { display: grid; grid-template-columns: minmax(320px, 400px) minmax(260px, 1fr); gap: 18px; align-items: start; }
.shop-selectors { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.shop-selectors label { margin: 0; }
.shop-label { margin-top: 8px; }
.shop-products { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.shop-batch-group { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.shop-batch-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; user-select: none; }
.shop-batch-header:hover { background: rgba(255,255,255,.03); }
.shop-batch-title { font-size: 12px; font-weight: 500; }
.shop-batch-count { font-size: 11px; color: var(--muted); }
.shop-batch-items { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.shop-batch-items.hidden { display: none; }
.shop-product { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0,0,0,.15); }
.shop-product-name { font-weight: 500; }
.shop-product-meta { color: var(--muted); font-size: 12px; }
.shop-product-price { color: var(--text); font: 500 14px/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: -.02em; }
.shop-product-actions { display: flex; gap: 8px; align-items: center; }
.shop-cart { padding: 18px; }
.cart-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.cart-item .cart-item-name { display: flex; align-items: center; gap: 8px; }
.cart-item .cart-item-meta { color: var(--muted); font-size: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cart-total strong { font: 600 18px "DM Mono", monospace; }

/* ── Polished chrome: scrollbar, text selection, focus ring ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(11,10,12,.5); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--purple), var(--chrome-red)); border-radius: 4px; }
::selection { background: rgba(168,85,247,.25); color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ── Cartoony buttons: pill style with glossy sweep ── */
.btn-pill {
  border-radius: 99px;
  padding: 10px 22px;
  font-family: var(--font), cursive;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25), transparent 60%);
  opacity: 0;
  transition: opacity .15s ease;
}
.btn-pill:hover::after { opacity: 1; }
.btn-pill:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--chrome-red), #d4af37); color: #fff; box-shadow: 0 0 8px rgba(255,45,45,.25); }
.btn-primary:hover { box-shadow: 0 0 16px rgba(255,45,45,.35); }
.btn-purple { background: linear-gradient(135deg, var(--purple), var(--plum)); color: #fff; box-shadow: 0 0 8px rgba(168,85,247,.2); }
.btn-purple:hover { box-shadow: 0 0 16px rgba(168,85,247,.3); }

/* ── Cartoony inputs: pill-style fields ── */
.field-input.pill {
  border-radius: 99px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-family: var(--font), cursive;
  font-size: 14px;
}
.field-input.pill:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,.15);
  background: rgba(255,255,255,.08);
}
.field-input.pill::placeholder { color: var(--purple); }

/* ── Cartoony balance chip ── */
.balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: 500 12px "DM Mono", monospace;
}
.balance-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chrome-red);
  box-shadow: 0 0 6px rgba(255,45,45,.3);
}

/* ── Cartoony empty states ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 48px; opacity: .5; }
.empty-state .empty-text { font-size: 18px; color: var(--text); }
.empty-state .retry-btn {
  margin-top: 12px;
  background: rgba(168,85,247,.15);
  border: 1px solid var(--purple);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 99px;
  font-family: var(--font), cursive;
  cursor: pointer;
}
.empty-state .retry-btn:hover { background: rgba(168,85,247,.25); }

/* ── Cartoony product card hover lift ── */
.product-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(168,85,247,.15);
}

/* ── Cartoony quantity stepper ── */
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantity-btn:hover { background: rgba(168,85,247,.15); border-color: var(--purple); }
.quantity-btn:active { transform: scale(.92); }

/* ── Micro-interactions: icon hover scale, arrow flip ── */
.icon-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
  cursor: pointer;
}
.icon-hover:hover { transform: scale(1.2); }
.arrow {
  display: inline-block;
  transition: transform .15s ease;
}
.arrow-expand { transform: rotate(0deg); }
.arrow-expanded { transform: rotate(90deg); }

/* ── Cartoony modal: scales in with blurred backdrop ── */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-content {
  animation: scaleIn .18s ease-out;
}
@keyframes scaleIn {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Toast: slides in from bottom-right ── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(26,10,46,.9);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 99px;
  padding: 14px 24px;
  z-index: 1000;
  animation: slideInUp .3s ease-out;
  box-shadow: 0 0 16px rgba(168,85,247,.25);
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cartoony brand letters: gradient chrome-red glow ── */
.echelon-red {
  background: linear-gradient(135deg, #fff 20%, var(--chrome-red) 60%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255,45,45,.25), 0 0 48px rgba(255,45,45,.12);
  animation: bounce 2s ease-in-out infinite;
}

/* ── Cartoony balance card: animated purple pulse ring, gold inner border ── */
.balance-card {
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(212,175,55,.04));
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  z-index: -1;
  animation: pulse-purple 3s ease-in-out infinite;
}
.balance-amount {
  font-family: var(--mono), monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.balance-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
@keyframes pulse-purple {
  0%, 100% { box-shadow: 0 0 8px rgba(168,85,247,.2), inset 0 0 20px rgba(168,85,247,.06); }
  50% { box-shadow: 0 0 20px rgba(168,85,247,.35), inset 0 0 30px rgba(168,85,247,.1); }
}

/* ── Cartoony status pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 10px;
  color: var(--secondary);
  font: 400 9px "DM Mono", monospace;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill.paid { border-color: rgba(53,201,138,.24); color: #67d9a9; background: rgba(53,201,138,.05); }
.status-pill.pending { color: #e7bd6d; border-color: rgba(231,189,109,.2); background: rgba(231,189,109,.05); }
.status-pill.awaiting_approval { color: #e7bd6d; border-color: rgba(231,189,109,.3); background: rgba(231,189,109,.05); }
.status-pill.failed, .status-pill.expired { color: #ff9ca2; border-color: rgba(255,116,123,.2); }

/* ── Luxurious purple palette ── */
:root {
  --purple: #9333ea;
  --plum: #4c1d95;
  --aubergine: #2e1a4a;
  --ink: #1a0a2e;
  --border: rgba(255,255,255,.14);
  --green: #35c98a;
}

/* ── Cartoony nav link hover ── */
.nav-link:hover, .side-link:hover { transform: translateY(-1px); }

/* ── Cartoony section head ── */
.section-head { animation: float 3s ease-in-out infinite; position: relative; overflow: hidden; }
.section-head::before {
  content: "";
  position: absolute; bottom: -4px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--chrome-red), var(--purple), transparent);
  border-radius: 2px; opacity: .5;
}

/* ── Cartoony balance card - chrome themed with purple glow ── */
.balance-card {
  animation: float 2.5s ease-in-out infinite;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,.18), 0 0 0 1px rgba(168,85,247,.04);
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%; width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.08) 0%, transparent 70%);
  pointer-events: none;
}
.balance-card::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -20%; width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,45,.05) 0%, transparent 70%);
  pointer-events: none;
}
.balance-card .balance-amount { color: var(--text); font: 600 22px "DM Mono", monospace; letter-spacing: -.05em; }
.balance-card .balance-label { color: var(--muted); font-size: 11px; }
.balance-card .balance-detail { color: var(--secondary); font-size: 11px; margin-top: 4px; }

/* ── Cartoony cart item - slides in on add ── */
.cart-item {
  animation: slideIn .25s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.remove-btn { opacity: 0; transition: opacity .15s ease; }
.cart-item:hover .remove-btn { opacity: 1; }
.cart-total { border-top: 1px solid rgba(168,85,247,.2); padding-top: 12px; }
.checkout-btn {
  background: linear-gradient(135deg, var(--purple), var(--plum));
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: var(--font), cursive;
  font-size: 16px;
  font-weight: 700;
  transition: all .15s ease;
  box-shadow: 0 0 8px rgba(168,85,247,.2);
}
.checkout-btn:hover { box-shadow: 0 0 16px rgba(168,85,247,.3); transform: scale(1.02); }

/* ── Cartoony nav link hover ── */
.nav-link:hover, .side-link:hover { transform: translateY(-1px); }

/* ── Cartoony section head ── */
.section-head { animation: float 3s ease-in-out infinite; position: relative; overflow: hidden; }
.section-head::before {
  content: "";
  position: absolute; bottom: -4px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--chrome-red), var(--purple), transparent);
  border-radius: 2px; opacity: .5;
}

/* ── Cartoony balance chip ── */
.balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: 500 12px "DM Mono", monospace;
}
.balance-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chrome-red);
  box-shadow: 0 0 6px rgba(255,45,45,.3);
}

/* ── Cartoony empty states ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 48px; opacity: .5; }
.empty-state .empty-text { font-size: 18px; color: var(--text); }
.empty-state .retry-btn {
  margin-top: 12px;
  background: rgba(168,85,247,.15);
  border: 1px solid var(--purple);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 99px;
  font-family: var(--font), cursive;
  cursor: pointer;
}
.empty-state .retry-btn:hover { background: rgba(168,85,247,.25); }

/* ── Cartoony product card hover lift ── */
.product-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(168,85,247,.15);
}

/* ── Cartoony quantity stepper ── */
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantity-btn:hover { background: rgba(168,85,247,.15); border-color: var(--purple); }
.quantity-btn:active { transform: scale(.92); }

/* ── Micro-interactions: icon hover scale, arrow flip ── */
.icon-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
  cursor: pointer;
}
.icon-hover:hover { transform: scale(1.2); }
.arrow {
  display: inline-block;
  transition: transform .15s ease;
}
.arrow-expand { transform: rotate(0deg); }
.arrow-expanded { transform: rotate(90deg); }

/* ── Cartoony modal: scales in with blurred backdrop ── */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-content {
  animation: scaleIn .18s ease-out;
}
@keyframes scaleIn {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Toast: slides in from bottom-right ── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(26,10,46,.9);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 99px;
  padding: 14px 24px;
  z-index: 1000;
  animation: slideInUp .3s ease-out;
  box-shadow: 0 0 16px rgba(168,85,247,.25);
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cartoony brand letters: gradient chrome-red glow ── */
.echelon-red {
  background: linear-gradient(135deg, #fff 20%, var(--chrome-red) 60%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255,45,45,.25), 0 0 48px rgba(255,45,45,.12);
  animation: bounce 2s ease-in-out infinite;
}

/* ── Cartoony balance card: animated purple pulse ring, gold inner border ── */
.balance-card {
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(212,175,55,.04));
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  z-index: -1;
  animation: pulse-purple 3s ease-in-out infinite;
}
.balance-amount {
  font-family: var(--mono), monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.balance-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
@keyframes pulse-purple {
  0%, 100% { box-shadow: 0 0 8px rgba(168,85,247,.2), inset 0 0 20px rgba(168,85,247,.06); }
  50% { box-shadow: 0 0 20px rgba(168,85,247,.35), inset 0 0 30px rgba(168,85,247,.1); }
}

/* ── Cartoony status pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 10px;
  color: var(--secondary);
  font: 400 9px "DM Mono", monospace;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill.paid { border-color: rgba(53,201,138,.24); color: #67d9a9; background: rgba(53,201,138,.05); }
.status-pill.pending { color: #e7bd6d; border-color: rgba(231,189,109,.2); background: rgba(231,189,109,.05); }
.status-pill.awaiting_approval { color: #e7bd6d; border-color: rgba(231,189,109,.3); background: rgba(231,189,109,.05); }
.status-pill.failed, .status-pill.expired { color: #ff9ca2; border-color: rgba(255,116,123,.2); }

/* ── Luxurious purple palette ── */
:root {
  --purple: #9333ea;
  --plum: #4c1d95;
  --aubergine: #2e1a4a;
  --ink: #1a0a2e;
  --border: rgba(255,255,255,.14);
  --green: #35c98a;
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 560px); }
  .topbar { min-height: 64px; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
  .top-actions { gap: 9px; margin-left: auto; }
  .brand-top { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; font-size: 13px; }
  .brand-name { font-size: 16px; }
  .auth-layout, .admin-login-layout { display: flex; flex-direction: column; align-items: stretch; gap: 27px; min-height: auto; padding: 50px 0; }
  .hero-copy h1, .admin-login-copy h1 { font-size: 46px; }
  .hero-subtitle { font-size: 14px; }
  .trust-row { gap: 12px; margin-top: 22px; padding-top: 16px; }
  .trust-item { font-size: 10px; }
  .auth-panel, .admin-login-panel { padding: 20px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { font-size: 29px; }
  .balance-card { min-width: 130px; padding: 10px 11px; }
  .balance-card strong { font-size: 18px; }
  .workspace { display: block; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-selectors { padding: 15px; }
  .side-nav { flex-direction: row; min-height: 0; overflow-x: auto; gap: 2px; margin-bottom: 18px; padding: 8px; flex-wrap: nowrap; }
  .side-label, .side-footer { display: none; }
  .side-link { width: auto; flex: 1; justify-content: center; white-space: nowrap; margin: 0; padding: 8px 6px; font-size: 10px; }
  .side-icon { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .topup-layout { grid-template-columns: 1fr; }
  .account-summary { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .batch-card { grid-template-columns: 1fr; }
  .form-foot { align-items: flex-start; flex-direction: column; }
  .form-foot .button { align-self: stretch; }
  .footer { font-size: 9px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 22px); }
  .brand-name { font-size: 14px; }
  ,
/* Cartoony balance chip - chrome themed */
.balance-chip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.04); color: var(--text); font: 500 12px "DM Mono", monospace; }
.balance-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--chrome-red); box-shadow: 0 0 6px rgba(255,45,45,.3); }
  .dashboard-heading { flex-direction: column; }
  .balance-card { width: 100%; }
  .section-head { align-items: flex-start; }
  .section-head > .button, .section-head > a { padding: 8px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
}

.order-detail-meta p { margin: 6px 0; }
.order-items-list { margin: 12px 0 0; padding-left: 18px; }
.order-items-list li { margin: 4px 0; }
.order-items-wrap { padding: 0 15px 12px; }
.order-items-wrap.hidden { display: none; }

/* Cartoony account-code dialog */
dialog.modal:not([open]) { display: none; }
.code-dialog { text-align: center; }
.code-dialog h3 { margin-bottom: 6px; }
.code-dialog .issued-code {
  display: block; margin: 14px auto; padding: 12px 16px; font-size: 13px; letter-spacing: .5px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; color: var(--echelon-red, #ff2d2d);
  word-break: break-all; font-family: monospace;
}
.code-dialog .dialog-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
