/* ===================================================================
   Design tokens — HUNTER-style holo-glass retrowave
=================================================================== */
:root {
  --bg: #0a0620;
  --bg2: #150a30;
  --bg-elevated: #120a2c;

  --pink: #ff2f92;
  --orange: #ff8a3d;
  --cyan: #7ef9ff;
  --violet: #b06bff;
  --amber: #ffcf6b;
  --danger: #ff4d6d;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-brd: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);

  --text: #f3ecff;
  --text-muted: #8f80b8;

  /* legacy aliases kept so nothing in markup needs renaming */
  --accent: var(--cyan);
  --accent-dim: #4fd7e0;
  --accent-2: var(--violet);
  --accent-2-dim: #8a5fd6;
  --success: var(--cyan);
  --warning: var(--amber);
  --surface: var(--glass);
  --surface-2: var(--glass-2);
  --border: var(--glass-brd);

  --font-body: "Vazirmatn", -apple-system, Tahoma, sans-serif;
  --font-disp: "Audiowide", sans-serif;
  --font-mono: "Rajdhani", sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ===================================================================
   Base
=================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* faint drifting grid + glow, purely atmospheric */
.grid-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 6%, rgba(255, 47, 146, 0.12), transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(126, 249, 255, 0.10), transparent 38%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px, 26px 26px;
}

/* ===================================================================
   Header — retrowave sun + horizon
=================================================================== */
header.horizon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  height: 172px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.horizon::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1a0e3d 0%, #3a1256 40%, #7a1f5e 65%, #ff5f6d 100%);
  opacity: 0.85;
}
.sun {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(180deg, #ffe36b, var(--orange) 45%, var(--pink) 100%);
  box-shadow: 0 0 60px 10px rgba(255, 90, 140, 0.45);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 6px);
  mask-image: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 6px);
  animation: sunRise 0.9s ease-out;
}
@keyframes sunRise { from { transform: translateX(-50%) translateY(24px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.grid-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78px;
  background-image:
    linear-gradient(rgba(126, 249, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 249, 255, 0.5) 1px, transparent 1px);
  background-size: 32px 18px;
  transform: perspective(140px) rotateX(55deg); transform-origin: bottom;
  mask-image: linear-gradient(180deg, transparent, black 40%);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 40%);
}
.horizon-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 14px 16px;
}
.topline { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.75); font-family: var(--font-mono); }
.brand { font-family: var(--font-disp); font-size: 13px; letter-spacing: 1px; text-shadow: 0 0 14px rgba(255, 138, 61, 0.6); }
.live { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.greet { margin-top: auto; }
.greet h1 { font-size: 19px; font-weight: 800; text-shadow: 0 0 18px rgba(255, 47, 146, 0.55); }
.header-sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .sun { animation: none; }
  .dot { animation: none; }
}

/* ===================================================================
   Content area
=================================================================== */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 14px;
  scrollbar-width: thin;
}
main::-webkit-scrollbar { width: 4px; }
main::-webkit-scrollbar-thumb { background: var(--glass-brd); border-radius: 4px; }

/* section eyebrow / route divider */
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  color: var(--cyan);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin: 6px 2px 9px;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(126, 249, 255, 0.35), transparent);
}

/* ===================================================================
   Cards — glass with holo gradient border
=================================================================== */
.card {
  position: relative;
  padding: 17px; margin-bottom: 14px; border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  overflow: hidden;
  animation: cardPop 0.32s cubic-bezier(.2, .9, .3, 1.2);
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pink), transparent 35%, transparent 65%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55; pointer-events: none;
}
.card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  margin-bottom: 13px; color: var(--text);
}
.card h3 .ic {
  width: 26px; height: 26px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  flex-shrink: 0;
}

