/* ===================================================================
   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;

  /* theme-able header/sun tokens (overridden per data-theme below) */
  --header-g1: #1a0e3d;
  --header-g2: #3a1256;
  --header-g3: #7a1f5e;
  --header-g4: #ff5f6d;
  --sun-a: #ffe36b;
  --sun-b: var(--orange);
  --sun-c: var(--pink);
  --grid-line: rgba(126, 249, 255, 0.5);
}

/* ===================================================================
   Theme presets — selectable per store from the admin panel
=================================================================== */
html[data-theme="neon-mint"] {
  --bg: #04100d; --bg2: #071c16; --bg-elevated: #06160f;
  --pink: #00ffa3; --orange: #ffb800; --cyan: #00e1ff; --violet: #7a5cff; --amber: #ffe066; --danger: #ff5470;
  --header-g1: #041b16; --header-g2: #073a2c; --header-g3: #0a6b4f; --header-g4: #00ffa3;
  --sun-a: #d9ff8a; --sun-b: #00ffa3; --sun-c: #00e1ff;
  --grid-line: rgba(0, 255, 163, 0.5);
}
html[data-theme="royal-violet"] {
  --bg: #0d0620; --bg2: #180a33; --bg-elevated: #140a2c;
  --pink: #b98cff; --orange: #ffd166; --cyan: #7ee7e1; --violet: #8b5cf6; --amber: #ffe08a; --danger: #ff5d8f;
  --header-g1: #170a33; --header-g2: #2d0f57; --header-g3: #4a1470; --header-g4: #ffd166;
  --sun-a: #ffe9a8; --sun-b: #ffd166; --sun-c: #b98cff;
  --grid-line: rgba(185, 140, 255, 0.5);
}
html[data-theme="blood-moon"] {
  --bg: #0a0505; --bg2: #170808; --bg-elevated: #120707;
  --pink: #ff1f4e; --orange: #ff7b39; --cyan: #ffb199; --violet: #7a1f2e; --amber: #ffcf6b; --danger: #ff0033;
  --header-g1: #1a0505; --header-g2: #3d0a0a; --header-g3: #7a0f0f; --header-g4: #ff2d4e;
  --sun-a: #ffce8a; --sun-b: #ff7b39; --sun-c: #ff1f4e;
  --grid-line: rgba(255, 45, 78, 0.45);
}
html[data-theme="aurora-ice"] {
  --bg: #04101c; --bg2: #071e33; --bg-elevated: #06192b;
  --pink: #7fd8ff; --orange: #ffd27f; --cyan: #a0fff0; --violet: #6ea8ff; --amber: #ffe9a8; --danger: #ff6b81;
  --header-g1: #041428; --header-g2: #0a2c4d; --header-g3: #145a8a; --header-g4: #7fd8ff;
  --sun-a: #eaffff; --sun-b: #a0fff0; --sun-c: #7fd8ff;
  --grid-line: rgba(127, 216, 255, 0.5);
}
html[data-theme="clean-light"] {
  --bg: #f2f5f2; --bg2: #ffffff; --bg-elevated: #ffffff;
  --pink: #4fb84a; --orange: #ffb020; --cyan: #2f9e57; --violet: #3fcf6e; --amber: #ffb020; --danger: #e5484d;
  --glass: rgba(20, 40, 25, 0.035); --glass-2: rgba(20, 40, 25, 0.055); --glass-brd: rgba(20, 40, 25, 0.1); --border-soft: rgba(20, 40, 25, 0.08);
  --text: #161c17; --text-muted: #7c8880;
  --font-disp: var(--font-body);
  --font-mono: "Vazirmatn", -apple-system, Tahoma, sans-serif;
  --header-g1: #ffffff; --header-g2: #ffffff; --header-g3: #ffffff; --header-g4: #ffffff;
  --grid-line: rgba(20, 40, 25, 0.06);
}

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

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  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 — compact flat top bar (wallet chip + brand)
=================================================================== */
header.topbar {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-soft);
}
.wallet-chip {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--text);
  padding: 8px 13px; border-radius: 999px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.wallet-chip:active { transform: scale(0.95); }
