/* ==========================================================================
   ZILLION — Клуб твоих грез (18+) • Nocturnal UV Blacklight & Electric Acid-Lime
   Strict CSP Compliant ('self') • Mobile-First • Telegram Mini App & Browser Ready
   ========================================================================== */

:root {
  /* Core Nocturnal UV Blacklight Surfaces */
  --bg-obsidian: #04020a;
  --bg-elevated: #0b0618;
  --bg-card: rgba(14, 9, 28, 0.86);
  --bg-card-hover: rgba(21, 13, 42, 0.94);
  --bg-input: rgba(8, 5, 19, 0.92);
  --bg-glass-heavy: rgba(11, 6, 24, 0.95);

  /* Electric Acid-Lime Neon Primary & Deep UV Secondary */
  --accent-lime: #39ff14;
  --accent-lime-bright: #6dff2e;
  --accent-lime-pale: #b4ff39;
  --accent-uv: #7c3aed;
  --accent-uv-bright: #9333ea;
  --uv-soft: rgba(124, 58, 237, 0.18);
  --uv-border: rgba(124, 58, 237, 0.28);
  --uv-border-strong: rgba(147, 51, 234, 0.52);

  /* Legacy Alias Tokens Mapped to Zillion Acid-Lime & UV Palette */
  --accent-orange: #39ff14;
  --accent-amber: #6dff2e;
  --accent-gradient: linear-gradient(135deg, #39ff14 0%, #6dff2e 55%, #b4ff39 100%);
  --accent-gradient-vivid: linear-gradient(135deg, #4dff29 0%, #82ff47 52%, #c9ff63 100%);
  --accent-soft: rgba(57, 255, 20, 0.13);
  --accent-border: rgba(124, 58, 237, 0.28);
  --accent-border-strong: rgba(57, 255, 20, 0.48);
  --accent-glow: 0 8px 28px rgba(57, 255, 20, 0.34), 0 0 18px rgba(124, 58, 237, 0.32);

  /* Semantic Status Colors */
  --success: #39ff14;
  --success-bg: rgba(57, 255, 20, 0.13);
  --success-border: rgba(109, 255, 46, 0.38);
  --warning: #facc15;
  --warning-bg: rgba(250, 204, 21, 0.14);
  --danger: #fb7185;
  --danger-bg: rgba(244, 63, 94, 0.14);
  --danger-border: rgba(251, 113, 133, 0.36);

  /* Typography */
  --text-primary: #f7f6ff;
  --text-secondary: #a8a0c7;
  --text-muted: #706892;
  --text-on-accent: #041202;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, monospace;

  /* Layout & Geometry (Adaptive Phone -> Tablet -> Full PC Desktop) */
  --shell-max-width: 100%;
  --header-height: 62px;
  --bottom-nav-height: 68px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Safe Area Insets (iOS Telegram Mini App Support) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 160ms var(--ease-out);
  --transition-med: 260ms var(--ease-out);
}

/* --------------------------------------------------------------------------
   1. Reset, Security Shields & Global Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden],
.hidden,
.is-hidden {
  display: none !important;
}

/* Anti-Bot Honeypot Wrapper (Invisible to humans & screen-layout) */
.hp-field-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Anti-Shoulder-Surfing / App-Switcher Blur Shield */
.privacy-curtain-active .app-shell,
.privacy-curtain-active .modal-backdrop {
  filter: blur(24px) brightness(0.35);
  transition: filter 0.15s ease;
}

.privacy-curtain-active .modal-overlay {
  filter: blur(24px) brightness(0.35);
  transition: filter 0.15s ease;
}

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

img,
video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--accent-lime-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-lime-pale);
}

:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 2px;
}

/* Custom Sleek Scrollbar (Desktop) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(4, 2, 10, 0.88);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.42);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(57, 255, 20, 0.55);
}

/* --------------------------------------------------------------------------
   2. Ambient Background Aura & Centered Mobile-First Shell
   -------------------------------------------------------------------------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(98px);
  opacity: 0.48;
}

.ambient-orb-top {
  width: 440px;
  height: 440px;
  top: -155px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.44) 0%, rgba(147, 51, 234, 0.16) 52%, transparent 76%);
}

.ambient-orb-bottom {
  width: 390px;
  height: 390px;
  bottom: -145px;
  left: 50%;
  transform: translateX(-35%);
  background: radial-gradient(circle, rgba(57, 255, 20, 0.22) 0%, rgba(124, 58, 237, 0.14) 55%, transparent 76%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(11, 6, 24, 0.78) 0%, rgba(4, 2, 10, 0.94) 100%);
  transition: filter 0.15s ease;
}

@media (min-width: 540px) {
  .app-shell {
    border-left: 1px solid rgba(124, 58, 237, 0.28);
    border-right: 1px solid rgba(124, 58, 237, 0.28);
    box-shadow: 0 0 84px rgba(0, 0, 0, 0.9), 0 0 48px rgba(124, 58, 237, 0.12);
  }
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--uv-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   3. Top Sticky Header & Brand Identity
   -------------------------------------------------------------------------- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: rgba(4, 2, 10, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.28);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.03em;
  user-select: none;
  flex-shrink: 0;
}

.brand-logo-sm {
  font-size: 1rem;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(57, 255, 20, 0.45);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.32), 0 0 22px rgba(124, 58, 237, 0.34);
  flex-shrink: 0;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.brand-logo-sm .brand-logo-img {
  height: 30px;
  border-radius: 8px;
}

.brand-bar {
  color: #ffffff;
  letter-spacing: 0.06em;
}

.brand-cyk {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.42);
}

.brand-drink {
  font-size: 1.15em;
  margin-left: 1px;
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.42));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 155px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 9px var(--accent-lime);
  flex-shrink: 0;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(57, 255, 20, 0.12));
  border: 1px solid rgba(57, 255, 20, 0.36);
  color: var(--accent-lime-bright);
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.icon-pill-btn:hover {
  border-color: var(--accent-lime);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.28), 0 0 16px rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

.icon-pill-btn:active {
  transform: scale(0.96);
}

@media (max-width: 360px) {
  .icon-pill-label {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   4. Main Content & Tab Views
   -------------------------------------------------------------------------- */
.app-main {
  flex: 1;
  padding: 14px 16px calc(var(--bottom-nav-height) + var(--safe-bottom) + 26px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeSlideUp 240ms var(--ease-out);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}

.section-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   5. Hero Banner, Banner Visual & Trust Badges
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124, 58, 237, 0.28) 0%, rgba(57, 255, 20, 0.08) 48%, transparent 76%),
    var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.36);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.56), 0 0 28px rgba(124, 58, 237, 0.14);
}

.hero-banner-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 204px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  object-fit: cover;
  background:
    linear-gradient(180deg, rgba(4, 2, 10, 0.06) 0%, rgba(4, 2, 10, 0.56) 100%),
    url('/assets/zillion-banner.jpg') center / cover no-repeat,
    radial-gradient(circle at 50% 35%, rgba(124, 58, 237, 0.36), rgba(4, 2, 10, 0.96));
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.58), 0 0 22px rgba(124, 58, 237, 0.24), 0 0 12px rgba(57, 255, 20, 0.14);
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.hero-banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.hero-glow {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.28) 0%, rgba(124, 58, 237, 0.24) 45%, transparent 72%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.32);
  color: var(--accent-lime-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
}