.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 13px; gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: var(--text-muted); font-size: 12px; }
.stat-row > span:first-child {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stat-row b, .stat-row > span.badge {
  flex-shrink: 0;
}
.stat-row b {
  font-family: var(--font-mono); font-size: 17px; font-weight: 700;
  direction: ltr;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================================================================
   Buttons
=================================================================== */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(120deg, var(--pink), var(--violet) 60%, var(--cyan));
  box-shadow: 0 8px 26px -8px rgba(255, 47, 146, 0.55);
  color: #160a2e;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  margin-top: 8px; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.97); filter: brightness(0.95); }
.btn:disabled {
  opacity: 0.45; background: var(--glass-2); color: var(--text-muted); box-shadow: none;
}
.btn.outline {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.btn.small { width: auto; padding: 9px 16px; font-size: 12.5px; margin-top: 0; }
.btn.violet { background: linear-gradient(135deg, var(--violet), var(--accent-2-dim)); color: #f4f2ff; box-shadow: 0 8px 22px -8px rgba(176, 107, 255, 0.55); }

/* ===================================================================
   Product rows
=================================================================== */
.product {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.product:last-child { border-bottom: none; }
.product-name { font-size: 13.5px; font-weight: 700; }
.price {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  margin-top: 3px; direction: ltr;
  color: var(--cyan);
}

/* ===================================================================
   Badges
=================================================================== */
.badge {
  font-size: 10px; padding: 5px 11px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, rgba(126, 249, 255, 0.18), rgba(126, 249, 255, 0.05));
  color: var(--cyan); border: 1px solid rgba(126, 249, 255, 0.35);
}
.badge.approved { background: linear-gradient(135deg, rgba(126, 249, 255, 0.18), rgba(126, 249, 255, 0.05)); color: var(--cyan); border-color: rgba(126, 249, 255, 0.35); }
.badge.pending { background: linear-gradient(135deg, rgba(255, 207, 107, 0.2), rgba(255, 207, 107, 0.05)); color: var(--amber); border-color: rgba(255, 207, 107, 0.4); }
.badge.rejected { background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(255, 77, 109, 0.05)); color: var(--danger); border-color: rgba(255, 77, 109, 0.4); }

/* ===================================================================
   Link box (config link) — neon terminal
=================================================================== */
.link-box {
  position: relative;
  background: #05030f;
  border: 1px solid var(--glass-brd);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  word-break: break-all;
  direction: ltr; text-align: left;
  margin: 10px 0;
}

.order-block { margin-bottom: 16px; }
.order-block:last-child { margin-bottom: 0; }
.qr-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.qr-row img { border-radius: 10px; border: 1px solid var(--glass-brd); background: #fff; padding: 6px; }
.qr-row .btn { margin-top: 0; }

/* ===================================================================
   Jackpot machine (گردونه شانس)
=================================================================== */
.jackpot {
  position: relative;
  margin: 4px auto 6px;
  padding: 18px 14px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--bg2), var(--bg-elevated) 78%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 0 0 1px rgba(176, 107, 255, 0.12), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.jackpot-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: 14px;
}
.jackpot-title .bulb {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 6px 1px var(--violet);
  animation: bulb-blink 1s ease-in-out infinite;
}
.jackpot-title .bulb:nth-child(3) { animation-delay: 0.5s; }
@keyframes bulb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.marquee { display: flex; justify-content: space-between; padding: 0 2px; margin-bottom: 10px; }
.marquee .lamp {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 5px 1px rgba(255, 207, 107, 0.85);
  animation: bulb-blink 1.2s ease-in-out infinite;
}
.marquee .lamp:nth-child(odd) { animation-delay: 0.3s; }

.reels {
  display: flex; gap: 8px;
  background: #05030f;
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  padding: 14px 10px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}
.reel {
  flex: 1; height: 68px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; overflow: hidden;
}
.reel-symbol { transition: none; }
.reel.spinning .reel-symbol { animation: reel-jitter 0.09s linear infinite; }
@keyframes reel-jitter {
  0% { transform: translateY(-3px); filter: blur(1px); }
  50% { transform: translateY(3px); }
  100% { transform: translateY(-3px); filter: blur(1px); }
}
.reel.win { border-color: var(--cyan); box-shadow: 0 0 14px -2px rgba(126, 249, 255, 0.8); }

.spin-cta {
  display: block; margin: 16px auto 4px;
  width: 130px; padding: 13px 0;
  border: none; border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ffb0d6, var(--pink) 55%, var(--violet));
  color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 18px -6px rgba(255, 47, 146, 0.6);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.spin-cta:active { transform: scale(0.95); }
.spin-cta:disabled { background: var(--glass-2); color: var(--text-muted); box-shadow: none; }

.jackpot-result {
  margin-top: 14px; padding: 12px; border-radius: var(--radius-md);
  text-align: center; font-size: 13px;
  border: 1px solid var(--glass-brd);
  background: var(--bg-elevated);
}
.jackpot-result.win { border-color: rgba(126, 249, 255, 0.4); color: var(--cyan); background: rgba(126, 249, 255, 0.08); }
.jackpot-result.lose { color: var(--text-muted); }
.jackpot-result .code {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  letter-spacing: 0.05em; color: var(--text);
  direction: ltr;
}

/* ===================================================================
   Bank card visual (شارژ کیف پول)
=================================================================== */
.bank-card {
  position: relative;
  margin: 4px 0 16px;
  padding: 20px 18px 16px;
  border-radius: 16px;
  aspect-ratio: 1.586 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(circle at 85% -10%, rgba(255, 47, 146, 0.35), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(126, 249, 255, 0.3), transparent 55%),
    linear-gradient(135deg, var(--bg2), #0a0620);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.bank-card::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.bank-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bank-card-chip { width: 34px; height: 25px; border-radius: 5px; background: linear-gradient(135deg, #e4d38a, #b89b4a); }
.bank-card-brand { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 0.08em; }
.bank-card-number { font-family: var(--font-mono); font-size: 19px; font-weight: 700; letter-spacing: 0.08em; color: #fff; direction: ltr; text-align: left; }
.bank-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.bank-card-holder-label { font-size: 9.5px; color: var(--text-muted); margin-bottom: 3px; }
.bank-card-holder { font-size: 13px; font-weight: 600; color: var(--text); }
.bank-card-amount { font-family: var(--font-mono); font-size: 14px; color: var(--pink); font-weight: 700; direction: ltr; }

.copy-chip {
  border: 1px solid var(--glass-brd); background: var(--glass-2); color: var(--text-muted);
  border-radius: 999px; font-size: 11px; padding: 8px 10px; cursor: pointer;
  font-family: var(--font-mono);
}

.receipt-upload {
  display: block; width: 100%; box-sizing: border-box;
  border: 1.5px dashed var(--glass-brd);
  border-radius: var(--radius-md);
  padding: 16px; text-align: center; color: var(--text-muted);
  font-size: 12.5px; cursor: pointer; position: relative; margin-top: 4px;
}
.receipt-upload.has-file { border-color: var(--cyan); color: var(--cyan); }
.receipt-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt-upload .ic { display: block; font-size: 20px; margin-bottom: 4px; }
.receipt-preview {
  display: block; margin: 10px auto 0; max-width: 100%; max-height: 160px;
  width: auto; object-fit: contain;
  border-radius: var(--radius-sm); border: 1px solid var(--glass-brd);
}

/* ===================================================================
   Inputs
=================================================================== */
.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd);
  background: var(--bg-elevated); color: var(--text);
  font-family: var(--font-mono); font-size: 14px;
  direction: ltr; text-align: left;
}
.input::placeholder { color: var(--text-muted); font-family: var(--font-body); direction: rtl; }
.input:focus { outline: none; border-color: var(--cyan); }

/* ===================================================================
   مدیریت منوی اصلی (تب ادمین)
=================================================================== */
.menu-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-brd);
}
.menu-row:last-child { border-bottom: none; }
.menu-row-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.menu-row-label { font-size: 13px; color: var(--text); font-weight: 600; }
.menu-row-arrows { display: flex; gap: 6px; }
.menu-row-arrows .btn.small { padding: 4px 10px; margin-top: 0; }
.menu-row-body { display: flex; flex-direction: column; gap: 8px; }
.menu-text-input { direction: rtl; text-align: right; font-family: var(--font-body); }
.menu-toggle {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted);
  cursor: pointer;
}
.menu-toggle input { width: 16px; height: 16px; accent-color: var(--cyan); }

/* ===================================================================
   Loading / empty / error states
=================================================================== */
.skeleton-block { display: flex; flex-direction: column; gap: 10px; }
.skel {
  height: 64px; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--glass) 30%, var(--glass-2) 50%, var(--glass) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--glass-brd);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.state-msg { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: 13px; }