.wallet-chip svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--cyan); }
.topbar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; }
.brand-avatar {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  overflow: hidden;
}
.brand-avatar-fallback { font-size: 16px; line-height: 1; }
.brand-logo { display: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
header.topbar.has-logo .brand-logo { display: block; }
header.topbar.has-logo .brand-avatar-fallback { display: none; }
header.topbar.has-logo .brand-avatar { background: none; }

/* ===================================================================
   Content area
=================================================================== */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  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;
}

/* ===================================================================
   Quick access grid (صفحه خانه)
=================================================================== */
.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 4px;
}
.quick-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .12s ease;
  animation: cardPop 0.32s cubic-bezier(.2, .9, .3, 1.2);
}
.quick-item:active { transform: scale(0.96); filter: brightness(0.97); }
.quick-item .q-label { font-size: 13px; font-weight: 700; color: var(--text); }
.quick-item .q-ic {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--pink);
}
.quick-item .q-ic svg { width: 100%; height: 100%; }
.quick-item.full { grid-column: 1 / -1; }

/* ===================================================================
   Home greeting (moved out of header — sits at top of #content)
=================================================================== */
.home-greet { margin-bottom: 14px; }
.home-greet h1 { font-size: 19px; font-weight: 800; color: var(--text); }
.home-greet p { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* ===================================================================
   Promo banner carousel (صفحه خانه)
=================================================================== */
.promo-carousel {
  position: relative; margin-bottom: 16px;
  border-radius: var(--radius-lg); overflow: hidden;
}
.promo-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: var(--radius-lg);
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 108px; padding: 18px 18px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  color: #f4f2ff; position: relative; overflow: hidden;
}
.promo-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--promo-bg, linear-gradient(120deg, #10151c, #1c2733));
}
.promo-slide-image-only { padding: 0; min-height: 0; aspect-ratio: 3 / 1; }
.promo-slide-icon, .promo-slide-body { position: relative; z-index: 1; }
.promo-slide-icon { font-size: 40px; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(126,249,255,.35)); }
.promo-slide-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.promo-slide-sub { font-size: 11.5px; opacity: 0.85; line-height: 1.6; max-width: 200px; }
.promo-slide-cta {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 11.5px; font-weight: 700; color: var(--cyan);
}
.promo-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.promo-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--glass-brd); transition: background .15s ease, width .15s ease; }
.promo-dots span.active { background: var(--pink); width: 16px; border-radius: 4px; }

/* ===================================================================
   Profile page
=================================================================== */
.profile-hero { text-align: center; }
.profile-avatar-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.profile-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-size: 32px; font-weight: 800; color: #fff;
  overflow: hidden; box-shadow: 0 6px 20px -8px rgba(255, 47, 146, 0.5);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.profile-meta-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 3px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.profile-meta-row svg { width: 13px; height: 13px; opacity: 0.7; }
.profile-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px;
}
.profile-info-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 12.5px; color: var(--text-muted);
}
.profile-info-row b { color: var(--text); font-weight: 700; font-size: 13px; }

/* ===================================================================
   List rows (دسته‌بندی فروشگاه، ردیف‌های ناوبری)
=================================================================== */
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-lg);
  padding: 15px 16px; margin-bottom: 10px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .12s ease;
  animation: cardPop 0.32s cubic-bezier(.2, .9, .3, 1.2);
}
.list-row:active { transform: scale(0.98); filter: brightness(0.97); }
.list-row-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.list-row-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff;
}
.list-row-ic.line { background: none; color: var(--pink); width: 24px; height: 24px; }
.list-row-ic.line svg { width: 100%; height: 100%; }
.list-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.list-row-sub { font-size: 11.5px; color: var(--text-muted); }
.list-row-chev { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

/* ===================================================================
   Filter chips (تب سرویس‌ها)
=================================================================== */
.chip-row {
  display: flex; gap: 8px; margin-bottom: 14px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--text-muted);
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.chip.active { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #160a2e; border-color: transparent; font-weight: 700; }

/* ===================================================================
   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; }
.qty-stepper {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 12px;
}
.qty-stepper .btn.small { padding: 8px 14px; }
.qty-stepper .qty-value {
  font-family: var(--font-mono); font-size: 17px; font-weight: 700;
  min-width: 32px; text-align: center; color: var(--cyan);
}
.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
=================================================================== */
.sub-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 8px 0;
}
.sub-info-loading, .sub-info-error {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.sub-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-muted);
  margin: 4px 0;
}
.sub-info-row b { color: var(--text); font-weight: 700; }
.progress-track {
  width: 100%; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; margin: 4px 0;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet, var(--cyan)));
}

