﻿:root {
  /* iOS 26 Neutral Titanium & Liquid Metallic Grey */
  --bg-root: #030304;
  --bg-shell: transparent;
  --bg-sidebar: linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 20, 23, 0.36) 55%, rgba(10, 10, 13, 0.44) 100%);
  --bg-bar: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(22, 22, 26, 0.38) 100%);
  --bg-surface: linear-gradient(155deg, rgba(36, 36, 42, 0.60) 0%, rgba(15, 15, 19, 0.74) 100%);
  --bg-card: linear-gradient(150deg, rgba(255, 255, 255, 0.048) 0%, rgba(20, 20, 24, 0.28) 54%, rgba(255, 255, 255, 0.014) 100%);
  --bg-card-hover: linear-gradient(150deg, rgba(255, 255, 255, 0.088) 0%, rgba(32, 32, 38, 0.38) 56%, rgba(255, 255, 255, 0.032) 100%);
  --bg-elevated: rgba(24, 24, 28, 0.72);
  --bg-input: rgba(255, 255, 255, 0.042);

  --glass-blur: blur(34px) saturate(125%) brightness(1.04);
  --glass-card-blur: blur(26px) saturate(120%) brightness(1.03);
  --glass-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);

  --border-subtle: rgba(255, 255, 255, 0.105);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-strong: rgba(255, 255, 255, 0.36);

  --accent-primary: #b8bac2;
  --accent-bright: #e4e6eb;
  --accent-soft: #f5f5f7;
  --accent-deep: #5e6068;
  --accent-glow: rgba(210, 212, 220, 0.16);

  --text-main: #f5f5f7;
  --text-secondary: #b0b3bc;
  --text-muted: #8d909a;

  --success-color: #4ade80;
  --danger-color: #e06c7a;
  --star-color: #d4d6dc;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 13px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: auto;
}

[hidden] {
  display: none !important;
}

body {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-root);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.56);
  outline-offset: 2px;
}

/* Custom Neutral Graphite Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #070709;
}
::-webkit-scrollbar-thumb {
  background: #2b2c32;
  border-radius: 99px;
  border: 2px solid #070709;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b4d56;
}

/* Deep Obsidian Metallic Grey Studio Backdrop */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 115% 80% at 50% 45%, transparent 34%, rgba(1, 1, 2, 0.88) 100%),
    radial-gradient(circle at 16% 16%, rgba(185, 188, 196, 0.055), transparent 44%),
    radial-gradient(circle at 86% 24%, rgba(155, 158, 166, 0.045), transparent 42%),
    radial-gradient(circle at 48% 92%, rgba(165, 168, 176, 0.05), transparent 50%),
    linear-gradient(170deg, #030304 0%, #09090b 48%, #020203 100%);
}

.ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 230px at var(--bg-mx, 50%) var(--bg-my, 40%),
    rgba(220, 222, 228, 0.045),
    rgba(165, 168, 176, 0.018) 45%,
    rgba(130, 132, 140, 0.005) 72%,
    transparent 100%
  );
  transition: opacity 0.25s ease;
}

.topo-bg {
  display: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.26;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7a7d86, transparent 70%);
  top: -160px;
  left: -110px;
}

.orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #5e6068, transparent 70%);
  top: 22%;
  right: -130px;
  animation-delay: -6s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #686b74, transparent 70%);
  bottom: -160px;
  left: 36%;
  animation-delay: -11s;
}

@keyframes orbDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, 22px, 0) scale(1.07); }
}

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

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalEaseIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.96;
}

/* =====================================
   DDOS GUARD REACT + THINKING SPHERE OVERLAY
   ===================================== */
.ddos-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 3, 4, 0.88);
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
  display: grid;
  place-items: center;
  padding: 20px;
}

.ddos-guard-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72), var(--glass-inset);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ddos-sphere-stage {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.045) 0%, rgba(5, 5, 7, 0.65) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.ddos-sphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  color: var(--text-main);
  touch-action: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

.ddos-sphere-canvas:active {
  cursor: grabbing;
}

.ddos-sphere-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.ddos-guard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ddos-shield-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ddos-guard-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.ddos-guard-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.48;
}

.ddos-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ddos-tel-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ddos-tel-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.ddos-tel-item strong {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-main);
}

.ddos-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ddos-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), #ffffff);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.ddos-verify-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(0, 0, 0, 0.20) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.36),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.30),
    inset 0 -2px 3px rgba(0, 0, 0, 0.40);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.24s var(--ease-spring), box-shadow 0.2s ease;
}

.ddos-verify-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(0, 0, 0, 0.16) 100%);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1.5px) scale(1.015);
}

.ddos-verify-btn:active:not(:disabled) {
  transform: scale(1.03, 0.965);
}

.ddos-verify-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ev-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #09090b;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ev-checkbox.is-checked {
  background: var(--accent-primary);
  border-color: var(--accent-soft);
}

.ddos-guard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-muted);
}

/* =====================================
   FLOATING LIQUID GLASS LAYOUT SHELL
   ===================================== */
.app-shell {
  position: relative;
  z-index: 2;
  max-width: 1420px;
  width: calc(100% - 36px);
  min-height: 0;
  margin: 14px auto 24px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  background: transparent;
  border: none;
  box-shadow: none;
}

.app-shell.is-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 921px) {
  .app-shell.is-no-sidebar .sidebar {
    display: none;
  }
}

