:root {
  --bg-main: #0c0f14;
  --bg-card: #151921;
  --bg-card-hover: #1e2430;
  --bg-input: #0b0e14;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #fbbf24;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-cyan: #06b6d4;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-chakra: 'Chakra Petch', sans-serif;
  --font-rajdhani: 'Rajdhani', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

/* Used throughout the app for closed modals, inactive panels, and controls. */
.hidden {
  display: none !important;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, #1c2433 0%, #0c0f14 70%);
  color: var(--text-main);
  font-family: var(--font-rajdhani);
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP NAVBAR */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 28px;
  background: rgba(15, 19, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.logo .site-logo-img {
  height: 28px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.logo .site-logo-img.is-missing {
  display: none !important;
}

/* Dual logo: Classic (gold shield) vs Cyber (cyan crest) */
body:not(.theme-new) .logo .site-logo-img.logo-classic {
  display: inline-block !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}
body:not(.theme-new) .logo .site-logo-img.logo-cyber {
  display: none !important;
}
body.theme-new .logo .site-logo-img.logo-classic {
  display: none !important;
}
body.theme-new .logo .site-logo-img.logo-cyber {
  display: inline-block !important;
}

/* When site-logo-img is present and loaded, hide fallback emoji shield */
.logo .site-logo-img:not(.is-missing) ~ .logo-shield {
  display: none !important;
}

.logo .logo-lens-flare,
.logo .logo-plate-accent-left,
.logo .logo-plate-accent-right {
  display: none;
}

.logo .highlight {
  color: var(--accent-gold);
}

.logo-badge {
  background: #262e3d;
  color: #60a5fa;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-chakra);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 8px 17px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-tab-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-tab-icon.shop-icon,
.nav-tab-icon.case-icon {
  width: 18px;
  height: 18px;
}

.nav-tab-icon.upgrader-icon {
  width: 32px;
  height: 16px;
  object-fit: contain;
  margin-right: 2px;
}

.nav-tab:hover,
.nav-tab.active {
  color: #fff;
  background: #1c2331;
  border-color: var(--border-light);
}

.nav-tab:hover .nav-tab-icon,
.nav-tab.active .nav-tab-icon {
  filter: brightness(1.2);
}

.nav-tab.active {
  border-color: var(--accent-gold);
}

/* Currency & Sound */
.icon-btn,
.icon-btn-sm {
  background: #1c2331;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d1117;
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 8px;
}

.balance-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.balance-val {
  font-family: var(--font-chakra);
  font-weight: 700;
  color: var(--accent-green);
  font-size: 1.05rem;
}

.btn-deposit {
  background: #1b4d3e;
  color: #34d399;
  border: 1px solid #059669;
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 0.75rem;
  width: 30px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-deposit:hover {
  background: #059669;
  color: #fff;
}

.btn-primary-steam {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: none;
  color: #000;
  font-family: var(--font-chakra);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
}

.btn-primary-steam:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.user-badge-logged {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #151921;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 8px;
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #252e3e;
}

.header-name {
  font-weight: 700;
  color: #fff;
}

/* MAIN VIEW LAYOUT */
.main-wrapper {
  flex: 1;
  padding: 24px;
  max-width: 1640px;
  margin: 0 auto;
  width: 100%;
}

.tab-view {
  display: block;
}

.tab-view.hidden {
  display: none !important;
}

/* CONTROLS RIBBON */
.controls-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.ribbon-lbl {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 10px;
  text-transform: uppercase;
}

.anim-buttons,
.mult-buttons {
  display: inline-flex;
  gap: 6px;
}

.anim-btn,
.mult-btn {
  background: #0f131a;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-chakra);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.anim-btn.active,
.mult-btn:hover {
  background: #252e3e;
  color: #fff;
  border-color: var(--accent-gold);
}

/* ARENA 3 COLUMNS */
.arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.arena-column {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 720px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.panel-header h3 {
  font-family: var(--font-chakra);
  font-size: 1rem;
  color: #fff;
}

.panel-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Selected Slots */
.selected-target-slot {
  height: 140px;
  background: #0d1017;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.selected-target-slot.active-skin {
  border-style: solid;
  border-color: var(--accent-gold);
  background: radial-gradient(circle at center, #262115 0%, #0d1017 100%);
}

.slot-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.slot-placeholder p {
  font-weight: 600;
  font-size: 0.95rem;
}

.slot-placeholder small {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Inventory Grids */
.inventory-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inv-filter-bar {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inv-filter-bar>input[type="text"] {
  grid-column: 1 / -1;
}

.price-sort,
.price-bound {
  min-width: 0;
  width: 100%;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.input-tactical {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-family: var(--font-rajdhani);
  font-size: 0.9rem;
  outline: none;
}

.input-tactical:focus {
  border-color: var(--border-focus);
}

.inventory-scroll-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  grid-auto-rows: 178px;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.catalog-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.target-multiplier-tools {
  padding: 10px;
  margin: -2px 0 12px;
  background: #0d1017;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.multiplier-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.multiplier-heading .ribbon-lbl {
  margin: 0;
}

.mult-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.btn-edit-multipliers {
  flex: 0 0 auto;
  background: #1b212c;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 5px;
  padding: 4px 7px;
  font: 600 0.72rem var(--font-chakra);
  cursor: pointer;
}

.btn-edit-multipliers:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

/* Skin Card Element */
.skin-card {
  background: #0f131a;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  min-height: 0;
  transition: 0.15s ease;
}

.skin-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.skin-card.selected {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.skin-card img {
  width: 90px;
  height: 65px;
  object-fit: contain;
  margin: 6px 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.market-price-amount {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(.55rem, .68vw, .78rem);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.skin-card-price {
  max-width: 100%;
  min-width: 0;
  text-align: center;
  line-height: 1.12;
}

.skin-card-price .market-price-amount {
  display: block;
  width: 100%;
  white-space: nowrap;
  font-size: clamp(.50rem, .50vw, .62rem);
  letter-spacing: -.04em;
}

.skin-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.skin-card-weapon {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.skin-card-price {
  font-family: var(--font-chakra);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-top: 4px;
}

.market-price-period {
  display: block;
  color: var(--text-muted);
  font: 0.6rem var(--font-rajdhani);
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
}

/* RARITY STRIPES */
.rarity-Covert {
  border-bottom: 3px solid #eb4b4b;
}

.rarity-Classified {
  border-bottom: 3px solid #d32ce6;
}

.rarity-Restricted {
  border-bottom: 3px solid #8847ff;
}

.rarity-Mil-Spec {
  border-bottom: 3px solid #4b69ff;
}

.rarity-Industrial {
  border-bottom: 3px solid #5e98d9;
}

.rarity-Consumer {
  border-bottom: 3px solid #b0c3d9;
}

.rarity-Extraordinary {
  border-bottom: 3px solid #e4ae39;
}

/* CENTER ENGINE */
.arena-center {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.engine-screen {
  width: 340px;
  height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-box.hidden {
  display: none !important;
}

.radar-center-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.chance-tag {
  font-family: var(--font-chakra);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* REEL ANIMATION */
.reel-container {
  width: 320px;
  height: 180px;
  background: #0a0d13;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.reel-pointer {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 190px;
  background: var(--accent-gold);
  z-index: 20;
  box-shadow: 0 0 10px var(--accent-gold);
}

.reel-track {
  display: flex;
  gap: 12px;
  height: 100%;
  align-items: center;
  padding: 0 20px;
  transform: translateX(0px);
  will-change: transform;
}

.reel-item {
  min-width: 120px;
  height: 140px;
  background: #141923;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.reel-item.win-item {
  border-color: var(--accent-green);
  background: #11261d;
}

.reel-item.miss-item {
  opacity: 0.45;
}

/* ACTION DOCK */
.action-dock {
  width: 100%;
  margin-top: 24px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #0d1017;
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.stat-cell {
  min-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cell-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cell-val {
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 1.1rem;
}

.win-val {
  color: var(--accent-green);
}

.mult-val {
  color: var(--accent-gold);
}

.roll-mode-toggle {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 4px;
}

.mode-btn {
  background: #1b212c;
  border: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 7px;
  white-space: nowrap;
  border-radius: 4px;
  cursor: pointer;
}

.mode-btn.active {
  background: var(--accent-gold);
  color: #000;
}

.btn-upgrade-fire {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 8px;
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 1.15rem;
  color: #000;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
}

.btn-upgrade-fire:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-upgrade-fire:disabled {
  background: #252b36;
  color: #555e6d;
  box-shadow: none;
  cursor: not-allowed;
}

/* STORE VIEW */
.store-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.store-banner h2 {
  font-family: var(--font-chakra);
  color: #fff;
  font-size: 1.5rem;
}

.store-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.store-filter-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  width: min(760px, 66%);
}

.store-filter-wrap>input[type="text"] {
  grid-column: 1 / -1;
}

.select-tactical {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-family: var(--font-rajdhani);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.store-card img {
  width: 140px;
  height: 95px;
  object-fit: contain;
  margin: 12px 0;
}

.btn-buy-skin {
  width: 100%;
  margin-top: 10px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: #fff;
  font-family: var(--font-chakra);
  font-weight: 700;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-buy-skin:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* MODAL WINDOWS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: #141822;
  border: 1px solid var(--border-light);
  width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.inventory-empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
}

.modal-hint {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.multipliers-modal-card {
  width: min(440px, calc(100vw - 32px));
}

.deposit-modal-card {
  width: min(420px, calc(100vw - 32px));
}

.deposit-methods {
  display: grid;
  gap: 10px;
}

.deposit-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-muted);
  background: #0d1118;
  opacity: 0.72;
  cursor: not-allowed;
}

.deposit-method>span:first-child {
  font-size: 1.3rem;
}

.deposit-method>span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
}

.deposit-method b {
  color: var(--text-main);
  font: 600 0.95rem var(--font-chakra);
}

.deposit-method small {
  font-size: 0.76rem;
}

.deposit-method i {
  color: var(--accent-gold);
  font: 700 0.68rem var(--font-chakra);
  font-style: normal;
}

.deposit-unavailable {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.activity-feed {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(21, 25, 33, 0.92);
}

.activity-heading,
.activity-heading>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.activity-heading h2 {
  font: 700 0.95rem var(--font-chakra);
}

.activity-heading>span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.activity-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.activity-drops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.activity-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #0e121a;
  animation: activity-appear 0.35s ease both;
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 0.8rem;
}

.activity-user b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #263348;
  color: var(--accent-gold);
  font: 700 0.75rem var(--font-chakra);
}

.activity-sim-tag {
  margin-left: auto;
  color: var(--text-muted);
  font: 700 0.6rem var(--font-chakra);
}

.activity-skins {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}

.activity-skins>div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.activity-skins img {
  width: 82px;
  height: 45px;
  object-fit: contain;
}

.activity-skins span:not(.activity-arrow) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
}

.activity-arrow {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.activity-values {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.activity-values>span {
  display: grid;
  text-align: center;
}

.activity-values .market-price-period {
  display: none;
}

.activity-result {
  color: var(--accent-green);
}

@keyframes activity-appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-entry {
  display: block;
  margin: 14px auto 0;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 6px;
  background: transparent;
  color: #687386;
  font: 600 .72rem var(--font-rajdhani);
  cursor: pointer;
}

.admin-entry:hover {
  color: var(--text-main);
  border-color: var(--border-light);
}

.admin-modal-card {
  width: min(520px, calc(100vw - 32px));
  max-height: min(90vh, 800px);
  overflow-y: auto;
}

.admin-section+.admin-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.admin-section h3 {
  margin-bottom: 10px;
  font: 700 1rem var(--font-chakra);
}

.admin-boost-control {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: .82rem;
}

.admin-section .input-field {
  display: grid;
  gap: 6px;
}

.admin-section .input-field>span {
  font-size: .72rem;
  color: var(--text-muted);
}

.admin-section .btn-submit-gold {
  margin-top: 10px;
}

.admin-setting-notice {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.4;
}

.multiplier-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.multiplier-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.mult-btn {
  width: 100%;
  padding: 6px 3px;
  font-size: 0.72rem;
}

@media (max-width: 1050px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .arena-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1fr);
  }

  .arena-center {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .arena-column:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .store-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .store-filter-wrap {
    width: 100%;
  }

  .activity-drops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .top-nav {
    padding: 10px 12px;
  }

  .nav-left,
  .nav-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-links {
    margin-left: 0;
  }

  .main-wrapper {
    padding: 12px;
  }

  .arena-grid {
    display: flex;
    flex-direction: column;
  }

  .arena-column,
  .arena-center {
    width: 100%;
    height: auto;
    min-height: 520px;
  }

  .arena-center {
    min-height: 0;
  }

  .inventory-container {
    min-height: 280px;
  }

  .engine-screen {
    width: min(340px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  #radarCanvas {
    width: 100%;
    height: 100%;
  }

  .stats-row {
    display: flex;
  }

  .stat-cell {
    min-width: 0;
    width: 100%;
  }

  .store-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .store-filter-wrap {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-drops {
    grid-template-columns: 1fr 1fr;
  }

  .activity-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0f131a;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.m-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-chakra);
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}

.m-tab.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  background: #171d29;
}

.modal-body {
  padding: 20px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.input-field input {
  background: #0a0d13;
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-rajdhani);
  font-size: 1rem;
}

.btn-submit-gold {
  width: 100%;
  background: var(--accent-gold);
  border: none;
  color: #000;
  font-family: var(--font-chakra);
  font-weight: 700;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 6px;
}

.auth-divider {
  text-align: center;
  margin: 18px 0;
  position: relative;
}

.auth-divider span {
  background: #141822;
  padding: 0 10px;
  color: #555e6d;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-guest {
  width: 100%;
  background: #1c2432;
  border: 1px solid var(--border-light);
  color: #fff;
  font-family: var(--font-chakra);
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.auth-error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* PROFILE MODAL */
.profile-card {
  width: 480px;
}

.profile-body {
  padding: 20px;
}

.user-info-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.profile-big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #252e3e;
  border: 2px solid var(--accent-gold);
}

.avatar-seeds {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.avatar-pick-btn {
  background: #1e2635;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-p-card {
  background: #0c0f14;
  border: 1px solid var(--border-light);
  padding: 12px;
  border-radius: 8px;
}

.sc-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sc-val {
  font-family: var(--font-chakra);
  font-size: 1.25rem;
  font-weight: 700;
}

.sc-val.win {
  color: var(--accent-green);
}

.btn-logout {
  width: 100%;
  background: #391e22;
  border: 1px solid #7f1d1d;
  color: #f87171;
  font-family: var(--font-chakra);
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.hidden {
  display: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 0;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: 5px
}

.social-links a img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1)
}

.social-links a:hover,
.site-footer a:hover {
  color: var(--accent-gold)
}

.profile-inventory-section {
  margin: 16px 0;
  padding: 12px;
  background: #111722;
  border: 1px solid var(--border-light);
  border-radius: 8px
}

.profile-inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.profile-inventory-heading h3 {
  margin: 0;
  color: #e5e7eb;
  font: 700 .82rem var(--font-chakra);
  letter-spacing: .5px
}

.profile-inventory-heading span,
.profile-inventory-empty {
  color: var(--text-muted);
  font-size: .76rem
}

.profile-inventory-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto
}

.profile-inventory-empty {
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--border-light);
  border-radius: 6px
}

.profile-inventory-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  background: #0c111a;
  border: 1px solid var(--border-light);
  border-radius: 6px
}

.profile-inventory-item>img {
  width: 54px;
  height: 42px;
  object-fit: contain
}

.profile-inventory-details {
  display: grid;
  gap: 4px;
  min-width: 0
}

.profile-inventory-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e5e7eb;
  font-size: .78rem
}

.profile-inventory-details>span {
  color: var(--accent-gold);
  font-size: .78rem;
  font-weight: 700
}

.profile-withdraw-btn {
  min-width: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, .5);
  border-radius: 5px;
  background: rgba(245, 158, 11, .12);
  color: var(--accent-gold);
  font: 700 .7rem var(--font-chakra);
  cursor: pointer
}

.profile-withdraw-btn:hover:not(:disabled) {
  background: #f59e0b;
  color: #111
}

.profile-withdraw-btn:disabled {
  opacity: .72;
  cursor: wait
}

.withdraw-spinner {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  animation: withdraw-spin 1s linear infinite
}

@keyframes withdraw-spin {
  to {
    transform: rotate(360deg)
  }
}

/* ==========================================================
   FULL-FEATURED PLATFORM FOOTER
   ========================================================== */
.site-footer {
  position: relative;
  width: 100%;
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.98) 0%, rgba(8, 10, 15, 0.99) 100%);
  border-top: 1px solid rgba(245, 196, 0, 0.22);
  color: var(--text-muted, #7e8b9b);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.6) 50%, transparent);
  pointer-events: none;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.45fr 1.15fr;
  gap: 36px;
  margin-bottom: 40px;
}

/* Col 1: Brand */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 196, 0, 0.35));
}

.footer-logo.site-logo-classic {
  display: block;
}

.footer-logo.site-logo-cyber {
  display: none;
}

.footer-brand-title {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
}

.footer-brand-accent {
  color: var(--accent-gold, #f5c400);
}

.footer-brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7e8b9b;
  text-transform: uppercase;
  margin-top: 3px;
}

.footer-description {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #8e9bb0;
  margin: 0 0 20px;
  max-width: 380px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

.status-indicator-text {
  color: #9aa8ba;
  font-size: 0.73rem;
}

.status-online {
  color: #10b981;
  font-weight: 800;
}

.status-latency {
  color: #6b778a;
  margin-left: 2px;
}

/* Titles */
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::after {
  content: '';
  height: 2px;
  width: 20px;
  background: var(--accent-gold, #f5c400);
  border-radius: 2px;
}

/* Col 2: Navigation Links */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: #9aa8ba;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}

.footer-nav-link:hover {
  color: var(--accent-gold, #f5c400);
  transform: translateX(4px);
}

.footer-link-icon {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Col 3: Social Cards */
.footer-social-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(19, 25, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social-card:hover {
  transform: translateY(-2px);
}

.social-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.footer-social-card:hover .social-card-icon {
  transform: scale(1.08);
}

.social-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.social-card-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.social-card-handle {
  font-size: 0.74rem;
  color: #7e8b9b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.social-card-arrow {
  font-size: 0.95rem;
  color: #5f6e82;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.footer-social-card:hover .social-card-arrow {
  transform: translate(2px, -2px);
  color: #ffffff;
}

/* VK Theme */
.footer-card-vk .social-card-icon {
  background: rgba(0, 119, 255, 0.15);
  color: #2787f5;
  border: 1px solid rgba(39, 135, 245, 0.28);
}

.footer-card-vk:hover {
  border-color: rgba(39, 135, 245, 0.5);
  box-shadow: 0 4px 18px rgba(39, 135, 245, 0.16);
  background: rgba(24, 38, 56, 0.75);
}

/* Telegram Theme */
.footer-card-tg .social-card-icon {
  background: rgba(0, 136, 204, 0.15);
  color: #229ed9;
  border: 1px solid rgba(34, 158, 217, 0.28);
}

.footer-card-tg:hover {
  border-color: rgba(34, 158, 217, 0.5);
  box-shadow: 0 4px 18px rgba(34, 158, 217, 0.16);
  background: rgba(18, 36, 50, 0.75);
}

/* Mail Theme */
.footer-card-mail .social-card-icon {
  background: rgba(245, 196, 0, 0.14);
  color: #f5c400;
  border: 1px solid rgba(245, 196, 0, 0.28);
}

.footer-card-mail:hover {
  border-color: rgba(245, 196, 0, 0.5);
  box-shadow: 0 4px 18px rgba(245, 196, 0, 0.16);
  background: rgba(36, 32, 20, 0.75);
}

/* Col 4: Security Badges */
.footer-security-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  background: rgba(14, 18, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  transition: border-color 0.2s, background 0.2s;
}

.security-badge-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 26, 36, 0.75);
}

.badge-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text strong {
  font-size: 0.81rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.badge-text span {
  font-size: 0.72rem;
  color: #778598;
  margin-top: 1px;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-text {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #6b778a;
  margin: 0;
  max-width: 820px;
}

.footer-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-tag {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8e9bb0;
}

.footer-tag.tag-age {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

/* Responsive Footer Grid */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-container {
    padding: 36px 16px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-tags {
    justify-content: center;
  }
}

.deposit-unavailable a {
  color: var(--accent-gold)
}

.store-cart-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px
}

.store-cart-panel>div:first-child {
  display: flex;
  align-items: center;
  gap: 14px
}

.cart-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1
}

.cart-items>span {
  padding: 5px 8px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: .8rem
}

.cart-items button {
  margin-left: 5px;
  border: 0;
  background: transparent;
  color: #ef4444;
  cursor: pointer
}

.inventory-sell-btn {
  margin-top: 5px;
  width: 100%;
  padding: 5px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #161d29;
  color: var(--text-muted);
  font-size: .68rem;
  cursor: pointer
}

.inventory-sell-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold)
}

@media(max-width:900px) {
  .social-links {
    margin: 0
  }

  .site-footer {
    margin-top: 40px;
  }
}

.inventory-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap
}

.inventory-sell-all-btn {
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 5px;
  background: rgba(127, 29, 29, .18);
  color: #fca5a5;
  padding: 6px 9px;
  font: 700 .68rem var(--font-chakra);
  cursor: pointer;
  transition: .18s
}

.inventory-sell-all-btn:hover:not(:disabled) {
  background: #7f1d1d;
  color: white;
  border-color: #ef4444
}

.inventory-sell-all-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

.target-locked {
  position: relative;
  opacity: .58;
  filter: saturate(.5)
}

.target-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 18, .43);
  pointer-events: none
}

.skin-lock-overlay {
  position: absolute;
  z-index: 2;
  left: 4px;
  right: 4px;
  top: 40%;
  padding: 5px 3px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 5px;
  background: rgba(11, 15, 22, .94);
  color: #cbd5e1;
  text-align: center;
  font-size: .61rem;
  line-height: 1.2
}

.target-locked {
  cursor: not-allowed !important
}

.inv-filter-bar select,
.inv-filter-bar input,
.store-filter-wrap select,
.store-filter-wrap input {
  min-height: 38px;
  border-radius: 8px;
  transition: border-color .18s, box-shadow .18s, background .18s
}

.inv-filter-bar select:hover,
.store-filter-wrap select:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #111722
}

.inv-filter-bar input:focus,
.store-filter-wrap input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .13)
}

.inv-filter-bar select:focus,
.store-filter-wrap select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .13)
}

.admin-reset-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: 6px;
  background: rgba(127, 29, 29, .2);
  color: #fca5a5;
  font: 700 .8rem var(--font-chakra);
  cursor: pointer
}

.admin-reset-btn:hover {
  background: #7f1d1d;
  color: white
}

.admin-inventory-manager {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light)
}

.admin-inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px
}