.hero-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(4, 2, 10, 0.72);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #ebe8ff;
  font-size: 0.74rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Search Bar & Horizontal Category Chips
   -------------------------------------------------------------------------- */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
  transition: color var(--transition-fast);
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: rgba(57, 255, 20, 0.6);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.14), 0 0 18px rgba(124, 58, 237, 0.22);
  background: rgba(11, 6, 24, 0.98);
}

.search-box:focus-within .search-icon {
  color: var(--accent-lime);
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

#category-chips > button,
#category-chips .chip,
#category-chips .category-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 9, 28, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

#category-chips > button:hover,
#category-chips .chip:hover,
.chip:hover {
  border-color: rgba(57, 255, 20, 0.45);
  color: var(--text-primary);
  transform: translateY(-1px);
}

#category-chips > button.active,
#category-chips > button.is-active,
#category-chips > button[aria-selected="true"],
#category-chips .chip.active,
#category-chips .chip.is-active,
.chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--text-on-accent);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(57, 255, 20, 0.34), 0 0 14px rgba(124, 58, 237, 0.24);
}

/* --------------------------------------------------------------------------
   7. Packs Catalog Grid & Cards
   -------------------------------------------------------------------------- */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 13px;
}

/* Prevent empty state showing simultaneously if grid has items */
#packs-grid:not(:empty) ~ #catalog-empty {
  display: none !important;
}

.pack-card,
#packs-grid > article,
#packs-grid > div:not(.empty-state) {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--uv-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med), background var(--transition-med);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
}

.pack-card:hover,
#packs-grid > article:hover,
#packs-grid > div:not(.empty-state):not(.skeleton-card):hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--accent-border-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.65), 0 0 22px rgba(57, 255, 20, 0.16), 0 0 28px rgba(124, 58, 237, 0.2);
}

.pack-card:active {
  transform: scale(0.985);
}

/* Card Media / Teaser Thumbnail */
.pack-thumb,
.pack-preview,
.pack-media,
.card-media,
.pack-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 58, 237, 0.28), rgba(8, 5, 18, 0.96) 75%),
    #080512;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.pack-thumb img,
.pack-thumb video,
.pack-preview img,
.pack-preview video,
.pack-media img,
.pack-media video,
.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.pack-card:hover .pack-thumb img,
.pack-card:hover .pack-preview img,
.pack-card:hover .pack-media img {
  transform: scale(1.04);
}

.pack-thumb-fallback,
.preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--accent-lime-bright);
  font-size: 2rem;
  opacity: 0.92;
}

.pack-badge,
.card-badge,
.teaser-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(4, 2, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(57, 255, 20, 0.38);
  color: var(--accent-lime-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pack-badge-right {
  left: auto;
  right: 10px;
  border-color: rgba(147, 51, 234, 0.55);
  color: #e9d5ff;
}

/* Card Body */
.pack-body,
.pack-content,
.card-body,
.pack-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 13px 14px 14px;
  min-width: 0;
}

.pack-title,
.card-title,
#packs-grid h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-desc,
.card-desc,
#packs-grid p {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-stats,
.pack-meta,
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 2px;
}

.stat-chip,
.meta-chip,
.pack-stats > span,
.pack-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.24);
  color: #ded9f5;
  font-size: 0.72rem;
  font-weight: 600;
}

.pack-footer,
.card-footer,
.pack-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.pack-price,
.price-tag {
  font-size: 1.08rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Shimmer Loading Skeletons */
.skeleton-card {
  pointer-events: none;
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 25%, rgba(57, 255, 20, 0.1) 50%, rgba(124, 58, 237, 0.08) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.skeleton-line {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(124, 58, 237, 0.18) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-line-lg { width: 82%; height: 14px; }
.skeleton-line-md { width: 60%; }
.skeleton-line-sm { width: 42%; margin-top: 4px; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   8. Empty States & Purchases List
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 22px;
  gap: 8px;
}

.empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(57, 255, 20, 0.34);
  margin-bottom: 4px;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.28), 0 0 14px rgba(57, 255, 20, 0.14);
}

.empty-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.empty-text {
  margin: 0;
  max-width: 340px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Automatically hide default empty state whenever #purchases-list has content */
#purchases-list:not(:empty) + #purchases-empty {
  display: none;
}

.purchase-card,
.order-card,
.purchase-item,
#purchases-list > article,
#purchases-list > div:not(.empty-state) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--uv-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.purchase-header,
.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.purchase-title,
.order-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.purchase-meta,
.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.purchase-actions,
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   9. Custom & Support Ticket Form (#view-custom)
   -------------------------------------------------------------------------- */
.custom-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-concierge-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.concierge-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.concierge-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.concierge-list strong {
  color: #f3f0ff;
}

.concierge-list code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-lime-bright);
  background: rgba(57, 255, 20, 0.1);
  padding: 1px 5px;
  border-radius: 5px;
}

.ticket-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.segmented-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.segmented-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-md);
  background: rgba(4, 2, 10, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.28);
  margin-top: 6px;
}

.segment-option {
  position: relative;
  cursor: pointer;
}

.segment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}

.segment-option input[type="radio"]:checked + .segment-pill {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(57, 255, 20, 0.32);
}

.segment-option input[type="radio"]:focus-visible + .segment-pill {
  outline: 2px solid var(--accent-lime);
  outline-offset: 2px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ebe8ff;
}

.label-muted {
  font-weight: 500;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-textarea {
  resize: vertical;
  min-height: 118px;
  line-height: 1.48;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(57, 255, 20, 0.58);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.14), 0 0 18px rgba(124, 58, 237, 0.2);
}

.ticket-feedback {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.36);
  color: var(--accent-lime-bright);
}

.ticket-feedback.success,
.ticket-feedback.is-success,
.ticket-feedback[data-type="success"] {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--accent-lime-bright);
}

.ticket-feedback.error,
.ticket-feedback.is-error,
.ticket-feedback[data-type="error"] {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   10. Buttons & Badges System
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.975);
}

.btn-sm {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 0.96rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #041202;
  border: 1px solid rgba(180, 255, 57, 0.52);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-gradient-vivid);
  color: #041202;
  transform: translateY(-1px);
}

.btn-glow {
  box-shadow: var(--accent-glow);
}

.btn-glow:hover:not(:disabled) {
  box-shadow: 0 10px 32px rgba(57, 255, 20, 0.48), 0 0 22px rgba(124, 58, 237, 0.36);
}

.btn-secondary,
.btn-outline {
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(57, 255, 20, 0.34);
  color: var(--accent-lime-bright);
}

.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: rgba(57, 255, 20, 0.14);
  border-color: var(--accent-lime);
  color: var(--accent-lime-pale);
}