/* Floating iOS 26 Liquid Glass Catalog Sidebar */
.sidebar {
  position: sticky;
  top: 18px;
  height: auto;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: var(--bg-sidebar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--glass-inset);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  min-height: 22px;
}

.sidebar-panel-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
}

.sidebar-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-sub {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.close-sidebar-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}

.sidebar-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  height: 35px;
  padding: 0 10px;
  gap: 8px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sidebar-search:focus-within {
  border-color: var(--accent-primary);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}

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

.search-kbd {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1px 6px;
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  width: 100%;
}

.main-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 99px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-inset);
  touch-action: none;
  flex-shrink: 0;
  max-width: 100%;
}

.main-nav.is-scrubbing,
.game-switcher.is-scrubbing,
.sort-tabs.is-scrubbing,
.view-toggle.is-scrubbing,
.arcade-tabs.is-scrubbing {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}

.nav-glass-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 84px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.34),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.32);
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1);
  transition: transform 0.34s var(--ease-spring), width 0.30s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  pointer-events: none;
  z-index: 0;
}

.main-nav.is-scrubbing .nav-glass-thumb {
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1.06, 1.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.09) 52%, rgba(255, 255, 255, 0.18) 100%);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    inset 0 2px 2px rgba(255, 255, 255, 0.62),
    inset 0 -2px 3px rgba(255, 255, 255, 0.20);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link {
  position: relative;
  z-index: 1;
  width: auto;
  height: 32px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s ease, background 0.16s ease, transform 0.22s var(--ease-spring);
}

.nav-link:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.active,
.nav-link.is-scrub-hover {
  color: #fff;
  font-weight: 600;
}

.nav-link:active {
  transform: scale(0.975);
}

.nav-link.is-locked {
  opacity: 0.72;
}

.nav-link.is-locked::after {
  content: "";
  margin-left: 1px;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background-color: var(--text-muted);
  opacity: 0.88;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='3'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='3'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.nav-link.is-locked:hover::after {
  background-color: var(--text-secondary);
  opacity: 1;
}

.nav-badge {
  margin-left: -1px;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.055);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Sidebar Filters */
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-filters[hidden] {
  display: none;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.panel-value {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-main);
}

.clear-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
}

.clear-link:hover {
  color: var(--text-main);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--accent-bright) 0%,
    var(--accent-bright) var(--slider-pct, 100%),
    rgba(255, 255, 255, 0.12) var(--slider-pct, 100%),
    rgba(255, 255, 255, 0.12) 100%
  );
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f1f3f7;
  border: 2px solid var(--accent-deep);
  cursor: pointer;
}

.range-wrap {
  padding: 2px 0 4px;
}

.tag-cloud {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Evenesce square checkbox feature rows */
.tag-chip {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.048);
  color: var(--text-main);
}

.ev-check-box {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.20);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tag-chip.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.14);
}

.tag-chip.active .ev-check-box {
  background: var(--accent-primary);
  border-color: var(--accent-soft);
}

.tag-chip.active .ev-check-box::after {
  content: "✓";
  font-size: 10px;
  font-weight: 800;
  color: #0b0b0e;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-bottom {
  padding: 0;
}

.sidebar-admin-btn {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sidebar-admin-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
}

/* =====================================
   FULL-WIDTH SITE HEADER & WORKSPACE
   ===================================== */
.site-header {
  position: relative;
  z-index: 25;
  width: 100%;
  background: var(--bg-bar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.site-header-inner {
  max-width: 1420px;
  width: calc(100% - 36px);
  margin: 0 auto;
  min-height: 62px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

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

.header-admin-btn[hidden] {
  display: none;
}

.workspace-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.mobile-filter-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  white-space: nowrap;
  padding: 0 2px;
}

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

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

.bc-current {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Mode Switcher */
.game-switcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-inset);
  padding: 3px;
  border-radius: 99px;
  height: 36px;
  touch-action: none;
}

.switcher-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.34),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.32);
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1);
  transition: transform 0.34s var(--ease-spring), width 0.30s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

.game-switcher.is-scrubbing .switcher-thumb,
.sort-tabs.is-scrubbing .sort-thumb,
.view-toggle.is-scrubbing .view-thumb,
.arcade-tabs.is-scrubbing .arcade-thumb {
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1.06, 1.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.09) 52%, rgba(255, 255, 255, 0.18) 100%);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    inset 0 2px 2px rgba(255, 255, 255, 0.62),
    inset 0 -2px 3px rgba(255, 255, 255, 0.20);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.game-pill {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease;
}

.game-pill.active,
.game-pill.is-scrub-hover {
  color: #fff;
}

.icon-btn,
.lang-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-inset);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.24s var(--ease-spring);
}

.icon-btn {
  width: 36px;
  padding: 0;
}

.icon-btn:hover,
.lang-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(0, 0, 0, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  transform: translateY(-1.5px) scale(1.025);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.44),
    inset 0 -2px 3px rgba(0, 0, 0, 0.44);
}

.icon-btn.active {
  color: var(--accent-soft);
  border-color: var(--border-hover);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
}

/* Discord OAuth Button */
.discord-auth-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--border-hover);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0.18) 100%);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.32),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.30),
    inset 0 -2px 3px rgba(0, 0, 0, 0.42);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.26s var(--ease-spring), box-shadow 0.22s ease;
}

