/* ════════════════════════════════════════════════════════
   Terminal Grid V2 — unified theme (preview → main)
   Asset dock · cyber orb · nodes screenshot · nav · scroll
   ════════════════════════════════════════════════════════ */

/* ── Scrollbars hidden everywhere ───────────────────── */
.scroll,
.network-scroll,
.earn-scroll,
.wallet-scroll,
.nodes-scroll,
.app-pages,
.balance-modal__body,
.chakra-modal__body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll::-webkit-scrollbar,
.network-scroll::-webkit-scrollbar,
.earn-scroll::-webkit-scrollbar,
.wallet-scroll::-webkit-scrollbar,
.nodes-scroll::-webkit-scrollbar,
.app-pages::-webkit-scrollbar,
.balance-modal__body::-webkit-scrollbar,
.chakra-modal__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Topbar V2 + asset dock ───────────────────────────── */
.topbar--v2 {
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.app[data-active-tab="wallet"] .asset-dock {
  display: none;
}

.asset-dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(23, 18, 16, 0.95) 0%, rgba(15, 12, 10, 0.9) 100%);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.asset-dock__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(255, 170, 84, 0.2), rgba(216, 132, 255, 0.2), transparent);
}

.asset-dock__cell {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 10px 11px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}
.asset-dock__cell:active { background: rgba(255, 255, 255, 0.03); }

.asset-dock__glow {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.asset-dock__cell--usdt .asset-dock__glow {
  background: radial-gradient(ellipse 90% 80% at 0% 50%, rgba(255, 122, 26, 0.14), transparent 70%);
}
.asset-dock__cell--cryo .asset-dock__glow {
  background: radial-gradient(ellipse 90% 80% at 100% 50%, rgba(216, 132, 255, 0.12), transparent 70%);
}

.asset-dock__cell--usdt::before,
.asset-dock__cell--cryo::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.asset-dock__cell--usdt::before {
  left: 0;
  background: linear-gradient(180deg, transparent, var(--grid), transparent);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.45);
}
.asset-dock__cell--cryo::before {
  right: 0;
  background: linear-gradient(180deg, transparent, var(--cryo), transparent);
  box-shadow: 0 0 10px rgba(216, 132, 255, 0.35);
}

.asset-dock__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-dock__icon svg { width: 18px; height: 18px; }
.asset-dock__cell--usdt .asset-dock__icon {
  color: var(--grid);
  background: var(--primary-dim);
  border: 1px solid rgba(255, 122, 26, 0.3);
}
.asset-dock__cell--cryo .asset-dock__icon {
  color: var(--cryo);
  background: var(--premium-dim);
  border: 1px solid rgba(216, 132, 255, 0.3);
}

.asset-dock__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.asset-dock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.asset-dock__name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.asset-dock__cell--usdt .asset-dock__name { color: var(--grid-2); }
.asset-dock__cell--cryo .asset-dock__name { color: var(--cryo); }

.asset-dock__tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 1px 5px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.asset-dock__val {
  font-family: var(--font-mono);
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-dock__cell--usdt .asset-dock__val { color: var(--grid); }
.asset-dock__cell--cryo .asset-dock__val { color: var(--cryo); }

.asset-dock__hint {
  font-size: 9px;
  color: var(--text-faint);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-dock__val--ping,
.topbar-balance__val--ping {
  animation: asset-dock-ping 0.45s var(--ease-out);
}
@keyframes asset-dock-ping {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ── Cyber orb (core) ─────────────────────────────────── */
.core-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  gap: 12px;
  padding: 2px 0 4px;
}

.core-page__status {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}

.core-page__status .status-strip--pill {
  position: relative;
  z-index: 4;
  margin: 0;
}

.core-page__action {
  flex: 0 0 auto !important;
  width: 100%;
  padding: 0;
}

.cyber-orb-zone {
  width: var(--core-hero-size);
  height: var(--core-hero-size);
  min-height: var(--core-hero-size);
  max-height: var(--core-hero-size);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}

.core-page--cool .cyber-orb-zone,
.core-page:has(.core-metrics--recharging) .cyber-orb-zone {
  width: var(--core-hero-size-cooldown);
  height: var(--core-hero-size-cooldown);
  min-height: var(--core-hero-size-cooldown);
  max-height: var(--core-hero-size-cooldown);
}

.cyber-orb {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyber-orb__outer-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.15) 0%, rgba(216, 132, 255, 0.08) 50%, transparent 70%);
  filter: blur(28px);
  animation: v2-glow-pulse 2.5s ease-in-out infinite;
}