.btn-success,
.btn-claim,
.btn-telegram {
  background: linear-gradient(135deg, #39ff14 0%, #6dff2e 58%, #b4ff39 100%);
  color: #041202;
  border: 1px solid rgba(180, 255, 57, 0.55);
  box-shadow: 0 8px 24px rgba(57, 255, 20, 0.32);
}

.btn-success:hover:not(:disabled),
.btn-claim:hover:not(:disabled),
.btn-telegram:hover:not(:disabled) {
  color: #041202;
  box-shadow: 0 10px 28px rgba(57, 255, 20, 0.46), 0 0 18px rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.16);
  color: var(--text-primary);
}

/* Badges & Status Pills */
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-category {
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.36);
  color: var(--accent-lime-bright);
}

.badge-protect {
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.34);
  color: #d8b4fe;
}

.status-pending,
.badge-pending,
[data-status="pending"] {
  background: var(--warning-bg);
  border: 1px solid rgba(250, 204, 21, 0.36);
  color: var(--warning);
}

.status-paid,
.status-delivered,
.badge-paid,
.badge-delivered,
[data-status="paid"],
[data-status="delivered"] {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--accent-lime-bright);
}

.status-failed,
.status-canceled,
.status-expired,
.badge-error,
[data-status="failed"],
[data-status="expired"] {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   11. Fixed Bottom Navigation Bar (#bottom-nav)
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max-width);
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 8px calc(var(--safe-bottom) + 8px);
  background: rgba(8, 4, 18, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(124, 58, 237, 0.32);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.72);
}

@media (min-width: 540px) {
  .bottom-nav {
    border-left: 1px solid rgba(124, 58, 237, 0.28);
    border-right: 1px solid rgba(124, 58, 237, 0.28);
  }
}

.nav-item,
#bottom-nav > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-icon {
  font-size: 1.18rem;
  line-height: 1;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-item:hover,
#bottom-nav > button:hover {
  color: var(--text-primary);
}

.nav-item.active,
.nav-item.is-active,
#bottom-nav > button.active,
#bottom-nav > button[aria-current="page"] {
  color: var(--accent-lime-bright);
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.14) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.nav-item.active::before,
#bottom-nav > button.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28%;
  right: 28%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--accent-lime);
}

.nav-item.active .nav-icon,
#bottom-nav > button.active .nav-icon {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.55));
}

/* --------------------------------------------------------------------------
   12. Full-Screen 18+ Age Verification Overlay (#age-gate-modal)
   -------------------------------------------------------------------------- */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 2, 10, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: filter 0.15s ease;
}

.age-gate-overlay {
  z-index: 200;
  background:
    radial-gradient(circle at 50% 22%, rgba(124, 58, 237, 0.28) 0%, rgba(57, 255, 20, 0.08) 38%, rgba(4, 2, 10, 0.97) 68%),
    rgba(4, 2, 10, 0.96);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.age-gate-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 26px 22px 22px;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 44px rgba(124, 58, 237, 0.22), 0 0 20px rgba(57, 255, 20, 0.1);
  animation: scaleIn 280ms var(--ease-out);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.age-gate-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 160px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.28) 0%, rgba(124, 58, 237, 0.28) 48%, transparent 72%);
  pointer-events: none;
}

.age-gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #041202;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.45);
}

.age-gate-title {
  margin: 0 0 10px;
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.age-gate-text {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.52;
}

.age-gate-text strong {
  color: var(--accent-lime-bright);
}

.age-gate-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: rgba(4, 2, 10, 0.76);
  border: 1px solid rgba(124, 58, 237, 0.34);
  font-size: 0.8rem;
  color: #ded9f5;
  line-height: 1.45;
}

.age-gate-notice p {
  margin: 0;
}

.age-gate-notice code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-lime-bright);
  background: rgba(57, 255, 20, 0.1);
  padding: 1px 5px;
  border-radius: 5px;
}

.notice-icon {
  font-size: 1.1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   13. Pack Detail & Checkout Modal / Bottom Drawer (#pack-modal)
   -------------------------------------------------------------------------- */
.pack-modal-overlay {
  align-items: flex-end;
  padding: 0;
  z-index: 120;
}

@media (min-width: 540px) {
  .pack-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: var(--shell-max-width);
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-glass-heavy);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: none;
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.88), 0 0 34px rgba(124, 58, 237, 0.18);
  animation: sheetSlideUp 280ms var(--ease-out);
  overflow: hidden;
}

@media (min-width: 540px) {
  .modal-sheet {
    max-height: 88vh;
    border-radius: var(--radius-xl);
    border-bottom: 1px solid rgba(124, 58, 237, 0.38);
  }
}

@keyframes sheetSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(168, 160, 199, 0.28);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

@media (min-width: 540px) {
  .sheet-handle {
    display: none;
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 2, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.34);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(124, 58, 237, 0.28);
  border-color: var(--accent-lime);
  transform: rotate(90deg);
}

.modal-scroll-body {
  overflow-y: auto;
  padding: 12px 18px calc(var(--safe-bottom) + 22px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Modal Preview Media */
.modal-preview-wrap {
  position: relative;
  width: 100%;
  min-height: 190px;
  max-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.28), rgba(6, 3, 14, 0.96) 75%),
    #06030e;
  border: 1px solid rgba(124, 58, 237, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-preview-wrap img,
.modal-preview-wrap video {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  font-size: 2.5rem;
  color: var(--accent-lime-bright);
  text-align: center;
}

/* Modal Info & Composition */
.modal-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.modal-header-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
}

.modal-price {
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#modal-stats > * {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #ebe8ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-line;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(4, 2, 10, 0.56);
  border: 1px solid rgba(124, 58, 237, 0.22);
}

.modal-desc:empty {
  display: none;
}

/* Payment Providers Selector */
.checkout-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.checkout-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px;
}

#modal-providers > button,
#modal-providers > label,
#modal-providers .provider-btn,
#modal-providers .provider-card,
#modal-providers .provider-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgba(6, 3, 15, 0.82);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#modal-providers input[type="radio"] {
  accent-color: var(--accent-lime);
}

#modal-providers > button:hover,
#modal-providers > label:hover,
#modal-providers .provider-btn:hover,
#modal-providers .provider-card:hover {
  border-color: rgba(57, 255, 20, 0.45);
  color: var(--text-primary);
}

#modal-providers > button.active,
#modal-providers > button.selected,
#modal-providers > button.is-active,
#modal-providers > button[aria-checked="true"],
#modal-providers > label.active,
#modal-providers > label:has(input:checked),
#modal-providers .provider-btn.active,
#modal-providers .provider-card.active,
#modal-providers .provider-option.active {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.16), rgba(124, 58, 237, 0.22));
  border-color: var(--accent-lime);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.35), 0 6px 18px rgba(57, 255, 20, 0.16);
}

/* Active Order & Instant Claim Panel (#order-status-box) */
.order-status-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 110% at 100% 0%, rgba(124, 58, 237, 0.22), rgba(57, 255, 20, 0.06) 55%, transparent 75%),
    rgba(9, 5, 20, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.56);
}

.order-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.order-status-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Copyable /start claim_... Command Styling */
.claim-command-wrap,
.claim-box,
.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #04020a;
  border: 1px dashed rgba(57, 255, 20, 0.42);
}