.admin-inventory-heading .admin-sublabel {
  margin: 0
}

.admin-inventory-heading .btn-icon-refresh {
  width: auto;
  padding: 5px 9px
}

.admin-user-inventory-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto
}

.admin-user-inventory-empty {
  padding: 10px;
  border: 1px dashed var(--border-light);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: .8rem;
  text-align: center
}

.admin-user-inventory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #0d121b
}

.admin-user-inventory-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e5e7eb;
  font-size: .78rem;
  line-height: 1.25
}

.admin-user-inventory-meta {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .68rem
}

.admin-user-inventory-delete {
  flex: 0 0 auto;
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: 5px;
  background: rgba(127, 29, 29, .2);
  color: #fca5a5;
  padding: 6px 8px;
  font: 700 .68rem var(--font-chakra);
  cursor: pointer
}

.admin-user-inventory-delete:hover:not(:disabled) {
  background: #7f1d1d;
  color: #fff
}

.admin-user-inventory-delete:disabled {
  opacity: .5;
  cursor: wait
}

#userInventoryGrid {
  grid-auto-rows: 202px
}

.inventory-summary {
  white-space: nowrap
}

.inv-filter-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.inv-filter-bar>.price-sort {
  grid-column: 1;
  grid-row: 3
}

.inv-filter-bar>.price-bound:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2
}

.inv-filter-bar>.price-bound:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2
}

.target-locked.selected {
  border-color: #475569
}

.skin-lock-overlay {
  pointer-events: none
}

@media(max-width:700px) {
  .inventory-summary {
    justify-content: flex-start;
    gap: 8px
  }

  .inventory-summary .panel-counter {
    font-size: .7rem
  }

  .inventory-sell-all-btn {
    padding: 5px 7px
  }
}

/* Refined skin selection lists: compact horizontal inventory rows, balanced against the target catalogue. */
#userInventoryGrid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 92px;
  gap: 8px;
  overflow-x: hidden
}

#userInventoryGrid .skin-card {
  height: 92px;
  min-height: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 76px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: start;
  padding: 7px 9px;
  gap: 1px 10px;
  text-align: left;
  border-radius: 9px
}

#userInventoryGrid .skin-card img {
  grid-column: 1;
  grid-row: 1/4;
  width: 88px;
  height: 70px;
  margin: 0;
  object-fit: contain
}

#userInventoryGrid .skin-card-weapon {
  grid-column: 2;
  grid-row: 1;
  align-self: end
}

#userInventoryGrid .skin-card-name {
  grid-column: 2;
  grid-row: 2;
  max-width: 100%;
  align-self: center
}

#userInventoryGrid .skin-card-price {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  align-self: start
}

#userInventoryGrid .inventory-sell-btn {
  grid-column: 3;
  grid-row: 1/4;
  width: 100%;
  align-self: center;
  margin: 0;
  padding: 8px 4px
}

#userInventoryGrid .skin-card::after {
  height: 2px
}

.store-cart-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 190px;
  align-items: stretch;
  gap: 14px;
  min-height: 104px;
  padding: 12px 14px
}

.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 10px;
  border-right: 1px solid var(--border-light)
}

.cart-summary b {
  font: 700 1rem var(--font-chakra);
  color: #fff
}

.cart-summary span {
  font-size: .76rem;
  color: var(--text-muted)
}

.cart-summary strong {
  font: 700 1rem var(--font-chakra);
  color: var(--accent-gold)
}

.cart-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  align-content: center;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-height: 92px;
  overflow-y: auto;
  padding: 2px 6px
}

.cart-items>span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px 8px;
  background: #0d121b;
  border-color: #293244;
  border-radius: 6px
}

.cart-items>span button {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 4px;
  background: rgba(239, 68, 68, .1);
  font-size: 1rem
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  min-width: 0
}

.cart-actions button {
  width: 100%;
  margin: 0;
  padding: 8px
}

.cart-clear-btn {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #1a2230;
  color: #aab7cb;
  font: 700 .7rem var(--font-chakra);
  cursor: pointer
}

.cart-clear-btn:hover:not(:disabled) {
  color: #fff;
  border-color: #ef4444
}

.cart-clear-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

@media(max-width:800px) {
  .store-cart-panel {
    grid-template-columns: 1fr 1fr
  }

  .cart-summary {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--border-light);
    padding: 0 0 8px
  }

  .cart-items {
    grid-column: 1/-1;
    grid-row: 2;
    max-height: 110px
  }

  .cart-actions {
    grid-column: 1/-1;
    grid-row: 3;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto
  }

  #userInventoryGrid .skin-card {
    grid-template-columns: 78px minmax(0, 1fr) 70px
  }

  #userInventoryGrid .skin-card img {
    width: 76px
  }
}

#userInventoryGrid {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  grid-auto-rows: 202px;
  gap: 10px;
  overflow-x: hidden
}

#userInventoryGrid .skin-card {
  height: auto;
  min-height: 0;
  display: flex;
  grid-template-columns: none;
  grid-template-rows: none;
  align-items: center;
  justify-items: initial;
  padding: 10px 8px;
  text-align: center;
  border-radius: 8px
}

#userInventoryGrid .skin-card img {
  width: 90px;
  height: 65px;
  margin: 6px 0;
  grid-column: auto;
  grid-row: auto
}

#userInventoryGrid .skin-card-weapon,
#userInventoryGrid .skin-card-name,
#userInventoryGrid .skin-card-price,
#userInventoryGrid .inventory-sell-btn {
  grid-column: auto;
  grid-row: auto
}

#userInventoryGrid .inventory-sell-btn {
  width: 100%;
  margin-top: auto;
  padding: 5px
}

.target-multiplier-tools {
  margin: 0 0 9px;
  padding: 8px
}

.multiplier-heading {
  margin-bottom: 6px
}

.mult-buttons {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px
}

.mult-btn {
  min-height: 34px;
  border-radius: 6px;
  background: #101621;
  border: 1px solid #293244;
  color: #9fb0c7;
  font: 600 .78rem var(--font-chakra);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s
}

.mult-btn:hover,
.mult-btn.active {
  background: rgba(245, 158, 11, .13);
  border-color: var(--accent-gold);
  color: #ffbf40
}

.btn-edit-multipliers.icon-only {
  width: 29px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1rem
}

