﻿:root {
  --bg: #05070f;
  --panel: rgba(12, 18, 34, 0.78);
  --panel-strong: rgba(18, 27, 50, 0.94);
  --line: rgba(120, 244, 255, 0.18);
  --text: #effbff;
  --muted: #9fb3c8;
  --cyan: #70f7ff;
  --cyan-soft: rgba(112, 247, 255, 0.14);
  --gold: #f4d47b;
  --green: #35f0a3;
  --red: #ff5c8a;
  --purple: #8f7cff;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 4%, rgba(112, 247, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(143, 124, 255, 0.14), transparent 26rem),
    linear-gradient(135deg, #03040a 0%, #071220 47%, #03050a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(112, 247, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 247, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 112px;
}

.topbar,
.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 0;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 10, 21, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.topbar {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 0 0 24px 24px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  min-width: 0;
}

.brand-logo {
  width: min(72vw, 280px);
  height: 72px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: brightness(1.8);
  animation: none;
}

.brand-text,
.brand-text strong,
.brand-text span {
  display: none !important;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-link,
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.top-link {
  gap: 6px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
  font-size: 0.78rem;
}

.top-link:hover,
.nav-link:hover {
  color: var(--text);
  border-color: rgba(112, 247, 255, 0.38);
  background: var(--cyan-soft);
  box-shadow: 0 0 24px rgba(112, 247, 255, 0.12);
}

.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.bottom-nav {
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 24px 24px 0 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
}

.nav-link {
  min-height: 62px;
  flex-direction: column;
  gap: 4px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
}

.nav-link[data-nav="hold"] {
  position: relative;
  --hold-button-width: min(82px, 20vw);
  --hold-button-height: min(82px, 20vw);
  overflow: visible;
  min-height: 88px;
  margin-top: -22px;
  padding: 0;
  color: var(--text);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  animation: holdButtonFloat 3s ease-in-out infinite;
}

.nav-link[data-nav="hold"]::before,
.nav-link[data-nav="hold"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--hold-button-width);
  height: var(--hold-button-height);
  border-radius: 24px;
  pointer-events: none;
}

.nav-link[data-nav="hold"]::before {
  z-index: 0;
  border: 1px solid rgba(244, 212, 123, 0.88);
  background: radial-gradient(circle, rgba(244, 212, 123, 0.2), rgba(112, 247, 255, 0.08) 58%, transparent 72%);
  box-shadow:
    0 0 0 1px rgba(112, 247, 255, 0.24),
    0 0 10px rgba(244, 212, 123, 0.62),
    0 0 18px rgba(255, 190, 65, 0.42),
    0 0 24px rgba(112, 247, 255, 0.24);
  transform: translate(-50%, -50%);
  animation: holdGlowPulse 2.4s ease-in-out infinite;
}

.nav-link[data-nav="hold"]::after {
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 135, 0.28);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 225, 135, 0.74) 48%, transparent 61%);
  background-size: 240% 100%;
  animation: holdLightSweep 2.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.nav-link[data-nav="hold"]:hover {
  color: var(--text);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.nav-link .icon {
  width: 25px;
  height: 25px;
}

.nav-link[data-nav="hold"] .icon {
  width: 31px;
  height: 31px;
}

.nav-hold-image {
  position: relative;
  z-index: 1;
  width: var(--hold-button-width);
  height: var(--hold-button-height);
  object-fit: contain;
  border-radius: 26px;
  filter:
    drop-shadow(0 6px 10px rgba(244, 212, 123, 0.42))
    drop-shadow(0 0 10px rgba(255, 190, 65, 0.38))
    drop-shadow(0 0 8px rgba(112, 247, 255, 0.24));
}

@keyframes holdGlowPulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes holdLightSweep {
  0%,
  48% {
    transform: translate(-50%, -50%);
    background-position: 150% 0;
    opacity: 0;
  }
  60% {
    opacity: 0.85;
  }
  82%,
  100% {
    transform: translate(-50%, -50%);
    background-position: -150% 0;
    opacity: 0;
  }
}

@keyframes holdButtonFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.04);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: center;
  min-height: 520px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(120deg, rgba(112, 247, 255, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(12, 18, 34, 0.88), rgba(5, 8, 18, 0.84));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.18), transparent 67%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  color: var(--cyan);
  border: 1px solid rgba(112, 247, 255, 0.28);
  border-radius: 999px;
  background: rgba(112, 247, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #ffffff, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 680px;
  color: #bdd1df;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(112, 247, 255, 0.24);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 900;
  transition: 0.18s ease;
}

.btn.primary {
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  box-shadow: 0 12px 36px rgba(112, 247, 255, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
}

.phone-card,
.panel,
.card,
.market-row,
.trade-box,
.chat-item {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 34px;
}

.balance-card {
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 212, 123, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(112, 247, 255, 0.14), rgba(143, 124, 255, 0.12));
  border: 1px solid rgba(112, 247, 255, 0.2);
}

.balance-label,
.small-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.balance {
  margin: 10px 0 4px;
  font-size: 2.4rem;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.quick {
  padding: 14px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.section {
  margin-top: 28px;
}

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

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

.card,
.panel {
  border-radius: 26px;
  padding: 22px;
}

.card p,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.stat {
  margin: 10px 0 0;
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.market-list {
  display: grid;
  gap: 12px;
}

.market-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.6fr 0.7fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
}

.coin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-weight: 950;
}

.coin strong,
.trade-pair strong {
  display: block;
}

.coin span,
.trade-pair span,
.muted {
  color: var(--muted);
}

.page-hero {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(112, 247, 255, 0.11), rgba(12, 18, 34, 0.82));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.tab {
  padding: 10px 14px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.trade-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.chart {
  min-height: 360px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(112, 247, 255, 0.08), transparent),
    repeating-linear-gradient(to right, rgba(112, 247, 255, 0.06) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to bottom, rgba(112, 247, 255, 0.06) 0 1px, transparent 1px 48px);
  position: relative;
  overflow: hidden;
}

.chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trade-box {
  padding: 20px;
  border-radius: 24px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  border: 1px solid rgba(112, 247, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0 12px;
  outline: none;
}

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

.vault-timeline {
  display: grid;
  gap: 12px;
}

.vault-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(112, 247, 255, 0.14);
}

.ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--cyan);
  border: 3px solid rgba(112, 247, 255, 0.3);
  font-weight: 950;
}

.asset-list,
.chat-list {
  display: grid;
  gap: 12px;
}

.asset-row,
.chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
}

.chat-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  font-weight: 950;
}

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

.profile-screen {
  max-width: 980px;
}

.admin-screen {
  max-width: 1080px;
  padding-top: 24px;
  padding-bottom: 40px;
}

body[data-page="admin"] .topbar,
body[data-page="admin"] .bottom-nav {
  display: none !important;
}

.admin-users-panel {
  width: 100%;
}

.admin-users-panel .users-list {
  max-height: none;
  overflow: visible;
}

.admin-user-detail-panel {
  width: 100%;
}

.admin-screen h1 {
  margin-bottom: 8px;
}

.admin-screen h3 {
  margin: 20px 0 8px;
}

.admin-form {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 6px;
}

.admin-user-summary-grid > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-user-summary-grid strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-predictions-panel {
  grid-column: 1 / -1;
}

.admin-chart-desk-panel {
  grid-column: 1 / -1;
}

.admin-chart-desk-layout {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 12px;
  min-height: 420px;
}

.admin-chart-pairs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow: auto;
}

.admin-chart-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.admin-chart-pair.active {
  border-color: rgba(112, 247, 255, 0.45);
  background: rgba(112, 247, 255, 0.08);
}

.admin-chart-pair span {
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-chart-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-chart-head-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-chart-symbol {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0ecb81;
  font-weight: 600;
}

.admin-chart-head strong {
  font-size: 1.1rem;
  color: var(--text);
}

.admin-chart-intervals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-chart-canvas {
  height: 320px;
  min-height: 280px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #05070f;
}

.admin-chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-lock-close-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-lock-close-field input {
  width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(112, 247, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.admin-feed-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(112, 247, 255, 0.25);
  color: #70f7ff;
}

.admin-chart-trades {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-chart-trades-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
  overflow: auto;
}

.admin-chart-trade-row {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
}

.admin-chart-trade-row strong {
  color: var(--text);
}

.admin-chart-trade-row em {
  color: #70f7ff;
  font-style: normal;
}

@media (max-width: 900px) {
  .admin-chart-desk-layout {
    grid-template-columns: 1fr;
  }

  .admin-chart-pairs {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }

  .admin-chart-pair {
    flex: 1 1 calc(50% - 6px);
  }
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-section-head h2 {
  margin-bottom: 4px;
}

.admin-predictions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.admin-prediction-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 124, 255, 0.12), transparent 36%),
    rgba(5, 10, 21, 0.62);
}

.admin-prediction-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.admin-prediction-meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
}

.admin-prediction-meta strong {
  color: var(--text);
  font-size: 12px;
}

.hold-screen {
  width: min(780px, calc(100% - 20px));
  display: grid;
  gap: 12px;
  padding-top: 78px;
}

.hold-top-card {
  display: grid;
  gap: 12px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 22px 22px 0 0;
  border-bottom: 0;
  background: rgba(8, 14, 25, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.hold-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hold-top-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hold-top-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(112, 247, 255, 0.1);
  border: 1px solid rgba(112, 247, 255, 0.18);
}

.hold-top-card h1 {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hold-top-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hold-top-side {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex: 0 0 auto;
}

.hold-currency-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  color: var(--cyan);
  background: rgba(112, 247, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
}

.hold-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(244, 212, 123, 0.26);
  border-radius: 0 16px 16px 0;
  color: var(--gold);
  background: rgba(244, 212, 123, 0.08);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 950;
}

.hold-info-btn .icon {
  width: 17px;
  height: 17px;
}

.hold-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 13, 0.72);
  backdrop-filter: blur(16px);
}

.hold-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  max-height: min(88vh, 640px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 25, 45, 0.98), rgba(8, 13, 25, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.hold-modal-card-wide {
  width: min(100%, 480px);
}

.hold-modal-card h3 {
  margin: 0;
}

.hold-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hold-modal-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.hold-info-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hold-info-steps li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(112, 247, 255, 0.1);
}

.hold-info-steps strong {
  font-size: 0.84rem;
}

.hold-info-steps span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.hold-mine-balance {
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px 150px 14px 16px;
  border: 1px solid rgba(244, 212, 123, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 212, 123, 0.16), transparent 50%),
    rgba(0, 0, 0, 0.2);
}

.hold-mine-balance span,
.hold-mine-balance small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.hold-mine-balance strong {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  letter-spacing: -0.04em;
}

.hold-history-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  padding: 0 14px;
  border: 1px solid rgba(244, 212, 123, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(244, 212, 123, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.hold-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: -12px;
  padding: 0 4px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(180deg, rgba(112, 247, 255, 0.045), rgba(0, 0, 0, 0.24)),
    rgba(8, 14, 25, 0.95);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  position: sticky;
  top: 72px;
  z-index: 5;
}

.hold-tabs button {
  position: relative;
  min-height: 50px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.hold-tabs button.active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.hold-tabs button.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(112, 247, 255, 0.35);
}

.hold-section-card {
  padding: 0;
  min-height: 320px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.hold-section-head {
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 0 2px;
}

.hold-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.hold-hidden-status {
  display: none;
}

.hold-modal .hold-history-list {
  display: grid;
  gap: 8px;
  max-height: 52vh;
  overflow: auto;
}

.hold-empty-state {
  display: grid;
  gap: 6px;
  padding: 28px 16px;
  text-align: center;
}

.hold-empty-state strong {
  font-size: 0.95rem;
}

.hold-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.hold-primary-section {
  background: transparent;
}

.hold-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 10px;
}

.hold-offer-card,
.hold-user-card,
.hold-global-row,
.hold-history-item {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.038);
}

.hold-offer-card {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.hold-card-head,
.hold-user-card,
.hold-global-row,
.hold-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hold-card-head {
  align-items: flex-start;
}

.hold-card-head > div {
  min-width: 0;
  flex: 1;
}

.hold-card-head strong,
.hold-user-card strong,
.hold-global-row strong,
.hold-history-item strong {
  display: block;
}

.hold-card-head small,
.hold-user-card small,
.hold-global-row small,
.hold-history-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hold-coin-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  overflow: hidden;
  color: #041018;
  background: transparent;
  font-weight: 950;
}

.hold-coin-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.hold-yield-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(244, 212, 123, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(244, 212, 123, 0.09);
  font-size: 0.68rem;
  font-weight: 950;
}

.hold-offer-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.hold-offer-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.hold-offer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hold-offer-facts span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
}

.hold-offer-facts small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hold-offer-facts strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hold-buy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hold-buy-row input {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  font-weight: 900;
}

.hold-user-grid,
.hold-global-list,
.hold-history-list {
  display: grid;
  gap: 8px;
}

.hold-global-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.hold-user-card,
.hold-global-row,
.hold-history-item {
  justify-content: space-between;
  padding: 11px;
}

.hold-global-row {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  justify-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-color: rgba(244, 212, 123, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 212, 123, 0.12), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(112, 247, 255, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.hold-global-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.045) 42%, transparent 70%);
}

.hold-global-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.hold-global-top b {
  grid-column: auto;
  color: var(--gold);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  text-align: right;
  white-space: nowrap;
}

.hold-global-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(112, 247, 255, 0.12);
}

.hold-global-meter {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.hold-global-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 18px rgba(244, 212, 123, 0.28);
}

.hold-global-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.hold-global-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.hold-global-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hold-global-stats strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hold-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hold-user-main > div,
.hold-history-item > div {
  min-width: 0;
  flex: 1;
}

.hold-user-card b,
.hold-global-row b,
.hold-history-item b {
  color: var(--gold);
  text-align: right;
}

.hold-user-value {
  display: grid;
  gap: 2px;
  text-align: right;
}

.hold-user-value small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.admin-holding-offers-panel {
  grid-column: 1 / -1;
}