.discord-auth-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(0, 0, 0, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.40);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.48),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.46),
    inset 0 -2px 4px rgba(0, 0, 0, 0.44);
}

.discord-auth-btn.connected {
  border-color: rgba(74, 222, 128, 0.35);
  color: #b7f4cb;
}

/* Profile Avatar + Balance Pill */
.profile-wallet {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 6px 3px 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  box-shadow: var(--glass-inset);
}

.profile-avatar-btn,
.profile-name-btn,
.wallet-inline-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.profile-avatar-btn {
  display: inline-flex;
  border-radius: 50%;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d1e22;
  border: 1px solid var(--border-hover);
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.profile-avatar.ds-connected::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
  border: 1.5px solid #16161c;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar.has-admin-crown,
.profile-modal-avatar.has-admin-crown {
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.admin-crown {
  position: absolute;
  top: -13px;
  left: 62%;
  width: 24px;
  height: 17px;
  transform: translateX(-50%) rotate(17deg);
  transform-origin: center 85%;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.24));
  transition: transform 0.28s var(--ease-spring);
}

.profile-avatar-btn:hover .admin-crown {
  transform: translateX(-50%) rotate(22deg) translateY(-1.5px) scale(1.06);
}

.profile-modal-avatar .admin-crown {
  top: -23px;
  left: 61%;
  width: 42px;
  height: 29px;
  transform: translateX(-50%) rotate(16deg);
}

.admin-crown svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-name-btn:hover .profile-name {
  color: #fff;
}

.wallet-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px 10px;
  border-left: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1;
  min-width: 64px;
  transition: color 0.18s ease;
}

.wallet-inline-btn:hover {
  color: #ffffff;
}

.balance-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.balance-currency {
  color: var(--text-secondary);
  font-size: 11px;
}

.balance-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-left: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wallet-inline-btn:hover .balance-plus {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.42);
}

.balance-plus-txt {
  font-weight: 600;
}

/* Reusable Volumetric iOS 26 Liquid Glass Buttons */
.btn-primary,
.btn-secondary,
.discord-auth-btn,
.icon-btn,
.lang-btn,
.empty-slot-fill-btn,
.sidebar-admin-btn,
.card-action-btn,
.role-buy-btn,
.profile-tab {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(140%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.06);
}

.btn-primary::before,
.btn-secondary::before,
.discord-auth-btn::before,
.icon-btn::before,
.lang-btn::before,
.empty-slot-fill-btn::before,
.sidebar-admin-btn::before,
.card-action-btn::before,
.role-buy-btn::before,
.profile-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 72px at var(--lx, 50%) var(--ly, 22%),
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.06) 52%,
    transparent 82%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.discord-auth-btn:hover::before,
.icon-btn:hover::before,
.lang-btn:hover::before,
.empty-slot-fill-btn:hover::before,
.sidebar-admin-btn:hover::before,
.card-action-btn:hover::before,
.role-buy-btn:hover::before,
.profile-tab:hover::before {
  opacity: 1;
}

.btn-primary,
.btn-secondary {
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.28s var(--ease-spring), box-shadow 0.24s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #f2f3f6 0%, #c8cad2 55%, #b4b7c0 100%);
  color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.38),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #d9dbe2 58%, #c6c8d0 100%);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.48),
    inset 0 2px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.20);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.22) 100%);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.34),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.28),
    inset 0 -2px 3px rgba(0, 0, 0, 0.44);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 52%, rgba(0, 0, 0, 0.16) 100%);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.48),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.44),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45);
}

.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.discord-auth-btn:active,
.icon-btn:active,
.lang-btn:active,
.empty-slot-fill-btn:active,
.sidebar-admin-btn:active,
.card-action-btn:active,
.role-buy-btn:active,
.profile-tab:active {
  transform: scale(1.04, 0.955);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.50),
    inset 0 2px 2px rgba(255, 255, 255, 0.56),
    inset 0 -2px 3px rgba(255, 255, 255, 0.18);
}

.danger-outline {
  border-color: rgba(224, 95, 111, 0.38);
  color: #f3a1ab;
}

.danger-outline:hover {
  border-color: var(--danger-color);
  background: rgba(224, 95, 111, 0.14);
}

/* =====================================
   MAIN CONTENT SECTIONS
   ===================================== */
.market-main {
  flex: 1 0 auto;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-section[hidden],
.games-section[hidden],
.roles-section[hidden],
.game-pane[hidden] {
  display: none;
}

.market-section,
.games-section,
.roles-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translate3d(var(--swipe-x, 0px), 0, 0);
  transition: transform 0.34s var(--ease-spring);
  animation: panelFadeIn 0.34s var(--ease-smooth) both;
}

.market-section.is-workspace-swiping,
.games-section.is-workspace-swiping,
.roles-section.is-workspace-swiping {
  transition: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}

.hero-banner,
.games-header-card,
.roles-header-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card), var(--glass-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-banner::before,
.games-header-card::before,
.roles-header-card::before,
.market-card-empty::before,
.market-card::before,
.role-card::before,
.arcade-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 180px at var(--mx, 50%) var(--my, 20%),
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.015) 50%,
    transparent 85%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-banner:hover::before,
.games-header-card:hover::before,
.roles-header-card:hover::before,
.market-card-empty:hover::before,
.market-card:hover::before,
.role-card:hover::before,
.arcade-panel:hover::before {
  opacity: 1;
}