@media(min-width:1051px) {
  .inv-filter-bar:has(#targetSearchInput) {
    grid-template-columns: minmax(75px, .72fr) minmax(130px, 1.65fr) minmax(72px, .8fr) minmax(72px, .8fr);
    gap: 6px
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceSort {
    grid-column: 1;
    grid-row: 1
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetSearchInput {
    grid-column: 2;
    grid-row: 1;
    min-width: 0
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMin {
    grid-column: 3;
    grid-row: 1
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMax {
    grid-column: 4;
    grid-row: 1
  }

  .inv-filter-bar:has(#targetSearchInput) input,
  .inv-filter-bar:has(#targetSearchInput) select {
    height: 36px;
    min-height: 36px;
    padding: 5px 7px;
    font-size: .72rem
  }
}

@media(max-width:1050px) {
  .inv-filter-bar:has(#targetSearchInput) {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetSearchInput {
    grid-column: 1/-1;
    grid-row: 1
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceSort {
    grid-column: 1;
    grid-row: 2
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMin {
    grid-column: 2;
    grid-row: 2
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMax {
    grid-column: 1;
    grid-row: 3
  }
}

/* Shared themed controls and resilient currency labels */
select.select-tactical {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  width: 100%;
  color: #e6edf7;
  background-color: #0d121b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f5a40a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid #293244;
  border-radius: 8px;
  padding: 8px 32px 8px 10px;
  font: 500 .82rem var(--font-rajdhani);
  line-height: 1.25;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .16s, background-color .16s, box-shadow .16s
}

select.select-tactical:hover {
  border-color: rgba(245, 158, 11, .58);
  background-color: #111925
}

select.select-tactical:focus-visible {
  outline: 0;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16)
}

select.select-tactical option,
select.select-tactical optgroup {
  background: #101722;
  color: #e6edf7
}

select.select-tactical option:checked {
  background: #302716;
  color: #ffc14b
}

select.select-tactical option:hover {
  background: #242e3d;
  color: #fff
}

@supports (appearance:base-select) {
  select.select-tactical {
    appearance: base-select;
    -webkit-appearance: base-select;
    background-image: none;
    padding-right: 10px
  }

  select.select-tactical::picker(select) {
    appearance: base-select;
    background: #101722;
    color: #e6edf7;
    border: 1px solid #344155;
    border-radius: 9px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
    padding: 5px;
    margin-top: 5px
  }

  select.select-tactical::picker-icon {
    color: var(--accent-gold);
    transition: rotate .16s
  }

  select.select-tactical:open::picker-icon {
    rotate: 180deg
  }

  select.select-tactical option {
    border-radius: 5px;
    padding: 8px 10px
  }

  select.select-tactical option:checked {
    background: #302716;
    color: #ffc14b
  }

  select.select-tactical option:hover {
    background: #202b3a;
    color: #fff
  }
}

#userInventoryGrid {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  grid-auto-rows: 202px
}

#userInventoryGrid .skin-card-price,
#targetCatalogGrid .skin-card-price,
#storeGrid .skin-card-price {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.12;
  font-size: clamp(.61rem, .85vw, .88rem);
  letter-spacing: -.015em
}

#userInventoryGrid .skin-card,
#targetCatalogGrid .skin-card,
#storeGrid .store-card {
  min-width: 0;
  overflow: hidden
}

.selected-target-slot h4,
.selected-target-slot [style*="accent-gold"] {
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%
}

.inv-filter-bar:not(:has(#targetSearchInput)) {
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.4fr);
  gap: 8px
}

.inv-filter-bar:not(:has(#targetSearchInput))>.price-sort {
  grid-column: 1;
  grid-row: 1
}

.inv-filter-bar:not(:has(#targetSearchInput))>#invSearchInput {
  grid-column: 2;
  grid-row: 1;
  min-width: 0
}

@media(min-width:1051px) {
  .inv-filter-bar:has(#targetSearchInput) {
    grid-template-columns: minmax(106px, .9fr) minmax(116px, 1.1fr) minmax(68px, .75fr) minmax(68px, .75fr);
    gap: 6px
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceSort {
    padding-right: 25px;
    font-size: .68rem
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetSearchInput {
    font-size: .73rem;
    padding-inline: 8px
  }

  .inv-filter-bar:has(#targetSearchInput)>.price-bound {
    font-size: .7rem;
    padding-inline: 7px
  }
}

.selected-target-slot [style*="#f59e0b"] {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15
}

.skin-card-price .market-price-period {
  display: block;
  font-size: .62rem;
  color: var(--text-muted);
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 3px
}

/* Responsive layouts: desktop keeps the three-column arena; touch layouts get their own compact flow. */
@media (min-width: 1051px) {
  .arena-grid {
    grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr);
    gap: 20px;
  }

  .arena-column {
    height: 720px;
    min-width: 0;
  }

  .arena-center {
    min-width: 0;
  }

  .inventory-scroll-grid {
    min-width: 0;
  }

  .site-footer {
    margin-top: 32px;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .top-nav {
    position: relative;
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-left {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .social-links {
    margin-left: 0;
  }

  .main-wrapper {
    padding: 18px;
  }

  .arena-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .arena-column {
    height: 650px;
    min-width: 0;
    padding: 12px;
  }

  .arena-column:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .arena-center {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 14px 22px;
    justify-content: center;
    align-items: center;
  }

  .engine-screen {
    width: min(340px, 100%);
    height: auto;
    aspect-ratio: 1;
    grid-row: span 2;
  }

  #radarCanvas {
    width: 100%;
    height: 100%;
  }

  .mult-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inv-filter-bar:has(#targetSearchInput) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetSearchInput {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceSort {
    grid-column: 1;
    grid-row: 2;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMin {
    grid-column: 2;
    grid-row: 2;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMax {
    grid-column: 1;
    grid-row: 3;
  }

  .activity-drops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .top-nav {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .nav-left {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
  }

  .logo {
    font-size: 1.12rem;
  }

  .nav-links {
    margin: 0;
    justify-content: flex-end;
    gap: 4px;
  }

  .nav-tab {
    padding: 7px 9px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .social-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
  }

  .social-links a {
    padding: 4px 7px;
    font-size: .72rem;
  }

  .nav-right {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 6px;
  }

  .nav-right>* {
    min-width: 0;
  }

  .balance-badge {
    gap: 5px;
    padding: 4px 7px;
  }

  .balance-label {
    font-size: .7rem;
  }

  .balance-val {
    font-size: .88rem;
  }

  .btn-primary-steam {
    padding: 7px 10px;
    font-size: .76rem;
    white-space: nowrap;
  }

  .user-nav-box,
  .user-badge-logged {
    min-width: 0;
  }

  .header-name {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px 18px;
  }

  .controls-ribbon {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    margin-bottom: 12px;
  }

  .controls-ribbon>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ribbon-lbl {
    width: 100%;
    margin: 0;
    font-size: .72rem;
  }

  .anim-buttons,
  .mult-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
  }

  .anim-btn,
  .mult-btn {
    min-width: 0;
    padding: 7px 3px;
    font-size: .72rem;
  }

  .arena-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .arena-column,
  .arena-center,
  .arena-column:nth-child(3) {
    order: initial;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px;
  }

  .arena-column:nth-child(1) {
    order: 1;
  }

  .arena-center {
    order: 2;
    display: flex;
    gap: 12px;
  }

  .arena-column:nth-child(3) {
    order: 3;
  }

  .panel-header {
    gap: 6px;
    padding-bottom: 9px;
    margin-bottom: 9px;
  }

  .panel-header h3 {
    font-size: .9rem;
  }

  .panel-counter {
    font-size: .7rem;
    text-align: right;
  }

  .inventory-container {
    flex: initial;
    min-height: 0;
    overflow: visible;
  }

  .selected-target-slot {
    height: 104px;
    margin-bottom: 10px;
  }

  .selected-target-slot.active-skin {
    height: auto;
    min-height: 104px;
  }

  .slot-placeholder p {
    font-size: .85rem;
  }

  .slot-placeholder small {
    font-size: .68rem;
  }

  .inv-filter-bar,
  .inv-filter-bar:not(:has(#targetSearchInput)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }

  .inv-filter-bar:not(:has(#targetSearchInput))>#invSearchInput {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .inv-filter-bar:not(:has(#targetSearchInput))>.price-sort {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .inv-filter-bar:has(#targetSearchInput) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetSearchInput {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceSort {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMin {
    grid-column: 1;
    grid-row: 3;
  }

  .inv-filter-bar:has(#targetSearchInput)>#targetPriceMax {
    grid-column: 2;
    grid-row: 3;
  }

  .input-tactical,
  .price-sort,
  .price-bound {
    min-height: 40px;
    padding: 8px 9px;
    font-size: .82rem;
  }

  .inventory-scroll-grid {
    flex: initial;
    min-height: 0;
    max-height: 54vh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 174px;
    gap: 8px;
    padding-right: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #userInventoryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 174px;
    gap: 8px;
  }

  #userInventoryGrid .skin-card {
    min-width: 0;
    height: 174px;
    padding: 8px 6px;
  }

  #userInventoryGrid .skin-card img {
    width: min(100%, 98px);
    height: 56px;
    margin: 3px 0;
  }

  #userInventoryGrid .skin-card-name {
    font-size: .72rem;
  }

  #userInventoryGrid .skin-card-weapon {
    font-size: .66rem;
  }

  #userInventoryGrid .skin-card-price {
    font-size: .72rem;
  }

  #userInventoryGrid .inventory-sell-btn {
    margin-top: auto;
    padding: 4px;
    font-size: .65rem;
  }

  .inventory-summary {
    justify-content: flex-start;
    gap: 7px;
    white-space: normal;
  }

  .inventory-summary .panel-counter {
    text-align: left;
  }

  .inventory-sell-all-btn {
    padding: 5px 7px;
  }

  .arena-center {
    align-items: stretch;
  }

  .engine-screen {
    align-self: center;
    width: min(min(76vw, 310px), 100%);
    height: auto;
    aspect-ratio: 1;
  }

  #radarCanvas {
    display: block;
    width: 100%;
    height: 100%;
  }

  .reel-container {
    width: 100%;
    max-width: 320px;
  }

  .target-multiplier-tools {
    width: 100%;
    margin: 0;
    padding: 9px;
  }

  .mult-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .btn-edit-multipliers.icon-only {
    width: 32px;
    height: 30px;
  }

  .stats-row {
    display: flex;
    width: 100%;
  }

  .action-dock {
    width: 100%;
  }

  .action-dock .btn-upgrade-fire {
    width: 100%;
    min-height: 52px;
  }

  .target-locked .skin-lock-overlay {
    left: 2px;
    right: 2px;
    font-size: .55rem;
  }

  .store-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .store-filter-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .store-filter-wrap>input[type="text"] {
    grid-column: 1 / -1;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .store-grid>* {
    min-width: 0;
  }

  .store-cart-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .cart-summary,
  .cart-items,
  .cart-actions {
    grid-column: 1;
  }

  .cart-summary {
    grid-row: auto;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cart-items {
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
    max-height: 140px;
    padding: 0;
  }

  .cart-items>span {
    min-width: 0;
  }

  .cart-actions {
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-drops {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-heading {
    flex-direction: row;
    align-items: center;
  }

  .site-footer {
    margin-top: 24px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    text-align: center;
  }

  .modal-card,
  .profile-card,
  .admin-modal-card {
    width: calc(100vw - 20px);
    max-width: 520px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .modal-body,
  .profile-body {
    padding: 14px;
  }

  .stats-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .top-nav {
    padding-inline: 9px;
  }

  .nav-tab {
    padding-inline: 6px;
    font-size: .7rem;
  }

  .balance-label {
    display: none;
  }

  .user-badge-logged {
    gap: 5px;
    padding-inline: 6px;
  }

  .header-avatar {
    width: 24px;
    height: 24px;
  }

  .arena-column,
  .arena-center {
    padding: 9px;
  }

  .inventory-scroll-grid,
  #userInventoryGrid {
    grid-auto-rows: 160px;
  }

  #userInventoryGrid .skin-card {
    height: 160px;
  }

  .store-grid {
    gap: 7px;
  }
}

/* ==========================================================
   TACTICAL ADMIN DASHBOARD
   ========================================================== */

/* 1. Геометрия модалки на мониторе */
.admin-dashboard-modal {
  width: min(940px, 94vw) !important;
  max-width: 940px !important;
  max-height: 88vh !important;
  background: #0f131a !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.admin-modal-head {
  padding: 14px 20px;
  background: #141923;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font: 700 0.65rem var(--font-chakra);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* 2. Тёмный кастомный скроллбар */
.admin-dashboard-body {
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #252e3e #0b0e14;
}

.admin-dashboard-body::-webkit-scrollbar,
.admin-promos-list::-webkit-scrollbar {
  width: 6px;
}

.admin-dashboard-body::-webkit-scrollbar-track,
.admin-promos-list::-webkit-scrollbar-track {
  background: #0a0d14;
}

.admin-dashboard-body::-webkit-scrollbar-thumb,
.admin-promos-list::-webkit-scrollbar-thumb {
  background: #252e3e;
  border-radius: 3px;
}

.admin-dashboard-body::-webkit-scrollbar-thumb:hover,
.admin-promos-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* 3. Сетка в 2 колонки */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.admin-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 4. Карточки модулей */
.admin-card {
  background: #141822;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 15px;
  transition: border-color 0.2s;
}

.admin-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.admin-card-header .card-icon {
  font-size: 1.25rem;
  background: #0d1017;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  line-height: 1;
}

.admin-card-header h4 {
  font: 700 0.95rem var(--font-chakra);
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
}

.admin-card-header small {
  color: var(--text-muted);
  font-size: 0.74rem;
  display: block;
}

/* Буст вероятности */
.boost-control-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.boost-input-wrap {
  position: relative;
  flex: 1;
}

.boost-input-wrap input {
  padding-right: 30px;
  font-family: var(--font-chakra);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.boost-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 700;
  pointer-events: none;
}

.btn-compact {
  width: auto !important;
  margin-top: 0 !important;
  padding: 9px 16px !important;
  white-space: nowrap;
}

/* Форма выдачи валюты */
.admin-sublabel {
  display: block;
  font: 700 0.68rem var(--font-chakra);
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.admin-form-group {
  margin-bottom: 12px;
}

.select-with-refresh {
  display: flex;
  gap: 8px;
}

.btn-icon-refresh {
  background: #1b212c;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.btn-icon-refresh:hover {
  background: #252e3e;
  border-color: var(--accent-gold);
}

.currency-input-row {
  display: flex;
  gap: 8px;
}

.currency-input-row input {
  flex: 1;
}

/* Генератор промокодов */
.promo-manager-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.promo-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #0d1117;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.promo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-field label {
  font: 700 0.65rem var(--font-chakra);
  color: var(--text-muted);
}

.code-caps {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold) !important;
}

.btn-promo-create {
  grid-column: 1 / -1;
  margin-top: 4px !important;
  padding: 10px !important;
}

.full-width {
  grid-column: 1 / -1;
}

/* Таблица промокодов */
.promos-table-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.promos-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.promos-table-head span {
  font: 700 0.72rem var(--font-chakra);
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.btn-table-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--accent-gold);
  font: 700 0.68rem var(--font-chakra);
  cursor: pointer;
  padding: 4px 8px;
  transition: 0.15s;
}

.btn-table-refresh:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
}

.admin-promos-list {
  background: #0a0d14;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-promo-item {
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.15s;
}

.admin-promo-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: #171d29;
}

.admin-promo-code {
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.admin-promo-reward {
  margin-left: 8px;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-promo-uses {
  font-size: 0.72rem;
  color: #94a3b8;
  background: #0b0e14;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-promo-del-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
}

.admin-promo-del-btn:hover {
  background: #ef4444;
  color: #fff;
}

@media (max-width: 820px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-modal {
    width: calc(100vw - 20px) !important;
  }
}

/* ==========================================================
   REFINED MODALS: PROFILE & DEPOSIT
   ========================================================== */

/* Общие бейджи заголовков модалок */
.modal-head-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-head-tag {
  font: 700 0.65rem var(--font-chakra);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.modal-head-tag.gold {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ---------------- ПРОФИЛЬ ---------------- */
.profile-card {
  width: min(650px, 95vw) !important;
  max-width: 650px !important;
  background: #0f131a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.05) !important;
  border-radius: 12px !important;
}

.profile-body {
  padding: 22px !important;
}

.profile-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.profile-big-avatar {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: #192130 !important;
  border: 2px solid var(--accent-gold) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.avatar-status-dot {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f131a;
  box-shadow: 0 0 8px #22c55e;
}

.user-meta {
  flex: 1;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name-line h2 {
  font-family: var(--font-chakra);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.user-role-badge {
  font: 700 0.65rem var(--font-chakra);
  background: #1b2434;
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.email-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 2px;
}

.avatar-seeds {
  margin-top: 10px !important;
  gap: 8px !important;
}

.avatar-seeds-lbl {
  font-size: 0.76rem !important;
  color: var(--text-muted);
}

.avatar-seeds-btns {
  display: inline-flex;
  gap: 6px;
}

.avatar-pick-btn {
  background: #151b27 !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 0.95rem;
  transition: 0.15s;
}

.avatar-pick-btn:hover {
  border-color: var(--accent-gold) !important;
  transform: translateY(-1px);
}

/* Статистика в 4 колонки */
.profile-card .stats-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  margin: 18px 0 !important;
}

.stat-p-card {
  background: #141923 !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 8px !important;
  padding: 12px 10px !important;
  text-align: center;
  transition: 0.2s;
}

.stat-p-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: #181e2b !important;
}

.sc-lbl {
  font: 700 0.65rem var(--font-chakra) !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sc-val {
  font-family: var(--font-chakra) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #fff;
}

/* Блок промокода в профиле */
.profile-promo-section {
  margin: 16px 0 20px !important;
  padding: 16px !important;
  background: #141923 !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 10px !important;
}

.promo-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.promo-title-row .promo-lbl {
  font: 700 0.72rem var(--font-chakra) !important;
  color: #fff;
  margin: 0 !important;
}

.promo-sub-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.promo-input-group {
  display: flex !important;
  gap: 8px !important;
}

.promo-input-group input {
  flex: 1 !important;
  background: #0b0e14 !important;
  border: 1px solid var(--border-light) !important;
  color: var(--accent-gold) !important;
  font-family: var(--font-chakra) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

.promo-input-group .promo-btn {
  width: auto !important;
  margin: 0 !important;
  padding: 0 20px !important;
  white-space: nowrap !important;
  font-size: 0.85rem !important;
}

/* Нижние действия профиля */
.profile-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-card .admin-entry {
  flex: 1;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px !important;
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: var(--accent-gold) !important;
  font: 700 0.85rem var(--font-chakra) !important;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.profile-card .admin-entry:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: var(--accent-gold) !important;
}

.profile-card .btn-logout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  font: 700 0.85rem var(--font-chakra) !important;
  padding: 10px 16px !important;
  border-radius: 6px;
  transition: 0.2s;
}

.profile-card .btn-logout:hover {
  background: #7f1d1d !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

/* ---------------- ПОПОЛНЕНИЕ БАЛАНСА ---------------- */
.deposit-modal-card {
  width: min(600px, 95vw) !important;
  max-width: 600px !important;
  background: #0f131a !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.06) !important;
  border-radius: 12px !important;
}

.deposit-body {
  padding: 22px !important;
}

.deposit-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #141923;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.notice-icon {
  font-size: 1.2rem;
  line-height: 1.2;
}

.deposit-notice-banner strong {
  display: block;
  font: 700 0.85rem var(--font-chakra);
  color: #fff;
  margin-bottom: 2px;
}

.deposit-notice-banner p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

.deposit-methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.deposit-method {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  background: #141822 !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 10px !important;
  opacity: 0.8 !important;
  transition: 0.2s;
}

.deposit-method:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.method-icon {
  font-size: 1.5rem;
  background: #0d1117;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  line-height: 1;
}

.method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.method-info b {
  font: 700 0.95rem var(--font-chakra) !important;
  color: #fff !important;
}

.method-info small {
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  margin-top: 2px;
}

.method-badge {
  font: 700 0.65rem var(--font-chakra);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.deposit-support-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 6px;
}

.deposit-support-footer a {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
}

.deposit-support-footer a:hover {
  text-decoration: underline;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 620px) {

  .profile-card,
  .deposit-modal-card {
    width: calc(100vw - 20px) !important;
  }

  .profile-card .stats-cards-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .promo-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .promo-input-group {
    flex-direction: column;
  }

  .promo-input-group .promo-btn {
    width: 100% !important;
    padding: 10px !important;
  }

  .profile-actions-row {
    flex-direction: column;
  }

  .profile-card .admin-entry,
  .profile-card .btn-logout {
    width: 100%;
  }
}

/* Кнопка входа через Steam в окне авторизации */
.btn-steam-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);
  border: 1px solid rgba(102, 192, 244, 0.4);
  color: #fff;
  font: 700 0.95rem var(--font-chakra);
  letter-spacing: 0.5px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.btn-steam-login:hover {
  border-color: #66c0f4;
  box-shadow: 0 6px 24px rgba(102, 192, 244, 0.3);
  transform: translateY(-2px);
}

/* Блок привязки Steam в окне профиля */
.steam-status-card {
  margin: 14px 0;
}

.steam-linked-box {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steam-link-badge.ok {
  font: 700 0.68rem var(--font-chakra);
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.steam-link-name {
  font-family: var(--font-chakra);
  font-weight: 700;
  color: #fff;
}

.steam-link-id {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.steam-unlinked-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.steam-link-badge.warn {
  font: 700 0.68rem var(--font-chakra);
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.steam-link-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-link-steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 1px solid #66c0f4;
  color: #fff;
  font: 700 0.8rem var(--font-chakra);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
}

.btn-link-steam:hover {
  background: #66c0f4;
  color: #000;
}

/* Тактический тумблер скрытой победы */
.admin-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0d1117;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 12px 14px;
  border-radius: 8px;
}

.toggle-text {
  display: flex;
  flex-direction: column;
}

.toggle-title {
  font: 700 0.85rem var(--font-chakra);
  color: #fff;
  letter-spacing: 0.5px;
}

.toggle-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Ползунок switch */
.tactical-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.tactical-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background-color: #1a2230;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  transition: 0.25s ease;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #64748b;
  border-radius: 50%;
  transition: 0.25s ease;
}

.tactical-switch input:checked+.switch-slider {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.tactical-switch input:checked+.switch-slider:before {
  transform: translateX(24px);
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Гарантированный приоритет отображения админки поверх профиля */
#adminModal {
  z-index: 2000 !important;
}

#profileModal {
  z-index: 1000 !important;
}

.profile-admin-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 6px;
  background: #151b27;
  color: var(--accent-gold);
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s
}

.profile-admin-gear:hover {
  background: rgba(245, 158, 11, .16);
  border-color: var(--accent-gold);
  transform: rotate(25deg)
}

.profile-admin-gear.hidden {
  display: none
}

/* CASES */
.cases-hero {
  position: relative;
  overflow: hidden;
  margin: 8px 0 34px;
  padding: 38px 42px;
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 15px;
  background: radial-gradient(ellipse at 83% 45%, rgba(6, 182, 212, .12), transparent 38%), linear-gradient(120deg, #171d29, #10151e 65%);
}

.cases-hero:after {
  content: "⬡";
  position: absolute;
  right: 9%;
  top: -92px;
  font-size: 280px;
  line-height: 1;
  color: rgba(245, 158, 11, .045);
  pointer-events: none
}

.cases-eyebrow,
.cases-kicker {
  display: block;
  color: var(--accent-gold);
  font: 700 .72rem var(--font-chakra);
  letter-spacing: .16em
}

.cases-hero h1 {
  position: relative;
  margin: 8px 0;
  font: 700 clamp(2.1rem, 5vw, 3.5rem) var(--font-chakra);
  text-transform: uppercase;
  letter-spacing: .04em
}

.cases-hero p {
  position: relative;
  max-width: 650px;
  color: #aab4c3;
  font-size: 1rem
}

.cases-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px
}

.cases-section-heading h2 {
  font: 700 1.55rem var(--font-chakra);
  margin-top: 3px
}

.cases-count-label {
  color: #8994a5;
  font-size: .85rem
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px
}

/* Cases: align the catalog with the compact upgrader panels. */
.cases-hero {
  margin: 0 0 24px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(135deg, #18212e 0%, #0e141d 70%, #090d13 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35)
}

.cases-hero:after {
  display: none
}

.cases-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15)
}

.cases-hero p {
  margin: 6px 0 0;
  max-width: 650px;
  font-size: .9rem;
  color: #8f9cb0
}

.cases-eyebrow,
.cases-kicker {
  letter-spacing: .12em;
  font: 700 .68rem var(--font-chakra);
  color: var(--accent-gold)
}

.cases-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px
}

.cases-section-heading h2 {
  font-size: 1.35rem;
  color: #fff;
  margin: 2px 0 0
}

.cases-count-label {
  color: #8f9cb0;
  font-size: .82rem
}

.case-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px
}

.case-category-btn {
  padding: 8px 16px;
  color: #a4b1c2;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #121824;
  font: 600 .82rem var(--font-chakra);
  cursor: pointer;
  transition: all .18s ease
}

.case-category-btn:hover {
  color: #fff;
  border-color: rgba(245, 196, 0, 0.5);
  background: #1a2334;
  transform: translateY(-1px)
}

.case-category-btn.active {
  color: #0b0e14;
  border-color: #f5c400;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 196, 0, 0.35);
  transform: translateY(-1px)
}

.cases-empty-state {
  grid-column: 1/-1;
  padding: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #8f9cb0;
  text-align: center;
  background: #121824
}

/* Modern Case Catalog Posters */
.case-catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, #151e2b 0%, #0c1017 100%);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), border-color .24s, box-shadow .24s;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35)
}

.case-catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 196, 0, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 196, 0, 0.14)
}

.case-catalog-card:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.4);
  transform: none
}

.case-card-poster {
  position: relative;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(245, 196, 0, 0.08) 0%, rgba(10, 14, 20, 0.9) 65%, #070a0f 100%)
}

.case-card-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .25s ease
}

.case-card-img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.75));
  transition: transform .3s cubic-bezier(.16, 1, .3, 1)
}

.case-catalog-card:hover .case-card-img {
  transform: scale(1.08) translateY(-5px)
}

.case-card-overlay {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 20, 0.85) 45%, rgba(6, 9, 14, 0.98) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px
}

.case-card-badge {
  font: 700 .62rem var(--font-chakra);
  color: var(--case-accent, #f5c400);
  text-transform: uppercase;
  letter-spacing: .1em
}

.case-card-title {
  font: 700 1.05rem var(--font-chakra);
  color: #fff;
  margin: 1px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.case-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px
}

.case-card-sub {
  color: #8b97a8;
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-card-price-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #080c12;
  font: 700 .92rem var(--font-rajdhani);
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25)
}

/* Ergonomic Centered Case Detail Stage & Controls */
.case-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 36, 0.85);
  color: #9cb0c5;
  font: 600 .78rem var(--font-chakra);
  cursor: pointer;
  transition: all .18s ease;
  margin-bottom: 6px
}

.case-back-btn:hover {
  color: #fff;
  border-color: rgba(245, 196, 0, 0.4);
  background: #1c2638
}

.case-detail-heading {
  text-align: center;
  margin: 0 0 10px
}

.case-tier {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--accent-gold);
  border-radius: 5px;
  color: var(--accent-gold);
  font: 700 .64rem var(--font-chakra);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px
}

.case-detail-heading h2 {
  font: 700 1.55rem var(--font-chakra);
  color: #fff;
  margin: 1px 0 3px
}

.case-detail-heading p {
  color: #8f9cb0;
  font-size: .82rem;
  margin: 0
}

.case-open-panel {
  max-width: 860px;
  width: 100%;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, #151e2b 0%, #0c1017 100%);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5)
}

.case-stage {
  position: relative;
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(245, 196, 0, 0.1) 0%, rgba(10, 14, 20, 0.88) 60%, #070a0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden
}

.case-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px
}

.case-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%
}

.case-preview-icon img {
  max-height: 160px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7));
  animation: caseFloat 3.6s ease-in-out infinite
}

@keyframes caseFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.case-preview-label {
  display: block;
  margin-top: 6px;
  font: 700 .62rem var(--font-chakra);
  color: #7b889b;
  letter-spacing: .14em
}

/* In-place Roulette Container */
.case-inline-opening {
  width: 100%;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.case-inline-opening-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #a4b1c2;
  font: 700 .72rem var(--font-chakra);
  letter-spacing: .08em
}

.case-opening-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 2px
}

.case-opening-reels.count-1 {
  grid-template-columns: 1fr
}

.case-opening-reels.count-3 .case-opening-lane:nth-child(3),
.case-opening-reels.count-5 .case-opening-lane:nth-child(5) {
  grid-column: 1/-1;
  max-width: 580px;
  margin: 0 auto;
  width: 100%
}

.case-opening-lane {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(10, 14, 21, 0.7);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box
}

.case-opening-lane.is-stopped {
  border-color: rgba(245, 196, 0, 0.45);
  box-shadow: inset 0 0 14px rgba(245, 196, 0, 0.05)
}

.case-opening-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  padding: 0 2px;
  color: #8592a3;
  font: 700 .58rem var(--font-chakra);
  letter-spacing: .06em
}

.lane-status-text {
  font-style: normal;
  color: #8592a3;
  font-size: .60rem;
  letter-spacing: .04em
}

.lane-status-text.is-rolling {
  color: #fbbf24;
  animation: lanePulse .8s ease-in-out infinite alternate
}

.lane-status-text.is-found {
  color: #4ade80;
  font-weight: 700
}

@keyframes lanePulse {
  from {
    opacity: .45
  }

  to {
    opacity: 1
  }
}

/* Single lane (1x) */
.single-lane .case-reel-viewport {
  height: 136px
}

.single-lane .case-reel-item {
  width: 138px;
  flex: 0 0 138px;
  padding: 6px 4px 8px
}

.single-lane .case-reel-item img {
  height: 64px;
  width: 95px;
  margin: 2px 0 4px
}

.single-lane .case-reel-weapon {
  font-size: .65rem
}

.single-lane .case-reel-name {
  font-size: .76rem
}

.single-lane .case-reel-wear {
  font-size: .60rem;
  color: #8fa0b5
}

/* Grid lanes (2, 3, 5, 10 per row) - Comfortable 82px height */
.grid-lane .case-reel-viewport,
.case-opening-lane:not(.single-lane) .case-reel-viewport {
  height: 82px
}

.grid-lane .case-reel-item,
.case-opening-lane:not(.single-lane) .case-reel-item {
  width: 116px;
  flex: 0 0 116px;
  padding: 3px 3px 5px
}

.grid-lane .case-reel-item img,
.case-opening-lane:not(.single-lane) .case-reel-item img {
  height: 44px;
  width: 76px;
  margin: 1px 0 2px
}

.grid-lane .case-reel-weapon,
.case-opening-lane:not(.single-lane) .case-reel-weapon {
  font-size: .56rem;
  line-height: 1.1;
  color: #8fa0b5
}

.grid-lane .case-reel-name,
.case-opening-lane:not(.single-lane) .case-reel-name {
  font-size: .68rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff
}

.grid-lane .case-reel-wear,
.case-opening-lane:not(.single-lane) .case-reel-wear {
  font-size: .56rem;
  line-height: 1;
  color: #8fa0b5;
  margin-top: 1px
}

.grid-lane .case-reel-pointer:before,
.case-opening-lane:not(.single-lane) .case-reel-pointer:before {
  border-top-width: 8px;
  border-left-width: 5px;
  border-right-width: 5px
}

.grid-lane .case-reel-pointer:after,
.case-opening-lane:not(.single-lane) .case-reel-pointer:after {
  border-bottom-width: 8px;
  border-left-width: 5px;
  border-right-width: 5px
}

/* Centered Controls directly under the stage */
.case-open-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 440px
}

.case-quantity-row {
  display: flex;
  align-items: center;
  gap: 8px
}

.case-controls-label {
  font: 700 .65rem var(--font-chakra);
  color: #8c99ab;
  letter-spacing: .08em
}

.case-quantity {
  display: flex;
  gap: 5px
}

.case-quantity-btn {
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #111722;
  color: #a4b1c2;
  font: 700 .86rem var(--font-chakra);
  cursor: pointer;
  transition: all .18s ease
}

.case-quantity-btn:hover {
  color: #fff;
  border-color: rgba(245, 196, 0, 0.4);
  background: #17202e
}

.case-quantity-btn.active {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0a0d13;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35)
}

.case-open-btn {
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0e14;
  font: 700 1rem var(--font-chakra);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28)
}

.case-open-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4)
}

.case-open-btn:disabled {
  opacity: .45;
  cursor: wait;
  filter: grayscale(.3);
  transform: none;
  box-shadow: none
}

.case-open-btn strong {
  font: 700 1.15rem var(--font-rajdhani);
  letter-spacing: .02em
}

.case-disclaimer {
  color: #768394;
  font-size: .70rem;
  line-height: 1.3;
  text-align: center;
  margin: 0
}

.contents-heading {
  margin: 28px 0 14px
}

.case-contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px
}

.case-content-wear {
  display: block;
  color: #8fa0b5;
  font-size: .62rem;
  line-height: 1.2;
  margin: 1px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.skin-card-wear {
  display: block;
  color: #8fa0b5;
  font-size: .62rem;
  line-height: 1.2;
  margin-top: -2px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-winner-wear {
  display: block;
  color: #94a3b8;
  font-size: .66rem;
  font-weight: 500;
  margin: 1px 0 3px
}

.case-content-card {
  --item-rarity: #94a3b8;
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 3px solid var(--item-rarity);
  border-radius: 8px;
  background: linear-gradient(160deg, #161e2a 0%, #0e131d 100%);
  transition: transform .2s ease, border-color .2s ease;
  overflow: hidden
}

.case-content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4)
}

.case-content-card img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5))
}

.case-content-weapon {
  color: #8f9cb0;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em
}

