:root {
  --bg-base: #000000;
  --bg-card: #0a0b0d;
  --bg-card-hover: #121317;
  --bg-elevated: #15161b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.22);

  --text-primary: #ffffff;
  --text-secondary: #9499a6;
  --text-muted: #585e6d;

  --accent-indigo: #6366f1;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-violet: #a855f7;
  --accent-danger: #ef4444;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  user-select: none;
}

.ambient-glow {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
}

/* ВЕРХНЯЯ ПАНЕЛЬ */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 120px;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #22252e, #111216);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10.5px;
  color: var(--accent-cyan);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balances-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.bal-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 9px;
  background: #0d0e12;
  border: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.bal-u {
  border-color: rgba(255, 255, 255, 0.14);
}

.bal-u .bal-label {
  color: var(--accent-cyan);
  font-weight: 800;
}

.bal-umc {
  border-color: rgba(16, 185, 129, 0.28);
}

.bal-umc .bal-label {
  color: var(--accent-emerald);
  font-size: 10px;
  font-weight: 800;
}

/* ОСНОВНОЙ ЭКРАН */
.viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 96px;
  scroll-behavior: smooth;
}

.viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tab-view {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlide 0.2s ease;
}

.tab-view.active {
  display: flex;
}

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

.hidden {
  display: none !important;
}

/* ==========================================================================
   ПРЕМИАЛЬНАЯ БАНКОВСКАЯ КАРТА (UMBREL PRIVATE BANK / BLACK EDITION)
   ========================================================================== */
.bank-card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
}

.bank-credit-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;
  min-height: 200px;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 15% 15%, #181920 0%, #0b0c0f 58%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.04) 54%, transparent 65%);
  pointer-events: none;
}

.card-mesh-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
  pointer-events: none;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.card-bank-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-crest {
  font-size: 20px;
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

.bank-titles {
  display: flex;
  flex-direction: column;
}

.bank-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
}

.bank-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-top: 1px;
}

.card-tier-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-mid-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.emv-chip {
  position: relative;
  width: 44px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fcd34d 0%, #d97706 70%, #b45309 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  flex-shrink: 0;
}

.chip-wire {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.chip-wire.w1 {
  top: 0;
  bottom: 0;
  left: 14px;
  right: 14px;
  border-top: none;
  border-bottom: none;
}

.chip-wire.w2 {
  top: 10px;
  bottom: 10px;
  left: 0;
  right: 0;
  border-left: none;
  border-right: none;
}

.chip-core {
  position: absolute;
  inset: 7px 11px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.08);
}

.nfc-icon {
  width: 22px;
  height: 22px;
  fill: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.nfc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-balance-box {
  margin-left: auto;
  text-align: right;
}

.cbb-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.cbb-amount {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  letter-spacing: -0.02em;
}

.card-number-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f1f5f9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
  margin: 6px 0 2px;
}

.card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cb-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cb-meta {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.cb-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-vault .cb-text {
  color: #34d399;
}

.cb-crypto .cb-text {
  color: #c084fc;
}

/* 4 БЫСТРЫХ ДЕЙСТВИЯ ПОД КАРТОЙ */
.card-action-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.c-act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  background: #0d0e12;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.c-act-btn:active {
  transform: scale(0.96);
  background: #16181f;
  border-color: rgba(255, 255, 255, 0.25);
}

.c-act-icon {
  font-size: 16px;
}

.bonus-glow {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.12));
  color: #6ee7b7;
}

/* ==========================================================================
   ЭЛИТНЫЕ АККРЕДИТАЦИИ И ЛИЦЕНЗИИ
   ========================================================================== */
.licenses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: #090a0d;
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.lic-card.unlocked {
  background: linear-gradient(135deg, #13141a 0%, #0a0b0e 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.lic-card.unlocked.tier-magnate {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(26, 20, 10, 0.9), rgba(12, 11, 14, 0.95));
}

.lic-card.unlocked.tier-sovereign {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, rgba(26, 12, 34, 0.9), rgba(12, 11, 18, 0.95));
}