.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); }

/* ===================================================================
   مدیریت بنرهای کاروسل خانه (تب ادمین > ظاهر > بنرها)
=================================================================== */
.banner-preview {
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 4px;
  color: #fff; overflow: hidden; position: relative;
}
.banner-preview-icon.banner-icon-input-wrap { flex-shrink: 0; }
.banner-icon-input {
  width: 40px; height: 40px; text-align: center; font-size: 20px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; color: #fff;
}
.banner-preview-title { font-size: 13.5px; font-weight: 700; }
.banner-bg-swatches { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.banner-bg-swatch {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--glass-brd); padding: 0;
}
.banner-bg-swatch:active { transform: scale(0.92); }
.banner-color-picker-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.banner-color-picker {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted);
  cursor: pointer;
}
.banner-color-picker input[type="color"] {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--glass-brd);
  border-radius: 10px; cursor: pointer; background: none;
}
.banner-color-swatch-btn {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--glass-brd);
  border-radius: 10px; cursor: pointer; flex-shrink: 0;
}
.banner-color-swatch-btn:active { transform: scale(0.92); }

/* ===================================================================
   انتخاب‌گر کامل رنگ (طیف کامل + هیو + تیرگی/روشنی) — مودال تمام‌صفحه
=================================================================== */
.color-picker-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5, 2, 15, .82); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.color-picker-modal {
  width: 100%; max-width: 320px; background: var(--bg-elevated);
  border: 1px solid var(--glass-brd); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.color-picker-picker-row { display: flex; gap: 10px; margin-bottom: 12px; }
.color-picker-sv {
  flex: 1; aspect-ratio: 1 / 1; border-radius: 12px; position: relative;
  touch-action: none; cursor: crosshair; border: 1px solid var(--glass-brd);
}
.color-picker-sv-thumb {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  transform: translate(-50%, -50%); pointer-events: none;
}
.color-picker-hue {
  width: 26px; border-radius: 12px; position: relative; touch-action: none; cursor: pointer;
  background: linear-gradient(to bottom, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  border: 1px solid var(--glass-brd);
}
.color-picker-hue-thumb {
  position: absolute; left: -3px; right: -3px; height: 8px; border-radius: 4px;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5);
  transform: translateY(-50%); pointer-events: none;
}
.color-picker-bottom { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.color-picker-preview {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--glass-brd);
}
.color-picker-hex {
  flex: 1; direction: ltr; text-align: left; font-family: var(--font-mono); text-transform: uppercase;
}
.color-picker-actions { display: flex; gap: 8px; }
.color-picker-actions .btn { margin-top: 0; }

/* ===================================================================
   کادرهای تنظیمات (فروش/تخفیف) - برچسب و پیام خطا
=================================================================== */
.field-label {
  display: block; font-size: 11.5px; color: var(--text-muted);
  margin-bottom: 5px; font-family: var(--font-body);
}
.field-error {
  color: #f87171; font-size: 12px; min-height: 14px; margin-top: 2px;
}
.field-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; margin-bottom: 12px; border-bottom: 1px solid var(--glass-brd);
  font-size: 13px; color: var(--text);
}