.cyber-orb__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cyber-orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}
.cyber-orb__ring--1 {
  width: 100%;
  height: 100%;
  border-color: rgba(255, 122, 26, 0.28);
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.25);
  animation: v2-rotate 20s linear infinite;
}
.cyber-orb__ring--2 {
  width: 82%;
  height: 82%;
  border-color: rgba(216, 132, 255, 0.35);
  box-shadow: 0 0 14px rgba(216, 132, 255, 0.2);
  animation: v2-rotate 15s linear infinite reverse;
}
.cyber-orb__ring--3 {
  width: 64%;
  height: 64%;
  border-width: 1px;
  border-color: rgba(255, 176, 74, 0.45);
  animation: v2-ring-pulse 3s ease-in-out infinite;
}

.cyber-orb__dot {
  position: absolute;
  border-radius: 50%;
  background: var(--grid-2);
  box-shadow: 0 0 8px rgba(255, 122, 26, 0.45);
}
.cyber-orb__ring--1 .cyber-orb__dot--a { top: 0; left: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); }
.cyber-orb__ring--1 .cyber-orb__dot--b { bottom: 0; left: 50%; width: 6px; height: 6px; transform: translate(-50%, 50%); background: var(--cryo); box-shadow: 0 0 8px rgba(216, 132, 255, 0.5); }
.cyber-orb__ring--2 .cyber-orb__dot--c { top: 50%; right: 0; width: 7px; height: 7px; transform: translate(50%, -50%); }
.cyber-orb__ring--2 .cyber-orb__dot--d { top: 50%; left: 0; width: 6px; height: 6px; transform: translate(-50%, -50%); background: var(--cryo); }

.cyber-orb__btn-wrap { position: relative; z-index: 2; }

.cyber-orb__btn {
  position: relative;
  width: clamp(140px, 38vw, 168px);
  height: clamp(140px, 38vw, 168px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  background: radial-gradient(circle at 30% 28%, #ffe08a 0%, var(--grid) 38%, #b45309 100%);
  box-shadow:
    0 0 40px rgba(255, 122, 26, 0.55),
    0 0 80px rgba(255, 122, 26, 0.25),
    inset 0 0 36px rgba(255, 157, 46, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.cyber-orb__btn:active,
.cyber-orb__btn.ai-core--charging {
  transform: scale(0.95);
  box-shadow:
    0 0 30px rgba(255, 122, 26, 0.75),
    0 0 60px rgba(216, 132, 255, 0.35),
    inset 0 0 48px rgba(255, 122, 26, 0.45);
}

.cyber-orb__btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  border-radius: 50%;
  pointer-events: none;
}
.cyber-orb__btn-inner {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: linear-gradient(225deg, rgba(216, 132, 255, 0.2) 0%, transparent 55%);
  animation: v2-pulse-inner 2s ease-in-out infinite;
  pointer-events: none;
}
.cyber-orb__btn-core {
  position: absolute;
  top: 22%;
  left: 22%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(10px);
  pointer-events: none;
}
.cyber-orb__scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}
.cyber-orb__scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  top: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: v2-scan-pulse 2s ease-in-out infinite;
}

.cyber-orb__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  pointer-events: none;
  gap: 2px;
}
.cyber-orb__title {
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.cyber-orb__hint {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 235, 210, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  text-align: center;
  line-height: 1.25;
  max-width: 88%;
}
.cyber-orb__hint .ai-core__tap-hint__cmd {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.cyber-orb__hint .ai-core__tap-hint__line {
  display: block;
  font-size: 8px;
  opacity: 0.9;
}
.cyber-orb__hint .ai-core__tap-hint__line--grid { color: var(--grid-2); }
.cyber-orb__hint .ai-core__tap-hint__line--cryo { color: var(--cryo); }

.cyber-orb__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 176, 74, 0.55);
  border-style: solid;
  pointer-events: none;
}
.cyber-orb__corner--tl { top: 18%; left: 18%; border-width: 2px 0 0 2px; }
.cyber-orb__corner--tr { top: 18%; right: 18%; border-width: 2px 2px 0 0; }
.cyber-orb__corner--bl { bottom: 18%; left: 18%; border-width: 0 0 2px 2px; }
.cyber-orb__corner--br { bottom: 18%; right: 18%; border-width: 0 2px 2px 0; }