.case-content-card strong {
  overflow: hidden;
  margin: 2px 0 6px;
  font-size: .78rem;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-content-price {
  margin-top: auto;
  color: var(--accent-gold);
  font: 700 .92rem var(--font-rajdhani)
}

@media(max-width:900px) {
  .case-open-panel {
    padding: 16px
  }

  .case-stage {
    min-height: 200px
  }

  .case-opening-reels.count-4,
  .case-opening-reels.count-5 {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .cases-hero {
    padding: 18px
  }

  .cases-hero h1 {
    font-size: 1.65rem
  }

  .case-stage {
    min-height: 170px
  }

  .case-preview-icon img {
    max-height: 150px
  }

  .case-categories {
    gap: 6px
  }

  .case-category-btn {
    padding: 7px 11px;
    font-size: .76rem
  }

  .case-contents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .case-quantity-btn {
    min-width: 40px;
    padding: 7px 8px
  }
}

/* Admin case manager */
.case-admin-launch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #202938
}

.case-admin-launch-row>div {
  display: grid;
  gap: 4px
}

.case-admin-launch-row strong {
  font: 700 1rem var(--font-chakra)
}

.case-admin-launch-row span,
.case-manager-hint {
  color: #95a1b2;
  font-size: .78rem
}

.case-admin-launch {
  padding: 9px 14px;
  color: #111;
  border: 1px solid #b88d00;
  border-radius: 6px;
  background: var(--accent-gold);
  font: 700 .82rem var(--font-chakra);
  cursor: pointer
}

.case-manager-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 9, 14, .82);
  backdrop-filter: blur(6px)
}

.case-manager-backdrop.hidden {
  display: none
}

.case-manager-card {
  display: flex;
  width: min(1120px, 100%);
  height: min(92vh, 920px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #1b222e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5)
}

.case-manager-card>.modal-head {
  flex-shrink: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #252d3b
}

.case-manager-card .admin-badge {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-gold);
  font-size: .65rem
}

.case-manager-body {
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 16px
}

.case-manager-existing,
.case-editor-form {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #202938
}

.case-editor-form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.case-manager-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px
}

.case-manager-section-head h3 {
  margin: 0;
  font: 700 1rem var(--font-chakra)
}

.case-manager-secondary {
  padding: 7px 10px;
  color: #cad3df;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: #252d3b;
  font: 600 .78rem var(--font-chakra);
  cursor: pointer
}

.admin-cases-list {
  display: grid;
  gap: 8px;
  max-height: calc(92vh - 190px);
  overflow: auto
}

.admin-case-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #252d3b
}

.admin-case-row>img {
  width: 52px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: #1b222e
}

.admin-case-info {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0
}

.admin-case-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .85rem
}

.admin-case-info span {
  color: #98a5b7;
  font-size: .7rem
}

.admin-case-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.admin-case-actions button {
  padding: 5px 8px;
  color: #cbd4e0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #1b222e;
  font-size: .72rem;
  cursor: pointer
}

.admin-case-actions .danger {
  color: #ff8b8b
}

.case-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.case-editor-fields>label,
.case-skin-picker>label {
  display: grid;
  gap: 5px;
  color: #aeb9c8;
  font-size: .77rem
}

.case-editor-fields input,
.case-skin-picker>input {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  color: #eef2f7;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: #171d27;
  font: inherit
}

.case-editor-fields small {
  color: #8290a2;
  font-size: .66rem
}

.case-icon-input {
  display: flex;
  align-items: center;
  gap: 7px
}

.case-icon-input img {
  width: 40px;
  height: 36px;
  object-fit: contain;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #252d3b
}

.case-icon-input input {
  flex: 1
}

.case-skin-picker {
  display: grid;
  gap: 6px
}

.case-skin-search-results {
  display: grid;
  max-height: 190px;
  gap: 4px;
  overflow: auto
}

.case-skin-result {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 5px;
  text-align: left;
  color: #eef2f7;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: #252d3b;
  cursor: pointer
}

.case-skin-result img {
  width: 44px;
  height: 32px;
  object-fit: contain
}

.case-skin-result span {
  display: grid;
  gap: 2px;
  min-width: 0
}

.case-skin-result b {
  overflow: hidden;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-skin-result small {
  color: #96a3b5;
  font-size: .65rem
}

.case-skin-result>strong {
  color: var(--accent-gold);
  font-size: 1.2rem
}

.case-search-empty {
  color: #98a5b7;
  font-size: .76rem
}

.case-items-heading {
  margin: 0
}

.case-editor-items {
  display: grid;
  max-height: 235px;
  gap: 5px;
  overflow: auto
}

.case-editor-items>p {
  margin: 5px 0;
  color: #97a3b3;
  font-size: .8rem
}

.case-editor-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 74px 48px 24px;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: #252d3b
}

.case-editor-item>img {
  width: 54px;
  height: 38px;
  object-fit: contain
}

.case-editor-item-name {
  display: grid;
  min-width: 0;
  gap: 2px
}

.case-editor-item-name span {
  color: #99a6b6;
  font-size: .65rem
}

.case-editor-item-name strong {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-weight-field {
  display: grid;
  gap: 2px;
  color: #9daabb;
  font-size: .64rem
}

.case-weight-field input {
  width: 100%;
  padding: 5px;
  color: #eef2f7;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #171d27
}

.case-item-chance {
  color: var(--accent-gold);
  font: 700 .75rem var(--font-rajdhani);
  text-align: right
}

.case-remove-item {
  color: #c4cedb;
  border: 0;
  background: none;
  font-size: 1.2rem;
  cursor: pointer
}

.case-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto
}

.case-editor-save {
  padding: 8px 14px;
  color: #15130c;
  border: 1px solid #b88d00;
  border-radius: 5px;
  background: var(--accent-gold);
  font: 700 .8rem var(--font-chakra);
  cursor: pointer
}

.case-editor-save:disabled {
  opacity: .55
}

.case-editor-message {
  padding: 8px;
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 5px;
  color: #8ee5b2;
  background: rgba(34, 197, 94, .08);
  font-size: .78rem
}

.case-editor-message.case-editor-error {
  color: #ffaaaa;
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .08)
}

@media(max-width:850px) {
  .case-manager-body {
    grid-template-columns: 1fr
  }

  .admin-cases-list {
    max-height: 270px
  }

  .case-manager-card {
    height: 94vh
  }
}

@media(max-width:560px) {
  .case-manager-backdrop {
    padding: 5px
  }

  .case-manager-body {
    padding: 9px;
    gap: 9px
  }

  .case-manager-existing,
  .case-editor-form {
    padding: 10px
  }

  .case-editor-fields {
    grid-template-columns: 1fr
  }

  .case-editor-item {
    grid-template-columns: 42px minmax(0, 1fr) 62px 42px 20px;
    gap: 4px
  }

  .case-editor-item>img {
    width: 42px
  }

  .case-admin-launch-row {
    align-items: flex-start;
    flex-direction: column
  }
}

.inventory-sell-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

/* Case configurator polish and opening reel */
.case-reel-track.is-randomizing {
  animation: caseReelShuffle 1.45s linear infinite
}

.case-opening-status {
  animation: caseOpeningStatus .8s ease-in-out infinite alternate
}

@keyframes caseReelShuffle {
  to {
    transform: translateX(-50%)
  }
}

@keyframes caseOpeningStatus {
  to {
    opacity: .48
  }
}

.case-manager-card {
  width: min(1180px, 100%);
  background: #1d2532
}

.case-manager-card>.modal-head {
  padding: 17px 22px;
  background: #242e3d
}

.case-manager-card .modal-title {
  font-size: 1.05rem
}

.case-manager-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(100deg, rgba(245, 196, 0, .08), rgba(32, 41, 56, .4))
}

.case-manager-intro>div {
  flex: 1
}

.case-manager-intro strong {
  font: 700 .95rem var(--font-chakra)
}

.case-manager-intro p {
  margin: 3px 0 0;
  color: #99a6b8;
  font-size: .76rem
}

.case-manager-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(245, 196, 0, .45);
  border-radius: 8px;
  color: var(--accent-gold);
  background: rgba(245, 196, 0, .08);
  font: 700 .8rem var(--font-rajdhani)
}

.case-manager-shield {
  color: #9caabd;
  font-size: .72rem;
  white-space: nowrap
}

.case-manager-body {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 14px;
  padding: 14px 18px 18px
}

.case-manager-existing,
.case-editor-form {
  padding: 16px;
  border-color: rgba(255, 255, 255, .09);
  background: #242e3d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12)
}

.case-manager-section-head {
  margin-bottom: 12px
}

.case-manager-caption {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-gold);
  font: 700 .62rem var(--font-chakra);
  letter-spacing: .13em
}

.case-manager-section-head h3 {
  font-size: 1.05rem
}

.case-manager-secondary {
  border-radius: 6px
}

.admin-cases-list {
  max-height: calc(92vh - 260px);
  padding-right: 2px
}

.admin-case-row {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-color: rgba(255, 255, 255, .08);
  background: #2b3545;
  transition: border-color .16s, transform .16s
}

.admin-case-row:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 196, 0, .42)
}

.admin-case-row>img {
  width: 58px;
  height: 54px
}

.admin-case-info strong {
  font-size: .88rem
}

.admin-case-info span {
  font-size: .73rem
}

.admin-case-actions {
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, .06)
}

.admin-case-actions button {
  padding: 6px 9px;
  border-radius: 5px;
  cursor: pointer
}

.case-editor-form {
  gap: 13px
}

.case-editor-fields>label {
  font-weight: 600
}

.case-editor-fields input,
.case-editor-fields select,
.case-skin-picker>input {
  min-height: 38px;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: #19212d
}

.case-editor-fields input:focus,
.case-editor-fields select:focus,
.case-skin-picker>input:focus {
  outline: 1px solid var(--accent-gold);
  border-color: var(--accent-gold)
}

.case-editor-fields select {
  color: #eef2f7
}

.case-icon-input img {
  width: 48px;
  height: 40px
}

.case-skin-picker {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(18, 24, 33, .45)
}

.case-skin-search-results:empty {
  display: none
}

.case-skin-result {
  padding: 7px;
  border-radius: 6px;
  background: #2b3545
}

.case-editor-items {
  max-height: 265px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(18, 24, 33, .35)
}

.case-editor-item {
  grid-template-columns: 62px minmax(0, 1fr) 78px 54px 26px;
  padding: 7px;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 6px;
  background: #2b3545
}

.case-editor-item>img {
  width: 62px;
  height: 43px
}

.case-item-chance {
  padding: 4px 5px;
  border-radius: 4px;
  background: rgba(245, 196, 0, .08)
}

.case-editor-actions {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.case-category-section {
  margin-bottom: 20px
}

.case-category-heading {
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.case-category-heading h2 {
  font-size: 1.15rem;
  text-transform: none
}

.case-category-section>.cases-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr))
}

.case-category-btn {
  background: #2b3545
}

.case-category-btn.active {
  color: #1b222e;
  background: #f5c400;
  border-color: #f5c400
}

.case-category-heading .cases-kicker {
  font-size: .62rem
}

.case-opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 2900;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 10, 16, .84);
  backdrop-filter: blur(9px)
}

.case-opening-overlay.hidden {
  display: none
}

.case-opening-window {
  width: min(850px, 100%);
  padding: 22px;
  border: 1px solid rgba(245, 196, 0, .3);
  border-radius: 12px;
  background: linear-gradient(145deg, #242e3d, #171e29);
  box-shadow: 0 25px 100px rgba(0, 0, 0, .55)
}

.case-opening-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px
}

.case-opening-heading strong {
  font: 700 1.1rem var(--font-chakra)
}

.case-reel-viewport {
  position: relative;
  height: 172px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #131a24
}

.case-reel-viewport:before,
.case-reel-viewport:after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 15%;
  content: "";
  pointer-events: none
}

.case-reel-viewport:before {
  left: 0;
  background: linear-gradient(90deg, #131a24, transparent)
}

.case-reel-viewport:after {
  right: 0;
  background: linear-gradient(270deg, #131a24, transparent)
}

.case-reel-pointer {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: #f5c400;
  box-shadow: 0 0 14px rgba(245, 196, 0, .8)
}

.case-reel-pointer:before,
.case-reel-pointer:after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent
}

.case-reel-pointer:before {
  top: 0;
  border-top: 12px solid #f5c400
}

.case-reel-pointer:after {
  bottom: 0;
  border-bottom: 12px solid #f5c400
}

.case-reel-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: stretch;
  will-change: transform
}

.case-reel-item {
  display: flex;
  width: 142px;
  flex: 0 0 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 9px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  text-align: center
}

.case-reel-item img {
  width: 112px;
  height: 74px;
  object-fit: contain
}

.case-reel-item span,
.case-reel-item strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-reel-item span {
  color: #98a5b6;
  font-size: .66rem
}

.case-reel-item strong {
  font-size: .72rem
}

.case-reel-item.is-winner {
  background: linear-gradient(180deg, rgba(245, 196, 0, .08), rgba(245, 196, 0, .18))
}

.case-reel-item.winner-landed {
  filter: brightness(1.3);
  box-shadow: inset 0 0 0 2px #f5c400, 0 0 24px rgba(245, 196, 0, .24)
}

.case-opening-status {
  margin: 12px 0 0;
  color: #a9b4c3;
  text-align: center;
  font-size: .82rem
}

.case-preview.case-opening .case-preview-icon {
  animation: caseDrop .52s ease-in-out infinite alternate
}

@media(max-width:700px) {
  .case-manager-intro {
    align-items: flex-start;
    padding: 12px
  }

  .case-manager-shield {
    display: none
  }

  .case-manager-body {
    padding: 9px
  }

  .case-manager-existing,
  .case-editor-form {
    padding: 11px
  }

  .case-editor-item {
    grid-template-columns: 46px minmax(0, 1fr) 62px 42px 20px
  }

  .case-editor-item>img {
    width: 46px
  }

  .case-opening-window {
    padding: 14px
  }

  .case-reel-viewport {
    height: 150px
  }

  .case-reel-item {
    width: 122px;
    flex-basis: 122px
  }

  .case-category-section>.cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr))
  }
}

/* Match the dark, compact admin dashboard and allow custom category names. */
.case-manager-card {
  border-color: #30394a;
  background: #0f141e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .64)
}

.case-manager-card>.modal-head {
  background: #151b27
}

.case-manager-intro {
  border-color: #293244;
  background: #121822
}

.case-manager-intro p {
  color: #9aa4b4
}

.case-manager-shield {
  color: #a6afbe
}

.case-manager-body {
  background: #0f141e
}

.case-manager-existing,
.case-editor-form {
  border-color: #2b3444;
  background: #141a26;
  box-shadow: none
}

.admin-case-row,
.case-skin-result,
.case-editor-item {
  border-color: #293244;
  background: #101620
}

.case-admin-launch-row,
.case-open-controls {
  border-color: #2b3444;
  background: #141a26
}

.case-skin-picker {
  border-color: #293244;
  background: #101620
}

.case-editor-fields input,
.case-editor-fields select,
.case-skin-picker>input,
.case-weight-field input {
  border-color: #2b3444;
  background: #0e131d
}

.case-editor-fields input:focus,
.case-editor-fields select:focus,
.case-skin-picker>input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .2)
}

.case-editor-items {
  border-color: #293244;
  background: #0e131d
}

.case-editor-actions {
  border-color: #293244
}

.case-editor-save,
.case-admin-launch {
  background: #f59e0b
}

.case-editor-save:hover,
.case-admin-launch:hover {
  background: #fbbf24
}

.case-manager-secondary {
  background: #171e2a
}

.case-manager-step {
  border-radius: 5px;
  background: #101620
}

.case-price-source {
  display: block;
  margin-top: 2px;
  color: #94a0b2;
  font: 500 .62rem var(--font-chakra);
  line-height: 1.25
}

.case-price-source.is-estimated {
  color: #eab85b
}

.case-price-unavailable {
  color: #9aa4b4;
  font: 600 .68rem var(--font-chakra)
}

.case-content-price {
  display: grid;
  gap: 1px
}

.case-result-price {
  display: grid;
  gap: 1px;
  margin-top: 2px
}

.case-skin-result small .case-price-source {
  font-size: .58rem
}

.case-skin-result small .case-price-unavailable {
  font-size: .6rem
}

/* ==========================================================
   THEME SWITCHER & SCI-FI CYBERPUNK HUD (MEDIA_1790416643467)
   ========================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  color: #9aa8b8;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #1c2331;
  font: 700 0.68rem var(--font-chakra);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.theme-toggle i {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 15px;
  border: 1px solid #596579;
  border-radius: 9px;
  background: #111722;
  transition: all 0.2s ease;
}

.theme-toggle i:after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  content: "";
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.theme-toggle.is-new {
  color: #c5faff;
  border-color: rgba(57, 231, 245, 0.55);
  background: rgba(9, 32, 44, 0.95);
  box-shadow: 0 0 14px rgba(57, 231, 245, 0.25);
}

.theme-toggle.is-new i {
  border-color: #39e7f5;
  background: #061923;
}

.theme-toggle.is-new i:after {
  transform: translateX(13px);
  background: #39e7f5;
  box-shadow: 0 0 8px #39e7f5;
}

@media (max-width: 700px) {
  .theme-toggle {
    padding: 5px 8px;
    gap: 5px;
    font-size: 0.62rem;
  }

  .theme-toggle i {
    width: 24px;
    height: 13px;
  }

  .theme-toggle i:after {
    width: 7px;
    height: 7px;
    top: 2px;
    left: 2px;
  }

  .theme-toggle.is-new i:after {
    transform: translateX(11px);
  }
}

/* Sci-Fi Background Cyber Telemetry Layer */
.cyber-telemetry-layer {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  padding: 85px 24px 24px;
  justify-content: space-between;
  align-items: flex-end;
  overflow: hidden;
}

.theme-new .cyber-telemetry-layer {
  display: flex;
}

.telemetry-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 250px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.64rem;
  line-height: 1.45;
  color: rgba(57, 231, 245, 0.28);
  text-shadow: 0 0 6px rgba(57, 231, 245, 0.35);
  user-select: none;
  letter-spacing: 0.05em;
}

.telemetry-left {
  align-items: flex-start;
  animation: telemetryFade 6s ease-in-out infinite alternate;
}

.telemetry-right {
  align-items: flex-end;
  text-align: right;
  animation: telemetryFade 7s ease-in-out infinite alternate-reverse;
}

@keyframes telemetryFade {
  0% {
    opacity: 0.35;
    transform: translateY(0);
  }

  100% {
    opacity: 0.65;
    transform: translateY(-6px);
  }
}

@media (max-width: 1200px) {
  .cyber-telemetry-layer {
    display: none !important;
  }
}

/* Deep Cyberpunk Space Background & Root Variables */
.theme-new {
  --bg-main: #040d16;
  --bg-card: rgba(6, 21, 32, 0.88);
  --bg-card-hover: rgba(10, 36, 52, 0.95);
  --bg-input: #061722;
  --accent-gold: #39e7f5;
  --accent-gold-hover: #7af5ff;
  --accent-cyan: #39e7f5;
  --border-light: rgba(57, 231, 245, 0.22);
  --border-focus: rgba(57, 231, 245, 0.65);
  --text-main: #e2f7fb;
  --text-muted: #82a8b3;
  background-color: #02070e;
  background-image:
    radial-gradient(ellipse at 50% 25%, rgba(4, 16, 26, 0.4) 0%, rgba(2, 7, 14, 0.9) 100%),
    url("/img/cyber-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
}

/* Top Nav & Center Beveled Plate Logo (NEW Cyber Design) */
.theme-new .top-nav {
  border-color: rgba(57, 231, 245, 0.32);
  background: rgba(4, 16, 25, 0.94);
  box-shadow: 0 4px 30px rgba(0, 204, 235, 0.1);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

@media (min-width: 900px) {
  .theme-new .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: min(520px, 46vw);
    min-width: 420px;
    height: 64px;
    padding: 0 48px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    z-index: 105;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7));
  }

  /* Outer Chamfered Cyber Border */
  .theme-new .logo::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 36px 100%);
    background: linear-gradient(180deg, rgba(57, 231, 245, 0.35) 0%, rgba(57, 231, 245, 0.85) 100%);
    box-shadow: 0 0 24px rgba(57, 231, 245, 0.45);
    pointer-events: none;
    z-index: 1;
  }

  /* Inner Metallic Sci-Fi Plate */
  .theme-new .logo::after {
    content: '';
    position: absolute;
    inset: 0 1.5px 1.5px 1.5px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 35px 100%);
    background:
      radial-gradient(ellipse 70% 65% at 50% 30%, rgba(57, 231, 245, 0.16) 0%, transparent 80%),
      linear-gradient(180deg, #172c3d 0%, #0f1d29 45%, #081119 100%);
    pointer-events: none;
    z-index: 2;
  }

  .theme-new .logo .site-logo-img,
  .theme-new .logo .logo-text {
    position: relative;
    z-index: 5;
  }

  /* Bottom Center Glowing Lens Flare / Neon Accent Line */
  .theme-new .logo .logo-lens-flare {
    display: block;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(57, 231, 245, 0.8) 20%, #ffffff 50%, rgba(57, 231, 245, 0.8) 80%, transparent 100%);
    box-shadow: 0 0 10px #39e7f5, 0 0 24px rgba(57, 231, 245, 0.9);
    border-radius: 2px;
    pointer-events: none;
    z-index: 6;
  }

  /* Outer Wing Tech Lines */
  .theme-new .logo .logo-plate-accent-left,
  .theme-new .logo .logo-plate-accent-right {
    display: block;
    position: absolute;
    top: 50%;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(57, 231, 245, 0.5));
    pointer-events: none;
    z-index: 104;
  }

  .theme-new .logo .logo-plate-accent-left {
    right: 100%;
    margin-right: -10px;
  }

  .theme-new .logo .logo-plate-accent-right {
    left: 100%;
    margin-left: -10px;
    transform: scaleX(-1);
  }
}