.lic-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.lic-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.lic-card.unlocked .lic-badge-icon {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.lic-card.unlocked.tier-magnate .lic-badge-icon {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.lic-card.unlocked.tier-sovereign .lic-badge-icon {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.lic-details {
  min-width: 0;
}

.lic-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lic-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.lic-status-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

.lic-status-pill.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.lic-status-pill.locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.lic-perk {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   БЫСТРАЯ ПАНЕЛЬ СБОРА ДОБЫЧИ (QUICK HARVEST BAR)
   ========================================================================== */
.quick-harvest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #121318 0%, #090a0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.qh-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qh-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.qh-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.qh-val small {
  font-size: 11px;
  color: var(--accent-indigo);
  font-weight: 700;
}

.qh-est {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.qh-collect-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.qh-collect-btn:active {
  transform: scale(0.96);
}

.qh-collect-btn.empty {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
  box-shadow: none;
  color: var(--text-muted);
  cursor: default;
}

.qh-icon {
  font-size: 14px;
}

/* ПЕРЕКЛЮЧАТЕЛИ РАЗДЕЛОВ КАБИНЕТА */
.prof-section {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.prof-section.active {
  display: flex;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hub-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.hub-card-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hub-tag {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.tag-cyan {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.text-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.78);
  color: #ffffff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s ease;
}

.text-input:focus {
  border-color: var(--accent-cyan);
}

.input-with-presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preset-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.chip-btn {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.chip-btn:active {
  background: rgba(56, 189, 248, 0.18);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.dual-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.secondary-btn {
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* СПИСОК ПЕРЕВОДОВ И ЛИДЕРБОРД */
.transfers-list, .leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-row, .lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.09);
}

.tr-left, .lb-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tr-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.tr-badge.in {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.tr-badge.out {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.tr-partner {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.tr-amount.in { color: #34d399; }
.tr-amount.out { color: #fbbf24; }

.lb-rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.lb-rank.rank-1 { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.lb-rank.rank-2 { background: rgba(148, 163, 184, 0.25); color: #e2e8f0; }
.lb-rank.rank-3 { background: rgba(217, 119, 6, 0.22); color: #fdba74; }

.titles-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.title-choice-chip {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.65);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.title-choice-chip.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-mini-box {
  padding: 10px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sm-lbl { font-size: 10px; color: var(--text-secondary); }
.sm-val { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; }

.text-emerald { color: #34d399; }
.text-danger  { color: #f87171; }
.text-amber   { color: #fbbf24; }
.text-cyan    { color: #38bdf8; }

.debt-repay-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.debt-repay-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #fca5a5;
}

/* БАННЕР СОБЫТИЯ */
.event-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: #fcd34d;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

/* 3D СЦЕНА ТРЁХ СЕРВЕРНЫХ ШКАФОВ */
.rack-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.rack-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stage-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  font-weight: 700;
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.mining {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.status-indicator.overflow {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.status-indicator.offline {
  background: var(--text-muted);
}

.stage-right-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rack-counter-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.cam-reset-btn {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #030304;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#rackCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.cabinet-tags-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  z-index: 2;
}

.cab-tag {
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(14, 15, 18, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cab-tag:hover {
  background: rgba(24, 26, 32, 0.95);
  color: #ffffff;
}

.cab-tag.active {
  background: #181920;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.cab-tag-cool.active  { border-color: rgba(56, 189, 248, 0.6); color: #7dd3fc; }
.cab-tag-core.active  { border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.cab-tag-store.active { border-color: rgba(16, 185, 129, 0.6); color: #6ee7b7; }

/* Оверлей инспектора выдвинутой 3D-видеокарты */
.gpu-inspector-sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(10, 11, 14, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  padding: 10px 12px;
  z-index: 4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85);
}

.inspector-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 7px;
}

.inspector-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
}

.inspector-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.inspector-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
}

.inspector-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.insp-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 4px 6px;
}

.insp-lbl {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
}

.insp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #f8fafc;
}

.inspector-actions {
  display: flex;
  gap: 6px;
}

.inspector-actions .mini-btn {
  flex: 1;
  padding: 7px 8px;
  font-size: 11px;
}

.canvas-hint {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(203, 213, 225, 0.65);
  pointer-events: none;
}

.rack-bay-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.bay-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.bay-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 4 МЕТРИКИ ФЕРМЫ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 13px;
}

.mc-cyan    { border-top: 2px solid var(--accent-cyan); }
.mc-emerald { border-top: 2px solid var(--accent-emerald); }
.mc-amber   { border-top: 2px solid var(--accent-amber); }
.mc-indigo  { border-top: 2px solid var(--accent-indigo); }

.metric-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

/* БУФЕР НАКОПЛЕНИЯ */
.storage-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 15px;
}

.storage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.storage-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.storage-amount {
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
}

.storage-amount small {
  font-size: 12px;
  color: var(--accent-cyan);
}

.storage-est {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.storage-pct-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin: 11px 0 13px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
  transition: width 0.35s ease;
}

.primary-action-btn {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn-gradient-indigo {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-gradient-emerald {
  background: linear-gradient(135deg, #059669, #0d9488);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.btn-gradient-slate {
  background: linear-gradient(135deg, #334155, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-gradient-amber {
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.primary-action-btn:active {
  transform: scale(0.985);
}

.primary-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* МАГАЗИН И СЕГМЕНТЫ */
.segmented-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 5px;
  padding: 4px;
  background: #0d0e12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.seg-btn {
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: #181920;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.series-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.series-filter-bar::-webkit-scrollbar {
  height: 0;
}

.series-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #0d0e12;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.series-pill.active {
  border-color: rgba(255, 255, 255, 0.35);
  background: #181920;
  color: #ffffff;
}

.section-head-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
}

.section-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ghost-btn {
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card.series-1 { border-left: 3px solid #38bdf8; }
.item-card.series-2 { border-left: 3px solid #10b981; }
.item-card.series-3 { border-left: 3px solid #6366f1; }
.item-card.series-4 { border-left: 3px solid #f43f5e; }
.item-card.series-5 { border-left: 3px solid #a855f7; }

.item-card.golden {
  border-color: rgba(245, 158, 11, 0.45);
  border-left: 3px solid #f59e0b;
  background: linear-gradient(145deg, rgba(24, 28, 44, 0.94), rgba(45, 34, 15, 0.45));
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.item-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.item-badge {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.btn-group-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
}

.mini-btn {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.mini-btn.accent {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.48);
  color: #e0e7ff;
}

.mini-btn.warn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
}

.mini-btn.danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.batch-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.batch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

/* БИРЖА UMC */
.exchange-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ex-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.ex-rate-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  margin-top: 2px;
  color: #ffffff;
}

.ex-trend-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.ex-balances-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.ex-bal-box {
  padding: 11px;
  border-radius: var(--radius-md);
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-subtle);
}

.ex-bal-lbl { font-size: 11px; color: var(--text-secondary); }
.ex-bal-num { margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; }
.ex-bal-sub { margin-top: 2px; font-size: 10px; color: var(--text-muted); }

.ex-action-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ex-block-title {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.ex-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.ex-btn {
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ex-btn.sell.primary {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.48);
  color: #6ee7b7;
}

.ex-btn.buy.primary {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.48);
  color: #c7d2fe;
}

.ex-portfolio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.ex-port-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}
.ex-cur-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ex-coin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.ex-coin-chip {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.55);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}
.ex-coin-chip.active {
  border-color: rgba(99, 102, 241, 0.72);
  background: rgba(99, 102, 241, 0.16);
}
.ex-coin-chip.locked {
  opacity: 0.55;
}
.ex-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}
.ex-chip-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}
.ex-coin-meta {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ex-util-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ex-util-btn {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ex-util-btn.burn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}
.ex-pool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
}
.ex-pool-btn {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.6);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}
.ex-pool-btn.active {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
}

.upcoming-modules-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.up-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 9px;
}

.up-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.up-item {
  padding: 10px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.2);
}

.up-name { font-size: 12px; font-weight: 700; }
.up-status { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* НИЖНЯЯ НАВИГАЦИЯ (5 ВКЛАДОК) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 7px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-item.active {
  color: #ffffff;
}

.nav-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ */
.toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(12, 13, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  z-index: 100;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.toast-msg {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.empty-state {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  background: #090a0d;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}


/* =========================================================================
   🎓 ВИЗУАЛЬНАЯ АКАДЕМИЯ, РАЗВИТИЕ И FAQ
   ========================================================================= */
.topbar-academy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.topbar-academy-btn:active {
  transform: scale(0.95);
}
.topbar-academy-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  color: #d1fae5;
}
.academy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: acPulse 1.5s infinite ease-in-out;
}
@keyframes acPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.ac-hero-card {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.12), rgba(14, 17, 26, 0.96) 58%, rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 15px;
  margin-bottom: 12px;
}
.ac-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ac-hero-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ac-hero-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}
.ac-reward-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ac-rw-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f8fafc;
}
.ac-progress-track {
  margin-top: 11px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.ac-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ac-subtabs {
  margin-bottom: 12px;
}
.ac-section {
  display: none;
}
.ac-section.active {
  display: block;
}

/* Stepper */
.ac-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.ac-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.ac-step-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}
.ac-step-btn.done {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}
.ac-step-ico {
  font-size: 14px;
  line-height: 1;
}

/* Lesson Card + Telegram Visual Mockup */
.ac-lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px;
}
.ac-lesson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ac-lesson-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}
.ac-lesson-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
}
.ac-lesson-desc {
  font-size: 12px;
  line-height: 1.48;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Authentic Telegram Chat UI Frame */
.tg-mock-shell {
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  margin-bottom: 12px;
}
.tg-mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #0d111a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tg-mock-peer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-mock-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.tg-mock-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}
.tg-mock-status {
  font-size: 10px;
  color: #38bdf8;
}
.tg-mock-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.tg-mock-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background-image: radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.tg-msg-out {
  align-self: flex-end;
  max-width: 82%;
  padding: 7px 11px;
  border-radius: 13px 13px 4px 13px;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
  animation: tgSlideIn 0.25s ease-out;
}
.tg-msg-time {
  display: block;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  opacity: 0.72;
  margin-top: 2px;
}
.tg-msg-in {
  align-self: flex-start;
  width: 96%;
  animation: tgSlideUp 0.32s ease-out;
}
.tg-bot-card {
  background: #121722;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px 13px 13px 4px;
  padding: 10px 11px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2e8f0;
}
.tg-bot-card b, .tg-bot-card strong {
  color: #ffffff;
}
.tg-bot-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}
.tg-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 5px 0;
}
.tg-callout {
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #f59e0b;
  font-size: 10.5px;
  color: #fde68a;
}
.tg-callout.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-left-color: #10b981;
  color: #a7f3d0;
}
.tg-inline-kb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}
.tg-inline-btn {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.tg-inline-btn:active {
  transform: scale(0.97);
}
.tg-inline-btn.full {
  grid-column: span 2;
}
.tg-inline-btn.tapped {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.18);
}

@keyframes tgSlideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tgSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Copyable commands */
.ac-cmd-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ac-cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ac-cmd-chip:active {
  background: rgba(56, 189, 248, 0.2);
}

/* Interactive mini-check quiz */
.ac-quiz-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 11px;
}
.ac-quiz-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 5px;
}
.ac-quiz-q {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.38;
}
.ac-quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ac-quiz-opt {
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(9, 13, 22, 0.72);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ac-quiz-opt.correct {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  font-weight: 700;
}
.ac-quiz-opt.wrong {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}
.ac-quiz-feedback {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.38;
  color: #a7f3d0;
}

.ac-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.ac-nav-btn {
  padding: 11px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.ac-nav-btn.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}
.ac-nav-btn.primary {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.ac-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ac-claim-btn {
  margin-top: 10px;
}

/* Progression Roadmap */
.ac-live-stage-card {
  margin-bottom: 12px;
  border-color: rgba(56, 189, 248, 0.35);
}
.ac-roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px;
}
.ac-stage-card.current {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), var(--bg-card));
}
.ac-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ac-stage-title {
  font-size: 13.5px;
  font-weight: 800;
}
.ac-stage-lvl {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-cyan);
}
.ac-stage-pts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* FAQ Accordion */
.ac-faq-toolbar {
  margin-bottom: 10px;
}
.ac-faq-search {
  margin-bottom: 9px;
}
.ac-faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ac-faq-cat {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ac-faq-cat.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}
.ac-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}
.ac-faq-q {
  width: 100%;
  padding: 12px 13px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ac-faq-a {
  display: none;
  padding: 0 13px 12px;
  font-size: 11.8px;
  line-height: 1.48;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 9px;
}
.ac-faq-item.open .ac-faq-a {
  display: block;
}
.ac-faq-item.open .ac-faq-arrow {
  transform: rotate(180deg);
}
.ac-faq-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

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

.qh-onetap-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.qh-onetap-btn.has-repairs {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

.inspect-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.inspect-modal-overlay.hidden {
  display: none;
}

.inspect-modal-card {
  width: 100%;
  max-width: 390px;
  border-radius: 18px;
  background: linear-gradient(180deg, #121725 0%, #0b0f19 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 16px;
}

.inspect-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.inspect-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.inspect-modal-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.inspect-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.inspect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.inspect-stat {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inspect-stat-lbl {
  font-size: 10px;
  color: #94a3b8;
}

.inspect-stat-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.inspect-gpu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inspect-gpu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
}

.inspect-modal-actions {
  display: flex;
  gap: 8px;
}

.onboarding-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(14, 116, 144, 0.14));
  margin-bottom: 10px;
}

.onboarding-card.hidden {
  display: none;
}

.onb-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onb-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #e2e8f0;
  cursor: pointer;
}

.onb-step.done {
  opacity: 0.65;
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.onb-step-cta {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}

/* Темы оформления (Skins) */
body[data-skin="neon_cyber"] .bank-credit-card {
  background: linear-gradient(135deg, #06182c 0%, #0f172a 48%, #0c4a6e 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22);
}
body[data-skin="quantum_ice"] .bank-credit-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-color: rgba(186, 230, 253, 0.6);
  box-shadow: 0 12px 30px rgba(186, 230, 253, 0.16);
}
body[data-skin="sovereign_gold"] .bank-credit-card {
  background: linear-gradient(135deg, #1a1204 0%, #2a1d06 50%, #422006 100%);
  border-color: rgba(251, 191, 36, 0.68);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

/* 7-дневный календарь стрика */
.bonus-streak-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}
.streak-day {
  padding: 5px 2px;
  border-radius: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
.streak-day.done {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.48);
  color: #6ee7b7;
}
.streak-day.today {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

/* Витрина достижений */
.ach-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ach-badge-card {
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  cursor: pointer;
  color: #e2e8f0;
  transition: border-color 0.15s ease;
}
.ach-badge-card.locked {
  opacity: 0.45;
  cursor: default;
}
.ach-badge-card.equipped {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.14);
}
.ach-badge-title {
  font-size: 11.5px;
  font-weight: 700;
}
.ach-badge-desc {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}
.market-sell-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.market-sell-row {
  display: grid;
  grid-template-columns: 1fr 72px 110px;
  gap: 6px;
}
