:root,
:root[data-theme="dark"] {
  --bg: #090814;
  --bg-elev: #0e0c20;
  --surface: rgba(18, 15, 36, 0.94);
  --surface-2: rgba(12, 10, 24, 0.74);
  --surface-input: rgba(7, 6, 16, 0.76);
  --header-bg: linear-gradient(180deg, rgba(12, 10, 26, 0.94), rgba(7, 6, 16, 0.85));
  --footer-bg: #070610;
  --panel: rgba(18, 14, 34, 0.84);
  --panel-strong: #100d22;
  --border: rgba(147, 112, 219, 0.22);
  --border-soft: rgba(255, 255, 255, 0.055);
  --muted: #8d96a6;
  --muted-strong: #a5b0bf;
  --text: #edf3f7;
  --text-on-accent: #ffffff;
  --green: #a855f7;
  --purple: #a855f7;
  --purple-light: #d86bfd;
  --purple-dark: #7928ca;
  --green-dark: #7928ca;
  --red: #ff3f5f;
  --violet: #8b5cff;
  --aqua: #34d6ff;
  --green-soft: rgba(168, 85, 247, 0.28);
  --purple-soft: rgba(168, 85, 247, 0.28);
  --red-soft: rgba(255, 63, 95, 0.22);
  --cyan-soft: rgba(48, 211, 255, 0.18);
  --shine: rgba(255, 255, 255, 0.58);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.48);
  --button-shadow: 0 16px 44px rgba(168, 85, 247, 0.35), 0 0 28px rgba(216, 107, 253, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --transition-fast: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 620ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 18px;
  --radius-md: 13px;
  /* Never wider than the viewport minus side gutters -> no horizontal overflow
     on laptops/tablets (1366, 1440, 1280, etc.). Caps at 1550 on big screens. */
  --page-width: min(1550px, calc(100vw - 48px));
}

/* OpenCaseX: Dark theme locked */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  transition: background-color 240ms ease, color 240ms ease;
  overflow-x: clip;
}

html { overflow-x: clip; }

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

svg {
  display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 62px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--header-bg);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(168, 85, 247, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  color: var(--text);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.brand:focus,
.brand:focus-visible,
.brand:active {
  outline: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  height: 52px;
  filter: drop-shadow(0 0 16px rgba(180, 75, 255, 0.45));
}

.brand-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}

.brand-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #9aa2aa;
  font-size: 10px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  height: 100%;
}

.nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  color: #8f97a5;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.nav a::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.32), transparent 64%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav a:hover {
  color: #eefdf1;
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.22);
  background: rgba(168, 85, 247, 0.055);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav a:hover::before {
  opacity: 1;
}

.nav a.active {
  color: #dfffe2;
  border-color: rgba(168, 85, 247, 0.3);
  background: radial-gradient(circle at 50% 0, rgba(216, 107, 253, 0.38), rgba(121, 40, 202, 0.22) 48%, rgba(168, 85, 247, 0.04) 100%);
  box-shadow: inset 0 -1px 0 rgba(71, 237, 87, 0.7), 0 0 34px rgba(49, 229, 70, 0.22), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  color: var(--green);
  border-color: rgba(168, 85, 247, 0.44);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  transition: opacity 200ms ease, transform 200ms ease;
}

.theme-toggle { position: relative; }

:root[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  pointer-events: none;
}

.login {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 172px;
  height: 44px;
  overflow: hidden;
  color: #041106;
  border: 1px solid rgba(176, 255, 188, 0.38);
  border-radius: 15px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(180deg, #d86bfd 0%, #a855f7 48%, #7c3aed 100%);
  box-shadow: var(--button-shadow);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.login::before,
.case-info button::before,
.case-open::before,
.promo-button::before {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -55%;
  width: 44%;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
  transform: rotate(24deg);
  animation: buttonShine 6.5s ease-in-out infinite;
}

.login:hover,
.case-info button:hover,
.case-open:hover,
.promo-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.16);
  box-shadow: 0 18px 54px rgba(35, 218, 61, 0.34), 0 0 38px rgba(66, 238, 78, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.shell {
  width: var(--page-width);
  margin: 16px auto 70px;
}

.ticker-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--page-width);
  margin: 28px auto 0;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-2);
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.08);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pill span {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.live-pill span::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  animation: liveRing 1.8s ease-out infinite;
}

.ticker-mask {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker {
  display: flex;
  width: 100%;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.ticker span {
  min-width: 56px;
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  text-align: center;
  background: var(--bg-elev);
}

.ticker span.win {
  color: #b7f9c0;
  border-color: rgba(168, 85, 247, 0.22);
  background: rgba(168, 85, 247, 0.1);
}

.ticker:hover { animation-play-state: paused; }

.ticker span.loss {
  color: #ffb8c4;
  border-color: rgba(255, 63, 95, 0.22);
  background: rgba(255, 63, 95, 0.08);
}

.ticker span.jackpot {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(52, 214, 255, 0.18));
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.stats > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-elev);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(139, 92, 255, 0.14);
  color: #a78bff;
  flex-shrink: 0;
}

.stats > div:nth-child(2) .stat-icon {
  background: rgba(168, 85, 247, 0.14);
  color: var(--green);
}

.stats > div:nth-child(3) .stat-icon {
  background: rgba(52, 214, 255, 0.14);
  color: var(--aqua);
}

.stat-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats > div > div {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.stats strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page-width);
  margin: 42px auto 24px;
}

.section-head.centered {
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.cash-head {
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.section-head span {
  color: transparent;
  background: linear-gradient(135deg, #7dff88, #34d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(168, 85, 247, 0.18);
}

.section-head p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  margin: 0;
  padding: 0 18px;
  color: #aab4c2;
  border: 1px solid rgba(91, 124, 153, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 21, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 800;
}

.section-head p svg {
  width: 15px;
  height: 15px;
  fill: var(--green);
}

.section-head > small {
  max-width: 640px;
  color: #8894a5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: var(--page-width);
  margin: 0 auto;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 226px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-elev);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.04), transparent 42%);
  transform: translateX(-120%);
  transition: transform 760ms ease;
  pointer-events: none;
}