.order-status-box code,
.purchases-list code,
.claim-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-lime-bright);
  background: rgba(11, 6, 24, 0.92);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(124, 58, 237, 0.34);
  word-break: break-all;
  user-select: all;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   14. Toast Notifications (#toast-container)
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast,
#toast-container > * {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  background: rgba(14, 9, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72), 0 0 20px rgba(124, 58, 237, 0.24);
  animation: toastSlideIn 240ms var(--ease-out);
}

.toast.success,
.toast.toast-success {
  border-color: var(--success-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72), 0 0 18px rgba(57, 255, 20, 0.22);
}

.toast.error,
.toast.toast-error {
  border-color: var(--danger-border);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   15. Dynamic Storefront Announcement, 4-Tab Admin Nav & Mini App Admin Studio
   -------------------------------------------------------------------------- */

/* Storefront Live Announcement Bar (#storefront-announcement) */
.storefront-announcement {
  position: relative;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.1) 0%, rgba(124, 58, 237, 0.2) 100%),
    var(--bg-card);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.48;
  word-break: break-word;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(57, 255, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 5-Column Bottom Navigation Layout (Mounted Only for Verified Admins on Mobile) */
.bottom-nav.has-admin-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding-left: 6px;
  padding-right: 6px;
}

.bottom-nav.has-admin-nav .nav-item,
#bottom-nav.has-admin-nav > button {
  min-width: 0;
  padding: 6px 3px;
  font-size: 0.68rem;
  gap: 3px;
}

.bottom-nav.has-admin-nav .nav-icon {
  font-size: 1.12rem;
}

@media (max-width: 380px) {
  .bottom-nav.has-admin-nav {
    gap: 2px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .bottom-nav.has-admin-nav .nav-item,
  #bottom-nav.has-admin-nav > button {
    font-size: 0.64rem;
    padding: 6px 2px;
  }
}

.nav-item-admin {
  color: #d8b4fe;
}

.nav-item-admin.active,
#bottom-nav > button.nav-item-admin.active,
#bottom-nav > button.nav-item-admin[aria-current="page"] {
  color: #fef08a;
  background: linear-gradient(
    180deg,
    rgba(250, 204, 21, 0.16) 0%,
    rgba(57, 255, 20, 0.12) 55%,
    rgba(124, 58, 237, 0.16) 100%
  );
}

.nav-item-admin.active::before,
#bottom-nav > button.nav-item-admin.active::before {
  background: linear-gradient(90deg, #facc15 0%, #39ff14 55%, #b4ff39 100%);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6), 0 0 10px rgba(57, 255, 20, 0.45);
}

.nav-item-admin.active .nav-icon,
#bottom-nav > button.nav-item-admin.active .nav-icon {
  filter: drop-shadow(0 0 9px rgba(250, 204, 21, 0.68));
}

/* Quick-Edit Pack Button in Pack Detail Modal (.modal-header-block) */
.adm-quick-edit-btn {
  width: 100%;
  margin-top: 2px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(124, 58, 237, 0.22));
  border: 1px dashed rgba(250, 204, 21, 0.48);
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: center;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.adm-quick-edit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.16), rgba(124, 58, 237, 0.28));
  border-color: var(--accent-lime);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.22), 0 0 16px rgba(250, 204, 21, 0.2);
  transform: translateY(-1px);
}

/* Admin Studio Root Shell & Header */
.adm-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      125% 125% at 100% 0%,
      rgba(250, 204, 21, 0.14) 0%,
      rgba(124, 58, 237, 0.26) 46%,
      rgba(12, 7, 24, 0.96) 100%
    ),
    #0c0718;
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.54), 0 0 22px rgba(124, 58, 237, 0.16);
}

.adm-header h2,
.adm-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.adm-header p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Horizontal Pill Sub-Navigation (.adm-subnav) */
.adm-subnav {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.adm-subnav::-webkit-scrollbar {
  display: none;
}

.adm-subnav > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(12, 7, 24, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.adm-subnav > button:hover {
  border-color: rgba(57, 255, 20, 0.45);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.adm-subnav > button.active,
.adm-subnav > button.is-active,
.adm-subnav > button[aria-selected="true"] {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--text-on-accent);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(57, 255, 20, 0.32), 0 0 14px rgba(124, 58, 237, 0.24);
}

/* Panels & Responsive Grids */
.adm-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(12, 7, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.adm-panel h3,
.adm-panel h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.adm-panel p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.46;
}

.adm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}

/* KPI Metrics Dashboard */
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 340px) {
  .adm-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.adm-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    rgba(7, 4, 16, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
  min-width: 0;
}

.adm-kpi-val {
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.adm-kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.32;
}

/* Admin Forms, Inputs, Selects, Checkboxes & File Uploaders */
.adm-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.adm-form-row > label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ebe8ff;
}

.adm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

@media (max-width: 390px) {
  .adm-form-grid {
    grid-template-columns: 1fr;
  }
}

.adm-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.adm-shell select,
.adm-shell textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.adm-shell select {
  appearance: auto;
  background-color: #090515;
  cursor: pointer;
}

.adm-shell select option {
  background-color: #0c0718;
  color: #f7f6ff;
}

.adm-shell textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.46;
}

.adm-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
.adm-shell textarea::placeholder {
  color: var(--text-muted);
}

.adm-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.adm-shell select:focus,
.adm-shell textarea:focus {
  outline: none;
  border-color: rgba(57, 255, 20, 0.6);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.14), 0 0 16px rgba(124, 58, 237, 0.22);
}

.adm-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(6, 3, 15, 0.78);
  border: 1px solid rgba(124, 58, 237, 0.26);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.adm-checkbox-row:hover {
  border-color: rgba(57, 255, 20, 0.42);
  background: rgba(12, 7, 24, 0.92);
}

.adm-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-lime);
  flex-shrink: 0;
  cursor: pointer;
}

.adm-file-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 3, 15, 0.82);
  border: 1px dashed rgba(57, 255, 20, 0.42);
  min-width: 0;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.adm-file-box:hover {
  border-color: var(--accent-lime);
  background: rgba(11, 6, 24, 0.92);
}

.adm-file-box input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.adm-file-box input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(57, 255, 20, 0.45);
  background: rgba(124, 58, 237, 0.22);
  color: var(--accent-lime-bright);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.adm-file-box input[type="file"]::file-selector-button:hover {
  background: rgba(57, 255, 20, 0.18);
  border-color: var(--accent-lime);
  color: #ffffff;
}

.adm-upload-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-lime-bright);
  line-height: 1.4;
  word-break: break-word;
}

.adm-upload-status:empty {
  display: none;
}

/* Pack Management Rows, Media Items & Preview Box */
.adm-pack-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: rgba(7, 4, 16, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.28);
  min-width: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.adm-pack-row:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.46);
}

.adm-pack-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-width: 0;
}

.adm-pack-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.adm-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.adm-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(4, 2, 10, 0.84);
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.82rem;
  min-width: 0;
}