.hero-content,
.roles-header-copy {
  min-width: 0;
  flex: 1 1 260px;
}

.hero-banner h1,
.games-header-card h2,
.roles-header-card h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--text-main);
  margin-bottom: 5px;
}

.hero-banner p,
.games-header-card p,
.roles-header-card p {
  font-size: 13px;
  text-wrap: pretty;
  color: var(--text-secondary);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hero-meta strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-inset);
  padding: 4px;
  border-radius: 99px;
  flex-wrap: wrap;
  touch-action: none;
}

.sort-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 80px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.34),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.32);
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1);
  transition: transform 0.34s var(--ease-spring), width 0.30s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

.sort-tab {
  position: relative;
  z-index: 1;
  height: 30px;
  padding: 0 13px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease;
}

.sort-tab.active,
.sort-tab.is-scrub-hover {
  color: #fff;
}

.view-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-inset);
  padding: 4px;
  border-radius: 99px;
  touch-action: none;
}

.view-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.32),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.34);
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.view-btn {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.22s var(--ease-spring);
}

.view-btn.active,
.view-btn.is-scrub-hover {
  color: #fff;
}

.active-filters-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

.filter-pill button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

/* =====================================
   MARKET GRID (Empty Windows + Filled Cards)
   ===================================== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.market-grid.list-view {
  grid-template-columns: 1fr;
}

/* Empty Placeholder Window (Minimal Showcase Vitrine) */
.market-card-empty {
  position: relative;
  overflow: hidden;
  min-height: 204px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--glass-inset);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: cardReveal 0.4s var(--ease-smooth) both;
  transition: transform 0.34s var(--ease-spring), border-color 0.22s ease, background 0.22s ease;
}

.market-grid.list-view .market-card-empty {
  min-height: 76px;
  flex-direction: row;
  justify-content: flex-end;
}

.market-card-empty:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.empty-slot-num {
  position: absolute;
  top: 15px;
  left: 17px;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.26);
  transition: color 0.2s ease;
}

.market-card-empty:hover .empty-slot-num {
  color: rgba(255, 255, 255, 0.46);
}

.market-grid.list-view .empty-slot-num {
  position: static;
  margin-right: auto;
}

.empty-slot-fill-btn {
  height: 34px;
  padding: 0 15px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid var(--border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.24s var(--ease-spring), color 0.18s ease;
}

.empty-slot-fill-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #09090b;
  transform: translateY(-1px);
}

/* Populated Product Cards (when Admin fills slots) */
.market-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--glass-inset);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.34s var(--ease-spring), box-shadow 0.28s ease;
}

.market-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.market-grid.list-view .market-card {
  flex-direction: row;
}

.card-banner {
  position: relative;
  height: 118px;
  background: #121318;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
}

.market-grid.list-view .card-banner {
  width: 210px;
  height: auto;
  border-bottom: none;
  border-right: 1px solid var(--border-subtle);
}

.card-banner-art {
  width: 100%;
  height: 100%;
  display: block;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.type-badge,
.game-badge-pill,
.code-pill {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(14, 15, 19, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.code-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(14, 15, 19, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fav-btn.active {
  color: var(--danger-color);
  border-color: rgba(224, 95, 111, 0.45);
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.owned-pill {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(74, 222, 128, 0.14);
  color: var(--success-color);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.author-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.verified-icon {
  color: var(--accent-soft);
  display: inline-flex;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-tag {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 2px 7px;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: auto;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.price-tag {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.card-action-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border-hover);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.card-action-btn:hover {
  background: var(--accent-primary);
  color: #0b0b0e;
}

.empty-state {
  text-align: center;
  padding: 46px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* =====================================
   GAMES SECTION (Calm Matte Evenesce)
   ===================================== */
.arcade-tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-inset);
  padding: 3px;
  border-radius: 99px;
  touch-action: none;
}

.arcade-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: 80px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.34),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.32);
  transform: translate3d(var(--tx, 0px), 0, 0) scale(1);
  transition: transform 0.34s var(--ease-spring), width 0.30s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

.arcade-tab {
  position: relative;
  z-index: 1;
  height: 32px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease;
}

.arcade-tab.active,
.arcade-tab.is-scrub-hover {
  color: #fff;
}

.arcade-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.arcade-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--glass-inset);
  padding: 18px;
}

.bet-balance-hint {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--accent-soft);
}

.bet-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 6px 5px 12px;
  margin: 10px 0 12px;
}

.bet-input-row input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  min-width: 0;
}

.bet-quick-mults {
  display: flex;
  gap: 4px;
}