.case-card:hover::after {
  transform: translateX(120%);
}

.case-art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 8px 8px;
}

.case-art img {
  width: 205px;
  height: 165px;
  object-fit: contain;
  transform: scale(1.15);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
  animation: caseFloat 7s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

.case-info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 18px 16px 12px;
  text-align: center;
}

.price {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 14px 8px 12px;
  color: #041106;
  border: 1px solid rgba(176, 255, 188, 0.5);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(180deg, #9bffa0 0%, #a855f7 48%, #1eba35 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-align: center;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.price i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.7;
}

.price b {
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.case-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  color: #cbd4df;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.85);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.case-badge svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.case-badge.hot {
  color: #ffd9c2;
  border-color: rgba(255, 138, 76, 0.42);
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.32), rgba(255, 89, 46, 0.18));
  box-shadow: 0 0 18px rgba(255, 138, 76, 0.25);
}

.case-badge.vip {
  color: #fff3c4;
  border-color: rgba(255, 213, 95, 0.45);
  background: linear-gradient(135deg, rgba(255, 213, 95, 0.32), rgba(255, 165, 60, 0.18));
  box-shadow: 0 0 18px rgba(255, 213, 95, 0.28);
}

.case-badge.jackpot {
  color: #fff;
  border-color: rgba(180, 130, 255, 0.5);
  background: linear-gradient(135deg, rgba(180, 130, 255, 0.42), rgba(99, 64, 255, 0.28));
  box-shadow: 0 4px 14px rgba(139, 92, 255, 0.32);
}