.adm-item-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.adm-preview-box {
  position: relative;
  width: 100%;
  min-height: 110px;
  max-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.24), rgba(4, 2, 10, 0.96) 78%),
    #04020a;
  border: 1px solid rgba(124, 58, 237, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-preview-box img,
.adm-preview-box video {
  width: 100%;
  max-height: 218px;
  object-fit: cover;
}

/* Users, Orders, Tickets & Security Audit Rows */
.adm-user-row,
.adm-order-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(7, 4, 16, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.26);
  font-size: 0.83rem;
  min-width: 0;
  word-break: break-word;
}

.adm-ticket-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(8, 5, 19, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.32);
  font-size: 0.85rem;
  min-width: 0;
  word-break: break-word;
}

.adm-audit-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(4, 2, 10, 0.84);
  border: 1px solid rgba(124, 58, 237, 0.22);
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-width: 0;
  word-break: break-word;
}

.adm-shell code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-lime-bright);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.28);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-all;
}

/* Admin Destructive Action Button & Status Badges */
.adm-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.adm-danger-btn:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.26);
  border-color: #fb7185;
  color: #ffe4e6;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.24);
  transform: translateY(-1px);
}

.adm-badge-on,
.adm-badge-off {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.adm-badge-on {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--accent-lime-bright);
}

.adm-badge-off {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.34);
  color: #fda4af;
}

/* --------------------------------------------------------------------------
   16. Adaptive Tablet & Full PC Desktop Layout (Stretched Mini App & Web)
   - < 760px: Native Mobile Version (Bottom Nav + Bottom Drawer + Compact Cards)
   - >= 760px: Full PC Desktop Version (Left Sidebar + Split Hero + Multi-Col Grid + Split Modal)
   -------------------------------------------------------------------------- */

/* Admin Studio Utility Classes (Mobile Base + Desktop Grid Upgrade) */
.adm-studio-head,
.adm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.adm-panel-title {
  margin: 0 0 3px;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-primary);
}

.adm-panel-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.adm-form-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}

.adm-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.adm-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(7, 4, 17, 0.84);
  border: 1px solid rgba(124, 58, 237, 0.28);
  cursor: pointer;
}

.adm-cat-item input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--accent-lime);
  flex-shrink: 0;
  cursor: pointer;
}

.adm-cat-info {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.adm-cat-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-lime-bright);
}

.adm-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.adm-inline-form > input {
  flex: 1 1 220px;
  min-width: 0;
}

/* Intermediate Stretch (560px - 759px): Widen Cards & Forms Smoothly */
@media (min-width: 560px) and (max-width: 759px) {
  .app-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  #packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .modal-sheet {
    max-width: 640px;
  }
}

@media (min-width: 680px) {
  .adm-form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
  }
}

/* Full PC / Stretched Telegram Desktop Experience (>= 760px) */
@media (min-width: 760px) {
  .ambient-orb-top {
    width: 680px;
    height: 680px;
    top: -240px;
    opacity: 0.52;
  }

  .ambient-orb-bottom {
    width: 620px;
    height: 620px;
    bottom: -240px;
    opacity: 0.45;
  }

  /* Transform App Shell from Mobile Tube into Widescreen Desktop Grid */
  .app-shell {
    max-width: 1480px;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "header header"
      "sidebar main";
    border-left: 1px solid rgba(124, 58, 237, 0.24);
    border-right: 1px solid rgba(124, 58, 237, 0.24);
  }

  /* Desktop Top Header */
  .top-header {
    grid-area: header;
    padding: calc(var(--safe-top) + 14px) 28px 14px;
  }

  .brand-logo-img {
    height: 38px;
  }

  .user-pill {
    max-width: 260px;
    padding: 6px 13px;
    font-size: 0.81rem;
  }

  .icon-pill-btn {
    padding: 8px 15px;
    font-size: 0.84rem;
  }

  /* Transform #bottom-nav into Sticky Left Desktop Sidebar Rail */
  .bottom-nav,
  .bottom-nav.has-admin-nav {
    grid-area: sidebar;
    position: sticky;
    top: 67px;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: calc(100vh - 67px);
    height: calc(100dvh - 67px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 22px 14px 28px;
    background: rgba(7, 4, 18, 0.78);
    border-top: none;
    border-left: none;
    border-right: 1px solid rgba(124, 58, 237, 0.28);
    box-shadow: none;
    overflow-y: auto;
  }

  .bottom-nav .nav-item,
  .bottom-nav.has-admin-nav .nav-item,
  #bottom-nav > button,
  #bottom-nav.has-admin-nav > button {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
  }

  .bottom-nav .nav-icon,
  .bottom-nav.has-admin-nav .nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .bottom-nav .nav-item.active,
  #bottom-nav > button.active,
  #bottom-nav > button[aria-current="page"] {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.15) 0%, rgba(124, 58, 237, 0.12) 100%);
  }

  .bottom-nav .nav-item-admin.active,
  #bottom-nav > button.nav-item-admin.active,
  #bottom-nav > button.nav-item-admin[aria-current="page"] {
    background: linear-gradient(
      90deg,
      rgba(250, 204, 21, 0.18) 0%,
      rgba(57, 255, 20, 0.12) 55%,
      rgba(124, 58, 237, 0.16) 100%
    );
  }

  .bottom-nav .nav-item.active::before,
  #bottom-nav > button.active::before {
    top: 20%;
    bottom: 20%;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
  }

  .bottom-nav .nav-item.active .nav-icon,
  #bottom-nav > button.active .nav-icon {
    transform: none;
  }

  /* Spacious Desktop Main Content Canvas */
  .app-main {
    grid-area: main;
    min-width: 0;
    padding: 24px 28px 44px;
    gap: 22px;
  }

  .tab-view {
    gap: 20px;
    min-width: 0;
  }

  .section-title {
    font-size: 1.48rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  /* Widescreen 2-Column Split Hero Banner */
  .hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-banner-visual {
    order: 2;
    margin-bottom: 0;
    max-height: 235px;
    height: 100%;
  }

  .hero-title {
    font-size: 1.52rem;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 16px;
    max-width: 60ch;
  }

  /* Desktop Pack Cards Grid (2 Columns at 760px+) */
  #packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pack-body,
  .pack-content,
  .card-body,
  .pack-info {
    padding: 15px 16px 16px;
    gap: 10px;
  }

  .pack-title,
  .card-title,
  #packs-grid h3 {
    font-size: 1.06rem;
  }

  .pack-price,
  .price-tag {
    font-size: 1.16rem;
  }

  /* Desktop Centered Widescreen Split Pack Modal */
  .modal-sheet {
    max-width: 880px;
    max-height: 88vh;
    border-radius: var(--radius-xl);
  }

  .modal-scroll-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.94fr) minmax(0, 1.06fr);
    gap: 24px;
    align-items: start;
    padding: 26px 28px 30px;
  }

  .modal-preview-wrap {
    position: sticky;
    top: 0;
    min-height: 270px;
    max-height: 450px;
  }

  .modal-preview-wrap img,
  .modal-preview-wrap video {
    max-height: 450px;
  }

  .modal-title {
    font-size: 1.42rem;
  }

  .modal-price {
    font-size: 1.48rem;
  }

  /* Desktop Age Gate Polish */
  .age-gate-card {
    max-width: 520px;
    padding: 32px 32px 28px;
  }

  .age-gate-title {
    font-size: 1.65rem;
  }

  .age-gate-actions {
    flex-direction: row-reverse;
  }

  .age-gate-actions > .btn {
    flex: 1;
  }

  /* Desktop Admin Studio Enhancements */
  .adm-subnav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .adm-panel {
    padding: 22px 24px;
    gap: 16px;
  }

  .adm-kpi-grid,
  .adm-kpi-grid.packs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Large Desktop (>= 980px): Horizontal Filter Toolbar, 2-Col Purchases, 2-Col Custom & 3-Col Catalog */