.bet-mini-btn,
.bet-preset {
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: #1d1f28;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bet-mini-btn:hover,
.bet-preset:hover {
  border-color: var(--accent-primary);
  color: #fff;
}

.bet-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.arcade-history-wrap {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.arcade-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hist-chip {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.hist-chip.win {
  color: var(--success-color);
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.hist-chip.loss {
  color: var(--text-muted);
  background: var(--bg-input);
}

.game-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arcade-play-btn {
  width: 100%;
  height: 42px;
}

/* Roulette */
.roulette-viewport {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.roulette-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
}

.roulette-track {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 6px;
  will-change: transform;
}

.r-tile {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.r-tile.violet {
  background: #526178;
  color: #fff;
}

.r-tile.obsidian {
  background: #1a1c24;
  color: var(--text-secondary);
}

.r-tile.zero {
  background: #8a7344;
  color: #fff;
}

.roulette-bets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.r-bet-btn,
.coin-pick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.r-bet-btn.active,
.coin-pick-btn.active {
  background: #1f222c;
  border-color: var(--accent-primary);
  color: #fff;
}

.r-swatch,
.coin-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.r-swatch { background: #647692; }
.r-bet-btn.r-zero .r-swatch { background: #b29356; }
.r-bet-btn.r-obsidian .r-swatch { background: #262934; }
.coin-dot.heads { background: var(--accent-primary); }
.coin-dot.tails { background: #2c303d; }

/* Coinflip */
.coin-stage {
  height: 140px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.coin-3d {
  width: 96px;
  height: 96px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 800;
  border: 2px solid var(--border-hover);
}

.coin-front {
  background: #526178;
  color: #fff;
}

.coin-back {
  background: #1b1d26;
  color: var(--accent-soft);
  transform: rotateY(180deg);
}

.coin-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* =====================================
   DISCORD ROLES SECTION (Calm Matte)
   ===================================== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: var(--glass-card-blur);
  -webkit-backdrop-filter: var(--glass-card-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card), var(--glass-inset);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cardReveal 0.42s var(--ease-smooth) both;
  transition: transform 0.34s var(--ease-spring), border-color 0.24s ease, box-shadow 0.28s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--role-color, #9a9ea8) 45%, rgba(255, 255, 255, 0.16));
  background: var(--bg-card-hover);
}

.role-card.is-popular {
  border-color: rgba(212, 181, 114, 0.35);
}

.role-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.discord-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--role-color, var(--accent-soft));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--role-color, var(--accent-primary));
}

.role-tier-tag {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.role-tier-tag.popular {
  color: #e2c785;
  border-color: rgba(226, 199, 133, 0.35);
}

.role-tier-tag.owned {
  color: var(--success-color);
  border-color: rgba(74, 222, 128, 0.35);
}

.role-title-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.role-title-block p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.role-chat-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.rcp-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: #252834;
}

.rcp-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rcp-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rcp-nick {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--role-color, #e4e7ee);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rcp-chip {
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.rcp-msg {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: auto;
}

.role-perks li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.role-perks li::before {
  content: "✓";
  color: var(--accent-soft);
  font-weight: 700;
}

.role-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.role-price-wrap {
  display: flex;
  flex-direction: column;
}

.role-price-val {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.role-price-term {
  font-size: 11px;
  color: var(--text-muted);
}

.role-buy-btn {
  height: 36px;
  padding: 0 15px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--role-color, #9a9ea8) 42%, rgba(255, 255, 255, 0.12));
  background: linear-gradient(135deg, color-mix(in srgb, var(--role-color, #9a9ea8) 24%, #1a1a1f), rgba(22, 22, 27, 0.90));
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.24s var(--ease-spring), background 0.2s ease, color 0.18s ease, border-color 0.2s ease;
}

.role-buy-btn:hover {
  background: var(--role-color, var(--accent-primary));
  color: #090b10;
  transform: translateY(-2px);
}

.role-buy-btn.owned {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--success-color);
}

/* =====================================
   SIDEBAR SOCIAL LINKS & VERSION
   ===================================== */
.social-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 3px;
  padding: 3px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 5px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.footer-note {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* =====================================
   MODALS (DETAIL, DISCORD, PROFILE, ADMIN)
   ===================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72), var(--glass-inset);
  animation: modalEaseIn 0.26s var(--ease-spring) both;
}

.modal-discord {
  max-width: 440px;
}

.modal-profile,
.modal-admin {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--border-hover);
}

.modal-header-simple {
  margin-bottom: 16px;
  padding-right: 40px;
}

.modal-header-simple h2 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 4px;
}

.modal-header-simple p {
  font-size: 13px;
  color: var(--text-secondary);
}

.publish-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 11px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Profile Modal Specific */
.profile-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 46px 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.profile-modal-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-modal-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1d1e22;
  border: 1.5px solid var(--border-hover);
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.profile-modal-avatar.ds-connected::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--success-color);
  border: 2px solid #15151b;
}

.profile-modal-meta h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.profile-modal-dsid {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 9px;
  width: fit-content;
}

.profile-modal-dsid.connected {
  color: var(--accent-soft);
  border-color: var(--accent-deep);
  cursor: pointer;
}

.profile-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.profile-balance-box {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profile-bal-lbl {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-balance-box strong {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: #fff;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.profile-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-tab.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  color: #fff;
}

.profile-tab-count {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 99px;
}

.profile-tab-body,
.admin-tab-body {
  max-height: 360px;
  overflow-y: auto;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.profile-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.profile-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.profile-row-actions {
  display: flex;
  gap: 8px;
}

.profile-empty {
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Discord Config & Admin Panel Specific */
.ds-oauth-head {
  margin-bottom: 14px;
}
.ds-oauth-head h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.ds-oauth-head p {
  font-size: 13px;
  color: var(--text-secondary);
}

.ds-perms-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.ds-redirect-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-redirect-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.ds-redirect-code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--accent-soft);
}

.admin-login-hint {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}

.admin-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-right: 36px;
}

.admin-head-row h2 {
  font-size: 18px;
  color: #fff;
}

.admin-card-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-main);
}

.admin-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.admin-log-row {
  display: flex;
  gap: 8px;
  color: var(--text-secondary);
}

/* Detail Modal Content */
.detail-hero {
  height: 126px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.detail-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.detail-meta-grid,
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.meta-box,
.telemetry-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
}

.meta-lbl,
.tel-k {
  font-size: 10.5px;
  color: var(--text-muted);
}

.meta-val,
.tel-v {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 14px 0 8px;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.feature-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
  flex-wrap: wrap;
}

.detail-btn-group {
  display: flex;
  gap: 8px;
}

/* Toast Notifications (Evenesce Bottom Progress Bar) */
.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes toastProgressShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.toast {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  padding: 11px 15px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), var(--glass-inset);
  min-width: 220px;
  max-width: 340px;
  animation: toastSlideIn 0.24s var(--ease-smooth) both;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(212, 214, 220, 0.55));
  transform-origin: left center;
  transform: scaleX(1);
  animation: toastProgressShrink var(--toast-duration, 2600ms) linear forwards;
}

/* =====================================
   DESKTOP + MOBILE RESPONSIVE RULES
   ===================================== */
@media (max-width: 1260px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-areas:
      "left right"
      "nav nav";
    align-items: center;
    row-gap: 10px;
    padding: 10px 0 12px;
  }

  .header-left {
    grid-area: left;
  }

  .header-right {
    grid-area: right;
    justify-self: end;
  }

  .main-nav {
    grid-area: nav;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1180px) {
  .market-grid,
  .roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arcade-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header-inner {
    width: calc(100% - 20px);
    min-height: 0;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: calc(100% - 20px);
    max-width: 100vw;
    overflow-x: visible;
    min-height: calc(100dvh - 110px);
    margin: 12px auto 20px;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .close-sidebar-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: min(86vw, 290px);
    padding: 16px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    z-index: 70;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }

  .tag-chip {
    min-height: 36px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.65);
  }

  .market-main {
    padding: 0;
  }

  .hero-banner,
  .games-header-card,
  .roles-header-card {
    padding: 18px;
  }

  .sort-tab {
    padding: 0 9px;
    font-size: 12px;
  }

  .site-footer {
    padding: 4px 2px 12px;
  }

  .detail-meta-grid,
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .market-grid,
  .roles-grid,
  .roulette-bets,
  .coin-choices,
  .form-row,
  .form-row.three,
  .ddos-telemetry-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    gap: 8px;
    padding: 8px 0 10px;
  }

  .header-left {
    gap: 8px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  .brand-logo img,
  .brand-logo svg {
    width: 22px;
    height: 22px;
  }

  .mobile-filter-btn {
    width: 32px;
    height: 32px;
  }

  .header-right {
    gap: 5px;
  }

  .profile-name {
    display: none;
  }

  .main-nav {
    padding: 3px;
    gap: 2px;
  }

  .nav-link {
    height: 30px;
    padding: 0 8px;
    font-size: 11.5px;
    gap: 4px;
  }

  .nav-link svg {
    width: 13px;
    height: 13px;
  }

  .nav-link.is-locked::after {
    width: 10px;
    height: 10px;
  }

  .discord-auth-btn.connected {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .discord-auth-btn.connected #discordAuthBtnLabel {
    display: none;
  }

  .toolbar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .game-switcher {
    height: 32px;
  }

  .game-pill {
    padding: 0 9px;
    font-size: 11.5px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .lang-btn {
    height: 32px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .discord-auth-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 5px;
  }

  .profile-wallet {
    height: 32px;
    padding: 2px 6px 2px 3px;
    gap: 6px;
  }

  .profile-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .wallet-inline-btn {
    font-size: 11.5px;
    padding: 2px 4px 2px 8px;
  }

  .balance-plus {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    margin-left: 3px;
    font-size: 11.5px;
  }

  .balance-plus-txt {
    display: none;
  }

  .sort-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-md);
  }

  .sort-thumb {
    display: none;
  }

  .sort-tab {
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .sort-tab.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .btn-primary,
  .btn-secondary {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .market-card-empty {
    min-height: 150px;
  }

  .market-grid.list-view .market-card {
    flex-direction: column;
  }

  .market-grid.list-view .card-banner {
    width: 100%;
    height: 112px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .hero-banner,
  .games-header-card,
  .roles-header-card {
    padding: 16px;
    gap: 10px;
  }

  .hero-banner h1,
  .games-header-card h2,
  .roles-header-card h2 {
    font-size: 19px;
  }

  .hero-banner p,
  .games-header-card p,
  .roles-header-card p {
    font-size: 12.5px;
  }

  .toolbar {
    gap: 8px;
  }

  .card-footer,
  .role-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .role-card {
    padding: 16px;
    gap: 12px;
  }

  .arcade-panel {
    padding: 14px;
  }

  .arcade-tabs {
    max-width: 100%;
  }

  .arcade-tab {
    padding: 0 11px;
    font-size: 12.5px;
  }

  .empty-slot-fill-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: var(--radius-md);
    padding: 16px;
  }

  .detail-title {
    font-size: 17px;
  }

  .detail-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .detail-btn-group {
    width: 100%;
  }

  .detail-btn-group > button {
    flex: 1;
  }

  .profile-modal-head {
    padding: 6px 0 14px 0;
    gap: 12px;
  }

  .profile-modal-identity {
    padding-right: 40px;
  }

  .profile-modal-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .profile-tab {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cb-btn {
    height: 36px;
    font-size: 12.5px;
  }

  .toast-container {
    left: 10px;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .brand-logo {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 12.5px;
  }

  .header-left {
    gap: 5px;
  }

  .header-right {
    gap: 4px;
  }

  .mobile-filter-btn,
  .icon-btn,
  .discord-auth-btn.connected {
    width: 26px;
    height: 26px;
  }

  .lang-btn {
    height: 26px;
    padding: 0 6px;
    font-size: 10.5px;
  }

  .discord-auth-btn {
    height: 26px;
    padding: 0 7px;
    font-size: 10.5px;
    gap: 3px;
  }

  .discord-auth-btn svg {
    width: 13px;
    height: 13px;
  }

  .profile-wallet {
    height: 26px;
    padding: 2px 5px 2px 3px;
    gap: 3px;
  }

  .profile-avatar {
    width: 18px;
    height: 18px;
    font-size: 8.5px;
  }

  .wallet-inline-btn {
    border-left: none;
    font-size: 10.5px;
    padding: 1px 2px 1px 3px;
    min-width: auto;
  }

  .balance-plus {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 2px;
    font-size: 10.5px;
  }

  .main-nav {
    padding: 3px;
    gap: 1px;
  }

  .nav-link {
    height: 27px;
    padding: 0 5px;
    font-size: 10.5px;
    gap: 2px;
  }

  .nav-link svg {
    display: none;
  }

  .nav-link.is-locked::after {
    width: 8px;
    height: 8px;
  }

  .nav-badge {
    font-size: 9px;
    padding: 0 3.5px;
  }

  .roulette-viewport {
    height: 78px;
  }

  .r-tile {
    width: 58px;
    height: 58px;
    font-size: 15px;
  }

  .bet-presets {
    gap: 4px;
  }

  .bet-mini-btn,
  .bet-preset {
    padding: 0 6px;
    font-size: 10.5px;
  }
}

@media (max-width: 375px) {
  .profile-avatar {
    display: none;
  }

  .nav-link {
    padding: 0 4px;
    font-size: 10px;
  }

  .detail-meta-grid,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .discord-auth-btn:hover,
  .icon-btn:hover,
  .lang-btn:hover,
  .empty-slot-fill-btn:hover,
  .sidebar-admin-btn:hover,
  .card-action-btn:hover,
  .role-buy-btn:hover,
  .profile-tab:hover,
  .nav-link:hover,
  .game-pill:hover,
  .sort-tab:hover,
  .view-btn:hover,
  .arcade-tab:hover,
  .btn-primary:active,
  .btn-secondary:active,
  .discord-auth-btn:active,
  .icon-btn:active,
  .lang-btn:active,
  .empty-slot-fill-btn:active,
  .sidebar-admin-btn:active,
  .card-action-btn:active,
  .role-buy-btn:active,
  .profile-tab:active {
    transform: none !important;
  }

  .main-nav.is-scrubbing .nav-glass-thumb,
  .game-switcher.is-scrubbing .switcher-thumb,
  .sort-tabs.is-scrubbing .sort-thumb,
  .view-toggle.is-scrubbing .view-thumb,
  .arcade-tabs.is-scrubbing .arcade-thumb {
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1) !important;
  }
}

/* =====================================
   COOKIE BITE LIQUID GLASS BANNER
   ===================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 85;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(32, 32, 38, 0.72) 0%, rgba(14, 14, 18, 0.84) 100%);
  backdrop-filter: blur(34px) saturate(135%) brightness(1.06);
  -webkit-backdrop-filter: blur(34px) saturate(135%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  will-change: transform, width, height, opacity;
  transition: opacity 0.35s ease;
  --dough: color-mix(in srgb, #ff9f0a 60%, #ffd23f);
  --chip: color-mix(in srgb, #ff9f0a 36%, #000000);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cb-body {
  position: absolute;
  left: 0;
  top: 0;
  padding: 18px 20px;
  will-change: opacity, transform;
}

.cb-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cb-plate {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
}

.cb-cookie {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  overflow: visible;
  will-change: transform;
}

.cookie-banner .d0 { stop-color: color-mix(in srgb, var(--dough) 62%, #ffffff); }
.cookie-banner .d1 { stop-color: var(--dough); }
.cookie-banner .d2 { stop-color: color-mix(in srgb, var(--dough) 80%, var(--chip)); }
.cookie-banner .c0 { stop-color: color-mix(in srgb, var(--chip) 72%, var(--dough)); }
.cookie-banner .c1 { stop-color: color-mix(in srgb, var(--chip) 78%, #000000); }
.cookie-banner .n0 { stop-color: color-mix(in srgb, var(--dough) 74%, var(--chip)); }
.cookie-banner .n1 { stop-color: color-mix(in srgb, var(--dough) 74%, var(--chip)); stop-opacity: 0; }
.cb-edge { fill: color-mix(in srgb, var(--dough) 58%, var(--chip)); }
.cb-dough { fill: url(#cookie-dough); }
.cb-dent { fill: url(#cookie-dent); }
.cb-chips circle { fill: url(#cookie-chip); }
.cb-keep { fill: #ffffff; }
#cbBites circle { fill: #000000; }

.cb-crumbs {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cb-crumbs i {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 2px;
  background: var(--dough);
  opacity: 0;
  will-change: transform, opacity;
}

.cb-crumbs i:nth-child(3n) {
  background: var(--chip);
}

.cb-copy h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0;
}

.cb-copy p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.cb-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cb-btn {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 40px;
  border-radius: 99px;
  cursor: pointer;
  will-change: transform;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.cb-no {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px rgba(0, 0, 0, 0.42);
}

.cb-no:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(0, 0, 0, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.32);
}

.cb-yes {
  background: linear-gradient(180deg, #f3f4f7 0%, #c8cad2 55%, #b5b8c2 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #09090b;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.85), inset 0 -2px 3px rgba(0, 0, 0, 0.22);
}

.cb-yes:hover {
  background: linear-gradient(180deg, #ffffff 0%, #dbdde4 58%, #c7c9d2 100%);
}

.cb-done {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 14px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.cb-done svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.cb-done.is-yes svg {
  background: #34d17a;
}

.cb-done path {
  fill: none;
  stroke: var(--text-main);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
}

.cb-done.is-yes path {
  stroke: #04140a;
}

code, kbd, pre { font-family: inherit; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.roles-balance {
  margin-top: 10px;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

/* =====================================
   PROFILE TELEGRAM LINK & TOP-UP MODAL (xRocket + Boosty)
   ===================================== */
.profile-tg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-subtle);
}

.profile-tg-bar.is-linked {
  border-color: rgba(52, 209, 122, 0.28);
  background: linear-gradient(180deg, rgba(52, 209, 122, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.profile-tg-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1 1 260px;
}

.profile-tg-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(42, 171, 238, 0.14);
  border: 1px solid rgba(42, 171, 238, 0.34);
  color: #54bdf5;
}

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

.profile-tg-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.profile-tg-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.profile-tg-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.profile-tg-status.linked {
  color: #8ce9ad;
  border-color: rgba(52, 209, 122, 0.35);
  background: rgba(52, 209, 122, 0.14);
}

.profile-tg-handle {
  font-size: 12.5px;
  font-weight: 700;
  color: #6cc9fa;
  text-decoration: none;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.25);
}

.profile-tg-handle:hover {
  color: #fff;
  background: rgba(42, 171, 238, 0.22);
}

.profile-tg-id {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.profile-tg-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

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

.profile-tg-btn,
.profile-tg-open {
  height: 32px;
  padding: 0 13px;
  font-size: 12px;
}

.boosty-guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(88, 101, 242, 0.38);
}

.boosty-guest-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 220px;
}

