:root {
  --bg: #080c14;
  --surface: #0f1624;
  --surface-2: #161f32;
  --surface-3: #1e2a42;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #eef3fb;
  --muted: #8ea0be;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.12);
  --amber: #f59e0b;
  --red: #f43f5e;
  --radius: 14px;
  --radius-sm: 9px;
  --font-sans: "Inter", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Noto Sans Georgian", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 440px at 8% -4%, rgba(16, 185, 129, 0.08), transparent 62%),
    radial-gradient(760px 420px at 94% 2%, rgba(56, 189, 248, 0.08), transparent 60%);
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 22px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.text-emerald {
  color: var(--emerald-bright);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ==================== Header ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 12, 20, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  color: #041312;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22);
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.geo-tag {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .brand-sub {
    display: none;
  }
}

.topbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lang-switch,
.mode-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.lang-btn,
.mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover,
.mode-btn:hover {
  color: var(--text);
}

.lang-btn.active,
.mode-btn.active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-steam:hover {
  border-color: var(--cyan);
  background: var(--surface-3);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  font-size: 0.84rem;
}

.steam-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--emerald);
  flex-shrink: 0;
  background: #080c14;
}

.user-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.steam-user-name {
  font-weight: 700;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0 0 4px;
  border-left: 1px solid var(--border-strong);
}

/* ==================== Main Shell & Cards ==================== */
.main-shell {
  padding-top: 22px;
  padding-bottom: 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

/* ==================== Context-Aware Onboarding Hero ==================== */
.hero-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 45%, rgba(56, 189, 248, 0.07) 100%);
  border-color: rgba(16, 185, 129, 0.24);
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.hero-venues-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.venue-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 22, 36, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.venue-dot-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero-bar h1 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.44rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-bar p {
  margin: 0 0 14px;
  max-width: 680px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px 4px 5px;
}

.step-num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-steam-hero {
  padding: 12px 22px;
  font-size: 0.94rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

/* ==================== Inputs & Buttons ==================== */
input,
select {
  background: #080c14;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

input.input-valid {
  border-color: rgba(16, 185, 129, 0.65);
}

input.input-invalid {
  border-color: rgba(244, 63, 94, 0.7);
}

.field-hint {
  font-size: 0.74rem;
  line-height: 1.3;
  padding-top: 2px;
}

.field-hint.valid {
  color: var(--emerald-bright);
}

.field-hint.invalid {
  color: #fda4af;
}

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-bright), #059669);
  color: #03150e;
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.94;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--cyan);
  background: var(--surface-3);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.notice-banner {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

/* ==================== Cashout Layout ==================== */
.cashout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 412px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1020px) {
  .cashout-layout {
    grid-template-columns: 1fr;
  }
}

.toolbar-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.toolbar-controls {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.14s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.14);
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.55);
}

.tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.65);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tab-btn.active .tab-count {
  background: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 190px;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 7px 10px 7px 33px;
  font-size: 0.82rem;
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sort-select {
  padding: 7px 10px;
  font-size: 0.8rem;
  min-width: 145px;
}

.bulk-actions {
  display: flex;
  gap: 6px;
}

/* ==================== Marketplace Skin Grid ==================== */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 12px;
}