@media (min-width: 980px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .app-main {
    padding: 28px 34px 52px;
  }

  .hero-banner {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 32px;
    padding: 30px 34px;
  }

  .hero-banner-visual {
    max-height: 265px;
  }

  .hero-title {
    font-size: 1.76rem;
  }

  .catalog-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .search-box {
    flex: 0 0 340px;
    max-width: 42%;
  }

  .category-chips {
    flex: 1;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  #packs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  #purchases-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .custom-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.85fr);
    gap: 20px;
    align-items: start;
  }

  .modal-sheet {
    max-width: 940px;
  }
}

/* Wide Desktop Monitors (>= 1340px): 4-Col Catalog & 6-Col Admin KPIs */
@media (min-width: 1340px) {
  .app-shell {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  #packs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .adm-kpi-grid,
  .adm-kpi-grid.packs-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   17. Club Chat Photo Attachments & Message History
   -------------------------------------------------------------------------- */
.chat-photo-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 3, 15, 0.72);
  border: 1px dashed rgba(57, 255, 20, 0.36);
}

.chat-photo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-file-input {
  flex: 1 1 200px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.chat-file-input::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(57, 255, 20, 0.45);
  background: rgba(124, 58, 237, 0.24);
  color: var(--accent-lime-bright);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.my-tickets-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 58, 237, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-tickets-heading {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.my-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.my-ticket-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: rgba(5, 3, 12, 0.84);
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.my-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.my-ticket-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.my-ticket-reply {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.32);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.adm-ticket-media-wrap {
  margin-top: 4px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.32);
  background: #04020a;
  max-width: 420px;
}

.adm-ticket-photo {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #04020a;
}

/* Legal ("Политика и Соглашение") Unified Section & Age-Gate Links */
.age-gate-legal {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 58, 237, 0.24);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.78rem;
}

.age-legal-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.age-legal-link:hover {
  color: var(--accent-lime-bright);
}

.age-legal-sep {
  color: var(--text-muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 820px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.legal-doc-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.legal-doc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(57, 255, 20, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.legal-doc-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.legal-doc-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-primary);
}

.legal-doc-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Hierarchical Category Explorer (Subcategories, Archive Folders & Category Description) */
.category-explorer {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: rgba(124, 58, 237, 0.38);
}

.cat-explorer-title-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-explorer-breadcrumb {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-lime-bright);
  letter-spacing: 0.02em;
}

.cat-explorer-heading {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cat-explorer-desc {
  margin: 2px 0 0;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.subcat-buttons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 760px) {
  .subcat-buttons-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.subcat-row-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(18, 12, 34, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.36);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.subcat-row-btn:hover {
  border-color: rgba(57, 255, 20, 0.55);
  background: rgba(28, 18, 52, 0.95);
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.14);
  transform: translateY(-1px);
}

.subcat-row-btn:active {
  transform: scale(0.985);
}

.cat-explorer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

/* Nested Subcategories Visual Indentation in Admin Studio */
.adm-cat-nested {
  border-left: 3px solid rgba(57, 255, 20, 0.5);
}

.adm-cat-depth-1 {
  margin-left: 14px;
}

.adm-cat-depth-2 {
  margin-left: 28px;
}

.adm-cat-depth-3 {
  margin-left: 40px;
}

/* Promo Badges, Strikethrough Old Prices, Bundle CTA & Promo Code Box */
.pack-badge-promo {
  top: auto;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.94), rgba(168, 85, 247, 0.94));
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

.pack-price-stack {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.pack-old-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.56);
  text-decoration: line-through;
}

.sale-pct-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.55);
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 800;
}

.bundle-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.12), rgba(124, 58, 237, 0.22));
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.bundle-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bundle-cta-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bundle-cta-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.promo-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.promo-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.promo-input {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.promo-feedback {
  font-size: 0.81rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.promo-feedback.is-valid {
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--accent-lime-bright);
}

.promo-feedback.is-error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

/* --------------------------------------------------------------------------
   18. Club Privilege Strip, Favorites, Sorting, Carousel, VIP & Growth UI
   -------------------------------------------------------------------------- */

/* Luxury Club Privilege Strip (Balance, Referrals & VIP Status) */
.club-privilege-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background:
    radial-gradient(110% 140% at 0% 0%, rgba(250, 204, 21, 0.12) 0%, rgba(124, 58, 237, 0.22) 48%, rgba(57, 255, 20, 0.08) 100%),
    var(--bg-card);
  border: 1px solid rgba(250, 204, 21, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), 0 0 24px rgba(124, 58, 237, 0.18);
}

.club-strip-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.club-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(6, 3, 16, 0.84);
  border: 1px solid rgba(57, 255, 20, 0.42);
  font-size: 0.86rem;
}

.club-balance-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.club-balance-amount {
  color: var(--accent-lime-bright);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.club-invite-btn {
  border-color: rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(57, 255, 20, 0.14));
  color: #f4f1ff;
  font-weight: 700;
}

.club-invite-btn:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime-pale);
}

.club-ref-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 3, 14, 0.86);
  border: 1px solid rgba(124, 58, 237, 0.34);
  animation: fadeSlideUp 200ms var(--ease-out);
}

.club-ref-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.46;
  color: var(--text-secondary);
}

.club-ref-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.club-ref-code {
  display: block;
  width: 100%;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: rgba(11, 6, 24, 0.96);
  border: 1px solid rgba(57, 255, 20, 0.32);
  color: var(--accent-lime-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: nowrap;
}

.club-ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-vip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.11), rgba(124, 58, 237, 0.24));
  border: 1px solid rgba(250, 204, 21, 0.38);
}

.club-vip-row.is-active-vip {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.11), rgba(250, 204, 21, 0.14));
  border-color: rgba(57, 255, 20, 0.48);
}

.club-vip-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 220px;
}

.club-vip-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fef08a;
}

.club-vip-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.42;
}

.club-vip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vip-status-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(57, 255, 20, 0.2));
  border: 1px solid rgba(250, 204, 21, 0.56);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
}

.vip-free-pill {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(124, 58, 237, 0.34));
  border: 1px solid rgba(250, 204, 21, 0.58);
  color: #fef08a;
  font-weight: 800;
}