.theme-new .logo-shield {
  display: none !important;
}

.theme-new .site-logo-img {
  height: 34px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(57, 231, 245, 0.75));
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.theme-new .site-logo-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(57, 231, 245, 1));
}

.theme-new .site-logo-img.is-missing {
  display: none !important;
}

.theme-new .logo-text {
  font-family: var(--font-chakra);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #ffffff 0%, #e0f4fd 30%, #89c2dc 65%, #3f738e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(57, 231, 245, 0.4));
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.theme-new .logo-text .highlight {
  background: linear-gradient(180deg, #d6f9ff 0%, #6ee4f5 35%, #18b5c9 70%, #0c6978 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(57, 231, 245, 0.8));
}

.theme-new .nav-tab {
  color: #82a8b3;
  border-radius: 20px;
  padding: 7px 18px;
  font-family: var(--font-chakra);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.theme-new .nav-tab-icon {
  filter: drop-shadow(0 0 5px rgba(57, 231, 245, 0.5));
}

.theme-new .nav-tab:hover,
.theme-new .nav-tab.active {
  color: #ffffff;
  border: 1px solid rgba(57, 231, 245, 0.65);
  background: linear-gradient(135deg, rgba(57, 231, 245, 0.22) 0%, rgba(8, 36, 52, 0.85) 100%);
  box-shadow: 0 0 16px rgba(57, 231, 245, 0.25);
}

.theme-new .nav-tab:hover .nav-tab-icon,
.theme-new .nav-tab.active .nav-tab-icon {
  filter: drop-shadow(0 0 8px rgba(57, 231, 245, 0.9)) brightness(1.2);
}

.theme-new .social-links a,
.theme-new .icon-btn,
.theme-new .icon-btn-sm,
.theme-new .balance-badge,
.theme-new .user-nav-box {
  border-color: rgba(57, 231, 245, 0.25);
  background: rgba(8, 27, 38, 0.9);
}

.theme-new .social-links a img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(26%) saturate(1400%) hue-rotate(145deg) brightness(104%);
}

.theme-new .balance-val,
.theme-new .btn-deposit {
  color: #39e7f5;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.5);
}

.theme-new .btn-deposit {
  border-color: rgba(57, 231, 245, 0.55);
  background: rgba(14, 80, 105, 0.35);
}

.theme-new .btn-primary-steam {
  color: #ffffff;
  border-color: rgba(57, 231, 245, 0.65);
  background: linear-gradient(110deg, #097591, #15b3c5);
  box-shadow: 0 0 18px rgba(25, 205, 232, 0.25);
}

/* Arena Columns & HUD Frames */
.theme-new .arena-column,
.theme-new .arena-center,
.theme-new .panel-card,
.theme-new .inventory-panel,
.theme-new .feed-section,
.theme-new .case-open-panel,
.theme-new .cases-hero,
.theme-new .case-catalog-card,
.theme-new .case-content-card,
.theme-new .case-result-card {
  border: 1px solid rgba(57, 231, 245, 0.45);
  border-radius: 14px;
  background: rgba(6, 21, 32, 0.88);
  box-shadow: 0 0 25px rgba(29, 213, 237, 0.12), inset 0 0 18px rgba(29, 213, 237, 0.05);
  backdrop-filter: blur(12px);
}

.theme-new .panel-header,
.theme-new .panel-title,
.theme-new .cases-section-heading,
.theme-new .case-category-heading {
  border-bottom: 1px solid rgba(57, 231, 245, 0.2);
}

.theme-new .panel-header h3 {
  color: #e2f7fb;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.35);
}

.theme-new .panel-counter {
  color: #7fa4b1;
  font-family: var(--font-chakra);
}

.theme-new .inventory-sell-all-btn {
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.25);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.theme-new .selected-target-slot {
  background: rgba(5, 18, 27, 0.8);
  border: 1.5px dashed rgba(57, 231, 245, 0.3);
  border-radius: 10px;
}

.theme-new .selected-target-slot.active-skin {
  border-style: solid;
  border-color: #39e7f5;
  background: radial-gradient(circle at center, rgba(14, 60, 84, 0.5) 0%, rgba(5, 20, 30, 0.95) 100%);
  box-shadow: 0 0 24px rgba(57, 231, 245, 0.25), inset 0 0 16px rgba(57, 231, 245, 0.1);
}

.theme-new .slot-placeholder {
  color: #7fa4b1;
}

.theme-new input,
.theme-new select,
.theme-new .input-tactical,
.theme-new .inv-filter-bar input,
.theme-new .inv-filter-bar select {
  color: #e2f7fb;
  border: 1px solid rgba(57, 231, 245, 0.25);
  background: #061722;
  border-radius: 6px;
}

.theme-new input:focus,
.theme-new select:focus,
.theme-new .input-tactical:focus {
  border-color: #39e7f5;
  box-shadow: 0 0 0 2px rgba(57, 231, 245, 0.25);
  outline: none;
}

/* Radar Center Engine & Action Controls */
.theme-new .engine-screen {
  background: transparent;
  border: none;
  box-shadow: none;
}

.theme-new .chance-tag {
  color: #ffffff;
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 2.35rem;
  text-shadow: 0 0 16px rgba(57, 231, 245, 0.8), 0 0 32px rgba(57, 231, 245, 0.4);
  letter-spacing: 0.02em;
}

.theme-new .status-tag {
  color: #39e7f5;
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.6);
  text-transform: uppercase;
}

.theme-new .target-multiplier-tools {
  background: rgba(5, 18, 27, 0.7);
  border: 1px solid rgba(57, 231, 245, 0.25);
  border-radius: 8px;
}

.theme-new .mult-btn {
  background: rgba(7, 26, 38, 0.75);
  border: 1px solid rgba(57, 231, 245, 0.35);
  border-radius: 6px;
  color: #c5faff;
  font-family: var(--font-chakra);
  font-weight: 700;
  transition: all 0.18s ease;
}

.theme-new .mult-btn:hover,
.theme-new .mult-btn.active {
  background: rgba(57, 231, 245, 0.2);
  border-color: #39e7f5;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(57, 231, 245, 0.35);
}

.theme-new .stats-row {
  background: transparent;
  border: none;
  padding: 4px 0 10px;
}

.theme-new .stat-cell {
  background: transparent;
  border: none;
}

.theme-new .roll-mode-toggle {
  display: inline-flex;
  border-radius: 99px;
  background: rgba(5, 17, 26, 0.9);
  border: 1px solid rgba(57, 231, 245, 0.25);
  padding: 3px;
  gap: 4px;
}

.theme-new .mode-btn {
  border-radius: 99px;
  border: none;
  background: transparent;
  color: #7fa4b1;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.theme-new .mode-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

.theme-new .btn-upgrade-fire {
  background: linear-gradient(180deg, rgba(20, 80, 105, 0.85) 0%, rgba(6, 32, 45, 0.95) 100%);
  border: 1.5px solid rgba(57, 231, 245, 0.65);
  border-radius: 10px;
  color: #d6f9ff;
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(57, 231, 245, 0.2), inset 0 0 14px rgba(57, 231, 245, 0.1);
  transition: all 0.2s ease;
}

.theme-new .btn-upgrade-fire:not(:disabled) {
  background: linear-gradient(180deg, rgba(25, 115, 145, 0.95) 0%, rgba(8, 48, 68, 0.95) 100%);
  border-color: #39e7f5;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(57, 231, 245, 0.45), inset 0 0 18px rgba(57, 231, 245, 0.2);
  cursor: pointer;
}

.theme-new .btn-upgrade-fire:not(:disabled):hover {
  background: linear-gradient(180deg, rgba(35, 145, 180, 1) 0%, rgba(12, 65, 90, 1) 100%);
  box-shadow: 0 0 35px rgba(57, 231, 245, 0.7), inset 0 0 22px rgba(57, 231, 245, 0.35);
  transform: translateY(-2px);
}

.theme-new .btn-upgrade-fire:disabled {
  background: rgba(8, 22, 32, 0.7);
  border-color: rgba(57, 231, 245, 0.25);
  color: #4a7585;
  box-shadow: none;
  cursor: not-allowed;
}

/* Symmetrical 5-Column Grid with Holographic Pedestals for both Left & Right Catalogs (Media 1790416643467) */
@media (min-width: 1051px) {

  .theme-new #targetCatalogGrid,
  .theme-new #userInventoryGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: 154px !important;
    gap: 8px !important;
    padding-right: 4px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.theme-new #targetCatalogGrid .skin-card,
.theme-new #userInventoryGrid .skin-card {
  height: 154px !important;
  min-height: 154px !important;
  max-height: 154px !important;
  padding: 8px 4px 6px !important;
  position: relative;
  border: 1px solid rgba(57, 231, 245, 0.22);
  border-radius: 9px;
  background: rgba(8, 26, 38, 0.85);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden;
  transition: all 0.18s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.theme-new #targetCatalogGrid .skin-card:hover,
.theme-new #userInventoryGrid .skin-card:hover {
  border-color: #39e7f5;
  background: rgba(12, 38, 54, 0.95);
  box-shadow: 0 0 16px rgba(57, 231, 245, 0.35);
  transform: translateY(-2px);
}

.theme-new #targetCatalogGrid .skin-card.selected,
.theme-new #userInventoryGrid .skin-card.selected {
  border-color: #39e7f5;
  background: rgba(14, 46, 66, 0.95);
  box-shadow: 0 0 20px rgba(57, 231, 245, 0.5), inset 0 0 12px rgba(57, 231, 245, 0.2);
}

/* Holographic circular pedestal behind the weapon (Media 1790416643467) */
.theme-new #targetCatalogGrid .skin-card::before,
.theme-new #userInventoryGrid .skin-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1px solid rgba(57, 231, 245, 0.45);
  background: radial-gradient(circle, rgba(57, 231, 245, 0.25) 0%, rgba(14, 116, 144, 0.12) 50%, transparent 72%);
  box-shadow: 0 0 14px rgba(57, 231, 245, 0.3), inset 0 0 10px rgba(57, 231, 245, 0.15);
  pointer-events: none;
  z-index: 1;
  transition: all 0.2s ease;
}

.theme-new #targetCatalogGrid .skin-card:hover::before,
.theme-new #targetCatalogGrid .skin-card.selected::before,
.theme-new #userInventoryGrid .skin-card:hover::before,
.theme-new #userInventoryGrid .skin-card.selected::before {
  border-color: #39e7f5;
  box-shadow: 0 0 22px rgba(57, 231, 245, 0.6), inset 0 0 14px rgba(57, 231, 245, 0.3);
  transform: translateX(-50%) scale(1.08);
}

.theme-new #targetCatalogGrid .skin-card img,
.theme-new #userInventoryGrid .skin-card img {
  position: relative;
  z-index: 2;
  width: 78px !important;
  height: 52px !important;
  object-fit: contain;
  margin: 4px 0 2px !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.theme-new #targetCatalogGrid .skin-card:hover img,
.theme-new #userInventoryGrid .skin-card:hover img {
  transform: scale(1.08);
}

.theme-new #targetCatalogGrid .skin-card-weapon,
.theme-new #userInventoryGrid .skin-card-weapon {
  position: relative;
  z-index: 2;
  color: #8bb1bc !important;
  font-size: 0.62rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center !important;
}

.theme-new #targetCatalogGrid .skin-card-name,
.theme-new #userInventoryGrid .skin-card-name {
  position: relative;
  z-index: 2;
  color: #e2f7fb !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block !important;
  text-align: center !important;
}

.theme-new #targetCatalogGrid .skin-card-wear,
.theme-new #userInventoryGrid .skin-card-wear {
  position: relative;
  z-index: 2;
  color: #729aa6 !important;
  font-size: 0.58rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center !important;
}

.theme-new #targetCatalogGrid .skin-card-price,
.theme-new #userInventoryGrid .skin-card-price {
  position: relative;
  z-index: 2;
  color: #39e7f5 !important;
  font-family: var(--font-chakra) !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  margin-top: 2px !important;
  line-height: 1.2 !important;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.4);
}

.theme-new #userInventoryGrid .inventory-sell-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 6;
  width: auto !important;
  margin: 0 !important;
  padding: 3px 6px !important;
  font-size: 0.58rem !important;
  font-family: var(--font-chakra);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: 1px solid rgba(57, 231, 245, 0.5);
  background: rgba(6, 23, 34, 0.92);
  color: #39e7f5;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.18s ease;
  pointer-events: none;
  cursor: pointer;
}

.theme-new #userInventoryGrid .skin-card:hover .inventory-sell-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.theme-new #userInventoryGrid .inventory-sell-btn:hover {
  background: #39e7f5;
  color: #04141c;
  box-shadow: 0 0 12px rgba(57, 231, 245, 0.6);
}

/* Activity Feed Panel (Media 1790416643467) */
.theme-new .activity-feed {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid rgba(57, 231, 245, 0.45);
  border-radius: 12px;
  background: rgba(6, 21, 32, 0.88);
  box-shadow: 0 0 25px rgba(29, 213, 237, 0.12), inset 0 0 16px rgba(29, 213, 237, 0.05);
  backdrop-filter: blur(10px);
}

.theme-new .activity-heading {
  border-bottom: 1px solid rgba(57, 231, 245, 0.2);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.theme-new .activity-heading h2 {
  color: #e2f7fb;
  font-family: var(--font-chakra);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(57, 231, 245, 0.5);
}

.theme-new .activity-live-dot {
  background: #39e7f5;
  box-shadow: 0 0 12px #39e7f5, 0 0 20px #39e7f5;
}

.theme-new .activity-heading>span {
  color: #7fa4b1;
  font-family: var(--font-chakra);
}

.theme-new .activity-card {
  border-color: rgba(57, 231, 245, 0.2);
  background: rgba(7, 25, 36, 0.85);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.theme-new .activity-card:hover {
  border-color: rgba(57, 231, 245, 0.5);
  box-shadow: 0 0 16px rgba(57, 231, 245, 0.2);
}

.theme-new .activity-avatar {
  background: rgba(57, 231, 245, 0.15);
  color: #39e7f5;
  border: 1px solid rgba(57, 231, 245, 0.35);
}

.theme-new .activity-arrow {
  color: #39e7f5;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.6);
}

.theme-new .activity-result {
  color: #39e7f5;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(57, 231, 245, 0.4);
}

/* Modals & Cases Cyber Theme */
.theme-new .case-card-art,
.theme-new .case-preview,
.theme-new .case-content-card img {
  background: radial-gradient(circle, rgba(35, 205, 228, 0.2), rgba(7, 26, 38, 0.8) 68%);
}

.theme-new .case-card-glyph,
.theme-new .case-preview-icon {
  color: #39e7f5;
  text-shadow: 0 0 26px rgba(57, 231, 245, 0.45);
}

.theme-new .case-category-btn {
  color: #a4c9d1;
  border-color: rgba(76, 211, 233, 0.22);
  background: #0b202c;
}

.theme-new .case-category-btn.active {
  color: #04141c;
  border-color: #39e7f5;
  background: #39e7f5;
}

.theme-new .case-manager-card,
.theme-new .case-opening-window {
  border-color: rgba(57, 231, 245, 0.32);
  background: #081822;
}

.theme-new .case-manager-card>.modal-head,
.theme-new .case-manager-existing,
.theme-new .case-editor-form,
.theme-new .case-opening-window {
  background: #0b202c;
}

.theme-new .case-manager-intro,
.theme-new .case-manager-body,
.theme-new .case-editor-items,
.theme-new .case-skin-picker {
  background: #071923;
}

.theme-new .admin-case-row,
.theme-new .case-skin-result,
.theme-new .case-editor-item,
.theme-new .case-open-controls {
  border-color: rgba(83, 218, 237, 0.18);
  background: #0c2634;
}

.theme-new .modal-card,
.theme-new .profile-card,
.theme-new .admin-modal-card {
  border-color: rgba(57, 231, 245, 0.28);
  background: #091b26;
}

.theme-new .modal-head,
.theme-new .profile-header,
.theme-new .admin-modal-header {
  border-color: rgba(77, 214, 236, 0.18);
  background: #0c2431;
}

.theme-new .profile-body,
.theme-new .admin-modal-body {
  background: #091b26;
}

/* ==========================================================
   CYBER THEME FOOTER OVERRIDES
   ========================================================== */
.theme-new .site-footer {
  background: linear-gradient(180deg, rgba(6, 20, 32, 0.98) 0%, rgba(2, 9, 16, 0.99) 100%);
  border-color: rgba(57, 231, 245, 0.25);
  box-shadow: 0 -8px 32px rgba(2, 10, 18, 0.6), 0 -2px 14px rgba(57, 231, 245, 0.08);
}

.theme-new .site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(57, 231, 245, 0.65) 50%, transparent);
}

.theme-new .footer-logo.site-logo-classic {
  display: none !important;
}

.theme-new .footer-logo.site-logo-cyber {
  display: block !important;
  filter: drop-shadow(0 2px 10px rgba(57, 231, 245, 0.45));
}

.theme-new .footer-brand-accent {
  color: #39e7f5;
  text-shadow: 0 0 10px rgba(57, 231, 245, 0.5);
}

.theme-new .footer-description {
  color: #7ca3be;
}

.theme-new .footer-status-pill {
  background: rgba(4, 20, 32, 0.65);
  border-color: rgba(57, 231, 245, 0.22);
}

.theme-new .footer-col-title::after {
  background: #39e7f5;
  box-shadow: 0 0 8px rgba(57, 231, 245, 0.7);
}

.theme-new .footer-nav-link:hover {
  color: #39e7f5;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.4);
}

.theme-new .footer-social-card {
  background: rgba(8, 26, 40, 0.65);
  border-color: rgba(57, 231, 245, 0.16);
}

.theme-new .footer-card-mail .social-card-icon {
  background: rgba(57, 231, 245, 0.14);
  color: #39e7f5;
  border-color: rgba(57, 231, 245, 0.32);
}

.theme-new .footer-card-mail:hover {
  border-color: rgba(57, 231, 245, 0.55);
  box-shadow: 0 4px 18px rgba(57, 231, 245, 0.2);
  background: rgba(10, 34, 52, 0.75);
}

.theme-new .security-badge-item {
  background: rgba(6, 21, 33, 0.65);
  border-color: rgba(57, 231, 245, 0.14);
}

.theme-new .security-badge-item:hover {
  border-color: rgba(57, 231, 245, 0.32);
  background: rgba(9, 30, 47, 0.75);
}

.theme-new .footer-bottom-bar {
  border-top-color: rgba(57, 231, 245, 0.16);
}

.theme-new .footer-legal-text {
  color: #5c7f99;
}

.theme-new .footer-tag.tag-age {
  color: #39e7f5;
  border-color: rgba(57, 231, 245, 0.35);
  background: rgba(57, 231, 245, 0.1);
}

.theme-new ::selection {
  color: #04141c;
  background: #39e7f5;
}

/* Server-backed case roulette, weekly status, history, and economy editor controls. */
.case-catalog-card:disabled {
  opacity: .56;
  cursor: not-allowed;
  filter: saturate(.55)
}

.case-catalog-card:disabled:hover {
  transform: none;
  border-color: var(--border-light);
  background: #252d3b
}

.case-open-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.3)
}

.case-opening-overlay {
  z-index: 2900;
  padding: clamp(10px, 3vw, 28px);
  background: radial-gradient(ellipse at 50% 45%, rgba(245, 158, 11, .1), transparent 47%), rgba(5, 8, 14, .9)
}

.case-opening-window {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: hidden;
  padding: clamp(15px, 2.5vw, 26px);
  border-color: rgba(245, 158, 11, .4);
  background: linear-gradient(145deg, #1b2431, #111720 72%);
  box-shadow: 0 32px 120px rgba(0, 0, 0, .72), 0 0 55px rgba(245, 158, 11, .08)
}

.case-opening-window:before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  content: ""
}

.case-opening-heading {
  position: relative;
  margin-bottom: 8px
}

.case-opening-brand {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(245, 158, 11, .52);
  border-radius: 12px;
  color: #17130a;
  background: var(--accent-gold);
  font: 700 1rem var(--font-chakra);
  box-shadow: 0 0 25px rgba(245, 158, 11, .18)
}

.case-opening-heading>div {
  display: grid;
  gap: 3px;
  flex: 1
}