.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.empty-state-card p {
  margin: 0;
  max-width: 520px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.empty-state-icon {
  font-size: 2.1rem;
  line-height: 1;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

/* Skeleton Shimmer Loader */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-box,
.skeleton-line {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: 8px;
}

.skeleton-box {
  height: 92px;
}

.skeleton-line {
  height: 13px;
}

.skeleton-line.short {
  width: 62%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Two-Zone Skin Card */
.skin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.skin-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.skin-card.selected {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px var(--emerald), 0 10px 26px rgba(16, 185, 129, 0.18);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--surface) 45%);
}

.skin-card.unsupported {
  opacity: 0.7;
}

.skin-stage {
  position: relative;
  height: 102px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(56, 189, 248, 0.14), #090e18 78%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  overflow: hidden;
}

.skin-card[data-game="tf2"] .skin-stage {
  background: radial-gradient(circle at 50% 60%, rgba(245, 158, 11, 0.16), #090e18 78%);
}

.skin-card[data-game="dota2"] .skin-stage {
  background: radial-gradient(circle at 50% 60%, rgba(244, 63, 94, 0.14), #090e18 78%);
}

.skin-card[data-game="rust"] .skin-stage {
  background: radial-gradient(circle at 50% 60%, rgba(239, 68, 68, 0.16), #090e18 78%);
}

.skin-thumb {
  width: 92px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.skin-card:hover .skin-thumb {
  transform: scale(1.06);
}

.skin-meta-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.02em;
}

.skin-meta-pill.hold {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.34);
}

.skin-meta-pill.instant {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.34);
}

.skin-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(8, 12, 20, 0.75);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0.74rem;
  font-weight: 800;
  transition: all 0.14s ease;
}

.skin-card.selected .skin-check {
  background: var(--emerald);
  border-color: var(--emerald-bright);
  color: #03150e;
}

.skin-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.skin-name {
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.24em;
}

.skin-wear {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skin-price-row {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.skin-cashout {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--emerald-bright);
  line-height: 1.1;
}

.skin-cashout.muted {
  color: var(--muted);
}

.skin-cashout-gel {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.skin-venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.skin-venue-pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
}

/* ==================== Waitlist Card ==================== */
.waitlist-card {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(56, 189, 248, 0.06));
}

.coming-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 6px;
}

.waitlist-card h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1rem;
}

.waitlist-card p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist-form input {
  flex: 1;
  min-width: 200px;
}

.waitlist-feedback {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--emerald-bright);
}

/* ==================== Sticky Withdraw Panel ==================== */
.sticky-panel {
  position: sticky;
  top: 82px;
  padding: 20px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.panel-header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.pill {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-tier {
  background: var(--emerald-dim);
  border-color: rgba(16, 185, 129, 0.36);
  color: var(--emerald-bright);
  font-size: 0.72rem;
  padding: 4px 9px;
}

.notice-amber {
  margin-top: 8px;
  margin-bottom: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fde68a;
}

.tier-progress-note {
  font-size: 0.76rem;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  margin-top: 2px;
}

.payout-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: center;
}

.payout-hero-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.payout-hero-amount {
  font-family: var(--font-display);
  font-size: 2.08rem;
  font-weight: 800;
  color: var(--emerald-bright);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.payout-hero-gel {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 3px;
}

.settlement-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.35;
}

/* Selected Skins Chips */
.selected-items-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 92px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.55);
  border: 1px solid var(--border);
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--text);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
}

.selected-chip:hover {
  border-color: var(--red);
}

.selected-chip-name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-chip-x {
  color: var(--muted);
  font-weight: 700;
}

/* Visual Network Tile Selector */
.network-selector-block {
  margin-bottom: 14px;
}

.network-selector-label {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.network-tile {
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.network-tile-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(56, 189, 248, 0.05));
  border-color: rgba(16, 185, 129, 0.3);
}

.network-featured-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.network-rec-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.4);
  white-space: nowrap;
}

/* Recent Completed Payouts Strip */
.recent-payouts-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.recent-payout-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.26);
  font-size: 0.77rem;
}

.recent-payout-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
}

/* Referral Sharing Card */
.referral-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.07), rgba(16, 185, 129, 0.06));
}

.referral-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.referral-head h3 {
  font-family: var(--font-display);
  margin: 0 0 5px;
  font-size: 1rem;
}

.referral-head p {
  margin: 0;
  font-size: 0.84rem;
}

.referral-stats {
  display: flex;
  gap: 10px;
}

.ref-stat-box {
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
}

.ref-stat-box strong {
  font-size: 1rem;
}

.referral-share-row {
  display: flex;
  gap: 8px;
}

.referral-share-row input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Treasury & Batch Cashout Desk */
.treasury-card {
  border-color: rgba(16, 185, 129, 0.32);
}

.treasury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.treasury-box {
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.treasury-lbl {
  font-size: 0.76rem;
}

.treasury-val {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
}

.treasury-sub {
  font-size: 0.74rem;
}

.batch-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 4px 0;
}

.batch-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  transition: width 0.25s ease;
}

.treasury-batch-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.treasury-batch-form input {
  flex: 1;
  min-width: 130px;
  padding: 7px 10px;
  font-size: 0.8rem;
}