.btn-vip-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #facc15 0%, #fbbf24 48%, #fde047 100%);
  color: #160c00;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.34), 0 0 18px rgba(124, 58, 237, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-vip-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.46), 0 0 22px rgba(57, 255, 20, 0.24);
}

.btn-vip-cta:active {
  transform: scale(0.98);
}

/* Compact Catalog Toolbar: Favorites Filter & Sort Pills */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-toolbar::-webkit-scrollbar {
  display: none;
}

@media (min-width: 980px) {
  .catalog-toolbar {
    flex-wrap: wrap;
    justify-content: space-between;
    overflow-x: visible;
  }
}

.fav-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(18, 10, 32, 0.9);
  border: 1px solid rgba(251, 113, 133, 0.36);
  color: #ffe4e6;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.fav-filter-btn:hover {
  border-color: rgba(251, 113, 133, 0.72);
  transform: translateY(-1px);
}

.fav-filter-btn.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.34), rgba(124, 58, 237, 0.36));
  border-color: rgba(251, 113, 133, 0.88);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.3);
}

.sort-pills {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(14, 9, 28, 0.86);
  border: 1px solid rgba(124, 58, 237, 0.26);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.sort-pill:hover {
  border-color: rgba(57, 255, 20, 0.45);
  color: var(--text-primary);
}

.sort-pill.active {
  background: rgba(57, 255, 20, 0.16);
  border-color: rgba(57, 255, 20, 0.62);
  color: var(--accent-lime-bright);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
}

/* Pack Card & Modal Favorite Heart Buttons */
.pack-fav-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 2, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.96rem;
  line-height: 1;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.pack-fav-btn:hover {
  transform: scale(1.1);
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(24, 10, 34, 0.92);
}

.pack-fav-btn:active {
  transform: scale(0.92);
}

.pack-fav-btn.active {
  border-color: rgba(251, 113, 133, 0.8);
  background: rgba(244, 63, 94, 0.24);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.36);
}

.pack-badge-media-count {
  top: auto;
  left: auto;
  bottom: 10px;
  right: 10px;
  background: rgba(4, 2, 10, 0.82);
  border-color: rgba(124, 58, 237, 0.48);
  color: #e9d5ff;
}

.modal-fav-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(18, 10, 32, 0.88);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #ffe4e6;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.modal-fav-btn:hover {
  border-color: rgba(251, 113, 133, 0.75);
}

.modal-fav-btn.active {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(251, 113, 133, 0.85);
  color: #ffffff;
}

/* Multi-Slide Preview Carousel inside #pack-modal */
.modal-media-box {
  position: relative;
  width: 100%;
  min-height: 190px;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 760px) {
  .modal-media-box {
    min-height: 270px;
    max-height: 450px;
  }
}

.carousel-stage {
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.carousel-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(4, 2, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.42);
  color: #f3f0ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 2, 10, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(57, 255, 20, 0.38);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-nav-btn:hover {
  background: rgba(124, 58, 237, 0.42);
  border-color: var(--accent-lime);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.93);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(4, 2, 10, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.34);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.34);
  transition: width var(--transition-fast), background var(--transition-fast);
}

.carousel-dot.active {
  width: 20px;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
}

/* VIP Checkout Emblem, Plan Selector, Balance Deduction & Upsell Cards */
.vip-modal-hero {
  width: 100%;
  min-height: 210px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(250, 204, 21, 0.24) 0%, rgba(124, 58, 237, 0.28) 52%, rgba(4, 2, 10, 0.96) 100%);
}

.vip-modal-crown {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.55));
}

.vip-modal-emblem-title {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fef08a;
}

.vip-modal-emblem-sub {
  margin: 0;
  max-width: 34ch;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.vip-unlock-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(57, 255, 20, 0.1));
  border: 1px solid rgba(250, 204, 21, 0.48);
}

.vip-unlock-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

.vip-plans-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.vip-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

@media (min-width: 520px) {
  .vip-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vip-plan-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(10, 6, 22, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.34);
  text-align: left;
  transition: all var(--transition-fast);
}

.vip-plan-option:hover {
  border-color: rgba(250, 204, 21, 0.55);
}

.vip-plan-option.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(124, 58, 237, 0.24));
  border-color: rgba(250, 204, 21, 0.78);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.18);
}

.vip-plan-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}

.vip-plan-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.balance-checkout-box,
.upsell-bump-box {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: rgba(8, 5, 20, 0.9);
  border: 1px solid rgba(57, 255, 20, 0.36);
}

.upsell-bump-box {
  border-color: rgba(250, 204, 21, 0.44);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(124, 58, 237, 0.18));
}

.balance-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.balance-toggle-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-lime);
  flex-shrink: 0;
}

.balance-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.85rem;
}

.balance-toggle-sub {
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.balance-instant-pill {
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--accent-lime-bright);
}

.post-upsell-card {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(124, 58, 237, 0.24));
  border: 1px solid rgba(251, 113, 133, 0.5);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.post-upsell-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fda4af;
}

.post-upsell-desc {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-primary);
}

/* Admin Studio: Extra Preview Slides, UTM ROI Analytics & User Balance Row */
.adm-slides-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-slide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 3, 15, 0.82);
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.adm-slide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.adm-slide-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #05020c;
  border: 1px solid rgba(57, 255, 20, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-slide-thumb img,
.adm-slide-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-utm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

@media (min-width: 640px) {
  .adm-utm-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .adm-utm-metrics-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.adm-utm-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 3, 15, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.24);
  font-size: 0.8rem;
}

.adm-utm-metric strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.adm-utm-revenue {
  color: var(--accent-lime-bright) !important;
}

.adm-user-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.adm-user-bal-input {
  flex: 1 1 160px;
  max-width: 240px;
  padding: 8px 11px;
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   18.5. Multi-Pack Cart, Balance Top-Up, Daily Bonus Spin, Category Subs,
         Threaded Support Chat, Custom Invoices & Admin Analytics / Forensics
   -------------------------------------------------------------------------- */

/* Native HTML5 Progress Bar (.z-progress) — Zero-Inline CSP Compliant */
.z-progress {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 58, 237, 0.36);
  background: rgba(6, 3, 15, 0.92);
  overflow: hidden;
}

.z-progress::-webkit-progress-bar {
  background: rgba(6, 3, 15, 0.92);
  border-radius: var(--radius-pill);
}

.z-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 48%, #39ff14 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.z-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 48%, #39ff14 100%);
  border-radius: var(--radius-pill);
}

/* Header & Bottom Nav Counter Badges */
.badge-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #39ff14 0%, #22c55e 100%);
  color: #04020a;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.45);
}

.badge-counter-alert,
.nav-unread-badge {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.55);
}

.nav-item {
  position: relative;
}

.nav-unread-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 760px) {
  .nav-unread-badge {
    position: static;
    margin-left: auto;
  }
}