.tier-bronze .price {
  background: linear-gradient(180deg, #e7b06b 0%, #b97a36 50%, #8a5520 100%);
  border-color: rgba(255, 200, 140, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #2a1808;
}

.tier-silver .price {
  background: linear-gradient(180deg, #e6ebf3 0%, #aab5c6 50%, #7c899e 100%);
  border-color: rgba(220, 230, 245, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #1a2230;
}

.tier-gold .price {
  background: linear-gradient(180deg, #ffe588 0%, #f3b500 50%, #b87f00 100%);
  border-color: rgba(255, 229, 136, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #2d1d00;
}

.tier-platinum .price {
  background: linear-gradient(180deg, #d4f1ff 0%, #6ec6ff 50%, #2a91d8 100%);
  border-color: rgba(212, 241, 255, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #04243a;
}

.tier-diamond .price {
  background: linear-gradient(180deg, #b9e4ff 0%, #34d6ff 45%, #0099d4 100%);
  border-color: rgba(185, 228, 255, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #04253a;
}

.tier-jackpot .price {
  background: linear-gradient(135deg, #ff5cf2 0%, #8b5cff 50%, #34d6ff 100%);
  border-color: rgba(255, 200, 255, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.tier-jackpot .price b {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.tier-jackpot { border-color: rgba(180, 130, 255, 0.32); }

.case-info h3 {
  margin: 8px 0;
  padding-top: 36px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.case-info small {
  display: block;
  margin-bottom: 26px;
  color: #8e97a5;
  font-size: 10px;
  font-weight: 700;
}

.case-info p {
  margin: 0 0 6px;
  color: #8e97a5;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.case-info p b {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.case-info button,
.case-info .case-open {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  margin-top: 15px;
  padding: 0 18px;
  overflow: hidden;
  color: #041106;
  border: 1px solid rgba(176, 255, 188, 0.36);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 0, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(180deg, #d86bfd 0%, #a855f7 48%, #7928ca 100%);
  box-shadow: 0 16px 34px rgba(168, 85, 247, 0.28), 0 0 24px rgba(216, 107, 253, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.case-info button span,
.case-info .case-open span {
  font-size: 16px;
  line-height: 1;
}

.cash-head {
  margin-top: 42px;
  margin-bottom: 18px;
}

.cash-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: var(--page-width);
  margin: 0 auto;
}

.cash-grid div {
  display: grid;
  place-items: center;
  height: 86px;
  border: 1px solid rgba(112, 139, 170, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(168, 85, 247, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(14, 21, 36, 0.92), rgba(7, 11, 20, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 44px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cash-grid div:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cash-grid b {
  color: transparent;
  background: linear-gradient(135deg, #7dff88, #34d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.cash-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #b8c3ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cash-grid span svg {
  width: 11px;
  height: 11px;
  fill: var(--green);
}

/* ============================== CASH / ELECTRONICS GRID ==============================
   These now reuse the SAME markup & classes as the main coin cases
   (.cases-grid > .case-card > .case-art + .case-info > .price / .case-open),
   so price is a separate badge and the button is separate — identical look.
   Legacy .prize-* rules were removed. */




/* ============================== TOP USERS ============================== */
.top-users {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: var(--page-width);
  margin: 0 auto;
  padding: 28px 24px;
  border: 1px solid rgba(139, 92, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 255, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(20, 24, 44, 0.92), rgba(10, 12, 22, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.top-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 76px;
}

.top-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #a78bff;
  border: 1px solid rgba(139, 92, 255, 0.32);
  border-radius: 50%;
  background: rgba(139, 92, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.top-avatar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-user b {
  font-size: 13px;
  font-weight: 900;
  color: #cbd4df;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.top-user small {
  font-size: 8px;
  font-weight: 800;
  color: #6b7588;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-user.gold .top-avatar { color: #34d6ff; border-color: rgba(52, 214, 255, 0.5); background: rgba(52, 214, 255, 0.14); box-shadow: 0 0 18px rgba(52, 214, 255, 0.22); }
.top-user.gold b { color: #34d6ff; }
.top-user.silver .top-avatar { color: var(--green); border-color: rgba(168, 85, 247, 0.5); background: rgba(168, 85, 247, 0.14); box-shadow: 0 0 18px rgba(168, 85, 247, 0.22); }
.top-user.silver b { color: var(--green); }
.top-user.bronze .top-avatar { color: #ffb86b; border-color: rgba(255, 184, 107, 0.45); background: rgba(255, 184, 107, 0.12); box-shadow: 0 0 18px rgba(255, 184, 107, 0.18); }
.top-user.bronze b { color: #ffb86b; }



.promo-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page-width);
  min-height: 190px;
  margin: 36px auto 0;
  padding: 40px 44px;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 22%, rgba(168, 85, 247, 0.2), transparent 34%),
    radial-gradient(circle at 20% 0, rgba(139, 92, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(13, 22, 35, 0.94), rgba(6, 10, 19, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.promo-panel::before {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.18);
  filter: blur(34px);
  animation: ambientPulse 5s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-panel h2 {
  max-width: 680px;
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.promo-panel p {
  max-width: 700px;
  margin: 0;
  color: #9ba6b5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.promo-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  min-width: 200px;
  height: 56px;
  padding: 0 28px;
  overflow: hidden;
  color: #041106;
  border: 1px solid rgba(176, 255, 188, 0.4);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.48), transparent 30%),
    linear-gradient(180deg, #d86bfd 0%, #a855f7 48%, #7928ca 100%);
  box-shadow: var(--button-shadow);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.promo-button span {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
}


.footer {
  position: relative;
  margin-top: 80px;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(168, 85, 247, 0.14);
  background: var(--footer-bg);
}

.footer-inner {
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
  color: #8f99a8;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-logo:focus,
.footer-logo:focus-visible,
.footer-logo:active {
  outline: none;
}

.footer-logo-icon {
  display: inline-flex;
  align-items: center;
  height: 58px;
}

.footer-logo-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(180, 75, 255, 0.5));
}

.footer-logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 16px rgba(180, 75, 255, 0.45));
}

.footer-logo-text strong {
  display: block;
  color: #effff1;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-logo-text small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #8c97a6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  color: #9aa5b3;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.footer-socials a svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-socials a:hover {
  color: #041106;
  border-color: transparent;
  background: var(--green);
  transform: translateY(-2px);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  margin: 0 0 6px;
  color: #eef3fa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  color: #8b95a4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-col a:hover {
  color: var(--green);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.footer-bottom > span {
  color: #5e6976;
  font-size: 12px;
  font-weight: 700;
}

.footer-badges {
  display: flex;
  gap: 10px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  color: #b0bbc9;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.footer-badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.9);
}

.footer-badges span:hover {
  color: #effff1;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}

/* ===== modern footer polish ===== */
.footer { overflow: hidden; }

.footer-top,
.footer-bottom {
  position: relative;
  z-index: 1;
}




.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 240ms;
}

.modal:target {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.modal:target .modal-backdrop {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--bg-elev);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.6), 0 0 46px rgba(168, 85, 247, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 240ms ease-out, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(168, 85, 247, 0.16), transparent 45%);
  pointer-events: none;
}

.modal:target .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #d9e6df;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.modal-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 10px 0 10px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.modal-card p {
  margin: 0 0 22px;
  color: #9ba6b5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-form label {
  display: grid;
  gap: 8px;
  color: #c9d4dc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  color: var(--text);
  outline: none;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-form input:focus {
  border-color: rgba(168, 85, 247, 0.48);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-form button {
  position: relative;
  height: 50px;
  margin-top: 6px;
  overflow: hidden;
  color: #041106;
  border: 1px solid rgba(176, 255, 188, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(180deg, #d86bfd 0%, #a855f7 48%, #7c3aed 100%);
  box-shadow: var(--button-shadow);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-card small {
  display: block;
  margin-top: 18px;
  color: #8994a3;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.modal-card small a {
  color: var(--green);
  text-decoration: none;
}

.svg-defs {
  position: absolute;
}

@keyframes ambientPulse {
  0%, 100% { transform: scale(1); opacity: 0.32; }
  50% { transform: scale(1.18); opacity: 0.58; }
}



@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes buttonShine {
  0%, 42% { left: -60%; }
  58%, 100% { left: 130%; }
}

@keyframes liveRing {
  0% { transform: scale(1); opacity: 0.45; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes liveDropRun {
  to { transform: translateX(-50%); }
}

@keyframes caseFloat {
  0%, 100% { transform: scale(1.15) translateY(0); }
  50% { transform: scale(1.15) translateY(-5px); }
}

/* ============================== LIGHT THEME OVERRIDES ============================== */
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 8% -10%, rgba(168, 85, 247, 0.08), transparent 38%),
    radial-gradient(circle at 95% 5%, rgba(52, 214, 255, 0.08), transparent 42%),
    var(--bg);
}

:root[data-theme="light"] .header {
  background: linear-gradient(180deg, rgba(238, 242, 249, 0.84), rgba(238, 242, 249, 0.58));
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.16);
}

:root[data-theme="light"] .brand small,
:root[data-theme="light"] .nav a { color: #5a6675; }
:root[data-theme="light"] .nav a:hover { color: #0c1220; background: rgba(168, 85, 247, 0.08); }
:root[data-theme="light"] .nav a.active {
  color: #084f17;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.28), rgba(168, 85, 247, 0.06));
  border-color: rgba(168, 85, 247, 0.4);
}

:root[data-theme="light"] .ticker-panel {
  background:
    radial-gradient(circle at 50% 0, rgba(168, 85, 247, 0.12), transparent 30%),
    var(--surface);
  box-shadow: 0 12px 40px rgba(20, 40, 70, 0.08);
}
:root[data-theme="light"] .ticker span {
  background: #f0f4fa;
  border-color: rgba(15, 25, 50, 0.08);
  color: #3a4250;
  text-shadow: none;
}
:root[data-theme="light"] .ticker span.win {
  color: #0a6b1f;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.08));
  border-color: rgba(168, 85, 247, 0.45);
  text-shadow: none;
}
:root[data-theme="light"] .ticker span.loss {
  color: #a31935;
  background: linear-gradient(180deg, rgba(255, 63, 95, 0.22), rgba(255, 63, 95, 0.05));
  border-color: rgba(255, 63, 95, 0.4);
  text-shadow: none;
}
:root[data-theme="light"] .live-pill {
  background: #ffffff;
  color: #0c1220;
  border-color: rgba(168, 85, 247, 0.5);
}
:root[data-theme="light"] .stats div {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(20, 40, 70, 0.08);
}
:root[data-theme="light"] .stats small { color: #5a6675; }

:root[data-theme="light"] .section-head p {
  background: #ffffff;
  border-color: rgba(15, 25, 50, 0.1);
  color: #3a4250;
}
:root[data-theme="light"] .section-head > small { color: #5a6675; }
:root[data-theme="light"] .section-head span {
  background: linear-gradient(135deg, #1ca035, #0090c9);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="light"] .case-card {
  background:
    radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.1), transparent 34%),
    var(--surface);
  border-color: rgba(15, 25, 50, 0.1);
  box-shadow: 0 14px 40px rgba(20, 40, 70, 0.08);
}
:root[data-theme="light"] .case-info small,
:root[data-theme="light"] .case-info p { color: #5a6675; }
:root[data-theme="light"] .case-info p b { color: #1ca035; }
:root[data-theme="light"] .case-badge {
  background: #ffffff;
  color: #3a4250;
  border-color: rgba(15, 25, 50, 0.1);
  box-shadow: 0 4px 12px rgba(20, 40, 70, 0.06);
}

:root[data-theme="light"] .cash-grid div {
  background:
    radial-gradient(circle at 50% 0, rgba(168, 85, 247, 0.1), transparent 44%),
    var(--surface);
  border-color: rgba(15, 25, 50, 0.1);
  box-shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
}
:root[data-theme="light"] .cash-grid b {
  background: linear-gradient(135deg, #1ca035, #0090c9);
  -webkit-background-clip: text;
  background-clip: text;
}
:root[data-theme="light"] .cash-grid span { color: #5a6675; }

:root[data-theme="light"] .promo-panel {
  background:
    radial-gradient(circle at 78% 22%, rgba(168, 85, 247, 0.18), transparent 34%),
    radial-gradient(circle at 20% 0, rgba(139, 92, 255, 0.12), transparent 32%),
    var(--surface);
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 18px 60px rgba(20, 40, 70, 0.1);
}
:root[data-theme="light"] .promo-panel p { color: #5a6675; }

:root[data-theme="light"] .footer { border-top-color: rgba(168, 85, 247, 0.25); }
:root[data-theme="light"] .footer-top { border-bottom-color: rgba(15, 25, 50, 0.08); }
:root[data-theme="light"] .footer-brand p,
:root[data-theme="light"] .footer-col a { color: #5a6675; }
:root[data-theme="light"] .footer-col h4 { color: #0c1220; }
:root[data-theme="light"] .footer-logo-text strong { color: #0c1220; text-shadow: none; }
:root[data-theme="light"] .footer-socials a {
  background: #f4f7fc;
  color: #3a4250;
  border-color: rgba(15, 25, 50, 0.08);
}
:root[data-theme="light"] .footer-bottom > span { color: #6b7785; }
:root[data-theme="light"] .footer-badges span {
  background: #f4f7fc;
  color: #3a4250;
  border-color: rgba(15, 25, 50, 0.08);
}

:root[data-theme="light"] .modal-backdrop {
  background: rgba(20, 30, 50, 0.5);
}
:root[data-theme="light"] .modal-card {
  box-shadow: 0 30px 90px rgba(20, 40, 70, 0.22), 0 0 40px rgba(168, 85, 247, 0.1);
}
:root[data-theme="light"] .modal-card p,
:root[data-theme="light"] .modal-card small { color: #5a6675; }
:root[data-theme="light"] .modal-form label { color: #3a4250; }
:root[data-theme="light"] .modal-close {
  background: #f4f7fc;
  color: #3a4250;
  border-color: rgba(15, 25, 50, 0.1);
}

/* ============================== MOBILE NAV / BURGER ============================== */
.nav-toggle { display: none; }
.nav-overlay { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 240ms ease, opacity 200ms ease;
}
.nav-toggle:checked ~ .header .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .header .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .header .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1340px) {
  .header { padding: 0 24px; }
}

@media (max-width: 1100px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .cash-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .header {
    z-index: 40;
    height: 60px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .brand { flex: 0 1 auto; max-width: 130px; }
  .brand-icon img { max-width: 115px; height: auto; display: block; }
  .header-actions { width: auto; gap: 6px; flex-shrink: 0; }
  .lang-switcher-wrapper { margin-right: 0 !important; }
  .lang-switcher-btn { padding: 4px 8px !important; font-size: 11px !important; gap: 4px !important; border-radius: 6px !important; }
  .theme-toggle { width: 36px !important; height: 36px !important; border-radius: 8px !important; }
  .burger { width: 36px !important; height: 36px !important; padding: 0 7px !important; border-radius: 8px !important; }
  .login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    white-space: nowrap;
    border-radius: 8px !important;
  }


  .nav {
    position: fixed;
    top: 60px;
    right: 0;
    z-index: 35;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(320px, 86vw);
    height: calc(100vh - 60px);
    padding: 20px 16px;
    background: var(--bg-elev);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 50px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }
  .nav a {
    width: 100%;
    min-width: 0;
    height: 46px;
    justify-content: flex-start;
    padding: 0 16px;
    font-size: 12px;
    border-radius: 12px;
  }
  .nav-toggle:checked ~ .header .nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-overlay {
    display: block;
    position: fixed;
    inset: 60px 0 0 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
  }

  .shell { margin: 12px 16px 40px; }
  /* sections inside .shell inherit the shell's side gutter -> no extra margin */
  .shell .section-head,
  .shell .cases-grid,
  .shell .cash-grid,
  .shell .promo-panel {
    width: auto; max-width: none; margin-left: 0; margin-right: 0;
  }
  /* ticker is OUTSIDE .shell -> give it the same 16px gutter to match */
  .section-head, .cases-grid, .cash-grid, .promo-panel {
    width: auto; max-width: none; margin-left: 16px; margin-right: 16px;
  }
  .section-head { margin-top: 32px; margin-bottom: 18px; flex-direction: column; gap: 12px; text-align: center; }
  .section-head h1, .section-head h2 { font-size: 30px; }
  .section-head p { font-size: 9px; }

  .ticker-panel { width: auto; margin: 12px 16px 0; padding: 12px; gap: 10px; }
  .ticker-row { gap: 10px; }

  .stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stats > div {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(14, 21, 36, 0.85), rgba(8, 12, 22, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.18);
  }
  .stats > div .stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .stats > div .stat-icon svg {
    width: 15px;
    height: 15px;
  }
  .stats > div > div { gap: 10px; }
  .stats strong { font-size: 16px; }
  .stats small { font-size: 10px; }

  .cases-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-card {
    grid-template-columns: 130px 1fr;
    min-height: 200px;
  }
  .case-art img { width: 140px; height: 130px; }
  .case-info { padding: 22px 14px 14px 8px; }
  .case-info h3 { padding-top: 30px; font-size: 15px; }
  .case-badge { top: 10px; left: 10px; padding: 4px 8px; font-size: 8px; }
  .price { top: 10px; right: 10px; padding: 6px 10px; }
  .price b { font-size: 16px; }

  .cash-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cash-grid div { height: 76px; }
  .cash-grid b { font-size: 24px; }




  .top-users { width: auto; margin-left: 16px; margin-right: 16px; gap: 18px 8px; padding: 20px 12px; }
  .top-user { min-width: 0; }
  .top-avatar { width: 42px; height: 42px; }
  .top-avatar svg { width: 18px; height: 18px; }
  .top-user b { font-size: 12px; }

  .promo-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 22px;
    text-align: left;
  }
  .promo-panel h2 { font-size: 24px; }
  .promo-panel p { font-size: 13px; }
  .promo-button { width: 100%; height: 52px; }

  .footer { padding: 44px 16px 24px; margin-top: 50px; }
  .footer-inner { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
  .footer-top { padding-bottom: 28px; gap: 28px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-badges { flex-wrap: wrap; justify-content: center; }

  .modal { padding: 16px; }
  .modal-card { padding: 26px 22px; border-radius: 22px; }
  .modal-card h2 { font-size: 26px; }
  .modal-card p { font-size: 13px; }
  .modal-form input { height: 44px; }
}

@media (max-width: 480px) {
  .case-card { grid-template-columns: 104px 1fr; }
  .case-art img { width: 112px; height: 104px; transform: scale(1.08); }
  .case-info { padding-right: 12px; }
  .case-info h3 { font-size: 13px; padding-top: 28px; }
  .case-info p { font-size: 9px; }
  .case-info button,
  .case-info .case-open { height: 38px; gap: 6px; padding: 0 12px; font-size: 10px; }
  .price { top: 10px; right: 10px; padding: 5px 10px; }
  .price b { font-size: 15px; }
  .footer-cols { grid-template-columns: 1fr; }
  .section-head h1, .section-head h2 { font-size: 26px; }
}

/* ============================== FOOTER SINGLE COL ============================== */
.footer-top.single-col {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.footer-top.single-col .footer-brand { align-items: center; }
.footer-top.single-col .footer-brand p { text-align: center; }

/* ============================== ACCOUNT LINK (header) ============================== */
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.account-link:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.14);
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--aqua);
  border: 1px solid rgba(52, 214, 255, 0.4);
  border-radius: 50%;
  background: rgba(52, 214, 255, 0.1);
}
.account-avatar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.account-text b {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.account-text i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
}

@media (max-width: 900px) {
  .account-link {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  .account-text { display: none; }
}

/* ============================== LIGHT-STYLE MODALS (Deposit / Retiro) ============================== */
.modal-light .modal-card.pay-card {
  background: #ffffff;
  color: #1a2230;
  border: 0;
  padding: 0;
  border-radius: 14px;
  width: min(560px, 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.modal-light .modal-card.pay-card::before { content: none; }
.modal-light .modal-card .modal-close {
  color: #1a2230;
  background: transparent;
  border: 0;
  font-size: 22px;
  width: 32px;
  height: 32px;
  top: 14px;
  right: 14px;
}
.pay-title {
  margin: 0;
  padding: 22px 24px 16px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0c1220;
}
.pay-divider {
  height: 1px;
  background: #e5e9f0;
  margin: 0;
}
.pay-label {
  display: block;
  margin: 18px 24px 8px;
  color: #5a6675;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 24px;
}
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  background: #f2f5fa;
  border: 1.5px solid #f2f5fa;
  border-radius: 8px;
  color: #1a2230;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.pay-method:hover { background: #e9eef5; }
.pay-method.active {
  background: #ffffff;
  border-color: #2196f3;
  color: #0c1220;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.12);
}
.pay-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ccc;
}
.pay-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 24px 0;
  color: #2196f3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.pay-help:hover { text-decoration: underline; }
.pay-input {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px;
  height: 48px;
  padding: 0 16px;
  background: #f2f5fa;
  border: 0;
  border-radius: 6px;
  color: #0c1220;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}
.pay-input:focus { box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3); }
.pay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 22px;
  margin-top: 18px;
}
.pay-balance {
  color: #6b7785;
  font-size: 13px;
}
.pay-balance b {
  color: #0c1220;
  font-weight: 700;
}
.pay-cta {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}
.pay-cta.orange { background: linear-gradient(180deg, #ff9f2d, #ef7e0e); }
.pay-cta.red { background: linear-gradient(180deg, #ff4855, #e62a3a); }
.pay-cta:hover { filter: saturate(1.15) brightness(1.05); transform: translateY(-1px); }

/* Withdraw layout */
.modal-light .modal-card.pay-card.withdraw {
  width: min(760px, 100%);
  padding: 0;
}
.withdraw-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.withdraw-aside {
  background: linear-gradient(180deg, #ff4855, #d93242);
  color: #ffffff;
  padding: 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.withdraw-aside-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.2;
}
.withdraw-aside-head svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.withdraw-aside p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.95;
}
.withdraw-aside-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
}
.withdraw-aside-foot small b { font-weight: 800; }
.withdraw-main { padding-bottom: 8px; }
.withdraw-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin: 4px 0 0;
}
.withdraw-row .pay-input { width: calc(100% - 24px); margin: 0 12px; }
.withdraw-row > div:first-child .pay-input { margin-left: 24px; }
.withdraw-row > div:last-child .pay-input { margin-right: 24px; }

@media (max-width: 720px) {
  .withdraw-grid { grid-template-columns: 1fr; }
  .withdraw-row { grid-template-columns: 1fr; }
  .withdraw-row .pay-input { margin: 0 24px !important; width: calc(100% - 48px); }
}


/* ============================== GLOBAL MOBILE + LIGHT THEME POLISH ============================== */
@media (max-width: 900px) {
  :root { --page-width: 100%; }

  body { min-width: 320px; }

  .header {
    height: 96px;
    padding: 0 14px;
  }

  .brand-icon { width: auto; height: 84px; min-width: 150px; }
  .brand-icon img { height: 100%; width: auto; max-width: none; }
  .brand strong { font-size: 16px; }
  .header-actions { gap: 7px; }

  .nav {
    top: 96px;
    height: calc(100vh - 96px);
    width: min(340px, 88vw);
    padding: 18px 14px 28px;
  }

  .nav-toggle:checked ~ .nav-overlay { inset: 96px 0 0 0; }

  .shell {
    width: auto;
    margin: 14px 14px 44px;
  }

  .ticker-mask { min-width: 0; }
  .ticker-panel { border-radius: 18px; }
  .section-head,
  .cases-grid,
  .cash-grid,
  .top-users,
  .promo-panel,
  .footer-inner {
    margin-left: 14px;
    margin-right: 14px;
  }

  .cases-grid { gap: 16px; }
  .case-card { border-radius: 20px; }
  .cash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-users {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
    justify-items: center;
    overflow: visible;
  }
  .top-user { min-width: 0; width: 100%; align-items: center; text-align: center; }
  .promo-panel { border-radius: 24px; }

  .modal-card { width: min(100%, 460px); }
  .pay-methods { display: grid; grid-template-columns: 1fr 1fr; }
  .pay-method { justify-content: center; }
  .pay-footer { gap: 14px; flex-direction: column; align-items: stretch; }
  .pay-cta { width: 100%; }
}

@media (max-width: 560px) {
  .header { padding: 0 10px; height: 88px; }
  .brand { gap: 8px; }
  .brand-icon { width: auto; height: 76px; min-width: 132px; }
  .brand-icon img { height: 100%; width: auto; max-width: none; }
  .brand strong { font-size: 14px; letter-spacing: -0.04em; }
  .theme-toggle,
  .burger,
  .account-link { width: 38px; height: 38px; }

  .shell { margin: 12px 12px 38px; }
  .section-head,
  .cases-grid,
  .cash-grid,
  .top-users,
  .promo-panel,
  .footer-inner {
    margin-left: 12px;
    margin-right: 12px;
  }

  .section-head h1,
  .section-head h2 { font-size: clamp(26px, 9vw, 34px); }
  .section-head p { max-width: 100%; white-space: normal; }

  .case-card {
    grid-template-columns: 104px 1fr;
    min-height: 184px;
  }
  .case-art img { width: 116px; height: 108px; }
  .case-info { padding-right: 12px; }
  .case-info h3 { font-size: 13px; }
  .case-info small,
  .case-info p { font-size: 9px; }
  .case-open { height: 36px; padding: 0 12px; font-size: 9px; }

  .cash-grid div { height: 72px; }
  .promo-panel { padding: 24px 18px; }
  .promo-panel h2 { font-size: 22px; }
  .pay-methods { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
}

:root[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -18px 0 50px rgba(20, 40, 70, 0.12);
}

:root[data-theme="light"] .nav-toggle:checked ~ .nav-overlay {
  background: rgba(20, 30, 50, 0.34);
}

/* Header unified light background: no separate white blocks */
:root[data-theme="light"] .header {
  background:
    linear-gradient(90deg, rgba(232, 247, 241, 0.92) 0%, rgba(235, 244, 252, 0.92) 45%, rgba(232, 247, 241, 0.92) 100%) !important;
  border-bottom-color: rgba(168, 85, 247, 0.18) !important;
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.16), 0 10px 28px rgba(20, 40, 70, 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.08);
}

:root[data-theme="light"] .brand,
:root[data-theme="light"] .nav,
:root[data-theme="light"] .header-actions {
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .nav {
  border: 0 !important;
}

@media (max-width: 900px) {
  :root[data-theme="light"] .nav {
    background: rgba(235, 244, 252, 0.98) !important;
    border-left: 1px solid rgba(168, 85, 247, 0.16) !important;
    box-shadow: -18px 0 50px rgba(20, 40, 70, 0.14) !important;
  }
}

/* Disable section blinking/shimmer animations and improve footer icons */
.login::before,
.case-info button::before,
.case-open::before,
.promo-button::before,
.promo-panel::before,
.bonos-panel::before,
.faq-card::before,
.soporte-info::before,
.case-prizes-panel::before,
.affiliate-card::before,
.profile-card::before {
  content: none !important;
  display: none !important;
  animation: none !important;
  transition: none !important;
}

.brand-icon,
.case-art img,
.live-pill span::after,
.ticker,
.promo-panel::before {
  animation: none !important;
}

.ticker:hover { animation-play-state: initial !important; }

/* (legacy square social icon overrides removed — now pill-shaped with labels below) */

/* Live drop: NO movement. Static row, data is loaded from DB and shown as-is. */
.ticker {
  animation: none !important;
  width: 100% !important;
  overflow: hidden;
}


.live-pill span::after {
  animation: liveRing 1.8s ease-out infinite !important;
}

.ticker span,
.ticker span.win,
.ticker span.loss,
.ticker span.jackpot {
  color: #a855f7 !important;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.24), rgba(168, 85, 247, 0.07)) !important;
  border-color: rgba(168, 85, 247, 0.42) !important;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.28) !important;
}

:root[data-theme="light"] .ticker span,
:root[data-theme="light"] .ticker span.win,
:root[data-theme="light"] .ticker span.loss,
:root[data-theme="light"] .ticker span.jackpot {
  color: #0b7a24 !important;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.28), rgba(168, 85, 247, 0.08)) !important;
  border-color: rgba(168, 85, 247, 0.46) !important;
  text-shadow: none !important;
}

/* Unified footer social pills (icon + label) */
.footer-socials a,
.footer-socials a[href^="mailto:"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: auto !important;
  height: 40px !important;
  padding: 0 16px !important;
  color: #dce7f3 !important;
  background: rgba(220, 231, 243, 0.08) !important;
  border: 1px solid rgba(220, 231, 243, 0.2) !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.footer-socials a[href^="https://t.me"],
.footer-socials a[aria-label="Telegram"] {
  color: #34d6ff !important;
  background: rgba(52, 214, 255, 0.12) !important;
  border-color: rgba(52, 214, 255, 0.4) !important;
}

.footer-socials a[href^="mailto:"] {
  color: #8cff97 !important;
  background: rgba(168, 85, 247, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.36) !important;
}

.footer-socials a svg,
.footer-socials a[href^="mailto:"] svg {
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  stroke: none !important;
}

:root[data-theme="light"] .footer-socials a,
:root[data-theme="light"] .footer-socials a[href^="mailto:"] {
  color: #273244 !important;
  background: #eef4fb !important;
  border-color: rgba(39, 50, 68, 0.18) !important;
}

.footer-socials a:hover,
.footer-socials a[href^="mailto:"]:hover {
  color: #041106 !important;
  background: var(--green) !important;
  border-color: transparent !important;
}

/* Modern crypto payment modals */
.modal-light .modal-card.pay-card,
.modal-light .modal-card.pay-card.withdraw {
  width: min(680px, calc(100% - 24px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  color: #edf3f7;
  background:
    radial-gradient(circle at 20% 0, rgba(168, 85, 247, 0.14), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(52, 214, 255, 0.15), transparent 38%),
    linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(6, 10, 19, 0.98));
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.modal-light .modal-card.pay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.modal-light .modal-card .modal-close {
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #dce7f3;
  background: rgba(255, 255, 255, 0.055);
}

.pay-title {
  position: relative;
  padding: 34px 34px 22px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.075em;
  color: #edf3f7;
}

.pay-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--aqua));
}

.pay-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.075);
}

.pay-label {
  margin: 22px 34px 10px;
  color: #aab6c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 34px;
}

.pay-method {
  min-height: 58px;
  height: auto;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 139, 170, 0.18);
  border-radius: 18px;
  color: #edf3f7;
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  font-weight: 900;
  text-transform: capitalize;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pay-method:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.28);
}

.pay-method.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
  border-color: rgba(168, 85, 247, 0.58);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pay-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pay-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.pay-help {
  margin: 18px 34px 0;
  color: #34d6ff;
  font-weight: 850;
}

.pay-input {
  width: calc(100% - 68px);
  height: 58px;
  margin: 0 34px;
  padding: 0 18px;
  border: 1px solid rgba(112, 139, 170, 0.16);
  border-radius: 18px;
  color: #edf3f7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
  font-weight: 900;
}

.pay-input:focus {
  box-shadow: 0 0 0 3px rgba(52, 214, 255, 0.14);
  border-color: rgba(52, 214, 255, 0.46);
}

.pay-footer {
  padding: 28px 34px 34px;
  margin-top: 10px;
}

.pay-balance {
  color: #aab6c7;
  font-weight: 800;
}

.pay-balance b {
  color: #edf3f7;
}

.pay-cta {
  min-width: 220px;
  height: 54px;
  border-radius: 16px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(168, 85, 247, 0.16);
}

.pay-cta.orange,
.pay-cta.red {
  color: #041106;
  background: linear-gradient(180deg, #d86bfd 0%, #a855f7 48%, #7c3aed 100%);
}

.withdraw-grid {
  grid-template-columns: 260px 1fr;
}

.withdraw-aside {
  background:
    radial-gradient(circle at 20% 0, rgba(52, 214, 255, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(14, 21, 36, 0.98), rgba(8, 12, 22, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.withdraw-main {
  padding-bottom: 0;
}

.withdraw-row {
  gap: 16px;
  margin: 0 34px;
}

.withdraw-row .pay-label {
  margin-left: 0;
  margin-right: 0;
}

.withdraw-row .pay-input,
.withdraw-row > div:first-child .pay-input,
.withdraw-row > div:last-child .pay-input {
  width: 100%;
  margin: 0;
}

@media (max-width: 720px) {
  .modal {
    align-items: start;
    justify-items: center;
    padding: 12px 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-light .modal-card.pay-card,
  .modal-light .modal-card.pay-card.withdraw {
    width: 100%;
    max-width: 460px;
    max-height: none;
    margin: 0 auto;
    border-radius: 18px;
  }

  .pay-card,
  .pay-card *,
  .pay-card *::before,
  .pay-card *::after { box-sizing: border-box; }

  .modal-light .modal-card .modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .pay-title {
    padding: 18px 18px 12px;
    font-size: 22px;
    letter-spacing: -0.04em;
  }
  .pay-title::after { width: 44px; height: 2px; margin-top: 8px; }

  .pay-divider { margin: 0; }

  .pay-label {
    margin: 12px 18px 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .pay-methods { grid-template-columns: 1fr; gap: 8px; margin: 0 18px; }
  .pay-method { min-height: 46px; padding: 8px 12px; font-size: 13px; gap: 10px; }
  .pay-icon, .pay-icon svg { width: 26px; height: 26px; }

  .pay-input {
    width: calc(100% - 36px);
    margin: 0 18px;
    height: 46px;
    font-size: 15px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .pay-help { margin: 10px 18px 0; font-size: 12px; }

  .pay-footer {
    padding: 14px 18px 18px;
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pay-balance { text-align: center; font-size: 13px; }
  .pay-cta { width: 100%; min-width: 0; height: 46px; font-size: 14px; border-radius: 13px; }

  .withdraw-grid { grid-template-columns: 1fr; }
  .withdraw-aside {
    padding: 14px 18px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
  }
  .withdraw-aside-head { font-size: 13px; gap: 8px; }
  .withdraw-aside-head svg { width: 18px; height: 18px; }
  .withdraw-aside p { font-size: 12px; line-height: 1.4; }
  .withdraw-aside-foot { font-size: 11px; gap: 4px; }
  .withdraw-main { padding: 0 0 6px; }
  .withdraw-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }
  .withdraw-row .pay-label { margin: 12px 18px 6px; }
  .withdraw-row .pay-input,
  .withdraw-row > div:first-child .pay-input,
  .withdraw-row > div:last-child .pay-input {
    width: calc(100% - 36px);
    margin: 0 18px;
  }
}

/* ============================== NO-GRADIENT CLEAN VISUAL SYSTEM ============================== */
body::before,
body::after,
.promo-panel::before,
.page-title::before,
.case-page-head::before {
  display: none !important;
  content: none !important;
}

:root,
:root[data-theme="dark"] {
  --bg: #070b12;
  --bg-elev: #0b111c;
  --surface: #101827;
  --surface-2: #0d1421;
  --surface-input: #111a29;
  --header-bg: #0b111c;
  --footer-bg: #070b12;
  --panel: #0f1726;
  --panel-strong: #101827;
}

:root[data-theme="light"] {
  --bg: #eef3f7;
  --bg-elev: #f8fbfd;
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --surface-input: #f2f6fa;
  --header-bg: #edf4f6;
  --footer-bg: #f8fbfd;
  --panel: #ffffff;
  --panel-strong: #ffffff;
}

body,
:root[data-theme="light"] body {
  background: var(--bg) !important;
}

.header,
:root[data-theme="light"] .header {
  background: var(--header-bg) !important;
}

.section-head span,
.page-title h1 span,
.case-page-head h1 span,
:root[data-theme="light"] .section-head span {
  color: var(--green) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.ticker-panel,
.case-card,
.cash-grid div,
.top-users,
.promo-panel,
.footer,
.modal-card,
.modal-light .modal-card.pay-card,
.modal-light .modal-card.pay-card.withdraw {
  background: var(--surface) !important;
  background-image: none !important;
}

.ticker span,
.ticker span.win,
.ticker span.loss,
.ticker span.jackpot,
.stats > div,
.live-pill,
.section-head p,
.case-badge,
.price,
.pay-method,
.pay-input,
.account-link,
.theme-toggle,
.footer-socials a,
.footer-badges span {
  background-image: none !important;
}

.ticker span,
.ticker span.win,
.ticker span.loss,
.ticker span.jackpot {
  background-color: rgba(168, 85, 247, 0.12) !important;
}

.login,
.case-open,
.case-info button,
.promo-button,
.pay-cta,
.pay-cta.orange,
.pay-cta.red {
  background: #a855f7 !important;
  color: #041106 !important;
  box-shadow: 0 14px 34px rgba(168, 85, 247, 0.18) !important;
}

.modal-light .modal-card.pay-card::before {
  display: none !important;
  content: none !important;
}

.pay-title::after,
.case-prize::after,
.bonos-prizes span::after,
.case-roulette-track span::after {
  background: #a855f7 !important;
  background-image: none !important;
}

:root[data-theme="light"] .ticker-panel,
:root[data-theme="light"] .case-card,
:root[data-theme="light"] .cash-grid div,
:root[data-theme="light"] .top-users,
:root[data-theme="light"] .promo-panel,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .modal-card,
:root[data-theme="light"] .modal-light .modal-card.pay-card,
:root[data-theme="light"] .modal-light .modal-card.pay-card.withdraw {
  background: #ffffff !important;
  background-image: none !important;
}

/* Footer uses the same background as header */
.footer,
:root[data-theme="light"] .footer {
  background: var(--header-bg) !important;
  background-image: none !important;
  border-top-color: var(--border-soft) !important;
}

/* ============================== PRICE TAGS — PREMIUM LOOK ============================== */
.case-card .price {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 9px 16px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  background: linear-gradient(180deg, #d86bfd 0%, #a855f7 50%, #7928ca 100%) !important;
  background-image: linear-gradient(180deg, #d86bfd 0%, #a855f7 50%, #7928ca 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 22px rgba(168, 85, 247, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.case-card .price i {
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.75;
  transform: translateY(-1px);
}

.case-card .price b {
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.case-card.tier-bronze .price {
  background: linear-gradient(180deg, #ffd9a5 0%, #d49354 48%, #8a5520 100%) !important;
  background-image: linear-gradient(180deg, #ffd9a5 0%, #d49354 48%, #8a5520 100%) !important;
  color: #2a1808 !important;
  box-shadow:
    0 8px 22px rgba(138, 85, 32, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.case-card.tier-silver .price {
  background: linear-gradient(180deg, #f6f9ff 0%, #b9c3d3 50%, #7c899e 100%) !important;
  background-image: linear-gradient(180deg, #f6f9ff 0%, #b9c3d3 50%, #7c899e 100%) !important;
  color: #1a2230 !important;
  box-shadow:
    0 8px 22px rgba(124, 137, 158, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.case-card.tier-gold .price {
  background: linear-gradient(180deg, #fff3b3 0%, #f3b500 50%, #b87f00 100%) !important;
  background-image: linear-gradient(180deg, #fff3b3 0%, #f3b500 50%, #b87f00 100%) !important;
  color: #2d1d00 !important;
  box-shadow:
    0 8px 24px rgba(243, 181, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.case-card.tier-platinum .price {
  background: linear-gradient(180deg, #e5f6ff 0%, #6ec6ff 50%, #2a91d8 100%) !important;
  background-image: linear-gradient(180deg, #e5f6ff 0%, #6ec6ff 50%, #2a91d8 100%) !important;
  color: #04243a !important;
  box-shadow:
    0 8px 24px rgba(42, 145, 216, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.case-card.tier-diamond .price {
  background: linear-gradient(180deg, #d4f3ff 0%, #34d6ff 45%, #0099d4 100%) !important;
  background-image: linear-gradient(180deg, #d4f3ff 0%, #34d6ff 45%, #0099d4 100%) !important;
  color: #04253a !important;
  box-shadow:
    0 8px 26px rgba(0, 153, 212, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.case-card.tier-jackpot .price {
  background: linear-gradient(135deg, #ff5cf2 0%, #8b5cff 50%, #34d6ff 100%) !important;
  background-image: linear-gradient(135deg, #ff5cf2 0%, #8b5cff 50%, #34d6ff 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  box-shadow:
    0 10px 28px rgba(139, 92, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.case-card.tier-jackpot .price b {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