.case-opening-heading .cases-kicker {
  font-size: .6rem
}

.case-opening-heading strong {
  font-size: 1.12rem
}

.case-opening-live {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 99px;
  color: #9ceab3;
  background: rgba(34, 197, 94, .07);
  font: 700 .62rem var(--font-chakra);
  letter-spacing: .08em
}

.case-opening-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fe27b;
  box-shadow: 0 0 10px #3fe27b;
  animation: caseLivePulse 1s ease infinite alternate
}

.case-opening-status {
  margin: 7px 0 14px;
  color: #c1c9d5;
  font-size: .78rem
}

.case-opening-reels {
  display: grid;
  gap: 10px;
  max-height: 68vh;
  overflow: auto;
  padding: 2px 4px 5px;
  scrollbar-color: #535f70 #151c27;
  scrollbar-width: thin
}

.case-opening-lane {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 9px;
  background: linear-gradient(110deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  transition: border-color .25s, box-shadow .25s
}

.case-opening-lane.is-stopped {
  border-color: rgba(245, 196, 0, .38);
  box-shadow: inset 0 0 20px rgba(245, 196, 0, .035)
}

.case-opening-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 7px;
  color: #8995a7;
  font: 700 .59rem var(--font-chakra);
  letter-spacing: .1em
}

.case-opening-lane-head i {
  color: #718093;
  font-style: normal
}

.case-reel-viewport {
  height: 126px;
  border-radius: 7px;
  background: #0c1119;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .35)
}

.case-reel-viewport:before {
  width: 12%;
  background: linear-gradient(90deg, #0c1119, transparent)
}

.case-reel-viewport:after {
  width: 12%;
  background: linear-gradient(270deg, #0c1119, transparent)
}

.case-reel-pointer {
  z-index: 3;
  width: 2px;
  background: var(--accent-gold);
  box-shadow: 0 0 16px var(--accent-gold)
}

.case-reel-pointer:before {
  border-top-color: var(--accent-gold)
}

.case-reel-pointer:after {
  border-bottom-color: var(--accent-gold)
}

.case-reel-item {
  width: 144px;
  flex-basis: 144px;
  padding: 7px 8px
}

.case-reel-item img {
  width: 112px;
  height: 63px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25))
}

.case-reel-item span {
  font-size: .61rem
}

.case-reel-item strong {
  font-size: .68rem
}

.case-reel-item.is-winner {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 196, 0, .05), rgba(245, 196, 0, .2))
}

.case-reel-item.winner-landed {
  filter: brightness(1.2);
  box-shadow: inset 0 0 0 1px var(--accent-gold), 0 0 25px rgba(245, 196, 0, .2);
  animation: caseWinnerGlow .7s ease-in-out infinite alternate
}

.case-opening-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #8894a5;
  font-size: .67rem
}

.case-opening-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(245, 196, 0, .22);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: caseSpin .8s linear infinite
}

.case-opening-window:has(.case-opening-lane.is-stopped) .case-opening-spinner {
  animation-play-state: paused;
  border-color: #43d982
}

.case-opening-window:has(.case-opening-lane.is-stopped) .case-opening-spinner {
  border-color: #43d982
}

.case-result-price {
  display: grid;
  gap: 3px
}

.case-result-price>b {
  color: var(--accent-gold);
  font-size: .78rem
}

.case-result-price>span {
  color: #9aa5b5;
  font-size: .7rem
}

.case-result-price .case-price-source {
  display: inline;
  color: #8e9bab
}

.case-winner-card small {
  color: #9aa5b5
}

.case-history-panel {
  margin-top: 28px;
  padding-top: 8px
}

.case-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 9px
}

.case-history-entry {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border-light);
  border-left: 2px solid var(--accent-gold);
  border-radius: 7px;
  background: #202938
}

.case-history-entry img {
  width: 78px;
  height: 58px;
  object-fit: contain
}

.case-history-entry>div {
  display: grid;
  gap: 3px;
  min-width: 0
}

.case-history-entry>div>span:first-child,
.case-history-entry small,
.case-history-market {
  color: #96a3b4;
  font-size: .65rem
}

.case-history-entry strong {
  overflow: hidden;
  font-size: .73rem;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-history-entry>div>small:first-of-type {
  color: var(--accent-gold)
}

.case-history-empty {
  grid-column: 1/-1;
  padding: 20px;
  border: 1px dashed var(--border-light);
  border-radius: 7px;
  color: #9ba7b7;
  text-align: center;
  font-size: .8rem
}

.case-editor-item {
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center
}

.case-editor-item-fields {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(65px, 1fr));
  align-items: end;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .055)
}

.case-editor-item-fields .case-weight-field {
  font-size: .58rem
}

.case-editor-item-fields input,
.case-editor-item-fields select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  color: #eef2f7;
  border: 1px solid #30394a;
  border-radius: 4px;
  background: #0e131d;
  font: inherit
}

.case-editor-item-fields .case-item-chance {
  align-self: center;
  text-align: left;
  font-size: .65rem
}

.case-item-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a4afbe;
  font-size: .62rem;
  white-space: nowrap
}

.case-editor-item-fields .case-item-flag input {
  width: 13px;
  min-height: 13px;
  accent-color: var(--accent-gold)
}

.case-editor-item>.case-remove-item {
  justify-self: end
}

.theme-new .case-opening-window {
  border-color: rgba(57, 231, 245, .38);
  background: linear-gradient(145deg, #0b202c, #06151f 75%)
}

.theme-new .case-opening-lane {
  border-color: rgba(76, 211, 233, .14);
  background: rgba(8, 28, 39, .7)
}

.theme-new .case-opening-lane.is-stopped {
  border-color: rgba(57, 231, 245, .45);
  box-shadow: inset 0 0 20px rgba(57, 231, 245, .05)
}

.theme-new .case-reel-pointer {
  background: #39e7f5;
  box-shadow: 0 0 16px #39e7f5
}

.theme-new .case-reel-pointer:before {
  border-top-color: #39e7f5
}

.theme-new .case-reel-pointer:after {
  border-bottom-color: #39e7f5
}

.theme-new .case-reel-item.winner-landed {
  box-shadow: inset 0 0 0 1px #39e7f5, 0 0 25px rgba(57, 231, 245, .2)
}

.theme-new .case-history-entry {
  background: #0a1d29
}

.theme-new .case-editor-item-fields input,
.theme-new .case-editor-item-fields select {
  border-color: rgba(83, 218, 237, .2);
  background: #061721
}

@keyframes caseLivePulse {
  to {
    opacity: .4;
    transform: scale(.76)
  }
}

@keyframes caseSpin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes caseWinnerGlow {
  to {
    filter: brightness(1.34);
    box-shadow: inset 0 0 0 1px var(--accent-gold), 0 0 28px rgba(245, 196, 0, .28)
  }
}

@media(max-width:700px) {
  .case-opening-window {
    max-height: 94vh;
    padding: 13px
  }

  .case-opening-live {
    font-size: .52rem;
    padding: 5px 7px
  }

  .case-opening-brand {
    width: 36px;
    height: 36px
  }

  .case-opening-heading strong {
    font-size: .95rem
  }

  .case-opening-reels {
    max-height: 72vh;
    gap: 7px
  }

  .case-opening-lane {
    padding: 6px
  }

  .case-reel-viewport {
    height: 112px
  }

  .case-reel-item {
    width: 122px;
    flex-basis: 122px;
    padding: 5px
  }

  .case-reel-item img {
    width: 94px;
    height: 53px
  }

  .case-editor-item-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .case-history-grid {
    grid-template-columns: 1fr
  }

  .case-history-entry {
    grid-template-columns: 64px minmax(0, 1fr)
  }

  .case-history-entry img {
    width: 64px;
    height: 52px
  }
}

@media(prefers-reduced-motion:reduce) {

  .case-opening-spinner,
  .case-opening-live i,
  .case-reel-track.is-randomizing {
    animation: none !important
  }

  .case-reel-track {
    transition-duration: 1ms !important
  }
}

/* Case draft readouts and owned item valuation details. */
.case-editor-item.is-scheduled {
  opacity: .68
}

.case-editor-item-name small {
  color: #eab85b;
  font-size: .59rem
}

.case-editor-fields label small {
  display: block;
  color: #8794a6;
  font-size: .62rem;
  line-height: 1.3
}

.skin-card-condition,
.profile-inventory-condition,
.inventory-price-note {
  display: block;
  color: #95a2b3;
  font-size: .62rem;
  font-weight: 500;
  line-height: 1.3
}

.skin-card-condition {
  margin-top: -2px
}

.skin-card-price .inventory-price-note {
  font-size: .58rem
}

.theme-new .skin-card-condition,
.theme-new .profile-inventory-condition,
.theme-new .inventory-price-note {
  color: #8eafb8
}

@media(max-height:850px) {
  .case-opening-reels {
    max-height: 76vh
  }

  .case-opening-lane {
    padding: 5px
  }

  .case-reel-viewport {
    height: 94px
  }

  .case-reel-item img {
    height: 49px
  }
}

/* Clear case catalog, results, and inventory grids. */
#casesGrid.cases-grid {
  display: block
}

.case-category-section>.cases-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px
}

body:not(.theme-new) #userInventoryGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 3px 4px 0
}

body:not(.theme-new) #userInventoryGrid .skin-card {
  display: flex;
  min-width: 0;
  height: 210px;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-items: initial;
  gap: 3px;
  padding: 11px 9px;
  text-align: center
}

body:not(.theme-new) #userInventoryGrid .skin-card img {
  width: min(100%, 145px);
  height: 78px;
  margin: 2px 0 5px;
  object-fit: contain
}

body:not(.theme-new) #userInventoryGrid .skin-card-weapon {
  max-width: 100%;
  font-size: .75rem
}

body:not(.theme-new) #userInventoryGrid .skin-card-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  font-size: .82rem;
  line-height: 1.15
}

body:not(.theme-new) #userInventoryGrid .skin-card-price {
  margin: 4px 0 0;
  color: var(--accent-gold);
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap
}

body:not(.theme-new) #userInventoryGrid .inventory-sell-btn {
  width: 100%;
  margin-top: auto;
  padding: 6px 8px
}

/* Case Result Modal & Roulette Reel Enhanced Styling */
.case-result-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(10px)
}

.case-result-backdrop.hidden {
  display: none
}

.case-result-card {
  position: relative;
  width: min(100%, 880px);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px 28px;
  border: 1px solid rgba(245, 196, 0, 0.28);
  border-radius: 16px;
  background: linear-gradient(160deg, #17212e 0%, #0c1118 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(245, 196, 0, 0.06)
}

.case-result-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f9cb0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all .18s ease;
  z-index: 10
}

.case-result-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2)
}

.case-result-head {
  text-align: center;
  margin-bottom: 20px
}

.case-result-head .cases-kicker {
  display: block;
  margin-bottom: 4px;
  font: 700 .72rem var(--font-chakra);
  color: var(--accent-gold);
  letter-spacing: .14em
}

.case-result-head h2 {
  margin: 0;
  font: 700 1.75rem var(--font-chakra);
  color: #fff;
  letter-spacing: .02em
}

.case-result-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px
}

.case-result-items.count-5,
.case-result-items.count-10 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px
}

.case-result-items.count-5 .case-winner-card,
.case-result-items.count-10 .case-winner-card {
  padding: 10px 6px
}

.case-result-items.count-5 .case-winner-img,
.case-result-items.count-10 .case-winner-img {
  height: 60px;
  margin: 2px 0 4px
}

.case-result-items.count-5 .case-winner-name,
.case-result-items.count-10 .case-winner-name {
  font-size: .74rem
}

.case-result-items.count-5 .case-result-price,
.case-result-items.count-10 .case-result-price {
  font-size: .95rem
}

.case-result-items.count-5 .case-item-sell-btn,
.case-result-items.count-10 .case-item-sell-btn {
  padding: 5px 4px;
  font-size: .66rem
}

.case-result-items.single-item {
  display: flex;
  justify-content: center;
  margin: 10px auto 24px;
  max-width: 320px;
  width: 100%
}

.case-result-items.single-item .case-winner-card {
  width: 100%;
  padding: 22px 18px
}

.case-result-items.single-item .case-winner-img {
  height: 115px;
  max-width: 170px
}

.case-winner-card {
  --item-rarity: #94a3b8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid var(--item-rarity);
  border-radius: 12px;
  background: linear-gradient(165deg, #151e2b 0%, #0e131d 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, border-color .2s ease, opacity .25s ease;
  overflow: hidden;
  animation: caseWinnerIn .35s ease both
}

.case-winner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5)
}

.case-winner-card.is-sold {
  opacity: .55;
  filter: grayscale(.45);
  transform: none
}

@keyframes caseWinnerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.case-winner-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  opacity: .75;
  z-index: 1
}

.case-winner-rarity-pill {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font: 700 .62rem var(--font-chakra);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px
}

.case-winner-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 85px;
  object-fit: contain;
  margin: 4px 0 8px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  transition: transform .2s ease
}

.case-winner-card:hover .case-winner-img {
  transform: scale(1.05)
}

.case-winner-details {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px
}

.case-winner-weapon {
  color: #8c99ab;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em
}

.case-winner-name {
  color: #fff;
  font: 700 .84rem var(--font-chakra);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin: 2px 0 4px
}

.case-result-price {
  color: var(--accent-gold);
  font: 700 1.12rem var(--font-rajdhani);
  letter-spacing: .02em
}

.case-winner-card-action {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto
}

.case-item-sell-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245, 196, 0, 0.38);
  background: rgba(245, 196, 0, 0.09);
  color: #fbbf24;
  font: 700 .74rem var(--font-chakra);
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .18s ease
}

.case-item-sell-btn:hover:not(:disabled) {
  background: var(--accent-gold);
  color: #0a0e14;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(245, 196, 0, 0.35);
  transform: translateY(-1px)
}

.case-item-sell-btn:disabled {
  opacity: .45;
  cursor: wait;
  transform: none
}

.sold-badge {
  display: block;
  width: 100%;
  text-align: center;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font: 700 .72rem var(--font-chakra);
  letter-spacing: .03em
}

.case-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap
}

.case-result-btn {
  min-height: 46px;
  padding: 12px 28px;
  border-radius: 8px;
  font: 700 .9rem var(--font-chakra);
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.btn-keep {
  background: #182230;
  color: #c0ccd9;
  border: 1px solid rgba(255, 255, 255, 0.12)
}

.btn-keep:hover {
  background: #222f42;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px)
}

.btn-sell-all {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0d13;
  border: 1px solid #fbbf24;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.28)
}

.btn-sell-all:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.42)
}

.btn-sell-all:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none
}

.case-reel-item {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(0, 0, 0, 0.12));
  user-select: none;
  box-sizing: border-box
}

.case-reel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .7
}

.case-reel-item img {
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform .2s ease
}

.case-reel-weapon {
  position: relative;
  z-index: 2;
  color: #8a96a7;
  text-transform: uppercase;
  letter-spacing: .05em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-reel-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--font-chakra);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.case-reel-rarity-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3
}

.case-reel-item.winner-landed {
  background: linear-gradient(180deg, rgba(245, 196, 0, 0.1), rgba(245, 196, 0, 0.25));
  box-shadow: inset 0 0 0 2px var(--accent-gold), 0 0 30px rgba(245, 196, 0, 0.35);
  filter: brightness(1.15)
}

.case-reel-item.winner-landed img {
  transform: scale(1.08)
}

/* Sci-fi Theme overrides */
.theme-new .case-result-card {
  border-color: rgba(57, 231, 245, 0.32);
  background: linear-gradient(160deg, #091c26 0%, #051118 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(57, 231, 245, 0.06)
}

.theme-new .case-winner-card {
  border-color: rgba(57, 231, 245, 0.16);
  background: linear-gradient(165deg, #0c2331 0%, #06151f 100%)
}

.theme-new .case-item-sell-btn {
  border-color: rgba(57, 231, 245, 0.4);
  background: rgba(57, 231, 245, 0.1);
  color: #39e7f5
}

.theme-new .case-item-sell-btn:hover:not(:disabled) {
  background: #39e7f5;
  color: #04141c;
  border-color: #39e7f5;
  box-shadow: 0 4px 14px rgba(57, 231, 245, 0.35)
}

.theme-new .btn-sell-all {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.3)
}

.theme-new .btn-sell-all:hover:not(:disabled) {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45)
}

.theme-new .case-reel-item.winner-landed {
  box-shadow: inset 0 0 0 2px #39e7f5, 0 0 30px rgba(57, 231, 245, 0.35)
}

/* Responsive adjustments & Dedicated Mobile UX */
@media(max-width:1200px) {
  .case-category-section>.cases-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  #userInventoryGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

@media(max-width:950px) {
  .case-category-section>.cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
  }

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

  .case-result-card {
    width: min(100%, 760px);
    padding: 20px 16px
  }

  .case-result-items.count-5,
  .case-result-items.count-10 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:768px) {

  /* Touch-friendly, horizontal scrollable top navbar */
  .top-nav {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px
  }

  .nav-left {
    width: 100%;
    justify-content: space-between
  }

  .logo {
    font-size: 1.18rem
  }

  .social-links {
    display: none
  }

  .nav-links {
    display: flex;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }

  .nav-links::-webkit-scrollbar {
    display: none
  }

  .nav-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: .85rem
  }

  .main-wrapper {
    padding: 12px 10px 30px
  }

  /* Ergonomic case opening on mobile */
  .case-open-panel {
    padding: 10px 8px;
    margin-bottom: 14px;
    border-radius: 12px
  }

  .case-stage {
    min-height: 160px;
    border-radius: 8px
  }

  .case-preview {
    padding: 10px
  }

  .case-preview-icon img {
    max-height: 130px;
    max-width: 180px
  }

  .case-opening-reels {
    grid-template-columns: 1fr !important;
    gap: 6px;
    max-height: 480px
  }

  .case-opening-reels.count-3 .case-opening-lane:nth-child(3),
  .case-opening-reels.count-5 .case-opening-lane:nth-child(5) {
    max-width: 100%
  }

  .case-opening-lane {
    padding: 4px 6px
  }

  .grid-lane .case-reel-viewport,
  .case-opening-lane:not(.single-lane) .case-reel-viewport {
    height: 76px
  }

  .case-open-controls {
    width: 100%;
    max-width: 100%;
    gap: 8px
  }

  .case-quantity-row {
    width: 100%;
    justify-content: space-between
  }

  .case-quantity {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 4px
  }

  .case-quantity-btn {
    min-width: 0;
    flex: 1;
    padding: 7px 3px;
    font-size: .82rem;
    text-align: center
  }

  .case-open-btn {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 1rem
  }

  /* Catalog on mobile */
  .cases-hero {
    padding: 16px 14px;
    margin-bottom: 14px;
    border-radius: 10px
  }

  .cases-hero h1 {
    font-size: 1.45rem
  }

  .cases-hero p {
    font-size: .80rem
  }

  .case-categories {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 10px 0 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }

  .case-categories::-webkit-scrollbar {
    display: none
  }

  .case-category-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: .78rem
  }

  .case-category-section>.cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important
  }

  .case-card-poster {
    height: 185px
  }

  .case-card-img {
    max-height: 135px;
    max-width: 90%
  }

  .case-card-title {
    font-size: .88rem
  }

  .case-card-sub {
    font-size: .66rem
  }

  .case-card-price-pill {
    font-size: .80rem;
    padding: 2px 7px
  }

  .case-contents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .case-content-card {
    padding: 8px 6px
  }

  .case-content-card img {
    height: 56px
  }

  /* Result modal on mobile */
  .case-result-backdrop {
    padding: 8px
  }

  .case-result-card {
    width: 100%;
    max-height: 92vh;
    padding: 16px 12px;
    border-radius: 12px
  }

  .case-result-head {
    margin-bottom: 12px
  }

  .case-result-head h2 {
    font-size: 1.35rem
  }

  .case-result-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 14px
  }

  .case-result-items.single-item {
    display: flex;
    margin: 0 auto 14px;
    max-width: 280px;
    width: 100%
  }

  .case-winner-card {
    padding: 8px 6px
  }

  .case-winner-img {
    height: 58px;
    margin: 2px 0 4px
  }

  .case-winner-weapon {
    font-size: .60rem
  }

  .case-winner-name {
    font-size: .72rem
  }

  .case-winner-wear {
    font-size: .56rem
  }

  .case-result-price {
    font-size: .92rem
  }

  .case-item-sell-btn {
    padding: 6px 4px;
    font-size: .66rem
  }

  .case-result-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 10px
  }

  .case-result-btn {
    width: 100%;
    min-height: 44px
  }

  /* Inventory & store on mobile */
  #userInventoryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 8px
  }

  #userInventoryGrid .skin-card {
    height: 180px;
    padding: 8px 6px
  }

  #userInventoryGrid .skin-card img {
    height: 58px;
    width: min(100%, 105px)
  }

  #userInventoryGrid .skin-card-name {
    font-size: .72rem
  }

  #userInventoryGrid .skin-card-weapon {
    font-size: .64rem
  }

  #userInventoryGrid .skin-card-price {
    font-size: .78rem
  }

  #userInventoryGrid .inventory-sell-btn {
    padding: 5px 4px;
    font-size: .68rem
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }
}