/* Floating Cart Bar Above Bottom Nav */
.floating-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--safe-bottom, 0px) + 76px);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-lg);
  background: rgba(11, 6, 26, 0.96);
  border: 1px solid rgba(57, 255, 20, 0.48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72), 0 0 22px rgba(124, 58, 237, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (min-width: 760px) {
  .floating-cart-bar {
    left: auto;
    right: 28px;
    bottom: 24px;
    width: 390px;
    max-width: calc(100vw - 280px);
  }
}

.floating-cart-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.floating-cart-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.floating-cart-hint {
  font-size: 0.74rem;
  color: var(--accent-lime-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pack Card & Modal Cart Toggle Buttons */
.pack-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-cart-toggle {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 58, 237, 0.42);
  background: rgba(14, 8, 30, 0.88);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cart-toggle:hover {
  border-color: rgba(57, 255, 20, 0.58);
  background: rgba(57, 255, 20, 0.12);
}

.btn-cart-toggle.in-cart,
.checkout-cart-toggle.in-cart {
  border-color: rgba(57, 255, 20, 0.7);
  background: rgba(57, 255, 20, 0.16);
  color: var(--accent-lime-bright);
}

.checkout-cta-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.checkout-cta-row > #btn-buy-now {
  flex: 1 1 auto;
}

.checkout-cart-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
}

/* Compact Modal Sheets (Cart, Topup, Spin, Ticket Thread) */
.modal-sheet-compact {
  max-width: 580px;
  max-height: 88vh;
}

.modal-compact-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px calc(var(--safe-bottom, 0px) + 22px);
  overflow-y: auto;
  max-height: 84vh;
}

@media (min-width: 760px) {
  .modal-compact-body {
    padding: 26px 26px 28px;
  }
}

.modal-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 34px;
}

/* Cart Modal */
.cart-combo-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(57, 255, 20, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.38);
}

.cart-combo-banner {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: rgba(8, 5, 20, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.cart-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #06030f;
  border: 1px solid rgba(124, 58, 237, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb img,
.cart-item-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-lime-bright);
}

.cart-item-remove {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.cart-item-remove:hover {
  background: rgba(244, 63, 94, 0.26);
  color: #ffffff;
}

.cart-summary-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 58, 237, 0.28);
}

.cart-summary-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-summary-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Club Privilege Strip Growth Buttons (Top-Up & Daily Bonus Spin) */
.club-growth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-topup-cta {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(124, 58, 237, 0.28));
  border: 1px solid rgba(57, 255, 20, 0.56);
  color: var(--accent-lime-bright);
  font-weight: 800;
}

.btn-topup-cta:hover {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.3), rgba(124, 58, 237, 0.38));
  border-color: var(--accent-lime);
}

.btn-spin-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 8, 30, 0.9);
  border: 1px solid rgba(250, 204, 21, 0.48);
  color: #fef08a;
  font-weight: 800;
}

.btn-spin-cta.is-ready {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(124, 58, 237, 0.28));
  border-color: rgba(250, 204, 21, 0.82);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.24);
}

.spin-ready-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, 0.22);
  border: 1px solid rgba(57, 255, 20, 0.6);
  color: var(--accent-lime-bright);
  font-size: 0.68rem;
  font-weight: 900;
}

/* Balance Top-Up Modal */
.topup-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.topup-preset-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: rgba(9, 5, 22, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.34);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topup-preset-card:hover {
  border-color: rgba(57, 255, 20, 0.55);
}

.topup-preset-card.active {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.14), rgba(124, 58, 237, 0.24));
  border-color: rgba(57, 255, 20, 0.78);
  box-shadow: 0 6px 18px rgba(57, 255, 20, 0.16);
}

.topup-preset-pay {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-primary);
}

.topup-preset-credit {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.topup-bonus-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, 0.16);
  border: 1px solid rgba(57, 255, 20, 0.45);
  color: var(--accent-lime-bright);
  font-size: 0.7rem;
  font-weight: 800;
}

.topup-live-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(7, 4, 18, 0.92);
  border: 1px solid rgba(57, 255, 20, 0.4);
  font-size: 0.88rem;
}

/* Daily Mystery Bonus / Roulette Modal */
.spin-prizes-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spin-reel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(250, 204, 21, 0.2) 0%, rgba(124, 58, 237, 0.26) 55%, rgba(6, 3, 15, 0.96) 100%);
  border: 1px solid rgba(250, 204, 21, 0.46);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

@keyframes spinReelPulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.06) rotate(-8deg);
  }
  50% {
    transform: scale(0.97) rotate(8deg);
  }
  75% {
    transform: scale(1.06) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.spin-reel-card.is-spinning {
  border-color: var(--accent-lime);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.3);
}

.spin-reel-card.is-spinning .spin-reel-icon {
  animation: spinReelPulse 0.48s ease-in-out infinite;
}

.spin-reel-icon {
  font-size: 3.1rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.5));
}

.spin-reel-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--text-primary);
}

.spin-reel-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spin-result-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.14), rgba(124, 58, 237, 0.22));
  border: 1px solid rgba(57, 255, 20, 0.58);
  text-align: center;
}

.spin-result-prize {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-lime-bright);
}

/* Category Explorer Release Subscription Button */
.cat-explorer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-sub-btn.is-subscribed {
  border-color: rgba(57, 255, 20, 0.58);
  background: rgba(57, 255, 20, 0.12);
  color: var(--accent-lime-bright);
}

/* Live Threaded Support Chat & Custom Invoice Card */
.my-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ticket-unread-pill {
  animation: pulse 2s ease-in-out infinite;
}

.ticket-thread-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 44vh;
  overflow-y: auto;
  padding: 6px 2px;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 90%;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(88, 28, 135, 0.42));
  border: 1px solid rgba(168, 85, 247, 0.46);
}

.chat-bubble-admin {
  align-self: flex-start;
  background: rgba(9, 6, 22, 0.94);
  border: 1px solid rgba(57, 255, 20, 0.38);
}

.chat-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.chat-bubble-sender {
  font-weight: 800;
  color: var(--text-primary);
}

.chat-bubble-admin .chat-bubble-sender {
  color: var(--accent-lime-bright);
}

.chat-bubble-text {
  margin: 0;
  white-space: pre-wrap;
}

.custom-invoice-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(124, 58, 237, 0.26));
  border: 1px solid rgba(250, 204, 21, 0.62);
}

.custom-invoice-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fef08a;
}

.custom-invoice-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.custom-invoice-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-thread-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(124, 58, 237, 0.26);
}

/* Admin Studio: Funnel Rows, Gateway Health, Bot Hot-Swap & Forensics */
.adm-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-funnel-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(6, 3, 15, 0.84);
  border: 1px solid rgba(124, 58, 237, 0.24);
}

.adm-funnel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
}

.adm-gw-grid,
.adm-bot-slots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .adm-gw-grid,
  .adm-bot-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.adm-gw-card,
.adm-bot-slot-card,
.adm-forensic-result,
.adm-thread-box,
.adm-invoice-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: rgba(6, 3, 16, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.adm-forensic-result {
  border-color: rgba(244, 63, 94, 0.48);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(8, 4, 19, 0.94));
}

.adm-thread-box {
  margin-top: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.adm-invoice-form {
  margin-top: 8px;
  border-color: rgba(250, 204, 21, 0.45);
}

/* --------------------------------------------------------------------------
   19. Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