.boosty-guest-copy strong {
  font-size: 12.5px;
  color: #ffffff;
}

.boosty-guest-copy span {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.modal-boosty {
  max-width: 540px;
  max-height: min(90dvh, 780px);
  overflow-y: auto;
  padding: 24px;
}

.boosty-guide {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-subtle);
}

.boosty-guide-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.boosty-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.boosty-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.42;
  color: var(--text-secondary);
}

.boosty-step-num {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.boosty-guide-note {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.boosty-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 28px;
}

.boosty-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.boosty-head p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.boosty-rate-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f4f4f6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.boosty-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boosty-preset-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.2s var(--ease-spring);
}

.boosty-preset-btn:hover {
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

.boosty-preset-btn.active {
  background: linear-gradient(180deg, #f3f4f7 0%, #c8cad2 100%);
  border-color: rgba(255, 255, 255, 0.7);
  color: #0b0b0d;
}

.boosty-preset-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.boosty-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.boosty-sum-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.boosty-sum-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

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

.boosty-code-inline code {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.boosty-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0 14px;
}

.boosty-voucher-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.boosty-voucher-row {
  display: flex;
  gap: 8px;
}

.boosty-voucher-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
}

.boosty-req-section {
  margin-top: 16px;
}

.boosty-req-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.boosty-req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 155px;
  overflow-y: auto;
}