.admin-holding-offers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-card {
  display: grid;
  gap: 22px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  font-size: 1.8rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.profile-stats span,
.mini-status {
  padding: 12px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.profile-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.profile-hub {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.profile-hub-compact {
  width: min(520px, calc(100% - 20px));
  padding-top: 62px;
}

.profile-hub-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.profile-identity-card-compact {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgb(255, 255, 255);
  background: linear-gradient(160deg, #1a2332 0%, #0b1018 55%, #12182a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.profile-identity-card-compact::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(244, 212, 123, 0.11);
  filter: blur(2px);
}

.profile-identity-card-compact::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: -24px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(112, 247, 255, 0.08);
}

.profile-identity-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-identity-card-compact .profile-identity-top {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(170px, 1fr) 1.35fr;
  align-items: center;
  gap: 16px;
}

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

.profile-avatar-lg {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.profile-avatar-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-avatar-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(112, 247, 255, 0.18);
}

.profile-avatar-link.disabled {
  pointer-events: none;
  cursor: default;
}

.profile-avatar-link > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.profile-identity-copy h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.profile-handle {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-bio-line,
.profile-meta-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.profile-rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(112, 247, 255, 0.25);
  background: rgba(112, 247, 255, 0.1);
  color: #b8f7ff;
}

.profile-rank-badge.rank-bronze { border-color: rgba(205, 127, 50, 0.5); background: rgba(205, 127, 50, 0.15); color: #ffd9b0; }
.profile-rank-badge.rank-silver { border-color: rgba(192, 192, 192, 0.5); background: rgba(192, 192, 192, 0.12); color: #f0f0f0; }
.profile-rank-badge.rank-gold { border-color: rgba(244, 212, 123, 0.5); background: rgba(244, 212, 123, 0.14); color: #ffe9a8; }
.profile-rank-badge.rank-platinum { border-color: rgba(170, 220, 255, 0.5); background: rgba(170, 220, 255, 0.12); color: #dff4ff; }
.profile-rank-badge.rank-diamond { border-color: rgba(112, 247, 255, 0.55); background: rgba(112, 247, 255, 0.18); color: #d8ffff; }

.profile-hub-actions {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.profile-fund-grid {
  margin-bottom: 10px;
}

.profile-action-withdraw {
  border-color: rgba(246, 70, 93, 0.35);
  background: rgba(246, 70, 93, 0.12);
}

.profile-action-withdraw strong {
  color: #ff8fa0;
}

.profile-action-withdraw span {
  color: rgba(255, 143, 160, 0.75);
}

.profile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  border-radius: 16px;
  color: #e8f7ff;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.profile-action-btn strong {
  display: block;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-action-btn span {
  display: block;
  width: 100%;
  color: rgba(180, 200, 214, 0.85);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.profile-action-btn:hover {
  border-color: rgba(112, 247, 255, 0.45);
  background: rgba(112, 247, 255, 0.1);
}

.profile-action-btn.is-primary,
.profile-action-demo.is-primary {
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, #9afcff, #35f0a3);
  box-shadow: 0 10px 24px rgba(112, 247, 255, 0.28);
}

.profile-action-btn.is-primary span,
.profile-action-demo.is-primary span {
  color: rgba(4, 16, 24, 0.72);
}

.profile-action-demo {
  min-height: 64px;
  padding: 12px 14px;
}

.profile-action-demo.is-claimed {
  opacity: 0.75;
  cursor: default;
  border-color: rgba(14, 203, 129, 0.35);
  background: rgba(14, 203, 129, 0.12);
}

.profile-action-demo.is-claimed strong {
  color: #9affc9;
}

.profile-action-logout:hover {
  border-color: rgba(246, 70, 93, 0.45);
  background: rgba(246, 70, 93, 0.12);
}

.profile-hub-actions .btn {
  display: none;
}

.profile-activity-section {
  display: grid;
  gap: 12px;
}

.profile-text-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding-bottom: 2px;
}

.profile-text-tabs::-webkit-scrollbar {
  display: none;
}

.profile-text-tab {
  width: 100%;
  min-width: 0;
  padding: 0 2px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: clamp(0.72rem, 2.6vw, 0.9rem);
  font-weight: 900;
  cursor: pointer;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.profile-text-tab.active {
  color: var(--text);
}

.profile-text-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(42px, 70%);
  transform: translateX(-50%);
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #ffe27a);
}

.profile-activity-status {
  margin: 4px 0 0;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.profile-activity-status[hidden] {
  display: none !important;
}

.profile-activity-list {
  display: grid;
  gap: 10px;
}

.profile-activity-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.profile-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-activity-head strong {
  font-size: 0.88rem;
}

.profile-activity-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
}

.profile-activity-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

.profile-activity-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: capitalize;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.profile-activity-badge.approved,
.profile-activity-badge.released,
.profile-activity-badge.completed {
  color: #9ff7c8;
  border-color: rgba(159, 247, 200, 0.25);
  background: rgba(159, 247, 200, 0.08);
}

.profile-activity-badge.pending,
.profile-activity-badge.open {
  color: #ffe27a;
  border-color: rgba(255, 226, 122, 0.25);
  background: rgba(255, 226, 122, 0.08);
}

.profile-activity-badge.rejected,
.profile-activity-badge.cancelled,
.profile-activity-badge.lost {
  color: #ff9f9f;
  border-color: rgba(255, 159, 159, 0.25);
  background: rgba(255, 159, 159, 0.08);
}

.exchange-screen {
  width: min(520px, calc(100% - 20px));
  display: grid;
  gap: 14px;
  padding-top: 74px;
  padding-bottom: 120px;
  margin: 0 auto;
}

.exchange-hero-card,
.exchange-swap-card,
.exchange-market-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  background: linear-gradient(160deg, #1a2332 0%, #0b1018 58%, #12182a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.exchange-hero-card {
  padding: 20px 18px 16px;
}

.exchange-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exchange-hero-card h1 {
  margin: 6px 0 4px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.exchange-hero-card .lead,
.exchange-hero-card .eyebrow {
  position: relative;
  z-index: 1;
}

.exchange-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.exchange-wallet-chip,
.exchange-status-chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.exchange-wallet-chip strong,
.exchange-status-chip {
  color: var(--text);
}

.exchange-live-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exchange-live-badge.is-live {
  border-color: rgba(112, 247, 255, 0.35);
  background: rgba(112, 247, 255, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(112, 247, 255, 0.2);
}

.exchange-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.exchange-orb-a {
  top: -58px;
  right: -42px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.26), transparent 72%);
}

.exchange-orb-b {
  bottom: -70px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(244, 212, 123, 0.14), transparent 72%);
}

.exchange-swap-card,
.exchange-market-card {
  padding: 16px;
}

.exchange-form {
  display: grid;
  gap: 14px;
}

.exchange-swap-stack {
  position: relative;
  display: grid;
  gap: 10px;
}

.exchange-asset-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.exchange-asset-panel-from {
  border-color: rgba(112, 247, 255, 0.14);
}

.exchange-asset-panel-to {
  border-color: rgba(244, 212, 123, 0.12);
}

.exchange-asset-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.exchange-asset-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  color: #041018;
  font-size: 0.72rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.92);
}

.exchange-asset-badge img,
.exchange-pill-badge img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.exchange-asset-badge[data-asset="BTC"] { background: linear-gradient(135deg, #f7931a, #ffd27a); }
.exchange-asset-badge[data-asset="ETH"] { background: linear-gradient(135deg, #627eea, #9eb7ff); color: #fff; }
.exchange-asset-badge[data-asset="BNB"] { background: linear-gradient(135deg, #f0b90b, #ffe58f); }
.exchange-asset-badge[data-asset="SOL"] { background: linear-gradient(135deg, #9945ff, #14f195); color: #fff; }
.exchange-asset-badge[data-asset="USDT"] { background: linear-gradient(135deg, #26a17b, #7dffd0); }
.exchange-asset-badge[data-asset="XRP"] { background: linear-gradient(135deg, #23292f, #8aa0b8); color: #fff; }
.exchange-asset-badge[data-asset="NEAR"] { background: linear-gradient(135deg, #00c08b, #7dffd0); }
.exchange-asset-badge[data-asset="WLD"] { background: linear-gradient(135deg, #1a1a1a, #8a8a8a); color: #fff; }

.exchange-asset-top .small-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exchange-asset-top strong {
  font-size: 0.95rem;
}

.exchange-amount-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.exchange-amount-wrap input,
.exchange-asset-select {
  min-height: 50px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-weight: 900;
}

.exchange-amount-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  font-size: 1.15rem;
}

.exchange-amount-wrap-receive input {
  color: var(--cyan);
}

.exchange-asset-select {
  padding: 0 10px;
  max-width: 96px;
}

.exchange-asset-price {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.exchange-switch-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  box-shadow: 0 14px 32px rgba(112, 247, 255, 0.22), 0 0 0 6px rgba(11, 16, 24, 0.95);
  cursor: pointer;
}

.exchange-switch-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(112, 247, 255, 0.35);
  opacity: 0.6;
}

.exchange-switch-btn svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.exchange-quote-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.exchange-quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.exchange-quote-row span {
  color: var(--muted);
  font-weight: 700;
}

.exchange-quote-row strong {
  color: var(--text);
  font-size: 0.82rem;
  text-align: right;
}

.exchange-quote-row-highlight {
  padding-top: 8px;
  border-top: 1px solid rgba(112, 247, 255, 0.1);
}

.exchange-receive-value {
  color: var(--cyan);
}

.exchange-submit-btn {
  min-height: 52px;
  width: 100%;
}

.exchange-footnote {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.exchange-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.exchange-market-head h2 {
  margin: 0;
  font-size: 1rem;
}

.exchange-market-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.exchange-market-pills::-webkit-scrollbar {
  display: none;
}

.exchange-market-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid rgba(112, 247, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.exchange-market-pill.is-active {
  border-color: rgba(112, 247, 255, 0.45);
  background: rgba(112, 247, 255, 0.1);
  box-shadow: 0 0 20px rgba(112, 247, 255, 0.12);
}

.exchange-pill-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  overflow: hidden;
  color: #041018;
  font-size: 0.68rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.92);
}

.exchange-pill-badge[data-asset="BTC"] { background: linear-gradient(135deg, #f7931a, #ffd27a); }
.exchange-pill-badge[data-asset="ETH"] { background: linear-gradient(135deg, #627eea, #9eb7ff); color: #fff; }
.exchange-pill-badge[data-asset="BNB"] { background: linear-gradient(135deg, #f0b90b, #ffe58f); }
.exchange-pill-badge[data-asset="SOL"] { background: linear-gradient(135deg, #9945ff, #14f195); color: #fff; }
.exchange-pill-badge[data-asset="XRP"] { background: linear-gradient(135deg, #23292f, #8aa0b8); color: #fff; }
.exchange-pill-badge[data-asset="NEAR"] { background: linear-gradient(135deg, #00c08b, #7dffd0); }
.exchange-pill-badge[data-asset="WLD"] { background: linear-gradient(135deg, #1a1a1a, #8a8a8a); color: #fff; }

.exchange-pill-copy strong,
.exchange-pill-copy small {
  display: block;
}

.exchange-pill-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.profile-hub-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-hub-stats-inline {
  gap: 12px;
  align-items: center;
}

.profile-stat-tile {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.profile-hub-stats-inline .profile-stat-tile {
  min-height: auto;
  padding: 0;
  align-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-hub-stats-inline .profile-stat-tile span {
  order: 1;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.1;
}

.profile-hub-stats-inline .profile-stat-tile strong {
  order: 2;
  margin-top: 5px;
  font-size: 1.04rem;
  line-height: 1;
}

.profile-stat-tile strong {
  color: var(--text);
  font-size: 1rem;
}

.profile-stat-wallet strong {
  color: #ffe27a;
}

.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-card-head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.profile-link-btn {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan);
}

.profile-rank-current {
  margin: 0 0 8px;
  font-weight: 800;
}

.profile-rank-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #ffe27a);
}

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

.profile-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.profile-posts-feed {
  display: grid;
  gap: 10px;
}

.profile-post-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.profile-post-card p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-post-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.profile-post-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

.profile-subpage {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.referral-page-shell {
  max-width: 520px;
  padding-top: 74px;
  padding-bottom: 120px;
}

.referral-single-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.16);
  background: linear-gradient(160deg, #1a2332 0%, #0b1018 58%, #12182a 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 40px rgba(112, 247, 255, 0.08);
}

.referral-single-card::before {
  content: "";
  position: absolute;
  top: -52px;
  right: -44px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.22), rgba(244, 212, 123, 0.08) 48%, transparent 72%);
}

.referral-single-card::after {
  content: "";
  position: absolute;
  bottom: -76px;
  left: -44px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(112, 247, 255, 0.07);
}

.referral-single-card > * {
  position: relative;
  z-index: 1;
}

.referral-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.referral-title-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  font-size: 1.25rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(112, 247, 255, 0.22);
}

.referral-title h1 {
  margin: 0;
  color: #b8f7ff;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(112, 247, 255, 0.18);
}

.referral-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(112, 247, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.7rem;
  line-height: 1;
}

.referral-card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.referral-main-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.referral-main-row-link {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.referral-code-input,
.referral-link-input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.referral-link-input {
  font-size: 0.84rem;
}

.referral-single-card .btn.primary {
  min-height: 50px;
  border-radius: 14px;
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  box-shadow: 0 14px 32px rgba(112, 247, 255, 0.2);
}

.referral-single-card .btn.primary:nth-of-type(2),
.referral-single-card [data-referral-share] {
  background: linear-gradient(135deg, #f4d47b, #fff3b0);
  box-shadow: 0 14px 32px rgba(244, 212, 123, 0.16);
}

.referral-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.referral-summary-row strong {
  color: #ffe27a;
}

.referral-network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.referral-network-grid h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.referral-user-list {
  display: grid;
  gap: 8px;
}

.referral-user-list p {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid rgba(112, 247, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
}

.referral-user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 13px;
  border: 1px solid rgba(112, 247, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.referral-user-row .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.referral-user-row strong,
.referral-user-row small {
  display: block;
}

.referral-user-row strong {
  font-size: 0.78rem;
}

.referral-user-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.referral-hero-card,
.referral-code-card,
.referral-link-card,
.referral-stat-card,
.referral-apply-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #1a2332 0%, #0b1018 58%, #12182a 100%);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.referral-hero-card {
  padding: 20px 18px;
}

.referral-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.referral-hero-card .lead,
.referral-hero-card .eyebrow {
  position: relative;
  z-index: 1;
}

.referral-glow {
  position: absolute;
  right: -50px;
  top: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.28), rgba(244, 212, 123, 0.1) 48%, transparent 70%);
}

.referral-code-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px 18px;
  text-align: center;
}

.referral-code-card code {
  width: 100%;
  padding: 18px 12px;
  border-radius: 18px;
  border: 1px dashed rgba(112, 247, 255, 0.35);
  background: rgba(112, 247, 255, 0.06);
  color: #b8f7ff;
  font-size: clamp(1.8rem, 8vw, 2.45rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-shadow: 0 0 22px rgba(112, 247, 255, 0.32);
}

.referral-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.referral-actions .btn,
.referral-link-row .btn,
.referral-apply-form .btn {
  min-height: 46px;
}

.referral-link-card,
.referral-apply-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.referral-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.referral-link-input {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.referral-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.referral-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(112, 247, 255, 0.2);
}

.referral-stat-card strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.referral-stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.referral-apply-card h2 {
  margin: 0;
  font-size: 1rem;
}

.referral-apply-card .status-line {
  margin: 0;
}

@media (max-width: 420px) {
  .referral-main-row,
  .referral-main-row-link,
  .referral-network-grid {
    grid-template-columns: 1fr;
  }

  .referral-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
  }
}

.rank-current-banner {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(112, 247, 255, 0.06);
}

.rank-tiers-list {
  display: grid;
  gap: 14px;
}

.rank-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ranks-showcase-page {
  perspective: 1000px;
  padding-bottom: 120px;
}

.rank-hero-card,
.rank-path-card,
.rank-tier-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #1a2332 0%, #0b1018 58%, #12182a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rank-hero-card {
  padding: 20px 18px;
}

.rank-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0 6px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.rank-hero-card .lead,
.rank-hero-card .eyebrow,
.rank-current-banner {
  position: relative;
  z-index: 1;
}

.rank-hero-orb {
  position: absolute;
  right: -48px;
  top: -54px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.28), rgba(244, 212, 123, 0.1) 48%, transparent 70%);
  filter: blur(1px);
  animation: rankFloat 4.5s ease-in-out infinite;
}

.rank-current-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.rank-current-banner strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.rank-path-card {
  padding: 24px 14px 18px;
}

.rank-path-track {
  position: relative;
  height: 58px;
}

.rank-path-track::before,
.rank-path-fill {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18px;
  height: 5px;
  border-radius: 999px;
}

.rank-path-track::before {
  background: rgba(255, 255, 255, 0.1);
}

.rank-path-fill {
  right: auto;
  width: 0;
  max-width: 84%;
  background: linear-gradient(90deg, var(--cyan), #ffe27a, #a78bfa);
  box-shadow: 0 0 22px rgba(112, 247, 255, 0.35);
  transition: width 0.55s ease;
}

.rank-path-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.rank-path-node {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.rank-path-node i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, #151d2c, #080c14);
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.32);
}

.rank-path-node.unlocked i,
.rank-path-node.active i {
  border-color: rgba(112, 247, 255, 0.5);
  background: radial-gradient(circle at 35% 25%, #ffffff, var(--cyan) 28%, #167483 70%);
  box-shadow: 0 0 24px rgba(112, 247, 255, 0.38), inset 0 -6px 12px rgba(0, 0, 0, 0.25);
}

.rank-path-node.active {
  color: var(--text);
}

.rank-tier-card {
  min-height: 176px;
  padding: 18px;
  transform-style: preserve-3d;
  animation: rankRise 0.45s ease both;
  animation-delay: var(--rank-delay, 0s);
}

.rank-tier-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 36%, rgba(112, 247, 255, 0.08));
  pointer-events: none;
}

.rank-tier-card.active {
  border-color: rgba(112, 247, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(112, 247, 255, 0.18), 0 26px 70px rgba(112, 247, 255, 0.14);
}

.rank-tier-card.rank-bronze { --rank-accent: #cd7f32; }
.rank-tier-card.rank-silver { --rank-accent: #c0c0c0; }
.rank-tier-card.rank-gold { --rank-accent: #f4d47b; }
.rank-tier-card.rank-platinum { --rank-accent: #aadcff; }
.rank-tier-card.rank-diamond { --rank-accent: #70f7ff; }
.rank-tier-card.rank-elite { --rank-accent: #ff8fd8; }

.lb-shell {
  max-width: 480px;
  margin-inline: auto;
  padding-bottom: 110px;
}

.lb-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(112, 247, 255, 0.16), transparent 55%),
    linear-gradient(165deg, #152033 0%, #0a0f18 55%, #101828 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  padding: 16px;
  margin-bottom: 14px;
}

.lb-hero-glow {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 240, 163, 0.22), transparent 70%);
  pointer-events: none;
}

.lb-hero-copy {
  position: relative;
  z-index: 1;
}

.lb-eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041018;
  background: linear-gradient(135deg, #9afcff, #35f0a3);
}

.lb-hero-card h1 {
  margin: 10px 0 4px;
  font-size: clamp(1.55rem, 6vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lb-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.lb-stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 12px;
}

.lb-stat-chip {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.lb-stat-chip span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.lb-stat-chip strong {
  font-size: 1rem;
  color: #f4d47b;
}

.lb-vip-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: #041018;
  background: linear-gradient(135deg, #9afcff, #35f0a3);
  box-shadow: 0 10px 24px rgba(112, 247, 255, 0.22);
  box-sizing: border-box;
}

.lb-vip-btn span {
  font-weight: 800;
  font-size: 0.95rem;
}

.lb-vip-btn em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.75;
}

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}

.lb-podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 12px 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 28, 0.95);
  min-width: 0;
}

.lb-podium-card.place-1 {
  padding-top: 16px;
  padding-bottom: 18px;
  border-color: rgba(244, 212, 123, 0.45);
  background:
    linear-gradient(180deg, rgba(244, 212, 123, 0.16), transparent 55%),
    rgba(14, 18, 28, 0.98);
  box-shadow: 0 12px 28px rgba(244, 212, 123, 0.12);
  transform: translateY(-6px);
}

.lb-podium-card.place-2 {
  border-color: rgba(192, 200, 220, 0.28);
  background:
    linear-gradient(180deg, rgba(180, 190, 210, 0.1), transparent 50%),
    rgba(12, 18, 28, 0.95);
}

.lb-podium-card.place-3 {
  border-color: rgba(205, 127, 50, 0.35);
  background:
    linear-gradient(180deg, rgba(205, 127, 50, 0.12), transparent 50%),
    rgba(12, 18, 28, 0.95);
}

.lb-podium-medal {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #041018;
  background: #c0c8d8;
}

.lb-podium-card.place-1 .lb-podium-medal { background: #f4d47b; }
.lb-podium-card.place-3 .lb-podium-medal { background: #cd7f32; color: #fff; }

.lb-podium-card strong {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-podium-card small {
  color: var(--muted);
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.lb-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(112, 247, 255, 0.28);
  background: linear-gradient(145deg, #1c2a3d, #0d1420);
  display: grid;
  place-items: center;
}

.lb-avatar em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: #9afcff;
  letter-spacing: 0.02em;
}

.lb-avatar img {
  position: absolute;
  inset: auto 0 0 auto;
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.lb-avatar-lg {
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
}

.lb-avatar-lg em { font-size: 0.85rem; }
.lb-avatar-lg img { width: 18px; height: 13px; }

.lb-board-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.96);
  padding: 14px 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.lb-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.lb-board-head h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.lb-count-pill {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9afcff;
  border: 1px solid rgba(112, 247, 255, 0.25);
  background: rgba(112, 247, 255, 0.08);
}

.lb-how {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lb-how-text {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  background: rgba(112, 247, 255, 0.06);
  border: 1px solid rgba(112, 247, 255, 0.1);
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, background 0.15s;
}

.lb-row:active {
  border-color: rgba(112, 247, 255, 0.22);
  background: rgba(112, 247, 255, 0.05);
}

.lb-rank {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #c5d0dc;
  background: rgba(255, 255, 255, 0.06);
}

.lb-trader {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lb-trader-meta {
  min-width: 0;
}

.lb-trader-meta strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-trader-meta small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.lb-flag-mini {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.lb-pnl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #041018;
  background: linear-gradient(135deg, #7dffc4, #35f0a3);
  white-space: nowrap;
}

.lb-more-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  background: rgba(112, 247, 255, 0.06);
  color: #9afcff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lb-status {
  margin: 10px 2px 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.lb-vip-panel {
  margin-top: 8px;
}

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

.lb-vip-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-vip-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.admin-vip-tier-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.admin-vip-tier-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-vip-tier-row input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(112, 247, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

@media (max-width: 520px) {
  .admin-vip-tier-row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-vip-tier-row strong {
    grid-column: 1 / -1;
  }
}

.rank-tier-glow {
  position: absolute;
  right: -48px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rank-accent) 38%, transparent), transparent 68%);
  filter: blur(1px);
}

.rank-medal-3d {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  transform: rotateX(12deg) rotateY(-18deg) translateZ(18px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--rank-accent) 72%, #ffffff), color-mix(in srgb, var(--rank-accent) 58%, #12182a));
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.38), inset 0 5px 10px rgba(255, 255, 255, 0.32);
}

.rank-medal-3d span {
  color: #071018;
  font-size: 1.55rem;
  font-weight: 950;
}

.rank-tier-head,
.rank-tier-card p,
.rank-tier-progress,
.rank-tier-note {
  position: relative;
  z-index: 1;
}

.rank-tier-head {
  margin-right: 76px;
}

.rank-tier-head small,
.rank-tier-note {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.rank-tier-head strong {
  display: block;
  margin-top: 2px;
  font-size: 1.06rem;
}

.rank-tier-state {
  padding: 4px 9px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--rank-accent) 80%, #ffffff);
  background: color-mix(in srgb, var(--rank-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rank-accent) 30%, transparent);
  font-size: 0.64rem;
  font-weight: 900;
}

.rank-tier-card p {
  margin: 12px 84px 12px 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.rank-tier-progress {
  width: calc(100% - 92px);
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.rank-tier-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rank-accent), #ffffff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--rank-accent) 48%, transparent);
}

.rank-tier-note {
  display: block;
  margin-top: 10px;
}

@keyframes rankFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8px, 10px, 0) scale(1.05); }
}

@keyframes rankRise {
  from {
    opacity: 0;
    transform: translateY(14px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.profile-network-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-network-tab {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.profile-network-tab.active {
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
}

.profile-edit-form textarea {
  min-height: 88px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  resize: vertical;
}

.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;
}

.profile-photo-field small {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-photo-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  flex-shrink: 0;
  font-size: 1.35rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.profile-photo-picker .btn {
  min-height: 44px;
}

.profile-edit-page-shell {
  max-width: 520px;
  padding-top: 62px;
  padding-bottom: 120px;
  display: grid;
  gap: 12px;
}

.profile-edit-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 0 4px;
}

.profile-edit-hero h1 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.profile-edit-photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.profile-edit-photo-preview {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  font-size: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(112, 247, 255, 0.15);
  overflow: hidden;
}

.profile-edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-edit-photo-badge {
  display: none;
}

.profile-edit-photo-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.avatar-picker-option {
  appearance: none;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 4px;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.avatar-picker-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.avatar-picker-option:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 247, 255, 0.35);
}

.avatar-picker-option.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(112, 247, 255, 0.2);
}

@media (max-width: 480px) {
  .avatar-picker {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
}

.profile-edit-form-card {
  padding: 18px;
}

.profile-edit-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-edit-row-2 .field {
  margin: 0;
}

.profile-edit-save {
  margin-top: 6px;
  min-height: 50px;
  width: 100%;
}

.profile-complete-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 193, 94, 0.35);
  background: linear-gradient(135deg, rgba(255, 193, 94, 0.12), rgba(255, 120, 80, 0.06));
  box-shadow: 0 0 24px rgba(255, 193, 94, 0.08);
}

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

.profile-complete-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #ffe27a;
}

.profile-complete-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.profile-complete-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .profile-edit-row-2 {
    grid-template-columns: 1fr;
  }

  .profile-complete-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .profile-complete-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .profile-identity-card-compact .profile-identity-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-hub-stats-inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-hub-actions {
    gap: 8px;
  }

  .profile-action-btn {
    min-height: 54px;
    padding: 8px 10px;
  }

  .profile-action-btn strong {
    font-size: 0.8rem;
  }

  .profile-action-demo {
    min-height: 58px;
  }
}

.users-panel,
.users-list,
.prediction-panel,
.prediction-list {
  display: grid;
  gap: 12px;
}

.prediction-panel {
  gap: 16px;
  margin-bottom: 28px;
}

.prediction-balance {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(244, 212, 123, 0.46);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 16%, rgba(244, 212, 123, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(22, 34, 58, 0.98), rgba(7, 13, 25, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prediction-balance::before {
  content: "";
  position: absolute;
  inset: auto -24px -48px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(112, 247, 255, 0.1);
}

.prediction-balance span {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-balance strong {
  position: relative;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.prediction-panel > .market-status-line {
  margin: 0;
  padding: 0 2px;
  color: #c2d2e4;
  line-height: 1.55;
}

.prediction-panel > .market-status-line::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  color: #041018;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  vertical-align: text-bottom;
}

.prediction-history,
.community-predictions {
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(112, 247, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(16, 25, 45, 0.96), rgba(8, 13, 25, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.prediction-form {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.prediction-form .field {
  display: grid;
  gap: 8px;
}

.prediction-form .field span {
  color: #c7d5e8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.prediction-form select,
.prediction-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  border-radius: 16px;
  color: var(--text);
  background: rgba(5, 10, 21, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-weight: 800;
  outline: none;
}

.prediction-form select:focus,
.prediction-form input:focus {
  border-color: rgba(112, 247, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(112, 247, 255, 0.09);
}

.prediction-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(112, 247, 255, 0.12), rgba(143, 124, 255, 0.08));
}

.prediction-live span {
  color: #c7d5e8;
  font-size: 12px;
  font-weight: 900;
}

.prediction-live strong {
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.prediction-direction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 10, 21, 0.52);
}

.prediction-dir {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  transition: 0.18s ease;
}

.prediction-dir:hover,
.prediction-dir:focus-visible {
  border-color: rgba(112, 247, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.prediction-dir.active.up {
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #a9ffd8);
  box-shadow: 0 12px 28px rgba(53, 240, 163, 0.22);
}

.prediction-dir.active.down {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), #ff8cad);
  box-shadow: 0 12px 28px rgba(255, 92, 138, 0.22);
}

.prediction-submit {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  box-shadow: 0 16px 36px rgba(112, 247, 255, 0.22);
  font-weight: 950;
}

.prediction-submit:disabled {
  opacity: 0.5;
  filter: grayscale(0.35);
  cursor: not-allowed;
}

.prediction-history {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.prediction-card-picker {
  display: grid;
  gap: 12px;
  padding: 0;
}

.community-predictions {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.community-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.community-head h3 {
  margin: 8px 0 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(53, 240, 163, 0.38);
  border-radius: 999px;
  color: var(--green);
  background: rgba(53, 240, 163, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.community-prediction-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 2px 0;
}

.community-prediction-card {
  display: grid;
  gap: 12px;
  min-height: 142px;
  padding: 14px 16px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 13, 25, 0.78);
  color: var(--text);
  text-align: left;
}

.community-prediction-card:hover {
  border-color: rgba(112, 247, 255, 0.32);
}

.prediction-option-card.selected {
  border-color: rgba(244, 212, 123, 0.7);
  background: rgba(14, 22, 39, 0.92);
}

.prediction-count {
  color: var(--gold);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.community-user,
.community-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-user {
  justify-content: flex-start;
}

.community-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-size: 12px;
  font-weight: 950;
}

.community-user strong,
.community-user small,
.community-pair strong,
.community-pair small {
  display: block;
}

.community-user strong,
.community-pair strong {
  font-size: 13px;
}

.community-user small,
.community-pair small,
.community-prediction-card > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.prediction-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prediction-card-action {
  min-height: 38px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.prediction-card-action.up.active {
  color: #041018;
  border-color: transparent;
  background: var(--green);
}

.prediction-card-action.down.active {
  color: #fff;
  border-color: transparent;
  background: var(--red);
}

.prediction-card-action:hover,
.prediction-card-action:focus-visible {
  border-color: rgba(112, 247, 255, 0.4);
}

.prediction-modal,
.prediction-history-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 13, 0.72);
  backdrop-filter: blur(16px);
}

.prediction-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 25, 45, 0.98), rgba(8, 13, 25, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.prediction-modal-card h3 {
  margin: 0;
}

.prediction-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prediction-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.qt-presets button {
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(112, 247, 255, 0.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.qt-presets button.active {
  color: #04120c;
  border-color: transparent;
  background: linear-gradient(135deg, #70f7ff, #0ecb81);
}

.prediction-history h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.prediction-history .market-status-line {
  margin: 0;
}

.prediction-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 124, 255, 0.12), transparent 38%),
    rgba(5, 10, 21, 0.58);
}

.prediction-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prediction-item-head strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.prediction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-badge.up {
  color: #041018;
  background: var(--green);
}

.prediction-badge.down {
  color: #fff;
  background: var(--red);
}

.prediction-badge.open {
  color: var(--cyan);
  border: 1px solid rgba(112, 247, 255, 0.35);
  background: rgba(112, 247, 255, 0.1);
}

.prediction-badge.won {
  color: #041018;
  background: var(--gold);
}

.prediction-badge.lost {
  color: #fff;
  background: var(--red);
}

.prediction-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid rgba(244, 212, 123, 0.42);
  border-radius: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 0%, rgba(112, 247, 255, 0.1), transparent 46%),
    linear-gradient(145deg, rgba(20, 31, 50, 0.96), rgba(9, 15, 27, 0.96));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
}

.user-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(244, 212, 123, 0.2), 0 16px 42px rgba(0, 0, 0, 0.32);
}

.admin-user-compact .mini-action {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.user-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-main strong,
.user-main small {
  display: block;
}

.user-main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-action {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mini-action.ghost {
  color: var(--text);
  border: 1px solid rgba(112, 247, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.conversation-button {
  width: 100%;
  color: var(--text);
  cursor: pointer;
}

.message-list {
  display: grid;
  gap: 10px;
  min-height: 260px;
  margin-bottom: 12px;
  align-content: end;
}

.message-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 10px 12px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
}

.message-bubble.mine {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
}

body[data-page="chats"] {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(112, 247, 255, 0.16), transparent 22rem),
    linear-gradient(135deg, #030712 0%, #07111f 48%, #03050a 100%);
}

.chat-shell {
  position: relative;
  display: block;
  width: 100vw;
  height: calc(100vh - 66px - 92px);
  margin: 66px 0 92px;
  padding: 0;
}

.chat-list-pane,
.chat-window-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-top: 0;
  border-radius: 0;
  background: rgba(6, 13, 27, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.chat-list-pane {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.chat-window-pane {
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

body.chat-open .chat-window-pane {
  transform: translateX(0);
}

.chat-page-head,
.active-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(112, 247, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.chat-logo {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 42px;
  padding: 5px 9px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.chat-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.chat-head-actions a,
.chat-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.chat-back {
  display: grid;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.chat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  padding: 0 12px;
  min-height: 44px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.chat-search .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.chat-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.chat-list-title {
  padding: 0 16px 10px;
}

.chat-list-title h1,
.active-chat-head h2 {
  margin: 0;
  font-size: 22px;
}

.active-chat-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.whatsapp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding: 0 4px 12px;
}

.whatsapp-list .conversation-button,
.whatsapp-list .chat-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  flex-direction: row;
}

.whatsapp-list .conversation-button:hover,
.whatsapp-list .conversation-button.active {
  border-radius: 16px;
  background: rgba(112, 247, 255, 0.08);
}

.whatsapp-list .chat-copy {
  min-width: 0;
}

.whatsapp-list .chat-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.whatsapp-list .chat-copy p {
  margin: 3px 0 0;
  color: #8696a0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whatsapp-list .chat-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
  padding-top: 2px;
}

.whatsapp-list .chat-meta time {
  color: #8696a0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.whatsapp-list .conversation-button.has-unread .chat-copy strong {
  font-weight: 800;
}

.whatsapp-list .conversation-button.has-unread .chat-copy p {
  color: #d1d7db;
}

.whatsapp-list .conversation-button.has-unread .chat-meta time {
  color: #25d366;
}

.chat-row-unread {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #25d366;
  color: #052012;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.top-link[data-nav="chats"],
.home-top-chip[data-nav="chats"] {
  position: relative;
}

.chat-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #25d366;
  color: #052012;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #050a12;
}

.chat-unread-badge[hidden] {
  display: none !important;
}

.chat-user-avatar,
.active-chat-head .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(112, 247, 255, 0.28);
  background: rgba(5, 10, 18, 0.9);
  box-shadow: 0 0 14px rgba(112, 247, 255, 0.18);
  overflow: hidden;
}

.chat-user-avatar img,
.active-chat-head .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-system-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(32, 44, 51, 0.92);
  color: #d1d7db;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: left;
}

.chat-system-msg {
  justify-self: center;
  width: min(92%, 340px);
  margin: 0 auto 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1d2a32;
  color: #ffd279;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.chat-lock-ico {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-system-msg .chat-lock-ico {
  color: #ffd279;
}

.chat-system-bar .chat-lock-ico {
  color: #8696a0;
  margin-top: 1px;
}

.whatsapp-messages {
  overflow-y: auto;
  min-height: 0;
  margin: 0;
  padding: 18px 14px;
  align-content: end;
  background:
    linear-gradient(rgba(112, 247, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 247, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
}

.message-compose {
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(112, 247, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.message-compose input {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  outline: 0;
}

.message-compose button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  cursor: pointer;
}

@media (max-width: 720px) {
  .chat-shell {
    position: relative;
    display: block;
    width: 100vw;
    height: calc(100vh - 66px - 92px);
    padding: 0;
  }

  .chat-list-pane,
  .chat-window-pane {
    position: absolute;
    inset: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .chat-window-pane {
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }

  body.chat-open .chat-window-pane {
    transform: translateX(0);
  }

  .chat-back {
    display: grid;
  }

  .chat-page-head,
  .active-chat-head {
    min-height: 62px;
  }

  .whatsapp-messages {
    padding-bottom: 20px;
  }

  .message-compose {
    padding: 10px;
  }
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border: 1px solid rgba(112, 247, 255, 0.25);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 10, 21, 0.9);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.home-dashboard {
  max-width: 430px;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0 12px;
  min-height: 38px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.home-search input {
  flex: 1;
  min-width: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  outline: none;
}

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

.home-search button,
.close-btn {
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.kyc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 8px 0 0;
}

.bonus-link {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}

.kyc-banner h1 {
  max-width: 300px;
  margin: 14px 0 0;
  font-size: clamp(1.45rem, 5.6vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.verify-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  color: #191401;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #ffe66a);
  font-weight: 950;
}

.countdown-card {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.mini-btn {
  min-height: 34px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.countdown-coin {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #041018;
  background: linear-gradient(135deg, #d8ff3d, var(--green));
  font-size: 1.4rem;
  font-weight: 950;
}

.countdown-card strong span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.countdown-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 16px;
  border: 1px solid rgba(112, 247, 255, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(112, 247, 255, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(20, 31, 50, 0.96), rgba(9, 15, 27, 0.96));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 247, 255, 0.38);
}

.tile-head,
.tile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.95rem;
}

.tile-head {
  justify-content: flex-start;
  gap: 10px;
}

.bnb-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff3a3, #f3ba2f 72%);
  box-shadow: 0 12px 28px rgba(243, 186, 47, 0.3);
}

.bnb-logo svg {
  width: 25px;
  height: 25px;
  fill: #111827;
}

.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.coin-badge::before {
  content: "";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe66a, var(--gold));
  box-shadow: 0 10px 24px rgba(244, 212, 123, 0.22);
}

.coin-badge.usd::before {
  display: grid;
  place-items: center;
  content: "$";
  color: #191401;
  font-weight: 950;
}

.tile-price {
  display: block;
  margin-top: 38px;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mini-chart {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  width: calc(100% - 28px);
  height: 58px;
  opacity: 0.95;
}

.p2p-tile p {
  margin: 28px 0 20px;
  color: var(--muted);
  line-height: 1.35;
}

.p2p-tile::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.13), transparent 68%);
  pointer-events: none;
}

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

.tile-actions a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 66px;
  border: 1px solid rgba(112, 247, 255, 0.1);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.p2p-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(112, 247, 255, 0.2), rgba(143, 124, 255, 0.16));
  color: var(--cyan);
}

.p2p-icon.search {
  color: var(--gold);
  background: linear-gradient(135deg, rgba(244, 212, 123, 0.2), rgba(112, 247, 255, 0.12));
}

.p2p-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p2p-screen {
  width: min(540px, calc(100% - 20px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 88px;
  padding-bottom: 118px;
}

.p2p-hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 212, 123, 0.14), transparent 38%),
    linear-gradient(150deg, rgba(20, 31, 50, 0.98), rgba(7, 12, 23, 0.98));
}

.p2p-hero-card h1 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.p2p-hero-card .lead {
  margin: 0;
  font-size: 0.82rem;
}

.p2p-balance-pill {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
}

.p2p-balance-pill strong {
  color: var(--gold);
}

.p2p-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.p2p-tab {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.p2p-tab.active {
  color: #051018;
  background: var(--cyan);
}

.p2p-agent-card,
.p2p-market-card,
.p2p-order-card {
  padding: 16px;
  border-radius: 20px;
}

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

.p2p-section-head h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.p2p-agent-form,
.p2p-ad-form {
  margin-top: 10px;
}

.p2p-ad-form h3 {
  margin: 0;
}

.p2p-ad-list {
  display: grid;
  gap: 10px;
}

.p2p-ad-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 247, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.p2p-ad-top,
.p2p-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.p2p-ad-top strong,
.p2p-price-row strong {
  display: block;
}

.p2p-ad-top small,
.p2p-price-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.p2p-price-row strong {
  color: var(--gold);
  font-size: 1.2rem;
}

.p2p-side {
  padding: 5px 9px;
  border-radius: 999px;
  color: #031015;
  background: var(--cyan);
  font-size: 0.68rem;
  font-weight: 950;
}

.p2p-side.buy {
  background: #2ccf91;
}

.p2p-side.sell {
  background: var(--gold);
}

.p2p-ad-meta {
  display: grid;
  gap: 7px;
}

.p2p-ad-meta span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
}

.p2p-ad-meta strong {
  color: var(--text);
  text-align: right;
}

.p2p-kyc-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.p2p-kyc-badge.pending {
  color: #120f04;
  background: var(--gold);
}

.p2p-kyc-badge.approved {
  color: #fff;
  background: #2ccf91;
}

.p2p-kyc-badge.rejected {
  color: #fff;
  background: var(--red);
}

.p2p-agent-form textarea {
  min-height: 72px;
  resize: vertical;
}

.p2p-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.p2p-agent-actions .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.p2p-kyc-page-card {
  padding: 16px;
  border-radius: 20px;
}

.p2p-publish-guard {
  padding: 16px;
  border-radius: 20px;
}

.p2p-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.p2p-stepper--publish {
  grid-template-columns: repeat(4, 1fr);
}

.p2p-stepper span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 950;
}

.p2p-stepper span.active {
  color: #061018;
  background: var(--cyan);
}

.p2p-stepper span.done {
  color: #061018;
  background: var(--gold);
}

.p2p-kyc-step {
  display: grid;
  gap: 12px;
}

.p2p-kyc-step[hidden] {
  display: none !important;
}

.p2p-kyc-step h2 {
  margin: 0;
  font-size: 1rem;
}

.p2p-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.p2p-step-actions .btn {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1;
}

.p2p-step-actions .p2p-submit-btn {
  grid-column: 1 / -1;
}

.p2p-step-actions .btn[hidden],
.p2p-ad-form[hidden],
.p2p-verification-cta[hidden] {
  display: none !important;
}

.p2p-verification-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 16px;
  text-align: center;
  white-space: nowrap;
}

.p2p-review-card {
  display: grid;
  gap: 8px;
}

.p2p-review-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.p2p-review-card strong {
  color: var(--text);
  text-align: right;
}

.admin-p2p-kyc-panel {
  grid-column: 1 / -1;
}

.admin-p2p-kyc-list {
  display: grid;
  gap: 12px;
}

.admin-p2p-kyc-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-p2p-kyc-grid {
  display: grid;
  gap: 8px;
}

.admin-p2p-kyc-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-p2p-kyc-grid strong {
  color: var(--text);
  text-align: right;
}

.admin-p2p-kyc-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deposit-pill {
  display: block;
  width: fit-content;
  margin: 22px 0 22px;
  padding: 6px 9px;
  color: var(--green);
  border-radius: 999px;
  background: rgba(53, 240, 163, 0.14);
  font-size: 0.78rem;
  font-weight: 950;
}

.deposit-tile {
  background:
    radial-gradient(circle at 16% 12%, rgba(244, 212, 123, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(20, 31, 50, 0.96), rgba(9, 15, 27, 0.96));
}

.deposit-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.usd-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #121212;
  background: linear-gradient(135deg, #ffe66a, var(--gold));
  box-shadow: 0 12px 28px rgba(244, 212, 123, 0.24);
  font-weight: 950;
}

.network-pill {
  margin-left: auto;
  padding: 5px 8px;
  color: var(--cyan);
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 999px;
  background: rgba(112, 247, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
}

.deposit-title {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
}

.deposit-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.send-tile strong {
  display: block;
  margin-top: 22px;
  max-width: 150px;
  line-height: 1.28;
  font-size: 1.02rem;
}

.send-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.send-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  color: var(--text);
  border: 1px solid rgba(143, 124, 255, 0.2);
  border-radius: 999px;
  background: rgba(143, 124, 255, 0.11);
  font-size: 0.76rem;
  font-weight: 950;
}

.send-flow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 18px rgba(143, 124, 255, 0.28));
}

.discover-section {
  margin-top: 22px;
}

.discover-tabs {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  margin: 0 -4px 14px;
  padding: 8px 4px 12px;
  background: rgba(5, 10, 21, 0.78);
  backdrop-filter: blur(16px);
}

.discover-tabs button,
.discover-tabs a {
  position: relative;
  flex: 0 0 auto;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 850;
}

.feed-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.feed-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-author span {
  color: var(--muted);
}

.feed-banner {
  padding: 22px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 50%, rgba(244, 212, 123, 0.7), transparent 28%),
    linear-gradient(135deg, #050505, #161616);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.feed-banner span {
  display: block;
  color: #b8ff38;
}

.feed-card h3 {
  font-size: 1.18rem;
  line-height: 1.35;
}

.feed-card p {
  color: #c6d3df;
  line-height: 1.55;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-page {
  max-width: 760px;
}

.deposit-flow {
  width: min(520px, calc(100% - 20px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 88px;
  padding-bottom: 118px;
}

.deposit-back {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.deposit-back:hover {
  color: var(--cyan);
}

.deposit-method-card,
.deposit-address-card,
.deposit-proof-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.deposit-method-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: linear-gradient(160deg, rgba(18, 31, 48, 0.98), rgba(8, 13, 25, 0.98));
}

.deposit-method-icon {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.deposit-method-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.deposit-method-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(244, 212, 123, 0.18);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-method-copy h1 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.deposit-method-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.deposit-method-copy .deposit-balance-line {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.deposit-balance-line strong {
  color: var(--gold);
}

.deposit-card-head h2,
.deposit-proof-card h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.deposit-proof-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.74rem;
}

.fiat-account-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.fiat-instructions {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.admin-fiat-accounts-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.deposit-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.deposit-meta-row strong {
  font-size: 0.88rem;
}

.deposit-address-block {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(112, 247, 255, 0.14);
}

.deposit-address-block code {
  display: block;
  margin-top: 6px;
  word-break: break-all;
  font-size: 0.82rem;
  color: var(--cyan);
  line-height: 1.4;
}

.deposit-address-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.deposit-address-actions .btn {
  flex: 1;
  min-width: 120px;
}

.deposit-address-actions [data-wallet-action-copy] {
  flex: 1 1 190px;
}

.deposit-address-actions [data-wallet-payment-link] {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border-color: rgba(112, 247, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  color: #e7fbff;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.deposit-address-actions [data-wallet-payment-link]::after {
  content: "â†—";
  font-size: 0.78rem;
  opacity: 0.78;
}

.deposit-warning {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.22);
  color: #ffb4b4;
  font-size: 0.7rem;
  line-height: 1.35;
}

.deposit-proof-form {
  gap: 10px;
}

.action-card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.action-mini {
  padding: 16px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.offer-row + .offer-row {
  margin-top: 10px;
}

.news-feed {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.news-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.news-card h3 {
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card p {
  color: var(--muted);
  line-height: 1.55;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-shell {
  display: grid;
  place-items: center;
  width: min(100% - 32px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 92px 0 120px;
}

.auth-brand {
  display: block;
  margin-bottom: 20px;
}

.auth-brand img {
  width: min(92vw, 340px);
  height: auto;
  background: transparent;
  filter: none;
}

.auth-card {
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 8vw, 3.3rem);
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-switch {
  display: block;
  margin: 18px auto 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.auth-switch-text {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch-text a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.auth-landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.auth-landing-actions .btn {
  min-height: 48px;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.auth-modal-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-brand {
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.auth-modal-brand img {
  width: 140px;
  height: auto;
}

.auth-modal-dialog h2 {
  margin: 8px 0 6px;
  text-align: center;
  font-size: 1.55rem;
}

.auth-modal-lead {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-modal-tab {
  border: 0;
  border-radius: 11px;
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-modal-tab.active {
  background: linear-gradient(135deg, rgba(112, 247, 255, 0.22), rgba(112, 247, 255, 0.08));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(112, 247, 255, 0.28);
}

.auth-modal-panel {
  margin-top: 0;
}

.auth-modal-status {
  margin-top: 12px;
  text-align: center;
  min-height: 1.2em;
}

.demo-coins-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(112, 247, 255, 0.28);
  background: linear-gradient(135deg, rgba(112, 247, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.demo-coins-banner strong {
  display: block;
  margin-bottom: 4px;
}

.demo-coins-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-demo-box {
  margin: 16px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-demo-box h3 {
  margin: 0 0 8px;
}

@media (max-width: 520px) {
  .demo-coins-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

body[data-page="market"] {
  color: var(--text);
  overflow-x: hidden;
}

body[data-page="market"]::before {
  display: block;
}

.market-watch {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 88px 10px calc(100px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
}

.market-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 50px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: -0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.battery {
  padding: 1px 4px;
  border: 1px solid rgba(112, 247, 255, 0.38);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.market-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.market-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.market-search-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.market-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 400;
}

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

.market-more {
  width: 34px;
  height: 50px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.market-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 0 18px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(112, 247, 255, 0.12);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.market-tabs::-webkit-scrollbar {
  display: none;
}

.market-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 6px 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.market-tab:hover,
.market-tab:focus-visible {
  color: var(--text);
}

.market-tab.active {
  color: #70f7ff;
  font-weight: 800;
}

.market-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #70f7ff, #f4d47b);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(112, 247, 255, 0.45);
}

.favorite-labels {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.78fr;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.favorite-labels span:nth-child(2),
.favorite-labels span:nth-child(3) {
  text-align: right;
}

.watch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 34px;
}

.watch-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  min-height: 74px;
  padding: 12px 12px 12px 10px;
  border-radius: 16px;
  color: var(--text);
  border: 1px solid rgba(112, 247, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(18, 28, 44, 0.98) 0%, rgba(8, 12, 22, 0.98) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.pair {
  display: block;
  min-width: 0;
  white-space: nowrap;
}

.pair strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pair em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.pair small,
.favorite-price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.favorite-price {
  text-align: right;
}

.favorite-price strong {
  display: block;
  font-size: 18px;
}

.change-pill {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
}

.change-pill.up {
  color: #041018;
  background: var(--green);
}

.change-pill.down {
  color: #fff;
  background: var(--red);
}

.add-favorites {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  border: 0;
  border-radius: 9px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #b2fff5);
  box-shadow: 0 12px 36px rgba(112, 247, 255, 0.22);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

.add-other {
  display: block;
  margin: 30px auto 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
}

.ai-float {
  position: absolute;
  right: 22px;
  bottom: 120px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--purple);
  background: transparent;
  cursor: pointer;
}

.ai-float svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-bottom {
  left: 50%;
  width: min(100%, 460px);
  height: 75px;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 7px 10px 8px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: rgba(5, 10, 21, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.market-bottom .nav-link {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.market-bottom .nav-link:hover,
.market-bottom .nav-link.active {
  color: var(--text);
  border-color: rgba(112, 247, 255, 0.38);
  background: var(--cyan-soft);
  box-shadow: 0 0 24px rgba(112, 247, 255, 0.12);
}

.market-bottom .nav-link.active .icon {
  stroke: currentColor;
  filter: drop-shadow(0 -3px 0 rgba(244, 212, 123, 0.8));
}

.market-bottom .nav-link .icon {
  width: 27px;
  height: 27px;
  color: currentColor;
  stroke-width: 2;
}

.add-favorites.saved,
.watch-card.saved {
  border-color: rgba(244, 212, 123, 0.42);
}

.market-panel-hidden,
.watch-card[hidden],
.favorites-empty[hidden],
.favorite-labels[hidden] {
  display: none;
}

.market-status-line {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.market-rows {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.market-row {
  grid-template-columns: 36px minmax(0, 1.2fr) minmax(0, 1fr) minmax(58px, auto) 30px;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 12px 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body[data-page="market"] .market-row,
body[data-page="market"] .watch-card.market-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1.25fr) minmax(0, 1fr) minmax(60px, auto) 30px;
  align-items: center;
  gap: 8px;
  min-height: 74px;
  padding: 12px 12px 12px 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(18, 28, 44, 0.98) 0%, rgba(8, 12, 22, 0.98) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

body[data-page="market"] .market-row:active,
body[data-page="market"] .watch-card.market-row:active {
  transform: scale(0.985);
}

body[data-page="market"] .market-row:hover,
body[data-page="market"] .watch-card.market-row:hover {
  border-color: rgba(112, 247, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(22, 36, 56, 0.98) 0%, rgba(10, 16, 28, 0.98) 100%);
}

body[data-page="market"] .market-row .coin-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(112, 247, 255, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

body[data-page="market"] .market-row .pair,
body[data-page="market"] .market-row .favorite-price {
  min-width: 0;
  overflow: hidden;
}

body[data-page="market"] .market-row .pair {
  white-space: normal;
}

body[data-page="market"] .market-row .pair strong {
  display: inline;
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f4f8fc;
}

body[data-page="market"] .market-row .pair em {
  color: rgba(143, 163, 184, 0.85);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
}

body[data-page="market"] .market-row .favorite-price {
  text-align: right;
  padding-right: 2px;
}

body[data-page="market"] .market-row .favorite-price strong {
  display: block;
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f4f8fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="market"] .market-row .pair small,
body[data-page="market"] .market-row .favorite-price small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(143, 163, 184, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="market"] .market-row .pair small.binary-payout {
  color: #0ecb81;
  font-weight: 700;
}

body[data-page="market"] .market-row .change-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  box-sizing: border-box;
  min-width: 58px;
  width: auto;
  max-width: 78px;
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

body[data-page="market"] .market-row .change-pill.up {
  color: #041810;
  background: linear-gradient(180deg, #2ee59b 0%, #0ecb81 100%);
}

body[data-page="market"] .market-row .change-pill.down {
  color: #fff;
  background: linear-gradient(180deg, #ff6b7d 0%, #f6465d 100%);
}

body[data-page="market"] .market-row .favorite-toggle {
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 0;
  border-radius: 10px;
  color: rgba(143, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

body[data-page="market"] .market-row .favorite-toggle.active {
  color: #f4d47b;
  background: rgba(244, 212, 123, 0.12);
}

body[data-page="market"] .spot-list {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body[data-page="market"] .spot-labels {
  margin: 0 4px 12px;
  padding: 0 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="market"] .market-status-line {
  margin: 0 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(112, 247, 255, 0.7);
}

@media (max-width: 400px) {
  body[data-page="market"] .market-row .favorite-price small {
    display: none;
  }

  body[data-page="market"] .market-row,
  body[data-page="market"] .watch-card.market-row {
    grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(54px, auto) 28px;
    gap: 6px;
    padding: 10px 8px;
    min-height: 68px;
    border-radius: 14px;
  }

  body[data-page="market"] .market-row .coin-logo {
    width: 30px;
    height: 30px;
  }

  body[data-page="market"] .market-row .change-pill {
    min-width: 54px;
    height: 30px;
    min-height: 30px;
    padding: 0 6px;
  }

  body[data-page="market"] .market-search {
    height: 44px;
    padding: 0 12px;
  }

  body[data-page="market"] .market-search input {
    font-size: 14px;
  }

  body[data-page="market"] .ai-float {
    right: 10px;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

.favorites-empty {
  margin: -14px 0 26px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.spot-list {
  margin-top: 0;
  padding-bottom: 18px;
}

.spot-head,
.spot-labels,
.spot-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.spot-labels {
  grid-template-columns: 1.35fr 1fr 0.78fr;
}

.spot-row {
  grid-template-columns: 36px minmax(92px, 1fr) minmax(82px, auto) auto auto;
}

.spot-head {
  grid-template-columns: 1fr auto;
  display: none;
  margin-bottom: 18px;
}

.spot-head h2 {
  margin: 0;
  font-size: 18px;
}

.spot-tools {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 22px;
}

.spot-labels {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.spot-row {
  position: relative;
  min-height: 76px;
  padding: 13px 12px;
  border-radius: 18px;
  color: var(--text);
  border: 1px solid rgba(112, 247, 255, 0.2);
  background:
    radial-gradient(circle at 86% 0%, rgba(112, 247, 255, 0.1), transparent 46%),
    linear-gradient(145deg, rgba(20, 31, 50, 0.96), rgba(9, 15, 27, 0.96));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.coin-mark,
.coin-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-size: 14px;
  font-weight: 950;
}

.coin-logo {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(112, 247, 255, 0.16);
}

.coin-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1220;
}

.coin-mark.bnb { background: linear-gradient(135deg, #fff3a3, #f3ba2f); }
.coin-mark.btc { background: linear-gradient(135deg, #ffd08a, #f7931a); }
.coin-mark.eth { background: linear-gradient(135deg, #a9c3ff, #627eea); }
.coin-mark.sol { background: linear-gradient(135deg, #35f0a3, #8f7cff); }
.coin-mark.near { background: linear-gradient(135deg, #ffffff, #70f7ff); }
.coin-mark.opn { background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.coin-mark.wld { background: linear-gradient(135deg, #ff4fd8, #8f7cff); }
.coin-mark.xrp { background: linear-gradient(135deg, #dfe7ef, #9fb3c8); }

.spot-row strong {
  display: block;
  font-size: 18px;
}

.spot-row .pair strong {
  display: inline;
}

.spot-row em,
.spot-row small {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.spot-row small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.spot-row > span:nth-child(3) {
  text-align: right;
}

.spot-row .loss,
.spot-row .gain {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.spot-row .loss {
  background: var(--red);
}

.spot-row .gain {
  background: var(--green);
  color: #041018;
}

.favorite-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 212, 123, 0.2);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
  font-weight: 900;
}

.favorite-toggle.active {
  color: var(--gold);
  background: rgba(244, 212, 123, 0.12);
}

.trade-hub-screen {
  width: min(780px, calc(100% - 20px));
  display: grid;
  gap: 14px;
  padding-top: 78px;
  padding-bottom: 100px;
}

.trade-hub-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(90deg, rgba(112, 247, 255, 0.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(112, 247, 255, 0.03) 0 1px, transparent 1px 48px);
}

.trade-hub-top {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(20, 30, 48, 0.95), rgba(8, 14, 25, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 36px rgba(0, 0, 0, 0.32);
}

.trade-hub-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(112, 247, 255, 0.1);
  border: 1px solid rgba(112, 247, 255, 0.2);
}

.trade-hub-top h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: -0.04em;
}

.trade-hub-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.trade-hub-market-link {
  width: fit-content;
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.trade-mode-dock-wrap {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 12px 0 8px;
  perspective: 900px;
}

.trade-mode-dock-bg {
  position: absolute;
  inset: -24px -12px auto;
  height: 240px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 45%, rgba(112, 247, 255, 0.2), transparent 45%),
    radial-gradient(circle at 50% 25%, rgba(244, 212, 123, 0.18), transparent 40%),
    radial-gradient(circle at 85% 45%, rgba(201, 160, 255, 0.2), transparent 45%);
  pointer-events: none;
  filter: blur(8px);
  animation: tradeDockAmbient 6s ease-in-out infinite alternate;
}

@keyframes tradeDockAmbient {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

.trade-mode-dock {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  padding: 18px 10px 20px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(22, 32, 52, 0.95) 0%, rgba(6, 10, 20, 0.98) 55%, rgba(4, 8, 16, 1) 100%);
  backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -12px 24px rgba(0, 0, 0, 0.5) inset,
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(112, 247, 255, 0.1),
    0 0 80px rgba(201, 160, 255, 0.08);
  transform: rotateX(4deg);
  transform-style: preserve-3d;
}

.trade-mode-dock::after {
  content: "";
  position: absolute;
  inset: 8px 12px auto;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}

.trade-mode-dock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, rgba(112, 247, 255, 0.75), rgba(244, 212, 123, 0.85), rgba(201, 160, 255, 0.75));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.trade-mode-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 4px 4px 2px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.trade-mode-item:hover {
  transform: translateY(-6px) translateZ(12px);
}

.trade-mode-icon-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 30vw, 118px);
  height: clamp(96px, 30vw, 118px);
  transform-style: preserve-3d;
}

.trade-mode-item-spot .trade-mode-icon-stage,
.trade-mode-item-margin .trade-mode-icon-stage {
  width: clamp(68px, 20vw, 84px);
  height: clamp(68px, 20vw, 84px);
  margin-bottom: 6px;
}

.trade-mode-item-futures .trade-mode-icon-stage {
  width: clamp(118px, 36vw, 148px);
  height: clamp(118px, 36vw, 148px);
}

.trade-mode-item-spot .trade-mode-label,
.trade-mode-item-margin .trade-mode-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.trade-mode-item-futures .trade-mode-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.trade-mode-icon-shadow {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 72%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.65), transparent 72%);
  transform: translateX(-50%) rotateX(75deg);
  filter: blur(5px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.trade-mode-icon-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  transform: translateZ(16px) rotateX(6deg);
  transform-style: preserve-3d;
}

.trade-mode-icon-wrap::before {
  display: none;
}

.trade-mode-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.trade-mode-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter:
    contrast(1.06)
    saturate(0.95)
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.62));
  transition: filter 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.trade-mode-item-spot .trade-mode-img,
.trade-mode-item-margin .trade-mode-img {
  filter:
    brightness(1)
    contrast(1.06)
    saturate(0.95)
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.58));
}

.trade-mode-item-futures .trade-mode-img {
  filter:
    brightness(1.05)
    contrast(1.08)
    saturate(1.02)
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
}

.trade-mode-item-spot .trade-mode-icon-wrap::after,
.trade-mode-item-margin .trade-mode-icon-wrap::after {
  opacity: 0.55;
}

.trade-mode-item-futures .trade-mode-icon-wrap::after {
  opacity: 0.35;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%);
}

.trade-mode-label {
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 251, 255, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.trade-mode-item:hover .trade-mode-icon-wrap {
  transform: translateZ(28px) rotateX(2deg) scale(1.06);
}

.trade-mode-item-spot:hover .trade-mode-img,
.trade-mode-item-margin:hover .trade-mode-img {
  filter:
    brightness(1)
    contrast(1.08)
    saturate(1)
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.62));
}

.trade-mode-item-futures:hover .trade-mode-img {
  filter:
    brightness(1.08)
    contrast(1.1)
    saturate(1.05)
    drop-shadow(0 0 24px rgba(244, 212, 123, 0.35))
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.58));
}

.trade-mode-item-spot.is-active .trade-mode-img,
.trade-mode-item-margin.is-active .trade-mode-img {
  filter:
    brightness(1)
    contrast(1.1)
    saturate(1)
    drop-shadow(0 0 22px rgba(112, 247, 255, 0.28))
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6));
}

.trade-mode-item-margin.is-active .trade-mode-img {
  filter:
    brightness(1)
    contrast(1.1)
    saturate(1)
    drop-shadow(0 0 22px rgba(201, 160, 255, 0.3))
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6));
}

.trade-mode-item-futures.is-active .trade-mode-img {
  filter:
    brightness(1.05)
    contrast(1.12)
    saturate(1.05)
    drop-shadow(0 0 32px rgba(244, 212, 123, 0.48))
    drop-shadow(0 16px 30px rgba(0, 0, 0, 0.58));
}

.trade-mode-item:hover .trade-mode-label {
  color: rgba(239, 251, 255, 0.72);
}

.trade-mode-item-spot.is-active .trade-mode-label {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(112, 247, 255, 0.35);
}

.trade-mode-item-futures.is-active .trade-mode-label {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(244, 212, 123, 0.35);
}

.trade-mode-item-margin.is-active .trade-mode-label {
  color: #d4b8ff;
  text-shadow: 0 0 14px rgba(201, 160, 255, 0.35);
}

.trade-mode-item.is-active .trade-mode-icon-wrap {
  transform: translateZ(32px) rotateX(0deg) scale(1.08);
  animation: tradeModeFloat3d 3s ease-in-out infinite;
}

.trade-mode-item-spot.is-active .trade-mode-icon-wrap,
.trade-mode-item-futures.is-active .trade-mode-icon-wrap,
.trade-mode-item-margin.is-active .trade-mode-icon-wrap {
  box-shadow: none;
  animation: tradeModeFloat3d 3s ease-in-out infinite;
}

@keyframes tradeModeFloat3d {
  0%, 100% { transform: translateZ(32px) rotateX(2deg) scale(1.08) translateY(0); }
  50% { transform: translateZ(38px) rotateX(0deg) scale(1.1) translateY(-4px); }
}

.trade-mode-detail {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(34, 46, 72, 0.96) 0%, rgba(12, 18, 32, 0.98) 48%, rgba(6, 10, 18, 1) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -14px 28px rgba(0, 0, 0, 0.45) inset,
    0 22px 48px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(900px) rotateX(4deg) translateZ(10px);
  transform-style: preserve-3d;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.trade-mode-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 28%, transparent 100%);
  pointer-events: none;
}

.trade-mode-detail::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  transform: translateZ(-20px);
}

.trade-mode-detail-glow {
  position: absolute;
  inset: -30% auto auto 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.45;
}

.trade-mode-detail-futures .trade-mode-detail-glow {
  background: rgba(244, 212, 123, 0.35);
}

.trade-mode-detail-spot .trade-mode-detail-glow {
  background: rgba(112, 247, 255, 0.32);
}

.trade-mode-detail-margin .trade-mode-detail-glow {
  background: rgba(201, 160, 255, 0.34);
}

.trade-mode-detail-futures {
  border-color: rgba(244, 212, 123, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -14px 28px rgba(0, 0, 0, 0.45) inset,
    0 22px 48px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(244, 212, 123, 0.12);
}

.trade-mode-detail-spot {
  border-color: rgba(112, 247, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -14px 28px rgba(0, 0, 0, 0.45) inset,
    0 22px 48px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(112, 247, 255, 0.1);
}

.trade-mode-detail-margin {
  border-color: rgba(201, 160, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -14px 28px rgba(0, 0, 0, 0.45) inset,
    0 22px 48px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(201, 160, 255, 0.12);
}

.trade-mode-detail-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.trade-mode-detail-mode {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.trade-mode-detail-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(239, 251, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

.trade-mode-detail-stat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -8px 16px rgba(0, 0, 0, 0.35) inset,
    0 10px 20px rgba(0, 0, 0, 0.28);
}

.trade-mode-detail-open {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  color: #081018;
  background: linear-gradient(180deg, #9ffcff 0%, var(--cyan) 45%, #0d9488 100%);
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 12px 24px rgba(112, 247, 255, 0.28),
    0 4px 0 rgba(13, 148, 136, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(12px);
}

.trade-mode-detail-open::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: 14px 14px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
}

.trade-mode-detail-open:hover {
  transform: translateZ(16px) translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 16px 30px rgba(112, 247, 255, 0.34),
    0 4px 0 rgba(13, 148, 136, 0.55);
}

.trade-mode-detail-open:active {
  transform: translateZ(8px) translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 16px rgba(112, 247, 255, 0.22),
    0 2px 0 rgba(13, 148, 136, 0.55);
}

.trade-mode-detail-open-gold {
  color: #1a1205;
  background: linear-gradient(180deg, #fff4cc 0%, var(--gold) 48%, #b8862b 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 26px rgba(244, 212, 123, 0.3),
    0 4px 0 rgba(146, 98, 30, 0.65);
}

.trade-mode-detail-open-gold:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 16px 32px rgba(244, 212, 123, 0.38),
    0 4px 0 rgba(146, 98, 30, 0.65);
}

.trade-mode-detail-open-purple {
  color: #140a24;
  background: linear-gradient(180deg, #f3e8ff 0%, #c4b5fd 48%, #7c3aed 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 12px 26px rgba(201, 160, 255, 0.3),
    0 4px 0 rgba(91, 33, 182, 0.62);
}

.trade-mode-detail-open-purple:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 16px 32px rgba(201, 160, 255, 0.36),
    0 4px 0 rgba(91, 33, 182, 0.62);
}

.trade-mode-detail-badge {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(112, 247, 255, 0.18), rgba(112, 247, 255, 0.08));
  border: 1px solid rgba(112, 247, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 10px rgba(0, 0, 0, 0.25);
}

.trade-mode-detail-badge-risk {
  color: #ff9eb3;
  background: linear-gradient(180deg, rgba(239, 72, 101, 0.22), rgba(239, 72, 101, 0.1));
  border-color: rgba(239, 72, 101, 0.34);
}

.trade-mode-detail-badge-margin {
  color: #d4b8ff;
  background: linear-gradient(180deg, rgba(201, 160, 255, 0.22), rgba(201, 160, 255, 0.1));
  border-color: rgba(201, 160, 255, 0.32);
}

.trade-mode-detail-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.trade-mode-detail-value {
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(112, 247, 255, 0.28);
}

.trade-mode-detail-futures .trade-mode-detail-value {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(244, 212, 123, 0.28);
}

.trade-mode-detail-value-purple {
  color: #d4b8ff;
}

.trade-hub-quick {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(20, 30, 48, 0.95), rgba(8, 14, 25, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -10px 24px rgba(0, 0, 0, 0.35) inset,
    0 18px 40px rgba(0, 0, 0, 0.38);
  transform: perspective(900px) rotateX(2deg);
}

.trade-hub-quick::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.trade-hub-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trade-hub-quick-head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.trade-hub-quick-via {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.trade-hub-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trade-quick-pair {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -6px 14px rgba(0, 0, 0, 0.28) inset,
    0 8px 18px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(6px);
}

.trade-quick-pair:hover {
  border-color: rgba(112, 247, 255, 0.28);
  transform: translateZ(10px) translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -6px 14px rgba(0, 0, 0, 0.28) inset,
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(112, 247, 255, 0.1);
}

.trade-quick-pair img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trade-quick-pair span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trade-quick-pair strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.trade-hub-theme-spot .trade-hub-top,
.trade-hub-theme-spot .trade-hub-quick {
  border-color: rgba(112, 247, 255, 0.22);
}

.trade-hub-theme-futures .trade-hub-top,
.trade-hub-theme-futures .trade-hub-quick,
.trade-hub-theme-margin .trade-hub-top,
.trade-hub-theme-margin .trade-hub-quick {
  border-color: rgba(112, 247, 255, 0.22);
}

.trade-hub-theme-spot .trade-hub-quick-via {
  color: #70f7ff;
}

.trade-hub-theme-futures .trade-hub-quick-via {
  color: var(--gold);
}

.trade-hub-theme-margin .trade-hub-quick-via {
  color: #c9a0ff;
}

.trade-hub-theme-spot .trade-quick-pair:hover {
  border-color: rgba(112, 247, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(112, 247, 255, 0.14);
}

.trade-hub-theme-futures .trade-quick-pair:hover {
  border-color: rgba(244, 212, 123, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(244, 212, 123, 0.16);
}

.trade-hub-theme-margin .trade-quick-pair:hover {
  border-color: rgba(201, 160, 255, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(201, 160, 255, 0.16);
}

.trade-quick-pair small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trade-quick-pair small.up {
  color: #2ccf91;
}

.trade-quick-pair small.down {
  color: #ef4865;
}

.trade-screen {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 92px 20px 112px;
}

.trade-mode-pill {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(112, 247, 255, 0.12);
  border: 1px solid rgba(112, 247, 255, 0.22);
}

.trade-mode-pill-risk {
  color: #ff9eb3;
  background: rgba(239, 72, 101, 0.12);
  border-color: rgba(239, 72, 101, 0.28);
}

.trade-mode-pill-margin {
  color: #c9a0ff;
  background: rgba(201, 160, 255, 0.12);
  border-color: rgba(201, 160, 255, 0.28);
}

.trade-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 -20px 12px;
  padding: 0 4px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 14, 25, 0.95);
}

.trade-mode-switch a {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.trade-mode-switch a.active {
  color: var(--text);
  background: rgba(112, 247, 255, 0.08);
  border-radius: 14px;
}

.trade-header-link {
  color: var(--gold);
  font-size: 12px;
  text-decoration: none;
}

.trade-order-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 14, 25, 0.88);
}

.trade-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trade-order-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trade-order-head strong {
  font-size: 0.95rem;
}

.trade-order-types,
.trade-leverage-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trade-order-types button,
.trade-leverage-options button {
  flex: 1;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

.trade-order-types button.active,
.trade-leverage-options button.active {
  color: var(--text);
  border-color: rgba(112, 247, 255, 0.3);
  background: rgba(112, 247, 255, 0.1);
}

.trade-leverage-row {
  display: grid;
  gap: 8px;
}

.trade-leverage-row > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trade-order-field {
  display: grid;
  gap: 6px;
}

.trade-order-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trade-order-field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
}

.trade-order-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.trade-order-hint-risk {
  color: #ff9eb3;
}

.trade-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 13, 0.72);
  backdrop-filter: blur(16px);
}

.trade-modal-card {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid rgba(112, 247, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 25, 45, 0.98), rgba(8, 13, 25, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.trade-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-modal-head h3 {
  margin: 0;
}

.trade-modal-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.25rem;
}

.trade-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trade-header,
.trade-header-actions,
.trade-tabs,
.time-tabs,
.indicator-tabs,
.trade-actions {
  display: flex;
  align-items: center;
}

.trade-header {
  gap: 12px;
  min-height: 42px;
}

.trade-header strong {
  font-size: 22px;
}

.back-link,
.trade-header-actions button,
.trade-tabs button,
.time-tabs button,
.indicator-tabs button,
.trade-mini {
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.back-link {
  font-size: 28px;
  line-height: 1;
}

.trade-caret {
  color: var(--gold);
  font-size: 12px;
}

.trade-header-actions {
  gap: 12px;
  margin-left: auto;
}

.trade-header-actions button {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.trade-header-actions button:first-child {
  color: var(--purple);
  font-size: 20px;
}

.trade-tabs,
.time-tabs,
.indicator-tabs {
  gap: 22px;
  overflow-x: auto;
  margin: 12px -20px 0;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.trade-tabs::-webkit-scrollbar,
.time-tabs::-webkit-scrollbar,
.indicator-tabs::-webkit-scrollbar {
  display: none;
}

.trade-tabs button,
.time-tabs button,
.indicator-tabs button {
  position: relative;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.trade-tabs button.active,
.time-tabs button.active,
.indicator-tabs button.active {
  color: var(--text);
}

.trade-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.trade-summary {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 18px;
  padding: 18px 0 12px;
}

.trade-price {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.trade-summary p {
  margin: 8px 0 6px;
  font-weight: 800;
}

.trade-summary small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.trade-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.trade-summary dt {
  color: var(--muted);
  font-size: 12px;
}

.trade-summary dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.detail-chart {
  position: relative;
  overflow: hidden;
  height: 360px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(to right, rgba(112, 247, 255, 0.055) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(to bottom, rgba(112, 247, 255, 0.055) 0 1px, transparent 1px 72px);
}

.detail-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ma-line {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 20px;
  color: var(--muted);
  font-size: 12px;
}

.chart-average,
.chart-line {
  fill: none;
  stroke-linecap: round;
}

.chart-average {
  stroke: rgba(239, 251, 255, 0.45);
  stroke-width: 2;
}

.chart-line {
  stroke: var(--gold);
  stroke-width: 3;
}

.chart-area {
  fill: rgba(244, 212, 123, 0.12);
}

.chart-watermark {
  position: absolute;
  top: 46%;
  left: 50%;
  color: rgba(239, 251, 255, 0.1);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%);
}

.volume-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 92px;
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--line);
}

.volume-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--green);
}

.volume-bars span:nth-child(even) {
  background: var(--red);
}

.indicator-tabs {
  margin-top: 0;
}

.range-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.range-stats b {
  display: block;
  margin-top: 3px;
}

.trade-actions {
  position: sticky;
  bottom: 86px;
  gap: 10px;
  margin: 0 -20px;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--line);
  background: rgba(5, 10, 21, 0.9);
  backdrop-filter: blur(18px);
}

.trade-mini {
  display: grid;
  place-items: center;
  min-width: 46px;
  color: var(--muted);
  font-size: 12px;
}

.buy-btn,
.sell-btn {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.buy-btn {
  background: #2ccf91;
}

.sell-btn {
  background: #ef4865;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 22px, 560px);
    padding-top: 88px;
  }

  .hero,
  .trade-layout,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
    min-height: auto;
  }

  .market-row:not(body[data-page="market"] .market-row) {
    grid-template-columns: 1fr auto;
  }

  .market-row .hide-sm {
    display: none;
  }

  .admin-user-summary-grid {
    grid-template-columns: 1fr;
  }

  .hold-tabs {
    top: 68px;
  }

  .hold-offer-grid {
    grid-template-columns: 1fr;
  }

  .hold-offer-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hold-tabs {
    gap: 0;
    padding: 0 3px;
  }

  .wallet-sync-card {
    grid-template-columns: 1fr;
  }

  .wallet-sync-actions .btn {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-top: 88px;
  }

  .trade-mode-dock {
    padding: 16px 10px 14px;
    border-radius: 28px;
    transform: none;
  }

  .trade-mode-item-spot .trade-mode-icon-stage,
  .trade-mode-item-margin .trade-mode-icon-stage {
    width: 72px;
    height: 72px;
  }

  .trade-mode-item-futures .trade-mode-icon-stage {
    width: 112px;
    height: 112px;
  }

  .trade-mode-item-futures .trade-mode-label {
    font-size: 0.7rem;
  }

  .trade-mode-icon-wrap {
    transform: translateZ(8px);
  }

  .trade-mode-item.is-active .trade-mode-icon-wrap {
    transform: translateZ(12px) scale(1.06);
  }

  .trade-mode-label {
    font-size: 0.64rem;
  }

  .trade-mode-detail {
    transform: none;
  }

  .trade-hub-quick {
    transform: none;
  }

  .trade-mode-detail-stat {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-hub-quick-links {
    grid-template-columns: 1fr;
  }

  .hold-top-card {
    padding: 16px 14px;
  }

  .hold-info-btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
  }

  .hold-info-btn span {
    display: none;
  }

  .topbar,
  .bottom-nav {
    gap: 4px;
    padding: 7px;
  }

  .nav-link {
    min-height: 58px;
    font-size: 0.66rem;
  }

  .nav-link[data-nav="hold"] {
    --hold-button-width: min(74px, 20vw);
    --hold-button-height: min(74px, 20vw);
    overflow: visible;
    min-height: 80px;
    margin-top: -18px;
  }

  .nav-link[data-nav="hold"]::before,
  .nav-link[data-nav="hold"]::after {
    border-radius: 22px;
  }

  .nav-link .icon {
    width: 22px;
    height: 22px;
  }

  .nav-link[data-nav="hold"] .icon {
    width: 28px;
    height: 28px;
  }

  .nav-hold-image {
    height: var(--hold-button-height);
    border-radius: 24px;
  }

  .brand-logo {
    width: min(70vw, 240px);
    height: 54px;
  }

  .top-link {
    min-height: 38px;
    padding: 0 9px;
  }

  .top-link span {
    display: none;
  }

  .home-card-grid {
    gap: 20px;
  }

  .home-tile {
    min-height: 210px;
    padding: 16px;
    border-radius: 14px;
  }

  .tile-title,
  .coin-badge {
    font-size: 0.88rem;
  }

  .coin-badge::before {
    width: 30px;
    height: 30px;
  }

  .bnb-logo {
    width: 34px;
    height: 34px;
  }

  .bnb-logo svg {
    width: 21px;
    height: 21px;
  }

  .tile-price {
    margin-top: 38px;
    font-size: 1.8rem;
  }

  .p2p-tile p {
    margin: 28px 0 20px;
    font-size: 0.88rem;
  }

  .tile-actions a {
    min-height: 66px;
    font-size: 0.78rem;
  }

  .p2p-icon {
    width: 30px;
    height: 30px;
  }

  .p2p-icon svg {
    width: 21px;
    height: 21px;
  }

  .send-tile strong {
    margin-top: 20px;
    font-size: 0.96rem;
  }

  .usd-logo {
    width: 34px;
    height: 34px;
  }

  .deposit-title {
    font-size: 1rem;
  }

  .deposit-meta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 0.68rem;
  }

  .send-flow {
    gap: 6px;
    margin-top: 25px;
  }

  .send-flow span {
    min-width: 42px;
    height: 28px;
    font-size: 0.7rem;
  }

  .send-icon {
    width: 40px;
    height: 40px;
  }

  .brand-text span {
    display: none;
  }

  .market-row:not(body[data-page="market"] .market-row),
  .asset-row,
  .vault-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .whatsapp-list .conversation-button,
  .whatsapp-list .chat-item {
    align-items: center;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    flex-direction: row;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .action-grid,
  .offer-row {
    grid-template-columns: 1fr;
  }
}

.wallet-screen {
  width: min(520px, calc(100% - 20px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 88px;
}

.wallet-balance-card {
  position: relative;
  min-height: auto;
  margin-bottom: 0;
  padding: 20px 18px 16px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, #1a2332 0%, #0b1018 55%, #12182a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.wallet-balance-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(244, 212, 123, 0.12);
  filter: blur(2px);
}

.wallet-balance-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(112, 247, 255, 0.08);
}

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

.wallet-chip {
  padding: 5px 9px;
  border-radius: 999px;
  color: #120f04;
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
}

.wallet-balance-row {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.wallet-balance-card .wallet-balance-amount {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 2.85rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.wallet-balance-fiat {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.wallet-balance-sub {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.wallet-sync-card,
.wallet-activity-card {
  padding: 14px 16px;
  border-radius: 18px;
}

.wallet-sync-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 212, 123, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(18, 28, 45, 0.96), rgba(7, 12, 23, 0.96));
}

.wallet-sync-copy h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.wallet-sync-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.wallet-sync-actions {
  display: flex;
  gap: 8px;
}

.wallet-deposit-address-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wallet-deposit-address-head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.wallet-my-address-label {
  margin: 10px 0 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.wallet-my-address-code {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
}

.wallet-my-address-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wallet-my-address-actions .btn {
  flex: 1;
  text-align: center;
}

.wallet-sync-status {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.78rem;
}

.wallet-activity-card h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.admin-user-address-box {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-alert {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.28);
  color: #ffb4b4;
  font-size: 0.72rem;
  line-height: 1.35;
}

.wallet-card-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-fund-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.wallet-fund-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.wallet-fund-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wallet-fund-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.wallet-fund-btn--p2p .wallet-fund-icon {
  background: linear-gradient(145deg, #3b82f6, #60a5fa);
}

.wallet-fund-copy strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
}

.wallet-fund-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.wallet-fund-btn:active .wallet-fund-icon {
  transform: scale(0.96);
}

.wallet-panel {
  padding: 16px;
  border-radius: 18px;
}

.wallet-panel h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.wallet-address-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.wallet-address-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.wallet-address-row code {
  word-break: break-all;
  text-align: right;
  font-size: 0.82rem;
  color: var(--cyan);
}

.wallet-request-list,
.wallet-tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-request-card,
.wallet-tx-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.wallet-request-card .wallet-request-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.wallet-status {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.wallet-status.pending {
  background: rgba(244, 212, 123, 0.15);
  color: var(--gold);
}

.wallet-status.approved {
  background: rgba(76, 217, 140, 0.12);
  color: var(--green);
}

.wallet-status.rejected {
  background: rgba(255, 107, 107, 0.12);
  color: var(--red);
}

.admin-request-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .wallet-screen {
    width: min(100% - 16px, 520px);
    gap: 10px;
    padding-bottom: 118px;
  }

  .wallet-panel .form-grid {
    gap: 10px;
  }
}

.wallet-promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 40px 14px 14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.28);
  background: linear-gradient(135deg, rgba(112, 247, 255, 0.14), rgba(143, 124, 255, 0.12));
  animation: walletPromoPulse 3s ease-in-out infinite;
}

.wallet-promo-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(112, 247, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.wallet-promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.wallet-promo-copy strong {
  font-size: 0.92rem;
}

.wallet-promo-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.wallet-promo-tag {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cyan);
  color: #041018;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-promo-cta {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  color: #041018;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.wallet-promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.wallet-promo-banner.is-hidden {
  display: none;
}

.wallet-referral-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(244, 212, 123, 0.35);
  background: linear-gradient(145deg, rgba(244, 212, 123, 0.12), rgba(18, 24, 40, 0.95));
}

.wallet-referral-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: walletShine 4s ease-in-out infinite;
  pointer-events: none;
}

.wallet-referral-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold), #e8a82e);
  color: #120f04;
  flex-shrink: 0;
}

.wallet-referral-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.wallet-referral-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.wallet-referral-copy strong {
  display: block;
  font-size: 0.92rem;
}

.wallet-referral-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.wallet-badge {
  position: relative;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  flex-shrink: 0;
}

.wallet-badge--reward {
  background: rgba(244, 212, 123, 0.2);
  color: var(--gold);
  animation: walletBadgePulse 2s ease-in-out infinite;
}

.wallet-badge--new {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 7px;
  font-size: 0.56rem;
  background: var(--cyan);
  color: #041018;
}

.wallet-feature-section {
  padding: 4px 2px 8px;
}

.wallet-feature-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.wallet-feature-head p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.wallet-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  animation: walletCardIn 0.5s ease both;
  animation-delay: var(--wallet-delay, 0s);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wallet-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-120%);
  animation: walletShine 5s ease-in-out infinite;
  pointer-events: none;
}

.wallet-feature-card:active {
  transform: scale(0.97);
}

.wallet-feature-card--creator {
  border-color: rgba(112, 247, 255, 0.35);
  background: linear-gradient(145deg, rgba(112, 247, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.wallet-feature-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan);
}

.wallet-feature-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wallet-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-feature-card strong {
  grid-column: 2;
  align-self: end;
  font-size: 0.86rem;
  line-height: 1.2;
}

.wallet-feature-card small {
  grid-column: 2;
  align-self: start;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
}

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

@keyframes walletShine {
  0%, 55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes walletPromoPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(112, 247, 255, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(112, 247, 255, 0.18);
  }
}

@keyframes walletBadgePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-promo-banner,
  .wallet-referral-shine,
  .wallet-feature-card,
  .wallet-feature-card::after,
  .wallet-badge--reward {
    animation: none;
  }
}

@media (max-width: 380px) {
  .wallet-fund-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .wallet-fund-icon svg {
    width: 22px;
    height: 22px;
  }

  .wallet-feature-card {
    min-height: 88px;
    padding: 12px;
  }
}

/* Spot terminal layout -> spot-trading/spot-terminal.css */

/* ==========================================================================
   Home v2 — mobile-first dashboard
   ========================================================================== */

body.home-v2 {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% -4%, rgba(112, 247, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(53, 240, 163, 0.08), transparent 30%),
    linear-gradient(165deg, #04060c 0%, #07111d 48%, #05070f 100%);
}

body.home-v2::before {
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 52%);
}

body.home-v2 .home-topbar {
  border-bottom-color: rgba(112, 247, 255, 0.12);
  background: rgba(4, 8, 16, 0.78);
}

body.home-v2 .home-top-chip {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  background: rgba(10, 16, 28, 0.7);
  gap: 6px;
}

body.home-v2 .home-top-chip span {
  font-size: 0.72rem;
  font-weight: 750;
}

.home-main {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  animation: homeIn 0.55s ease both;
}

.home-body {
  width: min(100% - 28px, 430px);
  margin: 0 auto;
  padding-top: 14px;
}

.home-dashboard-v2 {
  max-width: 430px;
  padding-top: 84px;
  padding-bottom: 118px;
  animation: homeIn 0.55s ease both;
}

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

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

@keyframes homePulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(112, 247, 255, 0.28); }
  50% { box-shadow: 0 14px 34px rgba(53, 240, 163, 0.34); }
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(52vh, 420px);
  margin: 0 0 16px;
  border-radius: 28px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.home-hero-bleed {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: min(58vh, 460px);
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

.home-hero-media,
.home-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-media img {
  animation: homeIn 1.1s ease both;
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.35) 0%, rgba(4, 8, 16, 0.55) 40%, rgba(4, 8, 16, 0.94) 100%),
    radial-gradient(circle at 78% 28%, rgba(112, 247, 255, 0.22), transparent 42%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: end;
  min-height: inherit;
  width: min(100% - 28px, 430px);
  margin: 0 auto;
  padding: 22px 0 24px;
  animation: homeHeroRise 0.7s ease 0.12s both;
}

.home-kicker,
.home-brand-mark {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.home-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 10vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.home-hero-lead {
  margin: 0;
  max-width: 30ch;
  color: rgba(239, 251, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-hero-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-btn:active {
  transform: scale(0.97);
}

.home-btn-primary {
  color: #041018;
  background: linear-gradient(135deg, #9afcff 0%, #70f7ff 42%, #35f0a3 100%);
  box-shadow: 0 12px 28px rgba(112, 247, 255, 0.28);
  animation: homePulse 3.2s ease-in-out infinite;
}

.home-btn-ghost {
  color: #effbff;
  border: 1px solid rgba(112, 247, 255, 0.35);
  background: rgba(8, 14, 24, 0.55);
  backdrop-filter: blur(10px);
}

.home-btn-gold {
  color: #191401;
  background: linear-gradient(135deg, #f4d47b, #ffe66a);
  box-shadow: 0 10px 24px rgba(244, 212, 123, 0.28);
  font-style: normal;
}

.home-btn-sm {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  animation: none;
}

.home-search-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px 6px 6px 14px;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  background: rgba(10, 16, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-search-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  flex: 0 0 auto;
}

.home-search-v2 input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.home-search-go {
  min-height: 42px;
  min-width: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #041018;
  background: linear-gradient(135deg, #70f7ff, #35f0a3);
  font-weight: 800;
  cursor: pointer;
}

.home-demo {
  margin-bottom: 14px;
  border-radius: 18px;
}

.home-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.home-quick-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  background: rgba(12, 18, 32, 0.78);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-quick-item:active {
  transform: translateY(1px) scale(0.98);
  border-color: rgba(112, 247, 255, 0.35);
}

.home-quick-icon {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1220;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(112, 247, 255, 0.2);
}

.home-quick-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-quick-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(112, 247, 255, 0.18), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.home-quick-item strong {
  font-size: 0.74rem;
  font-weight: 750;
  color: rgba(239, 251, 255, 0.92);
}

.home-promo {
  margin-bottom: 16px;
}

.home-promo-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 156px;
  border-radius: 22px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  text-decoration: none;
  color: inherit;
}

.home-promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.home-promo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  align-content: end;
  min-height: 156px;
  padding: 16px;
  background: linear-gradient(180deg, transparent 10%, rgba(4, 8, 16, 0.88) 78%);
}

.home-promo-copy span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-promo-copy strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.home-promo-copy .home-btn {
  width: fit-content;
  margin-top: 4px;
}

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

.home-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.home-section-head a {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.home-movers {
  margin-bottom: 16px;
}

.home-mover-row {
  display: grid;
  gap: 10px;
}

.home-mover {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  min-height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  background: rgba(10, 16, 28, 0.86);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-mover:active {
  transform: scale(0.99);
  border-color: rgba(112, 247, 255, 0.32);
}

.home-mover img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b1220;
  object-fit: cover;
  flex-shrink: 0;
}

.home-mover .coin-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.home-mover strong {
  display: block;
  font-size: 0.95rem;
}

.home-mover small {
  color: var(--muted);
  font-size: 0.72rem;
}

.home-mover-px {
  text-align: right;
}

.home-mover-px b {
  display: block;
  font-size: 0.95rem;
}

.home-mover-px .live,
.home-mover-px .up,
.home-mover-px .down {
  font-size: 0.7rem;
  font-weight: 750;
}

.home-mover-px .live,
.home-mover-px .up {
  color: #35f0a3;
}

.home-mover-px .down {
  color: #f6465d;
}

.home-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.home-tool {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  min-height: 78px;
  border-radius: 18px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(112, 247, 255, 0.08), transparent 55%),
    rgba(10, 16, 28, 0.88);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-tool:active {
  transform: scale(0.98);
  border-color: rgba(112, 247, 255, 0.35);
}

.home-tool strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.home-tool span {
  color: var(--muted);
  font-size: 0.78rem;
}

.home-discover {
  margin-bottom: 8px;
}

.home-discover .discover-tabs {
  gap: 8px;
}

.home-discover .discover-tabs button {
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 750;
}

body.home-v2 .home-discover .discover-tabs button,
body.app-chrome .home-discover .discover-tabs button {
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 750;
}

/* Shared top + bottom chrome (all pages) */
body.app-chrome .bottom-nav,
body.home-v2 .home-bottom-nav {
  left: 50%;
  width: min(100%, 480px);
  transform: translateX(-50%);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(5, 10, 18, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

body.app-chrome .bottom-nav .nav-link,
body.home-v2 .home-bottom-nav .nav-link {
  gap: 4px;
  min-height: 56px;
  border-radius: 16px;
  color: rgba(180, 200, 214, 0.78);
  font-size: 0.68rem;
  font-weight: 750;
}

body.app-chrome .bottom-nav .nav-link .icon,
body.home-v2 .home-bottom-nav .nav-link .icon {
  display: none;
}

body.app-chrome .home-nav-img,
body.home-v2 .home-nav-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: none;
  box-shadow: 0 0 12px rgba(112, 247, 255, 0.18);
}

body.app-chrome .bottom-nav .nav-link.active,
body.home-v2 .home-bottom-nav .nav-link.active {
  color: #70f7ff;
  background: transparent;
}

body.app-chrome .bottom-nav .nav-link.active .home-nav-img,
body.home-v2 .home-bottom-nav .nav-link.active .home-nav-img {
  box-shadow: 0 0 18px rgba(112, 247, 255, 0.55);
  transform: translateY(-2px) scale(1.06);
}

body.app-chrome .home-hold-img,
body.home-v2 .home-hold-img {
  width: 68px;
  height: 68px;
  margin-top: -22px;
  object-fit: contain;
  border-radius: 50%;
  border: 0;
  background: transparent;
  box-shadow: 0 0 22px rgba(112, 247, 255, 0.4);
}

body.app-chrome .nav-hold-image {
  display: none !important;
}

body.app-chrome .topbar {
  border-color: rgba(112, 247, 255, 0.14);
  background: rgba(5, 10, 18, 0.9);
  backdrop-filter: blur(18px);
}

body.app-chrome .top-actions .top-link,
body.app-chrome .home-top-chip,
body.home-v2 .home-top-chip {
  position: relative;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 8px;
  border-radius: 14px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

body.app-chrome .home-top-ico,
body.home-v2 .home-top-ico {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  flex: 0 0 auto;
  background: transparent;
  filter: none;
}

body.app-chrome .top-actions .top-link .icon,
body.app-chrome .home-top-chip .icon,
body.home-v2 .home-top-chip .icon {
  display: none;
}

body.app-chrome .nav-link[data-nav="hold"],
body.home-v2 .nav-link[data-nav="hold"] {
  color: #effbff;
}

body.app-chrome .nav-link[data-nav="hold"]::before,
body.app-chrome .nav-link[data-nav="hold"]::after,
body.home-v2 .nav-link[data-nav="hold"]::before,
body.home-v2 .nav-link[data-nav="hold"]::after {
  display: none;
}

body.app-chrome .home-nav-ico,
body.home-v2 .home-nav-ico,
body.home-v2 .home-hold-fab {
  display: none;
}

@media (max-width: 380px) {
  body.app-chrome .bottom-nav .nav-link span,
  body.home-v2 .home-bottom-nav .nav-link span {
    font-size: 0.6rem;
  }

  body.app-chrome .home-nav-img,
  body.home-v2 .home-nav-img {
    width: 30px;
    height: 30px;
  }

  body.app-chrome .home-hold-img,
  body.home-v2 .home-hold-img {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 380px) {
  .home-hero-cta {
    grid-template-columns: 1fr;
  }

  .home-quick-icon {
    width: 48px;
    height: 48px;
  }

  .home-quick-item strong {
    font-size: 0.68rem;
  }
}

@media (min-width: 900px) {
  .home-hero-bleed {
    min-height: 520px;
    border-radius: 0 0 28px 28px;
  }

  .home-main {
    max-width: 560px;
  }
}

.ai-desk-disclaimer {
  margin: 0 2px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px;
  color: #b7c4ce;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(8, 14, 25, 0.7);
}

.hold-wallet-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.hold-wallet-bar button {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  text-align: left;
  border: 0;
  border-radius: 0;
  color: #9fb3c8;
  background: transparent;
  cursor: pointer;
}

.hold-wallet-bar button + button {
  border-left: 1px solid rgba(112, 247, 255, 0.14);
}

.hold-wallet-bar button.active {
  color: #effbff;
  background: rgba(112, 247, 255, 0.1);
  box-shadow: none;
}

.hold-wallet-bar small {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hold-wallet-bar strong {
  font-size: 20px;
  color: #25d366;
}

.ai-agent-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-agent-toolbar input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 14px;
  color: #effbff;
  background: rgba(8, 14, 25, 0.88);
}

.ai-family-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.ai-family-chips::-webkit-scrollbar {
  display: none;
}

.ai-family-chips button {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(112, 247, 255, 0.18);
  border-radius: 16px;
  color: #c5d4e0;
  background: rgba(8, 14, 25, 0.92);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.ai-family-chips button small {
  color: #70f7ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-family-chips button.active {
  color: #041018;
  background: linear-gradient(180deg, #b8fffb, #70f7ff);
  border-color: #70f7ff;
  box-shadow: 0 0 18px rgba(112, 247, 255, 0.28);
}

.ai-family-chips button.active small {
  color: #0b3d3a;
}

.ai-agent-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 14, 25, 0.9);
}

.ai-agent-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
}

.ai-agent-card:last-child {
  border-bottom: 0;
}

.ai-agent-card:active {
  background: rgba(112, 247, 255, 0.06);
}

.ai-bot-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: #041018;
  border: 1px solid rgba(112, 247, 255, 0.22);
}

.ai-bot-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-bot-copy {
  min-width: 0;
}

.ai-bot-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.ai-bot-copy p {
  margin: 3px 0 0;
  color: #8696a0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-bot-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.ai-bot-meta b {
  color: #70f7ff;
  font-size: 13px;
}

.ai-bot-meta small {
  color: #8696a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-agent-card.is-live .ai-bot-meta b,
.ai-agent-card.is-live .ai-bot-meta small {
  color: #25d366;
}

.ai-agent-card.is-real .ai-bot-meta b {
  color: #7dffb0;
}

.ai-agent-card .ai-agent-code,
.ai-agent-card em {
  display: none;
}

.ai-mine-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 16px;
  background: rgba(7, 18, 14, 0.72);
}

.ai-mine-row small {
  display: block;
  color: #8696a0;
  margin-top: 3px;
}

body.ai-core-open {
  overflow: hidden;
}

body.ai-core-open .bottom-nav,
body.ai-core-open .topbar {
  visibility: hidden;
  pointer-events: none;
}

.ai-core-room {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: auto auto minmax(140px, 1fr) auto auto;
  overflow: hidden;
  padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  color: #d7f7ff;
  background: #05070c;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.ai-core-room[hidden] {
  display: none !important;
}

.ai-core-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(112, 247, 255, 0.04) 0 1px,
    transparent 1px 4px
  );
  animation: ai-scan 14s linear infinite;
}

@keyframes ai-scan {
  from { transform: translateY(-4%); }
  to { transform: translateY(4%); }
}

.ai-core-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 12px;
  border-bottom: 1px solid rgba(112, 247, 255, 0.2);
}

.ai-core-face {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(112, 247, 255, 0.28);
}

.ai-core-head small {
  display: block;
  color: #25d366;
  letter-spacing: 0.14em;
  font-size: 10px;
}

.ai-core-back,
.ai-core-go {
  border: 1px solid #70f7ff;
  background: transparent;
  color: #70f7ff;
  font-weight: 800;
  cursor: pointer;
}

.ai-core-back {
  padding: 8px 10px;
  border-radius: 10px;
}

.ai-core-access {
  color: #25d366;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ai-core-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 14px;
  background: rgba(8, 14, 22, 0.92);
}

.ai-core-stats > div {
  padding: 8px 8px;
  text-align: center;
}

.ai-core-stats > div + div {
  border-left: 1px solid rgba(112, 247, 255, 0.1);
}

.ai-core-stats small {
  display: block;
  color: #7f93a3;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ai-core-stats b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #e8fbff;
}

.ai-core-stats .is-live {
  background: rgba(37, 211, 102, 0.08);
}

.ai-candle-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 8px 10px 10px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(112, 247, 255, 0.08), transparent 40%),
    #071018;
}

.ai-candle-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
}

.ai-candle-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-candle-price small {
  width: 100%;
  color: #7f93a3;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ai-candle-price strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ai-candle-price em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: #25d366;
}

.ai-tf {
  display: flex;
  gap: 4px;
}

.ai-tf button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 8px;
  color: #9fb3c8;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ai-tf button.active {
  color: #041018;
  background: #70f7ff;
  border-color: #70f7ff;
}

.ai-candles {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.ai-quick-amt {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.ai-quick-amt button {
  flex: 1;
  min-height: 32px;
  border: 1px solid rgba(112, 247, 255, 0.2);
  border-radius: 10px;
  color: #d7f7ff;
  background: rgba(112, 247, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ai-core-progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 4px 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 10px;
  color: #7f93a3;
}

.ai-core-log {
  position: relative;
  z-index: 1;
  max-height: 72px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid rgba(112, 247, 255, 0.12);
  border-radius: 12px;
  background: #041018;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.ai-core-log p {
  margin: 0 0 4px;
  font-size: 11px;
  color: #25d366;
}

.ai-core-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}

.ai-flow-node {
  padding: 8px 6px;
  border: 1px solid rgba(112, 247, 255, 0.2);
  border-radius: 10px;
  background: #041018;
  text-align: center;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.ai-flow-node small {
  display: block;
  color: #7f93a3;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ai-flow-node b {
  font-size: 11px;
  color: #e8fbff;
}

.ai-flow-node.is-live {
  border-color: #25d366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.25);
}

.ai-flow-pipe {
  height: 2px;
  background: linear-gradient(90deg, transparent, #70f7ff, #25d366, transparent);
  background-size: 200% 100%;
  animation: ai-pipe 1.8s linear infinite;
  opacity: 0.85;
}

@keyframes ai-pipe {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.ai-core-progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 4px 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 10px;
  color: #7f93a3;
}

.ai-core-progress span {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ai-core-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #70f7ff, #25d366);
  transition: width 0.7s ease;
}

.ai-equity-svg {
  width: 100%;
  height: 88px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
}

.ai-equity-svg polyline {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ai-core-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 10px 0;
}

.ai-core-rail,
.ai-core-log,
.ai-core-center {
  border: 1px solid rgba(112, 247, 255, 0.16);
  border-radius: 12px;
  background: rgba(4, 12, 22, 0.86);
  padding: 10px;
}

.ai-core-rail p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11px;
  color: #7f93a3;
}

.ai-core-rail b {
  color: #e8fbff;
}

.ai-core-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding: 8px 4px;
}

.ai-core-chart i {
  flex: 1;
  display: block;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #70f7ff, #25d366);
  opacity: 0.85;
  transition: height 0.7s ease;
}

.ai-core-votes {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8696a0;
}

.ai-core-votes b {
  color: #70f7ff;
}

.ai-core-log {
  max-height: 72px;
  overflow: auto;
}

.ai-core-log p {
  margin: 0 0 6px;
  font-size: 11px;
  color: #25d366;
}

.ai-core-deploy {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  background: #02060c;
}

.ai-core-deploy .ai-quick-amt {
  grid-column: 1 / -1;
}

.ai-core-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #ff5c8a;
  font-size: 12px;
  font-weight: 700;
}

.ai-core-deploy label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-core-deploy input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(112, 247, 255, 0.3);
  border-radius: 12px;
  color: #e8fbff;
  background: #041018;
}

.ai-core-go {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #70f7ff;
  color: #041018;
}

.ai-risk-pop {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(2, 6, 12, 0.94);
}

.ai-risk-pop[hidden] {
  display: none !important;
}

.ai-risk-pop h3 {
  margin: 0;
  font-size: 20px;
}

.ai-risk-pop p {
  margin: 0;
  color: #9fb3c8;
  font-size: 13px;
}

.ai-risk-pop > strong {
  font-size: 18px;
  color: #70f7ff;
}

.ai-risk-pop input[type="range"] {
  width: 100%;
  accent-color: #70f7ff;
}

.ai-risk-chips {
  display: flex;
  gap: 6px;
}

.ai-risk-chips button {
  flex: 1;
  min-height: 34px;
  border: 1px solid rgba(112, 247, 255, 0.25);
  border-radius: 10px;
  color: #d7f7ff;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.ai-risk-chips button.is-on {
  background: #70f7ff;
  color: #041018;
  border-color: #70f7ff;
}

.ai-risk-preview {
  color: #25d366 !important;
  font-weight: 800;
  font-size: 15px !important;
}

.ai-risk-pop > small {
  color: #7f93a3;
}

.ai-risk-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.ai-risk-actions button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-risk-actions button[data-ai-risk-cancel] {
  border: 1px solid rgba(112, 247, 255, 0.3);
  background: transparent;
  color: #d7f7ff;
}

.ai-showoff {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(2, 6, 12, 0.92);
}

.ai-showoff[hidden] {
  display: none !important;
}

.ai-showoff > small {
  color: #70f7ff;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
}

.ai-showoff-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 160px;
  width: min(100%, 420px);
}

.ai-showoff-wallet {
  width: 92px;
  padding: 12px 8px;
  border: 1px solid rgba(112, 247, 255, 0.35);
  border-radius: 14px;
  background: #041018;
  text-align: center;
}

.ai-showoff-wallet span {
  display: block;
  color: #7f93a3;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ai-showoff-wallet b {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #e8fbff;
}

.ai-showoff-cash {
  position: absolute;
  left: 28%;
  z-index: 2;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #25d366;
  color: #041018;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
}

.ai-showoff-botwrap {
  position: relative;
}

.ai-showoff-botwrap img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(112, 247, 255, 0.4);
}

.ai-showoff-lock {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: #70f7ff;
  color: #041018;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.ai-showoff strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.ai-showoff > em {
  min-height: 18px;
  font-style: normal;
  font-size: 12px;
  color: #9fb3c8;
}

.ai-showoff-dots {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-showoff-dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(112, 247, 255, 0.2);
}

.ai-showoff-dots li.is-done {
  background: #25d366;
}

.ai-showoff-dots li.is-now {
  background: #70f7ff;
  transform: scale(1.25);
}

.ai-showoff[data-stage="give"] .ai-showoff-cash {
  animation: ai-cash-give 0.85s ease forwards;
}

.ai-showoff[data-stage="debit"] .ai-showoff-wallet {
  animation: ai-wallet-hit 0.5s ease;
}

.ai-showoff[data-stage="debit"] .ai-showoff-cash {
  opacity: 1;
  left: 42%;
}

.ai-showoff[data-stage="route"] .ai-showoff-cash {
  animation: ai-cash-route 0.85s ease forwards;
}

.ai-showoff[data-stage="take"] .ai-showoff-cash {
  animation: ai-cash-eat 0.7s ease forwards;
}

.ai-showoff[data-stage="take"] .ai-showoff-botwrap img {
  animation: ai-bot-take 0.7s ease;
}

.ai-showoff[data-stage="lock"] .ai-showoff-lock {
  display: block;
  animation: ai-lock-pop 0.45s ease;
}

.ai-showoff[data-stage="lock"] .ai-showoff-botwrap img {
  border-color: #70f7ff;
  box-shadow: 0 0 24px rgba(112, 247, 255, 0.45);
}

.ai-showoff[data-stage="live"] .ai-showoff-botwrap img {
  animation: ai-bot-live 0.9s ease;
  border-color: #25d366;
  box-shadow: 0 0 36px rgba(37, 211, 102, 0.55);
}

.ai-showoff[data-stage="live"] .ai-showoff-lock {
  display: block;
  background: #25d366;
}

@keyframes ai-cash-give {
  from { opacity: 0; left: 18%; transform: scale(0.6); }
  to { opacity: 1; left: 42%; transform: scale(1); }
}

@keyframes ai-wallet-hit {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes ai-cash-route {
  from { opacity: 1; left: 42%; }
  to { opacity: 1; left: 62%; }
}

@keyframes ai-cash-eat {
  from { opacity: 1; left: 62%; transform: scale(1); }
  to { opacity: 0; left: 72%; transform: scale(0.3); }
}

@keyframes ai-bot-take {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes ai-lock-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes ai-bot-live {
  0% { transform: scale(0.92) rotate(-6deg); }
  50% { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.ai-core-face.is-showoff {
  animation: ai-face-pop 0.7s ease;
}

@keyframes ai-face-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); box-shadow: 0 0 18px rgba(112, 247, 255, 0.8); }
  100% { transform: scale(1); }
}

.admin-ai-deploy-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-ai-deploy-row.is-real {
  border-left: 3px solid #25d366;
  padding-left: 8px;
}

.admin-ai-deploy-row small {
  display: block;
  color: var(--muted);
}

@media (min-width: 720px) {
  .ai-core-grid {
    grid-template-columns: 0.9fr 1.3fr 1fr;
  }

  .ai-core-log {
    max-height: none;
  }
}

body.app-actions-locked button,
body.app-actions-locked a.btn,
body.app-actions-locked .trade-mode-item,
body.app-actions-locked .trade-mode-detail-open,
body.app-actions-locked .ai-core-go,
body.app-actions-locked [data-hold-buy] {
  opacity: 0.4;
  pointer-events: none;
}

body.app-actions-locked .bottom-nav a,
body.app-actions-locked .top-actions a,
body.app-actions-locked .topbar .brand {
  opacity: 1;
  pointer-events: auto;
}

.apk-prompt {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
}

.apk-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(10px);
}

.apk-prompt-card {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
}

.apk-prompt-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 14, 26, 0.95);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.apk-prompt-download {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.apk-prompt-download img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  object-position: center top;
}