.state-msg .ic { font-size: 26px; display: block; margin-bottom: 8px; opacity: 0.7; }
.state-msg.error { color: var(--danger); }

#content { animation: contentFadeIn 0.28s ease; }
#content.fade-in { animation: contentFadeIn 0.28s ease; }
@keyframes contentFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardPop { from { opacity: 0; transform: scale(.97) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.hint-text { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.7; }

/* ===================================================================
   Expiry banner
=================================================================== */
.banner {
  position: relative; border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 14px;
  animation: cardPop 0.32s cubic-bezier(.2, .9, .3, 1.2);
}
.banner-warn {
  background: linear-gradient(135deg, rgba(255, 207, 107, 0.14), rgba(255, 138, 61, 0.05));
  border: 1px solid rgba(255, 207, 107, 0.3);
}
.banner-title { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; color: var(--amber); margin-bottom: 8px; }
.expiring-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; padding: 4px 0; color: var(--text);
  border-bottom: 1px dashed rgba(255, 207, 107, 0.2);
}
.expiring-row:last-of-type { border-bottom: none; }
.expiring-row b { color: var(--amber); font-family: var(--font-mono); }
.banner-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ===================================================================
   Support chat
=================================================================== */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 300px); min-height: 320px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 10px; }
.chat-bubble {
  max-width: 78%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.6;
  animation: bubbleIn 0.22s ease;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble.mine {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #1a0a24; border-bottom-right-radius: 4px;
}
.chat-bubble.admin {
  align-self: flex-end;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  color: var(--text); border-bottom-left-radius: 4px;
}
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-time { font-size: 10px; opacity: 0.65; margin-top: 4px; text-align: left; }
.chat-bubble.mine .chat-time { color: #1a0a24; }

.chat-input-row { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.chat-input-row input {
  flex: 1; background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: 999px; padding: 11px 16px; color: var(--text); font-size: 13px;
  font-family: var(--font-body); direction: rtl;
}
.chat-input-row input:focus { outline: none; border-color: var(--cyan); }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #1a0a24; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s ease;
}
.chat-send-btn:active { transform: scale(0.9); }
.chat-send-btn svg { width: 19px; height: 19px; }

/* ===================================================================
   Tab bar — floating holo pill
=================================================================== */
#tabbar {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex;
  margin: 0 12px calc(10px + env(safe-area-inset-bottom));
  padding: 6px;
  border-radius: 22px;
  background: rgba(20, 10, 45, 0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}
#tabbar button {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 2px 7px;
  border: none; background: none; border-radius: 16px;
  font-family: var(--font-body); font-size: 9.2px;
  color: var(--text-muted);
  position: relative; white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
#tabbar button svg { width: 18px; height: 18px; transition: filter 0.15s ease; }
#tabbar button.active { color: #160a2e; background: linear-gradient(135deg, var(--pink), var(--violet)); font-weight: 700; }