@media(max-width:400px) {
  .case-card-poster {
    height: 165px
  }

  .case-card-img {
    max-height: 120px;
    max-width: 90%
  }

  .case-quantity-btn {
    font-size: .74rem;
    padding: 6px 2px
  }

  .case-result-items {
    grid-template-columns: 1fr !important
  }

  #userInventoryGrid,
  .store-grid,
  .case-contents-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VELTORLAB REDESIGN & POLISH SPECIFICATION (Points 1-5)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SYMMETRICAL & ERGONOMIC UPGRADER CARDS (Left Inventory & Right Catalog)
   -------------------------------------------------------------------------- */
#userInventoryGrid,
#targetCatalogGrid,
.theme-new #userInventoryGrid,
.theme-new #targetCatalogGrid,
body.theme-new #userInventoryGrid,
body.theme-new #targetCatalogGrid,
.theme-new #upgraderView .inventory-scroll-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)) !important;
  grid-auto-rows: 172px !important;
  gap: 8px !important;
  padding: 4px 6px 10px 2px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

#userInventoryGrid .skin-card,
#targetCatalogGrid .skin-card,
.theme-new #userInventoryGrid .skin-card,
.theme-new #targetCatalogGrid .skin-card,
body.theme-new #userInventoryGrid .skin-card,
body.theme-new #targetCatalogGrid .skin-card {
  width: 100% !important;
  height: 172px !important;
  min-height: 172px !important;
  max-height: 172px !important;
  box-sizing: border-box !important;
  padding: 8px 6px 8px !important;
  position: relative !important;
  border-radius: 8px !important;
  border: 1px solid rgba(57, 231, 245, 0.22) !important;
  background: linear-gradient(160deg, rgba(10, 31, 45, 0.94), rgba(5, 20, 30, 0.98)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

#userInventoryGrid .skin-card:hover,
#targetCatalogGrid .skin-card:hover,
.theme-new #userInventoryGrid .skin-card:hover,
.theme-new #targetCatalogGrid .skin-card:hover {
  border-color: #39e7f5 !important;
  background: linear-gradient(160deg, rgba(13, 38, 54, 0.98), rgba(7, 26, 38, 0.98)) !important;
  box-shadow: 0 4px 18px rgba(57, 231, 245, 0.32) !important;
  transform: translateY(-2px) !important;
}

#userInventoryGrid .skin-card.selected,
#targetCatalogGrid .skin-card.selected,
.theme-new #userInventoryGrid .skin-card.selected,
.theme-new #targetCatalogGrid .skin-card.selected {
  border-color: #39e7f5 !important;
  background: linear-gradient(160deg, rgba(16, 48, 68, 0.98), rgba(9, 32, 48, 0.98)) !important;
  box-shadow: 0 0 16px rgba(57, 231, 245, 0.5), inset 0 0 12px rgba(57, 231, 245, 0.22) !important;
}

/* Holographic circular pedestal */
#userInventoryGrid .skin-card::before,
#targetCatalogGrid .skin-card::before,
.theme-new #userInventoryGrid .skin-card::before,
.theme-new #targetCatalogGrid .skin-card::before {
  content: "" !important;
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(57, 231, 245, 0.2) 0%, rgba(14, 116, 144, 0.08) 55%, transparent 72%) !important;
  border: 1px solid rgba(57, 231, 245, 0.28) !important;
  box-shadow: 0 0 12px rgba(57, 231, 245, 0.18), inset 0 0 8px rgba(57, 231, 245, 0.12) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#userInventoryGrid .skin-card:hover::before,
#targetCatalogGrid .skin-card:hover::before,
.theme-new #userInventoryGrid .skin-card:hover::before,
.theme-new #targetCatalogGrid .skin-card:hover::before {
  border-color: #39e7f5 !important;
  box-shadow: 0 0 20px rgba(57, 231, 245, 0.5), inset 0 0 12px rgba(57, 231, 245, 0.25) !important;
  transform: translateX(-50%) scale(1.08) !important;
}

/* Item Image Inside Card */
#userInventoryGrid .skin-card img,
#targetCatalogGrid .skin-card img,
.theme-new #userInventoryGrid .skin-card img,
.theme-new #targetCatalogGrid .skin-card img {
  position: relative !important;
  z-index: 2 !important;
  width: 82px !important;
  height: 54px !important;
  object-fit: contain !important;
  margin: 2px auto !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65)) !important;
  transition: transform 0.2s ease !important;
}

#userInventoryGrid .skin-card:hover img,
#targetCatalogGrid .skin-card:hover img,
.theme-new #userInventoryGrid .skin-card:hover img,
.theme-new #targetCatalogGrid .skin-card:hover img {
  transform: scale(1.08) !important;
}

/* Typography Inside Upgrader Cards */
#userInventoryGrid .skin-card-weapon,
#targetCatalogGrid .skin-card-weapon,
.theme-new #userInventoryGrid .skin-card-weapon,
.theme-new #targetCatalogGrid .skin-card-weapon {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  font-size: 0.70rem !important;
  line-height: 1.15 !important;
  color: #8bb1bc !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

#userInventoryGrid .skin-card-name,
#targetCatalogGrid .skin-card-name,
.theme-new #userInventoryGrid .skin-card-name,
.theme-new #targetCatalogGrid .skin-card-name {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #eaf8fc !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 1px 0 !important;
}

#userInventoryGrid .skin-card-wear,
#targetCatalogGrid .skin-card-wear,
.theme-new #userInventoryGrid .skin-card-wear,
.theme-new #targetCatalogGrid .skin-card-wear {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  font-size: 0.62rem !important;
  color: #729aa6 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

#userInventoryGrid .skin-card-price,
#targetCatalogGrid .skin-card-price,
.theme-new #userInventoryGrid .skin-card-price,
.theme-new #targetCatalogGrid .skin-card-price {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  font-family: var(--font-chakra, sans-serif) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #39e7f5 !important;
  text-align: center !important;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.4) !important;
  margin-top: auto !important;
  line-height: 1.2 !important;
}

/* Lock overlay for target cards */
.skin-lock-overlay,
.theme-new .skin-lock-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 14, 22, 0.78) !important;
  backdrop-filter: blur(2px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #7fa4b1 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  z-index: 5 !important;
  border-radius: 8px !important;
}

/* Hide legacy sell buttons from Upgrader inventory (selling moved strictly to Profile) */
#userInventoryGrid .inventory-sell-btn,
.theme-new #userInventoryGrid .inventory-sell-btn {
  display: none !important;
}


/* --------------------------------------------------------------------------
   2. REAL LIVE DROP FEED WITH HOVER PROVENANCE POPOVER (1.5x SCALED)
   -------------------------------------------------------------------------- */
#liveFeedRibbon {
  display: flex;
  align-items: center;
  background: rgba(5, 17, 26, 0.96);
  border-bottom: 1px solid rgba(57, 231, 245, 0.28);
  height: 81px;
  min-height: 81px;
  max-height: 81px;
  overflow: visible;
  position: sticky;
  top: 36px;
  z-index: 95;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

body:not(.theme-new) #liveFeedRibbon {
  top: 60px;
  background: rgba(16, 21, 30, 0.97);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.live-feed-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: rgba(7, 25, 36, 0.98);
  border-right: 1px solid rgba(57, 231, 245, 0.25);
  height: 100%;
  flex-shrink: 0;
  z-index: 10;
}

body:not(.theme-new) .live-feed-status {
  background: rgba(22, 28, 40, 0.98);
  border-right: 1px solid rgba(245, 158, 11, 0.25);
}

.live-feed-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #39e7f5;
  box-shadow: 0 0 12px #39e7f5;
  animation: livePulseAnim 1.6s infinite ease-in-out;
}

body:not(.theme-new) .live-feed-pulse {
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
}