.admin-copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.network-tile:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.network-tile.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.network-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.network-fee-tag {
  font-size: 0.71rem;
  color: var(--muted);
}

.network-tile.active .network-fee-tag {
  color: var(--emerald-bright);
}

/* Checkout Form */
.checkout-form {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-field label {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--muted);
}

.checkout-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.trade-url-helper {
  font-size: 0.75rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.trade-url-helper:hover {
  text-decoration: underline;
}

.checkout-field input {
  width: 100%;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.venue-cta {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.btn-withdraw-idle {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.checkout-feedback {
  font-size: 0.81rem;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #080c14;
  line-height: 1.35;
}

.checkout-feedback.error {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}

.checkout-feedback.success {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-bright);
}

/* Collapsible Payout Details */
.payout-details {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.payout-details summary {
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payout-details summary::-webkit-details-marker {
  display: none;
}

.payout-details summary::after {
  content: "▾";
  font-size: 0.85rem;
}

.payout-details[open] summary::after {
  content: "▴";
}

.payout-details-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.quote-row-compact {
  font-size: 0.8rem;
  gap: 8px;
}

.plan-heading {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.venue-checkout-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venue-card {
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.venue-items-list {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ==================== Active Order Stepper & Tracker ==================== */
.order-tracker-card {
  margin-bottom: 20px;
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), var(--surface) 45%);
}

.order-tracker-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.order-tracker-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.order-id-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mono-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
}

.poll-pill {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: var(--cyan-dim);
  color: var(--cyan);
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.order-status-pill.status-awaiting {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.order-status-pill.status-sent {
  background: var(--emerald-dim);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.order-status-pill.status-hold {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.order-status-pill.status-paid {
  background: rgba(16, 185, 129, 0.22);
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.55);
}

.order-status-pill.status-cancelled {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
}

.order-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .order-stepper {
    grid-template-columns: 1fr 1fr;
  }
}

.stepper-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #080c14;
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.stepper-node.done {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald-bright);
}

.stepper-node.active {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
}

.stepper-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--surface-2);
  flex-shrink: 0;
}

.stepper-node.done .stepper-dot {
  background: var(--emerald);
  color: #03150e;
}

.stepper-node.active .stepper-dot {
  background: var(--cyan);
  color: #041312;
}

.order-payout-summary,
.order-tx-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.order-offer-banner {
  margin-bottom: 12px;
}

.order-legs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-leg-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.order-leg-info {
  flex: 1;
  min-width: 220px;
}

.order-leg-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.order-leg-items {
  font-size: 0.79rem;
  line-height: 1.4;
}

.order-leg-error {
  font-size: 0.77rem;
  color: #fda4af;
  margin-top: 4px;
}

/* My Orders History */
.my-orders-card {
  margin-top: 22px;
}

.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-order-row {
  width: 100%;
  text-align: left;
  background: #080c14;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.my-order-row:hover {
  border-color: var(--cyan);
}

.my-order-row.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
}

.my-order-main,
.my-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
}

/* Mobile Floating Withdraw Bar */
.mobile-withdraw-bar {
  display: none;
}

@media (max-width: 1020px) {
  .mobile-withdraw-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(15, 22, 36, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }

  .mobile-withdraw-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.88rem;
  }
}

/* ==================== Operator Console ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
}

.admin-section {
  margin-bottom: 16px;
}

.fx-inline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.fx-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
}

.fx-control input {
  width: 82px;
  padding: 6px 8px;
}

.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #080c14;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.ok {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald-bright);
}

.status-badge.warn {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.admin-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 960px) {
  .admin-tables-grid {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow-x: auto;
}

.routing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.routing-table th,
.routing-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.routing-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-orders-table td {
  vertical-align: top;
}

.admin-order-items-cell {
  min-width: 180px;
  max-width: 260px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-wallet-cell {
  max-width: 170px;
  margin-bottom: 4px;
}

.admin-trade-link {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--cyan);
}

.admin-order-status,
.admin-order-offer-url,
.admin-order-tx-hash {
  padding: 6px 8px;
  font-size: 0.77rem;
  min-width: 140px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skeleton-box,
  .skeleton-line {
    animation: none;
  }
  .skin-card,
  .skin-thumb,
  .btn {
    transition: none;
  }
}