.boosty-req-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

.boosty-req-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.boosty-req-meta strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.boosty-req-meta span {
  color: var(--text-muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boosty-status {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.boosty-status.approved {
  color: #8ce9ad;
  border-color: rgba(52, 209, 122, 0.35);
  background: rgba(52, 209, 122, 0.12);
}

.boosty-status.rejected {
  color: #ff8f93;
  border-color: rgba(255, 90, 95, 0.35);
  background: rgba(255, 90, 95, 0.12);
}

.topup-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.topup-method-tab {
  height: 34px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-md) - 4px);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topup-method-tab:hover {
  color: #fff;
}

.topup-method-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.crypto-min-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(118, 169, 196, 0.1);
  border: 1px solid rgba(118, 169, 196, 0.28);
  font-size: 12px;
  color: var(--text-secondary);
}

.crypto-min-notice strong {
  color: #d7eefc;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.crypto-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.crypto-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(52, 209, 122, 0.08);
  border: 1px solid rgba(52, 209, 122, 0.28);
}

.crypto-status-banner[hidden] {
  display: none;
}

.crypto-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.crypto-status-text strong {
  font-size: 12.5px;
  color: #fff;
}

.crypto-status-text span {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (max-width: 680px) {
  .modal-boosty {
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .boosty-head,
  .boosty-summary-row,
  .boosty-req-item,
  .crypto-status-banner,
  .profile-tg-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .topup-method-tab {
    font-size: 11.5px;
    padding: 0 6px;
  }
}