/* سوییچ روشن/خاموش به‌سبک iOS */
.switch {
  position: relative; display: inline-block; width: 44px; height: 25px;
  flex-shrink: 0; direction: ltr;
}
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--glass-brd);
  border-radius: 999px; transition: background .2s, border-color .2s;
}
.switch-slider::before {
  content: ""; position: absolute; width: 19px; height: 19px;
  left: 2px; top: 2px; border-radius: 50%;
  background: var(--text-muted); transition: transform .2s, background .2s;
}
.switch input:checked + .switch-slider { background: var(--cyan); border-color: var(--cyan); }
.switch input:checked + .switch-slider::before { transform: translateX(19px); background: #06222a; }

/* ===================================================================
   مدیریت محصولات (دسته‌بندی/محصول/کانفیگ) - تب ادمین
=================================================================== */
.segmented {
  display: flex; gap: 6px; margin-bottom: 14px;
  background: var(--bg-elevated); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm); padding: 4px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.seg-btn {
  flex: 0 0 auto; border: none; background: transparent; color: var(--text-muted);
  padding: 8px 12px; border-radius: 8px; font-family: var(--font-body);
  font-size: 12.5px; cursor: pointer;
  white-space: nowrap;
}
.seg-btn.active { background: var(--cyan); color: #06222a; font-weight: 700; }

/* گروه‌بندی سطح اول پنل مدیریت مینی‌اپ: چیدمان شبکه‌ای به‌جای ردیف اسکرولی،
   تا انتخاب دسته‌ی اصلی (آمار/محصولات/کاربران/...) در نگاه اول واضح باشد. */
.segmented-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 12px;
}
.seg-btn-group {
  border: 1px solid var(--glass-brd); background: var(--bg-elevated); color: var(--text-muted);
  padding: 12px 8px; border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center;
}
.seg-btn-group.active { background: var(--cyan); color: #06222a; border-color: var(--cyan); }

.admin-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--glass-brd);
}
.admin-list-row:last-child { border-bottom: none; }
.admin-list-row-main {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
  cursor: pointer;
}
.admin-list-row-main span:first-child { font-size: 13.5px; color: var(--text); font-weight: 600; }
.admin-list-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn.danger, .btn.outline.danger {
  border-color: rgba(239, 68, 68, 0.45); color: #f87171;
}

textarea.input { font-family: var(--font-mono); min-height: 90px; }

/* ===================================================================
   داشبورد آماری (تب ادمین)
=================================================================== */
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.stat-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-elevated); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm); padding: 14px 12px;
}
.stat-num { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--cyan); direction: ltr; }
.stat-label { font-size: 11.5px; color: var(--text-muted); }

.bar-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 120px;
  padding-top: 8px;
}
.bar-chart-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; gap: 4px;
}
.bar-chart-bar {
  width: 100%; max-width: 16px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  min-height: 3px;
}
.bar-chart-label {
  font-size: 8.5px; color: var(--text-muted); font-family: var(--font-mono);
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}

/* ===================================================================
   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 — flat bottom nav (matches reference screenshots)
=================================================================== */
#tabbar {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
}
#tabbar button {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px 6px;
  border: none; background: none; border-radius: 12px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  color: var(--text-muted);
  position: relative; white-space: nowrap;
  transition: color 0.15s ease;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#tabbar button svg { width: 22px; height: 22px; }
#tabbar button .ic-filled { display: none; }
#tabbar button.active .ic-outline { display: none; }
#tabbar button.active .ic-filled { display: block; }
#tabbar button.active { color: var(--pink); font-weight: 700; }
#tabbar button:active { transform: scale(0.94); }

/* ===================================================================
   Clean Light — modern flat theme (inspired by reference screenshots)
   Structural overrides on top of the token set defined above.
=================================================================== */
html[data-theme="clean-light"] body { background: var(--bg); }
html[data-theme="clean-light"] .grid-fx { display: none; }
html[data-theme="clean-light"] #tabbar button.active { color: #2f9e57; }

html[data-theme="clean-light"] .eyebrow { color: var(--cyan); }
html[data-theme="clean-light"] .eyebrow::after { background: linear-gradient(90deg, rgba(20, 40, 25, 0.12), transparent); }