.cyber-orb__dots {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.cyber-orb__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grid);
  box-shadow: 0 0 8px rgba(255, 122, 26, 0.45);
  animation: v2-dot-pulse 1.5s ease-in-out infinite;
}
.cyber-orb__dots span:nth-child(2) { animation-delay: 0.2s; background: var(--grid-2); }
.cyber-orb__dots span:nth-child(3) { animation-delay: 0.4s; background: var(--cryo); box-shadow: 0 0 8px rgba(216, 132, 255, 0.5); }

/* ── Core temperature: hot (ready) vs cool (recharging) ─ */
.cyber-orb--hot .cyber-orb__outer-glow {
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22) 0%, rgba(216, 132, 255, 0.1) 50%, transparent 70%);
}
.cyber-orb--hot .cyber-orb__btn {
  background: radial-gradient(circle at 30% 28%, #ffe08a 0%, var(--grid) 38%, #b45309 100%);
  box-shadow:
    0 0 40px rgba(255, 122, 26, 0.55),
    0 0 80px rgba(255, 122, 26, 0.25),
    inset 0 0 36px rgba(255, 157, 46, 0.35);
  filter: none;
  opacity: 1;
}
.cyber-orb--hot .cyber-orb__ring--1 {
  border-color: rgba(255, 122, 26, 0.35);
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.3);
}
.cyber-orb--hot .cyber-orb__ring--2 {
  border-color: rgba(216, 132, 255, 0.4);
}
.cyber-orb--hot .cyber-orb__dots span {
  opacity: 1;
}

.cyber-orb--cool .cyber-orb__outer-glow {
  opacity: 0.35;
  animation: none;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.06) 0%, rgba(80, 60, 40, 0.04) 55%, transparent 72%);
  filter: blur(22px);
}
.cyber-orb--cool .cyber-orb__ring--1 {
  border-color: rgba(255, 122, 26, 0.1);
  box-shadow: none;
  animation-duration: 48s;
}
.cyber-orb--cool .cyber-orb__ring--2 {
  border-color: rgba(216, 132, 255, 0.12);
  animation-duration: 36s;
}
.cyber-orb--cool .cyber-orb__ring--3 {
  border-color: rgba(255, 176, 74, 0.15);
  animation: none;
  opacity: 0.4;
}
.cyber-orb--cool .cyber-orb__dot {
  opacity: 0.35;
  box-shadow: none;
}
.cyber-orb--cool .cyber-orb__btn {
  background: radial-gradient(circle at 32% 30%, #6a5040 0%, #3d2818 42%, #1a120c 100%);
  box-shadow:
    0 0 18px rgba(255, 122, 26, 0.12),
    inset 0 0 28px rgba(0, 0, 0, 0.45);
  filter: saturate(0.35) brightness(0.78);
  opacity: 0.92;
}
.cyber-orb--cool .cyber-orb__btn-inner,
.cyber-orb--cool .cyber-orb__scan {
  opacity: 0.12;
  animation: none;
}
.cyber-orb--cool .cyber-orb__title {
  color: rgba(255, 235, 210, 0.72);
}
.cyber-orb--cool .cyber-orb__corner {
  border-color: rgba(255, 176, 74, 0.2);
}
.cyber-orb--cool .cyber-orb__dots span {
  opacity: 0.25;
  animation: none;
  box-shadow: none;
}

.cyber-orb__hint.ai-core__tap-hint--hidden {
  display: none;
}

.core-page--hot .core-tap-timer--visible {
  color: var(--grid-2);
}
.core-page--cool .core-tap-timer--visible {
  color: rgba(255, 176, 74, 0.55);
}

.ai-core--recharging.cyber-orb__btn,
.cyber-orb--cool .cyber-orb__btn.ai-core--recharging {
  filter: saturate(0.35) brightness(0.78);
}
.ai-core--complete .cyber-orb__btn {
  box-shadow:
    0 0 50px rgba(56, 217, 150, 0.45),
    inset 0 0 36px rgba(56, 217, 150, 0.2);
}

@keyframes v2-rotate { to { transform: rotate(360deg); } }
@keyframes v2-glow-pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes v2-ring-pulse { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.06); opacity: 0.85; } }
@keyframes v2-pulse-inner { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
@keyframes v2-scan-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
@keyframes v2-dot-pulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

/* ── Bottom nav — labels always visible ───────────────── */
.nav__tab .nav__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  opacity: 0.55;
  max-height: none;
  overflow: visible;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav__tab.nav__tab--active .nav__label {
  opacity: 1;
  color: var(--grid-2);
}
.nav__tab:not(.nav__tab--core)::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: var(--grid);
  border-radius: 2px;
  transition: width 0.22s ease;
  box-shadow: 0 0 6px rgba(255, 122, 26, 0.45);
  z-index: 2;
}
.nav__tab:not(.nav__tab--core).nav__tab--active::after {
  width: calc(100% - 10px);
  max-width: 44px;
}
.nav__tab:not(.nav__tab--core)::before {
  opacity: 0 !important;
}
.nav__tab--core .nav__icon--core {
  border-color: rgba(255, 122, 26, 0.45);
  background: linear-gradient(145deg, var(--primary-dim), var(--premium-dim));
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.45);
}
.nav__tab--core.nav__tab--active .nav__icon--core {
  border-color: var(--grid);
  box-shadow: 0 0 20px rgba(255, 122, 26, 0.5);
}