@keyframes livePulseAnim {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.live-feed-label {
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: #dcf9ff;
  white-space: nowrap;
}

body:not(.theme-new) .live-feed-label {
  color: #fef3c7;
}

.live-feed-track-wrap {
  flex: 1;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.live-feed-track-wrap::-webkit-scrollbar {
  display: none;
}

.live-drops-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  height: 100%;
  width: max-content;
}

.live-drop-card {
  width: 212px;
  height: 63px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: rgba(9, 27, 38, 0.88);
  border: 1px solid rgba(57, 231, 245, 0.2);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.live-drop-card:hover {
  border-color: #39e7f5;
  background: rgba(13, 38, 54, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(57, 231, 245, 0.32);
  z-index: 150;
}

body:not(.theme-new) .live-drop-card {
  background: rgba(22, 28, 40, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

body:not(.theme-new) .live-drop-card:hover {
  border-color: #f59e0b;
  background: rgba(30, 40, 56, 0.98);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.live-drop-card.self-drop {
  border-color: #ffc14b;
  background: rgba(28, 23, 10, 0.92);
  box-shadow: 0 0 14px rgba(255, 193, 75, 0.3);
}

.live-drop-art {
  width: 51px;
  height: 51px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.live-drop-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.live-drop-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  justify-content: center;
}

.live-drop-weapon {
  font-size: 0.82rem;
  color: #8bb1bc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  line-height: 1.15;
}

body:not(.theme-new) .live-drop-weapon {
  color: #d1d5db;
}

.live-drop-price {
  font-size: 1.05rem;
  color: #39e7f5;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

body:not(.theme-new) .live-drop-price {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.live-drop-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(4, 16, 24, 0.9);
  border: 1px solid rgba(57, 231, 245, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

body:not(.theme-new) .live-drop-badge {
  background: rgba(14, 18, 25, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.live-drop-source-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Hover Provenance Popover */
.live-drop-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  width: 260px;
  background: rgba(6, 21, 31, 0.98);
  border: 1px solid rgba(57, 231, 245, 0.55);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(57, 231, 245, 0.2);
  backdrop-filter: blur(12px);
}

body:not(.theme-new) .live-drop-tooltip {
  background: rgba(18, 24, 34, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.25);
}

.live-drop-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(57, 231, 245, 0.55) transparent;
}

body:not(.theme-new) .live-drop-tooltip::before {
  border-color: transparent transparent rgba(245, 158, 11, 0.55) transparent;
}

.live-drop-card:hover .live-drop-tooltip {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-source-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-src-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(57, 231, 245, 0.4));
  flex-shrink: 0;
}

body:not(.theme-new) .tooltip-src-icon {
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.tooltip-src-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tooltip-src-type {
  font-size: 0.65rem;
  color: #39e7f5;
  font-family: var(--font-chakra, sans-serif);
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}

body:not(.theme-new) .tooltip-src-type {
  color: #f59e0b;
}

.tooltip-src-title {
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-divider {
  height: 1px;
  background: rgba(57, 231, 245, 0.2);
  margin: 8px 0;
}

body:not(.theme-new) .tooltip-divider {
  background: rgba(245, 158, 11, 0.2);
}

.tooltip-item-view {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.tooltip-item-art {
  width: 54px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.tooltip-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tooltip-item-w {
  font-size: 0.65rem;
  color: #8bb1bc;
}

body:not(.theme-new) .tooltip-item-w {
  color: #9ca3af;
}

.tooltip-item-n {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-item-wear {
  font-size: 0.60rem;
  color: #729aa6;
}

body:not(.theme-new) .tooltip-item-wear {
  color: #8bb1bc;
}

.tooltip-item-p {
  font-size: 0.84rem;
  color: #39e7f5;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  margin-top: 2px;
}

body:not(.theme-new) .tooltip-item-p {
  color: #f59e0b;
}

.tooltip-user-view {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(57, 231, 245, 0.2);
  font-size: 0.68rem;
  color: #a4c9d1;
}

body:not(.theme-new) .tooltip-user-view {
  border-top: 1px dashed rgba(245, 158, 11, 0.2);
  color: #cbd5e1;
}

.tooltip-u-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(57, 231, 245, 0.4);
}

body:not(.theme-new) .tooltip-u-avatar {
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tooltip-u-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-you-badge {
  background: #ffc14b;
  color: #04141c;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: auto;
}


/* --------------------------------------------------------------------------
   3. SETTINGS MODAL & DEDICATED PROFILE PAGE
   -------------------------------------------------------------------------- */
.settings-modal-card {
  max-width: 520px;
  width: 95%;
  background: linear-gradient(165deg, rgba(12, 34, 48, 0.98), rgba(5, 20, 31, 0.98));
  border: 1px solid rgba(57, 231, 245, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(57, 231, 245, 0.15);
  border-radius: 12px;
}

.settings-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.settings-card {
  background: rgba(7, 23, 34, 0.85);
  border: 1px solid rgba(57, 231, 245, 0.22);
  border-radius: 8px;
  padding: 14px;
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.settings-card-head h4 {
  margin: 0;
  font-size: 0.86rem;
  font-family: var(--font-chakra, sans-serif);
  color: #fff;
}

.settings-card-head small {
  color: #8bb1bc;
  font-size: 0.68rem;
  line-height: 1.3;
}

.trade-url-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}

.trade-url-box input,
.trade-url-box .input-tactical {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.trade-url-box .btn-submit-gold {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 170px;
  margin-top: 0 !important;
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.trade-url-help {
  display: block;
  margin-top: 6px;
  color: #6f95a2;
  font-size: 0.64rem;
  line-height: 1.3;
}

.avatar-seeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.avatar-pick-btn {
  padding: 6px 8px;
  background: rgba(7, 26, 38, 0.85);
  border: 1px solid rgba(57, 231, 245, 0.25);
  border-radius: 6px;
  color: #dcf9ff;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.18s;
}

.avatar-pick-btn:hover {
  border-color: #39e7f5;
  background: rgba(14, 48, 68, 0.95);
}

.settings-footer-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #fca5a5;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-logout:hover {
  background: #ef4444;
  color: #fff;
}

/* Dedicated Profile Page */
.profile-page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(150deg, rgba(12, 36, 50, 0.95), rgba(6, 22, 33, 0.98));
  border: 1px solid rgba(57, 231, 245, 0.35);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-hero-user-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-hero-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 2px solid #39e7f5;
  overflow: visible;
  box-shadow: 0 0 18px rgba(57, 231, 245, 0.3);
}

.profile-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #061924;
  object-fit: cover;
}

.avatar-status-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #10b981;
  color: #04141c;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #061924;
  letter-spacing: 0.05em;
}

.profile-hero-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-hero-name-row h1 {
  margin: 0;
  font-size: 1.45rem;
  font-family: var(--font-chakra, sans-serif);
  color: #fff;
  text-shadow: 0 0 10px rgba(57, 231, 245, 0.4);
  font-weight: 700;
}

.user-role-badge {
  background: rgba(57, 231, 245, 0.15);
  border: 1px solid rgba(57, 231, 245, 0.4);
  color: #39e7f5;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.profile-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: #8bb1bc;
}

.profile-steam-tag {
  color: #ffc14b;
  font-weight: 600;
}

.profile-hero-actions-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-balance-plate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px;
  background: rgba(5, 20, 30, 0.85);
  border: 1px solid rgba(57, 231, 245, 0.28);
  border-radius: 8px;
  text-align: right;
}

.p-plate-lbl {
  font-size: 0.58rem;
  color: #729aa6;
  font-family: var(--font-chakra, sans-serif);
  letter-spacing: 0.08em;
}

.p-plate-val {
  font-size: 1.25rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 800;
  color: #39e7f5;
  text-shadow: 0 0 10px rgba(57, 231, 245, 0.5);
}

.btn-deposit-glow {
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  background: linear-gradient(135deg, #ffc14b, #ff9800);
  color: #071922;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-deposit-glow:hover {
  box-shadow: 0 0 12px rgba(255, 193, 75, 0.6);
  transform: translateY(-1px);
}

.btn-tactical-settings {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  background: rgba(10, 31, 44, 0.9);
  border: 1px solid rgba(57, 231, 245, 0.4);
  color: #dcf9ff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tactical-settings:hover {
  border-color: #39e7f5;
  background: #39e7f5;
  color: #04141c;
  box-shadow: 0 0 16px rgba(57, 231, 245, 0.5);
}

.profile-tactical-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-tactical-hub {
    grid-template-columns: 1fr;
  }
}

.tactical-widget {
  background: linear-gradient(155deg, rgba(11, 33, 46, 0.92), rgba(6, 21, 31, 0.95));
  border: 1px solid rgba(57, 231, 245, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(57, 231, 245, 0.15);
}

.widget-header h3 {
  margin: 0;
  font-size: 0.82rem;
  font-family: var(--font-chakra, sans-serif);
  letter-spacing: 0.06em;
  color: #dcf9ff;
}

.widget-icon {
  font-size: 1rem;
}

/* Best Drop Showcase Card - Compact & Ergonomic */
.best-drop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: radial-gradient(circle at 30% 50%, rgba(255, 193, 75, 0.14), rgba(9, 29, 41, 0.95) 75%);
  border: 1px solid rgba(255, 193, 75, 0.35);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 193, 75, 0.15);
  position: relative;
  overflow: hidden;
  max-height: 140px;
}

.best-drop-art-wrap {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.best-drop-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.best-drop-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.best-drop-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: #8bb1bc;
  margin-bottom: 2px;
}

.best-drop-source-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}

.best-drop-weapon {
  font-size: 0.70rem;
  color: #e2be79;
  line-height: 1.1;
}

.best-drop-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px 0;
}

.best-drop-wear {
  font-size: 0.62rem;
  color: #8bb1bc;
}

.best-drop-price-tag {
  font-size: 1rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 800;
  color: #ffc14b;
  text-shadow: 0 0 10px rgba(255, 193, 75, 0.5);
  margin-top: 3px;
}

.best-drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
  color: #6a8c98;
  font-size: 0.76rem;
  gap: 6px;
}

/* Stats Player Grid */
.stats-p-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-p-card {
  background: rgba(5, 18, 27, 0.85);
  border: 1px solid rgba(57, 231, 245, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
}

.sc-lbl {
  font-size: 0.58rem;
  color: #729aa6;
  font-family: var(--font-chakra, sans-serif);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.sc-val {
  font-size: 0.94rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  color: #fff;
}

.sc-val.win {
  color: #39e7f5;
  text-shadow: 0 0 8px rgba(57, 231, 245, 0.4);
}

/* Promo Row - Fixed Input Compression */
.page-promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

.page-promo-row input,
.page-promo-row .input-tactical {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.page-promo-row .btn-submit-gold {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 130px;
  margin-top: 0 !important;
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.promo-hint-text {
  font-size: 0.70rem;
  color: #8bb1bc;
  line-height: 1.35;
  margin: 0;
}

/* Tactical Admin Button */
.btn-tactical-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tactical-admin:hover {
  background: #f59e0b;
  color: #04141c;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

/* Profile Inventory History Section */
.profile-history-section {
  background: linear-gradient(160deg, rgba(11, 33, 46, 0.95), rgba(6, 21, 31, 0.98));
  border: 1px solid rgba(57, 231, 245, 0.3);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: 14px;
}

.history-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(57, 231, 245, 0.2);
}

.history-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-count-pill {
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(57, 231, 245, 0.15);
  border: 1px solid rgba(57, 231, 245, 0.3);
  color: #39e7f5;
  font-size: 0.65rem;
  font-family: var(--font-chakra, sans-serif);
}

.history-filter-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hist-filter-btn {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(7, 24, 35, 0.85);
  border: 1px solid rgba(57, 231, 245, 0.25);
  color: #8bb1bc;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.18s;
}

.hist-filter-btn:hover {
  border-color: #39e7f5;
  color: #dcf9ff;
}

.hist-filter-btn.active {
  background: #39e7f5;
  color: #04141c;
  font-weight: 700;
  border-color: #39e7f5;
  box-shadow: 0 0 12px rgba(57, 231, 245, 0.4);
}

/* History Cards Grid - Ergonomic CS2 Skin Card Design */
.profile-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
  min-height: 200px;
}

.history-item-card {
  height: 224px;
  padding: 8px 8px;
  border-radius: 8px;
  border: 1px solid rgba(57, 231, 245, 0.2);
  background: rgba(8, 25, 36, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.history-item-card:hover {
  border-color: #39e7f5;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(57, 231, 245, 0.25);
  z-index: 20;
}

.hist-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
  z-index: 2;
}

.hist-status-badge {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-chakra, sans-serif);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hist-status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
}

.hist-status-badge.sold {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.hist-status-badge.upgraded {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #3b82f6;
  color: #60a5fa;
}

.hist-status-badge.withdrawn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.hist-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.52rem;
  color: #8bb1bc;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

.hist-source-pill img {
  width: 12px;
  height: 12px;
  min-width: 12px;
  max-width: 12px;
  max-height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

.hist-source-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-card-art {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  position: relative;
}

.hist-card-art img {
  max-width: 100%;
  max-height: 100%;
  width: 95px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease;
}

.history-item-card:hover .hist-card-art img {
  transform: scale(1.08);
}

.hist-card-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.hist-card-weapon {
  font-size: 0.65rem;
  color: #8bb1bc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}

.hist-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.hist-card-wear {
  font-size: 0.58rem;
  color: #5ea1b2;
  margin-top: 1px;
}

.hist-card-price {
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  font-size: 0.82rem;
  color: #39e7f5;
  margin-top: 2px;
  text-shadow: 0 0 6px rgba(57, 231, 245, 0.3);
}

.hist-card-actions {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
}

.hist-act-btn {
  flex: 1;
  padding: 4px 2px;
  font-size: 0.62rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  border: 1px solid transparent;
}

.hist-act-btn.sell {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

.hist-act-btn.sell:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.hist-act-btn.withdraw {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.6);
  color: #10b981;
}

.hist-act-btn.withdraw:hover {
  background: #10b981;
  color: #04141c;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.hist-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 16, 24, 0.96);
  border: 1px solid rgba(57, 231, 245, 0.4);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.65rem;
  color: #dcf9ff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.history-item-card:hover .hist-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.btn-hist-sell:hover {
  background: #ef4444;
  color: #fff;
}

.btn-hist-withdraw {
  flex: 1;
  padding: 4px 2px;
  font-size: 0.64rem;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-hist-withdraw:hover {
  background: #10b981;
  color: #04141c;
}

/* History Pagination */
.history-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(57, 231, 245, 0.15);
}

.p-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(8, 26, 38, 0.85);
  border: 1px solid rgba(57, 231, 245, 0.25);
  color: #8bb1bc;
  font-size: 0.78rem;
  font-family: var(--font-chakra, sans-serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.p-page-btn:hover:not(:disabled) {
  border-color: #39e7f5;
  color: #fff;
}

.p-page-btn.active {
  background: #39e7f5;
  border-color: #39e7f5;
  color: #04141c;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(57, 231, 245, 0.4);
}

.p-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* --------------------------------------------------------------------------
   4. CATEGORY NEON FRAMES & CATALOG CLEANUP
   -------------------------------------------------------------------------- */
.category-header-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 26px 0 18px;
}

.category-neon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  padding: 10px 36px;
  background: linear-gradient(90deg, transparent, rgba(57, 231, 245, 0.08), transparent);
  border-top: 1px solid rgba(57, 231, 245, 0.5);
  border-bottom: 1px solid rgba(57, 231, 245, 0.5);
}

.category-neon-frame::before,
.category-neon-frame::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 12px;
  height: calc(100% + 4px);
  border: 2px solid #39e7f5;
  pointer-events: none;
}

.category-neon-frame::before {
  left: 0;
  border-right: none;
}

.category-neon-frame::after {
  right: 0;
  border-left: none;
}

.category-neon-frame.mini {
  padding: 6px 20px;
}

.category-neon-title {
  margin: 0;
  font-family: var(--font-chakra, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px rgba(57, 231, 245, 0.7), 0 0 24px rgba(57, 231, 245, 0.3);
  text-align: center;
}

.category-neon-frame.mini .category-neon-title {
  font-size: 1rem;
}


/* --------------------------------------------------------------------------
   5. CASE DETAIL PAGES ENHANCEMENTS
   -------------------------------------------------------------------------- */
#caseDetailView .case-preview-icon {
  width: 100%;
  max-width: 420px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

#caseDetailView .case-preview-icon img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px rgba(57, 231, 245, 0.35));
  transition: transform 0.3s ease;
}

#caseDetailView .case-preview-icon img:hover {
  transform: scale(1.05) translateY(-4px);
}

.case-quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 18px;
  flex-wrap: wrap;
  max-width: 620px;
}

.case-quantity-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(9, 27, 39, 0.9);
  border: 1px solid rgba(57, 231, 245, 0.3);
  color: #dcf9ff;
  font-family: var(--font-chakra, sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-quantity-btn:hover {
  border-color: #39e7f5;
  background: rgba(14, 46, 66, 0.95);
  box-shadow: 0 0 12px rgba(57, 231, 245, 0.3);
}

.case-quantity-btn.active {
  background: #39e7f5;
  border-color: #39e7f5;
  color: #04141c;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(57, 231, 245, 0.5);
}

/* ==========================================================================
   6. STRICT THEME SEPARATION: CLASSIC (GOLD/ORANGE) VS CYBER (NEON CYAN)
   ========================================================================== */

/* --- Profile Hero Card in Classic Theme --- */
body:not(.theme-new) .profile-page-hero {
  background: linear-gradient(150deg, rgba(26, 32, 44, 0.95), rgba(15, 20, 28, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(245, 158, 11, 0.15);
}

body:not(.theme-new) .profile-hero-avatar-wrap {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

body:not(.theme-new) .profile-hero-avatar {
  background: #141a24;
}

body:not(.theme-new) .profile-hero-name-row h1 {
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

body:not(.theme-new) .user-role-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

body:not(.theme-new) .profile-balance-plate {
  background: rgba(22, 28, 38, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

body:not(.theme-new) .p-plate-lbl {
  color: #9ca3af;
}

body:not(.theme-new) .p-plate-val {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

body:not(.theme-new) .btn-tactical-settings {
  background: rgba(24, 30, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

body:not(.theme-new) .btn-tactical-settings:hover {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #0c0f14;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

/* --- Profile Tactical Hub (Stats, Best Drop, Promo) in Classic Theme --- */
body:not(.theme-new) .tactical-widget {
  background: linear-gradient(155deg, rgba(26, 32, 44, 0.94), rgba(15, 20, 28, 0.97));
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body:not(.theme-new) .widget-header {
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

body:not(.theme-new) .widget-header h3 {
  color: #fef3c7;
}

body:not(.theme-new) .stat-p-card {
  background: rgba(19, 24, 34, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

body:not(.theme-new) .sc-lbl {
  color: #9ca3af;
}

body:not(.theme-new) .sc-val.win {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

body:not(.theme-new) .best-drop-card {
  background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.18), rgba(20, 26, 36, 0.95) 75%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

body:not(.theme-new) .best-drop-price-tag {
  color: #ffc14b;
  text-shadow: 0 0 10px rgba(255, 193, 75, 0.5);
}

body:not(.theme-new) .best-drop-source {
  color: #9ca3af;
}

body:not(.theme-new) .promo-hint-text {
  color: #9ca3af;
}

body:not(.theme-new) .page-promo-row input,
body:not(.theme-new) .page-promo-row .input-tactical {
  background: rgba(15, 20, 28, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fff;
}

body:not(.theme-new) .page-promo-row input:focus,
body:not(.theme-new) .page-promo-row .input-tactical:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

/* --- Profile Inventory History Section in Classic Theme --- */
body:not(.theme-new) .profile-history-section {
  background: linear-gradient(160deg, rgba(26, 32, 44, 0.95), rgba(15, 20, 28, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

body:not(.theme-new) .history-section-header {
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

body:not(.theme-new) .history-count-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

body:not(.theme-new) .hist-filter-btn {
  background: rgba(20, 26, 36, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #9ca3af;
}

body:not(.theme-new) .hist-filter-btn:hover {
  border-color: #f59e0b;
  color: #fef3c7;
}

body:not(.theme-new) .hist-filter-btn.active {
  background: #f59e0b;
  color: #0c0f14;
  font-weight: 700;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

body:not(.theme-new) .history-item-card {
  background: rgba(21, 27, 37, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

body:not(.theme-new) .history-item-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.32);
}

body:not(.theme-new) .hist-card-weapon {
  color: #9ca3af;
}

body:not(.theme-new) .hist-card-wear {
  color: #6b7280;
}

body:not(.theme-new) .hist-card-price {
  color: #f59e0b;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

body:not(.theme-new) .hist-hover-tooltip {
  background: rgba(18, 24, 34, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef3c7;
}

body:not(.theme-new) .history-pagination-bar {
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

body:not(.theme-new) .p-page-btn {
  background: rgba(20, 26, 36, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #9ca3af;
}

body:not(.theme-new) .p-page-btn:hover:not(:disabled) {
  border-color: #f59e0b;
  color: #fff;
}

body:not(.theme-new) .p-page-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0c0f14;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* --- Category Neon Frames in Classic Theme --- */
body:not(.theme-new) .category-neon-frame {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.12), transparent);
  border-top: 1px solid rgba(245, 158, 11, 0.55);
  border-bottom: 1px solid rgba(245, 158, 11, 0.55);
}

body:not(.theme-new) .category-neon-frame::before,
body:not(.theme-new) .category-neon-frame::after {
  border: 2px solid #f59e0b;
}

body:not(.theme-new) .category-neon-title {
  color: #fff;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.7), 0 0 26px rgba(245, 158, 11, 0.35);
}

/* --- Case Catalog & Detail Views in Classic Theme --- */
body:not(.theme-new) .case-category-btn {
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #9ca3af;
}

body:not(.theme-new) .case-category-btn:hover {
  border-color: #f59e0b;
  color: #fef3c7;
}

body:not(.theme-new) .case-category-btn.active {
  background: #f59e0b;
  color: #0c0f14;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
  font-weight: 700;
}

body:not(.theme-new) #caseDetailView .case-preview-icon img {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px rgba(245, 158, 11, 0.35));
}

body:not(.theme-new) .case-quantity-btn {
  background: rgba(22, 28, 40, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fef3c7;
}

body:not(.theme-new) .case-quantity-btn:hover {
  border-color: #f59e0b;
  background: rgba(30, 40, 56, 0.95);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

body:not(.theme-new) .case-quantity-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0c0f14;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

/* ==========================================================
   DEPOSIT PAGE STYLES (GATEWAY & САМОЗАНЯТЫЙ)
   ========================================================== */
.deposit-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Hero Banner */
.deposit-hero-banner {
  background: linear-gradient(135deg, rgba(22, 28, 42, 0.95) 0%, rgba(12, 16, 24, 0.98) 100%);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 18px;
  padding: 32px 36px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.deposit-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold, #f5c400), transparent);
}

.deposit-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 196, 0, 0.12);
  border: 1px solid rgba(245, 196, 0, 0.3);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-gold, #f5c400);
  margin-bottom: 12px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold, #f5c400);
  box-shadow: 0 0 6px var(--accent-gold, #f5c400);
  animation: pulseDot 2s infinite;
}

.deposit-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.15;
}

.deposit-hero-title .highlight {
  color: var(--accent-gold, #f5c400);
  text-shadow: 0 0 16px rgba(245, 196, 0, 0.4);
}

.deposit-hero-desc {
  font-size: 0.92rem;
  color: #a0aec0;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

.deposit-hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

.deposit-feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.pill-icon {
  font-size: 1.25rem;
}

.deposit-feature-pill strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.2;
}

.deposit-feature-pill small {
  font-size: 0.72rem;
  color: #718096;
}

/* Two-Column Grid */
.deposit-layout-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Cards on Left */
.deposit-step-card {
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.deposit-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 196, 0, 0.15);
  border: 1px solid rgba(245, 196, 0, 0.35);
  color: var(--accent-gold, #f5c400);
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deposit-step-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
}

.deposit-step-header small {
  font-size: 0.8rem;
  color: #718096;
}

/* Presets Grid */
.deposit-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.deposit-preset-btn {
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deposit-preset-btn:hover {
  border-color: rgba(245, 196, 0, 0.5);
  background: rgba(26, 32, 48, 0.9);
  transform: translateY(-2px);
}

.deposit-preset-btn.active {
  background: rgba(245, 196, 0, 0.16);
  border-color: var(--accent-gold, #f5c400);
  box-shadow: 0 0 16px rgba(245, 196, 0, 0.25);
}

.preset-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.deposit-preset-btn.active .preset-amount {
  color: var(--accent-gold, #f5c400);
}

.preset-desc {
  font-size: 0.72rem;
  color: #718096;
  margin-top: 4px;
}

.preset-bonus {
  font-size: 0.68rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.preset-tag {
  position: absolute;
  top: -8px;
  right: -6px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* Custom Input */
.deposit-custom-input-wrap {
  background: rgba(12, 16, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
}

.deposit-input-label {
  display: block;
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 8px;
}

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

.deposit-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  padding: 4px 30px 4px 0;
  outline: none;
}

.currency-suffix {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-gold, #f5c400);
}

/* Payment Methods */
.payment-methods-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.payment-method-tile input[type="radio"] {
  display: none;
}

.payment-method-tile:hover {
  border-color: rgba(245, 196, 0, 0.4);
  background: rgba(20, 26, 40, 0.85);
}

.payment-method-tile.active {
  background: rgba(245, 196, 0, 0.08);
  border-color: var(--accent-gold, #f5c400);
  box-shadow: 0 4px 20px rgba(245, 196, 0, 0.15);
}

.tile-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tile-content {
  flex-grow: 1;
}

.tile-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.tile-name {
  font-size: 0.95rem;
  color: #fff;
}

.tile-provider-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(245, 196, 0, 0.15);
  color: var(--accent-gold, #f5c400);
  padding: 2px 7px;
  border-radius: 6px;
}

.tile-sub {
  display: block;
  font-size: 0.78rem;
  color: #718096;
  margin-bottom: 6px;
}

.card-logos-row {
  display: flex;
  gap: 6px;
}

.card-chip {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #cbd5e1;
}

.sbp-chip {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tile-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
}

.payment-method-tile.active .tile-check {
  background: var(--accent-gold, #f5c400);
  border-color: var(--accent-gold, #f5c400);
  color: #0c0f14;
  font-weight: 900;
}

/* Summary Card */
.checkout-breakdown {
  background: rgba(12, 16, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  color: #a0aec0;
}

.breakdown-row strong {
  color: #fff;
  font-size: 0.95rem;
}

.breakdown-row.bonus-row .bonus-highlight {
  color: #10b981;
}

.breakdown-row.total-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 0.98rem;
}

.breakdown-row.total-row .total-gold {
  color: var(--accent-gold, #f5c400);
  font-size: 1.35rem;
  font-weight: 900;
}

.deposit-promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.deposit-promo-row input {
  flex-grow: 1;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.btn-apply-promo {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply-promo:hover {
  background: rgba(255, 255, 255, 0.16);
}

.deposit-terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.45;
  cursor: pointer;
}

.deposit-terms-checkbox a {
  color: var(--accent-gold, #f5c400);
  text-decoration: underline;
}

.btn-deposit-action {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f5c400, #ff9f1c);
  border: none;
  border-radius: 14px;
  color: #0c0f14;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(245, 196, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-deposit-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 196, 0, 0.45);
}

.btn-action-amount {
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

.deposit-security-foot {
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 14px;
}

/* Compliance Cards on Right */
.compliance-card {
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.compliance-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comp-icon {
  font-size: 1.25rem;
}

.compliance-card-head h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.requisites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  padding: 4px 0;
}

.req-label {
  color: #718096;
}

.req-value {
  color: #e2e8f0;
  font-weight: 600;
}

.req-link {
  color: var(--accent-gold, #f5c400);
  text-decoration: none;
}

.req-link:hover {
  text-decoration: underline;
}

.highlight-req {
  background: rgba(245, 196, 0, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(245, 196, 0, 0.35);
}

.req-inn {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-gold, #f5c400);
  letter-spacing: 1px;
}

.comp-text {
  font-size: 0.84rem;
  color: #a0aec0;
  line-height: 1.5;
  margin: 0 0 12px;
}

.comp-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-steps-list li {
  background: rgba(12, 16, 24, 0.6);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-steps-list strong {
  display: block;
  font-size: 0.84rem;
  color: #fff;
  margin-bottom: 2px;
}

.comp-steps-list span {
  font-size: 0.76rem;
  color: #718096;
  line-height: 1.45;
  display: block;
}

.comp-faq-item {
  margin-bottom: 12px;
}

.comp-faq-item strong {
  display: block;
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.comp-faq-item p {
  font-size: 0.77rem;
  color: #718096;
  line-height: 1.5;
  margin: 0;
}

.comp-faq-item a {
  color: var(--accent-gold, #f5c400);
}

.btn-read-offer {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-read-offer:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Legal Modal */
.legal-modal-card {
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-modal-body {
  overflow-y: auto;
  max-height: 60vh;
  padding: 24px;
}

.legal-doc-content h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px;
  text-align: center;
}

.doc-date {
  font-size: 0.78rem;
  color: #718096;
  text-align: center;
  margin: 0 0 20px;
}

.legal-doc-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold, #f5c400);
  margin: 20px 0 8px;
}

.legal-doc-content p {
  font-size: 0.84rem;
  color: #a0aec0;
  line-height: 1.6;
  margin: 0 0 10px;
}

.offer-requisites-block {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.offer-requisites-block p {
  margin: 4px 0;
  font-size: 0.85rem;
}

.deposit-requisites-micro {
  text-align: center;
  font-size: 0.74rem;
  color: #718096;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deposit-requisites-micro strong {
  color: var(--accent-gold, #f5c400);
}

.modal-deposit-quick-form {
  margin-top: 14px;
}

.modal-dep-label {
  display: block;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.modal-dep-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-quick-amt {
  flex: 1;
  padding: 8px 4px;
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick-amt.active, .btn-quick-amt:hover {
  background: rgba(245, 196, 0, 0.15);
  border-color: var(--accent-gold, #f5c400);
  color: var(--accent-gold, #f5c400);
}

.modal-dep-input-row {
  display: flex;
  align-items: center;
  background: rgba(12, 16, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.modal-dep-input-row input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  outline: none;
}

.modal-dep-input-row span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold, #f5c400);
}

.modal-gateway-methods-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.yoo-method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(14, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.yoo-m-icon {
  font-size: 1.2rem;
}

.yoo-m-text {
  flex-grow: 1;
}

.yoo-m-text b {
  display: block;
  font-size: 0.84rem;
  color: #fff;
}

.yoo-m-text small {
  font-size: 0.72rem;
  color: #718096;
}

.yoo-m-check {
  color: #10b981;
  font-weight: 900;
  font-size: 0.9rem;
}

.btn-open-deposit-page {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f5c400, #ff9f1c);
  border: none;
  border-radius: 10px;
  color: #0c0f14;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-open-deposit-page:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 196, 0, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .deposit-layout-grid {
    grid-template-columns: 1fr;
  }
  .deposit-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================
   CYBER THEME DEPOSIT OVERRIDES (.theme-new)
   ========================================================== */
.theme-new .deposit-hero-banner {
  background: linear-gradient(135deg, rgba(8, 24, 38, 0.95) 0%, rgba(3, 12, 20, 0.98) 100%);
  border-color: rgba(57, 231, 245, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(57, 231, 245, 0.08);
}

.theme-new .deposit-hero-banner::before {
  background: linear-gradient(90deg, transparent, #39e7f5, transparent);
}

.theme-new .deposit-hero-badge {
  background: rgba(57, 231, 245, 0.12);
  border-color: rgba(57, 231, 245, 0.35);
  color: #39e7f5;
}

.theme-new .badge-dot {
  background: #39e7f5;
  box-shadow: 0 0 6px #39e7f5;
}

.theme-new .deposit-hero-title .highlight {
  color: #39e7f5;
  text-shadow: 0 0 16px rgba(57, 231, 245, 0.45);
}

.theme-new .step-num {
  background: rgba(57, 231, 245, 0.15);
  border-color: rgba(57, 231, 245, 0.35);
  color: #39e7f5;
}

.theme-new .deposit-preset-btn.active {
  background: rgba(57, 231, 245, 0.16);
  border-color: #39e7f5;
  box-shadow: 0 0 16px rgba(57, 231, 245, 0.25);
}

.theme-new .deposit-preset-btn.active .preset-amount {
  color: #39e7f5;
}

.theme-new .currency-suffix {
  color: #39e7f5;
}

.theme-new .payment-method-tile.active {
  background: rgba(57, 231, 245, 0.1);
  border-color: #39e7f5;
  box-shadow: 0 4px 20px rgba(57, 231, 245, 0.2);
}

.theme-new .tile-provider-badge {
  background: rgba(57, 231, 245, 0.15);
  color: #39e7f5;
}

.theme-new .payment-method-tile.active .tile-check {
  background: #39e7f5;
  border-color: #39e7f5;
  color: #04141c;
}

.theme-new .breakdown-row.total-row .total-gold {
  color: #39e7f5;
  text-shadow: 0 0 10px rgba(57, 231, 245, 0.35);
}

.theme-new .btn-deposit-action {
  background: linear-gradient(135deg, #00d4ff, #0077ff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
}

.theme-new .btn-deposit-action:hover {
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.5);
}

.theme-new .highlight-req {
  background: rgba(57, 231, 245, 0.08);
  border-color: rgba(57, 231, 245, 0.35);
}

.theme-new .req-inn {
  color: #39e7f5;
}

.theme-new .req-link {
  color: #39e7f5;
}

.theme-new .legal-doc-content h4 {
  color: #39e7f5;
}

.theme-new .deposit-terms-checkbox a {
  color: #39e7f5;
}

.theme-new .btn-quick-amt.active, .theme-new .btn-quick-amt:hover {
  background: rgba(57, 231, 245, 0.15);
  border-color: #39e7f5;
  color: #39e7f5;
}

.theme-new .modal-dep-input-row span {
  color: #39e7f5;
}

.theme-new .btn-open-deposit-page {
  background: linear-gradient(135deg, #00d4ff, #0077ff);
  color: #fff;
}