html[data-theme="clean-light"] .card {
  background: var(--bg2);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--border-soft);
  box-shadow: 0 3px 16px -4px rgba(20, 40, 25, 0.09);
}
html[data-theme="clean-light"] .card::before { display: none; }
html[data-theme="clean-light"] .card h3 .ic { color: #fff; }

html[data-theme="clean-light"] .stat-card { border: 1px solid var(--border-soft); box-shadow: 0 2px 12px -4px rgba(20, 40, 25, 0.08); }
html[data-theme="clean-light"] .quick-item {
  background: var(--bg2);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px -4px rgba(20, 40, 25, 0.08);
}
html[data-theme="clean-light"] .quick-item .q-ic { color: var(--pink); }

html[data-theme="clean-light"] .list-row {
  background: var(--bg2);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px -4px rgba(20, 40, 25, 0.08);
}
html[data-theme="clean-light"] .chip {
  background: var(--bg2); border-color: var(--border-soft); color: var(--text-muted);
}
html[data-theme="clean-light"] .chip.active { color: #0d2b12; }

html[data-theme="clean-light"] .stat-row { border-bottom-color: var(--border-soft); }
html[data-theme="clean-light"] .stat-row b {
  background: none; -webkit-text-fill-color: unset;
  color: var(--cyan);
}

html[data-theme="clean-light"] .btn {
  color: #0d2b12;
  box-shadow: 0 6px 16px -6px rgba(47, 158, 87, 0.45);
}
html[data-theme="clean-light"] .btn.outline {
  background: var(--bg2); color: var(--text); border: 1px solid var(--border-soft);
  backdrop-filter: none;
}
html[data-theme="clean-light"] .btn:disabled { background: #eef1ee; color: var(--text-muted); }
html[data-theme="clean-light"] .btn.violet { color: #fff; }

html[data-theme="clean-light"] .badge {
  background: rgba(20, 40, 25, 0.06); color: var(--text-muted); border-color: var(--border-soft);
}
html[data-theme="clean-light"] .badge.approved { background: rgba(47, 158, 87, 0.12); color: #1f7a41; border-color: rgba(47, 158, 87, 0.35); }
html[data-theme="clean-light"] .badge.pending { background: rgba(255, 176, 32, 0.14); color: #9a6300; border-color: rgba(255, 176, 32, 0.4); }
html[data-theme="clean-light"] .badge.rejected { background: rgba(229, 72, 77, 0.12); color: #c1272d; border-color: rgba(229, 72, 77, 0.35); }

html[data-theme="clean-light"] .sub-info { background: rgba(20, 40, 25, 0.03); }
html[data-theme="clean-light"] .progress-track { background: rgba(20, 40, 25, 0.08); }

html[data-theme="clean-light"] .link-box {
  background: #f2f6f2; color: #1f7a41; border-color: var(--border-soft);
}
html[data-theme="clean-light"] .qr-row img { border-color: var(--border-soft); }

html[data-theme="clean-light"] .reels { background: #eef2ee; box-shadow: inset 0 2px 8px rgba(20, 40, 25, 0.08); }
html[data-theme="clean-light"] .reel { background: #fff; border-color: var(--border-soft); }
html[data-theme="clean-light"] .spin-cta {
  background: radial-gradient(circle at 35% 30%, #b9ecab, var(--pink) 55%, var(--violet));
  color: #0d2b12; box-shadow: 0 8px 18px -6px rgba(47, 158, 87, 0.45);
}
html[data-theme="clean-light"] .jackpot-result { background: var(--bg); }

html[data-theme="clean-light"] .bank-card-holder { color: #f3ecff; }
html[data-theme="clean-light"] .bank-card-holder-label { color: rgba(255, 255, 255, 0.6); }

html[data-theme="clean-light"] .skel {
  background: linear-gradient(100deg, #eef1ee 30%, #f8faf8 50%, #eef1ee 70%);
  border-color: var(--border-soft);
}

html[data-theme="clean-light"] .chat-messages::-webkit-scrollbar-thumb,
html[data-theme="clean-light"] main::-webkit-scrollbar-thumb { background: var(--border-soft); }

html[data-theme="clean-light"] #tabbar { background: #ffffff; }

/* بنر تمام‌صفحه‌ی عضویت اجباری در کانال */
.force-join-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