/* ── Page titles — solid, no animation ──────────────── */
.screen-head__title {
  color: #fff;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
.screen-head--earn .screen-head__title,
.screen-head--network .screen-head__title {
  font-size: clamp(24px, 7vw, 32px);
}

/* ── Nodes page — screenshot style ──────────────────── */
.screen-head--nodes .screen-head__sub {
  display: none;
}

.screen-head__title--nodes {
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.nodes-tabs__btn {
  border-radius: 10px;
  background: transparent;
}
.nodes-tabs__btn--active {
  color: var(--grid);
  border: 2px solid var(--grid);
  background: rgba(255, 122, 26, 0.08);
}

.store-list {
  gap: 12px;
}

.node-card--store,
.node-card--mine {
  border-radius: 12px;
  border: 1px solid rgba(140, 92, 255, 0.22);
  background: rgba(12, 10, 14, 0.92);
  transition: none;
  animation: none;
}

.node-card--store.node-card--owned {
  border-color: rgba(140, 92, 255, 0.32);
}

.node-card__hero-val {
  color: var(--grid);
}

.node-card__activate--owned,
.node-card__activate.deploy-btn--owned {
  color: #38f27a;
  background: #1b2e1b;
  border-top: 1px solid rgba(56, 217, 150, 0.2);
  cursor: default;
}

.node-card__activate--ready {
  color: var(--grid-2);
  background: rgba(255, 122, 26, 0.12);
  border-top: 1px solid rgba(255, 122, 26, 0.2);
}

.node-card__cryo-badge {
  color: var(--cryo);
  background: rgba(140, 92, 255, 0.14);
  border-color: rgba(140, 92, 255, 0.35);
}

.node-card__details-summary {
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Kill legacy node card motion */
.node-card {
  transition: none !important;
  animation: none !important;
}

@media (max-width: 360px) {
  .asset-dock__hint { display: none; }
  .asset-dock__tag { display: none; }
  .asset-dock { min-height: 64px; }
  .nav__tab .nav__label { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cyber-orb__ring,
  .cyber-orb__outer-glow,
  .cyber-orb__btn-inner,
  .cyber-orb__scan-line,
  .cyber-orb__dots span {
    animation: none !important;
  }
}
