/* =========================================================
   Nexa — Digital Asset Exchange (Pure static, no framework)
   暗色科技金融主题
   ========================================================= */

:root {
  --bg: #080b12;
  --card: #111722;
  --surface-2: #16202f;
  --text: #eef2fb;
  --muted: #8a94ab;
  --brand: #5b8cff;
  --up: #20c997;
  --down: #ff5c6c;
  --border: #1e2838;
  --warn: #ffb648;
  --radius: 14px;
  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(
      1200px 600px at 15% -10%,
      rgba(91, 140, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(91, 140, 255, 0.06),
      transparent 55%
    );
  background-attachment: fixed;
}

::selection {
  background: rgba(91, 140, 255, 0.35);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: inherit;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-family:
    ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #243048;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #33415e;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: #0a0f1c;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--muted);
  padding: 8px 12px;
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.btn-buy {
  background: var(--up);
  color: #07211b;
}
.btn-buy:hover {
  filter: brightness(1.08);
}
.btn-sell {
  background: var(--down);
  color: #fff;
}
.btn-sell:hover {
  filter: brightness(1.08);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #050912;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: 0.15s;
}
.lang-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.burger {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--card);
  padding: 16px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu .nav-link {
  display: block;
  padding: 10px;
}
.mobile-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--card);
  overflow: hidden;
  user-select: none;
  font-size: 13px;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  padding: 8px 24px;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.ticker-item:hover {
  opacity: 0.8;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cards ---------- */
.card {
  background: rgba(17, 23, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.card-pad {
  padding: 24px;
}

.section {
  padding: 80px 0;
}
.section-tight {
  padding: 56px 0;
}
.sec-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.sec-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sec-head p {
  margin-top: 14px;
  color: var(--muted);
}
.sec-left {
  text-align: left;
  margin: 0 0 32px;
}
.muted {
  color: var(--muted);
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  display: block;
  background: linear-gradient(90deg, var(--brand), #9db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 22px;
  max-width: 440px;
  font-size: 17px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-stats p {
  font-size: 12px;
  color: var(--muted);
}
.hero-stats h4 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
}

/* hero market card */
.mini-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.7);
  box-shadow: 0 24px 60px rgba(91, 140, 255, 0.1);
  backdrop-filter: blur(8px);
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mini-cell {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mini-cell:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.mini-cell .pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.mini-cell .px {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
}
.mini-cell .ch {
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}
.mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--muted);
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
}

/* ---------- Coin icon ---------- */
.coin {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: #0a0f1c;
  flex-shrink: 0;
}
.coin.lg {
  width: 40px;
  height: 40px;
  font-size: 19px;
}
.coin.sm {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}
table.data th {
  text-align: left;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
table.data td {
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
table.data tbody tr:last-child td {
  border-bottom: none;
}
table.data tbody tr {
  transition: background 0.12s;
}
table.data tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.ta-r {
  text-align: right;
}
.cell-coin {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-coin .sub {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 23, 34, 0.6);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.feature:hover {
  border-color: rgba(91, 140, 255, 0.3);
  background: var(--card);
}
.feature .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(91, 140, 255, 0.1);
  color: var(--brand);
  margin-bottom: 18px;
  transition: 0.15s;
}
.feature:hover .ic {
  background: var(--brand);
  color: #0a0f1c;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
}
.feature p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Security band ---------- */
.band {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(22, 32, 47, 0.4);
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 28px;
}
.mini-sec {
  padding: 22px;
}
.mini-sec h3 {
  font-size: 15px;
}

/* ---------- Testimonials ---------- */
.testi {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--warn);
}
.testi blockquote {
  flex: 1;
  font-size: 14px;
  color: rgba(238, 242, 251, 0.9);
}
.testi figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: #0a0f1c;
}
.testi .name {
  font-size: 14px;
  font-weight: 600;
}
.testi .role {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 23, 34, 0.6);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item.open {
  border-color: rgba(91, 140, 255, 0.3);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
}
.faq-q .chev {
  transition: transform 0.2s;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item.open .chev {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--surface-2), var(--card), var(--surface-2));
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 80px;
}
.cta-glow {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 240px;
  background: rgba(91, 140, 255, 0.2);
  filter: blur(70px);
  pointer-events: none;
}
.cta-box h2 {
  position: relative;
  font-size: 30px;
}
.cta-box p {
  position: relative;
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--muted);
}
.cta-box .btn {
  position: relative;
  margin-top: 28px;
}

/* =========================================================
   Trade page
   ========================================================= */
.trade-layout {
  display: grid;
  grid-template-columns: 230px 1fr 300px;
  gap: 16px;
  padding: 20px 0;
}
.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.6);
  overflow: hidden;
}
.panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
}
.panel-body {
  padding: 16px;
}

/* markets list */
.mkt-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  text-align: left;
  border-radius: 8px;
  transition: background 0.12s;
}
.mkt-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.mkt-row.active {
  background: rgba(91, 140, 255, 0.1);
}
.mkt-row .mp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.mkt-col-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  padding: 8px 12px 4px;
  font-size: 11px;
  color: var(--muted);
}

/* pair header */
.pair-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pair-id {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pair-id .pn {
  font-size: 15px;
  font-weight: 600;
}
.pair-id .ps {
  font-size: 12px;
  color: var(--muted);
}
.big-price {
  font-size: 24px;
  font-weight: 700;
}
.pair-stats {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 12px;
}
.pair-stats p {
  color: var(--muted);
}
.pair-stats h5 {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
}

/* timeframe */
.tf-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tf {
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.tf.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.chart-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

/* order book */
.ob-head,
.ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 3px 12px;
  font-size: 11px;
}
.ob-head {
  color: var(--muted);
}
.ob-row {
  position: relative;
  font-size: 12px;
}
.ob-row .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0.1;
}
.ob-row span {
  position: relative;
  z-index: 1;
}
.ob-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 600;
}

/* trade form */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  padding: 3px;
}
.seg button {
  border-radius: 7px;
  padding: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.seg button.on {
  background: var(--surface-2);
  color: var(--text);
}
.side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.side-toggle button {
  border-radius: 9px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.side-toggle button.on.buy {
  background: var(--up);
  color: #07211b;
}
.side-toggle button.on.sell {
  background: var(--down);
  color: #fff;
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field .pct-link {
  color: var(--brand);
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color 0.15s;
}
.input-wrap:focus-within {
  border-color: rgba(91, 140, 255, 0.5);
}
.input-wrap input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.input-wrap .unit {
  color: var(--muted);
  font-size: 13px;
}
.mini-bal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.mini-bal div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 11px;
  color: var(--muted);
}
.mini-bal b {
  color: var(--text);
  font-weight: 500;
}
.trade-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.trade-summary b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   Assets page
   ========================================================= */
.assets-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 32px 0 16px;
}
.total-value p {
  font-size: 14px;
  color: var(--muted);
}
.total-value h2 {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 700;
}
.total-change {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
}
.asset-actions {
  display: flex;
  gap: 8px;
}
.overview-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.holding-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.holding-row:last-child {
  border-bottom: none;
}
.holding-info {
  flex: 1;
}
.holding-info .hn {
  font-size: 14px;
  font-weight: 500;
}
.holding-info .hq {
  font-size: 12px;
  color: var(--muted);
}
.holding-val {
  text-align: right;
}
.holding-val .hv {
  font-size: 14px;
  font-weight: 500;
}
.holding-val .hc {
  font-size: 12px;
}

/* =========================================================
   Account page
   ========================================================= */
.account-layout {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  align-items: flex-start;
}
.account-side {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acc-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  transition: 0.15s;
}
.acc-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.acc-tab.on {
  color: var(--text);
  background: rgba(91, 140, 255, 0.1);
}
.account-main {
  flex: 1;
  min-width: 0;
}
.account-tabs-mobile {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.account-tabs-mobile button {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.account-tabs-mobile button.on {
  background: var(--brand);
  color: #0a0f1c;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(91, 140, 255, 0.2);
  color: var(--brand);
  font-size: 20px;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.form-grid label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-grid input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.form-grid input:focus {
  border-color: rgba(91, 140, 255, 0.5);
}
.profile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}
.sec-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.6);
  margin-bottom: 12px;
}
.sec-row .si {
  color: var(--brand);
  flex-shrink: 0;
}
.sec-row .si-t {
  flex: 1;
}
.sec-row .si-t h4 {
  font-size: 14px;
  font-weight: 600;
}
.sec-row .si-t p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
/* toggle switch */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch.on {
  background: var(--brand);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.switch.on::after {
  transform: translateX(20px);
}
.tfa-box {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
}
.tfa-box h4 {
  font-size: 14px;
}
.tfa-box p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
/* login activity */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.login-row:last-child {
  border-bottom: none;
}
.login-dev {
  display: flex;
  align-items: center;
  gap: 14px;
}
.login-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.login-ic.cur {
  background: rgba(32, 201, 151, 0.15);
  color: var(--up);
}
.login-ic.old {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.login-dev h4 {
  font-size: 14px;
  font-weight: 500;
}
.login-dev p {
  font-size: 13px;
  color: var(--muted);
}
.login-time {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}
.tag-up {
  background: rgba(32, 201, 151, 0.15);
  color: var(--up);
}
.tag-warn {
  background: rgba(255, 182, 72, 0.15);
  color: var(--warn);
}
.tag-brand {
  background: rgba(91, 140, 255, 0.15);
  color: var(--brand);
}
.kyc-progress {
  margin-top: 18px;
}
.kyc-progress .kp-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.kyc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.kyc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  border-radius: 11px;
  padding: 14px;
}
.kyc-step .num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(91, 140, 255, 0.15);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.kyc-step span {
  font-size: 13px;
  font-weight: 500;
}

/* =========================================================
   Legal page
   ========================================================= */
.legal-layout {
  padding: 48px 0;
}
.legal-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.6);
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.legal-index-item:hover {
  border-color: rgba(91, 140, 255, 0.3);
}
.legal-index-item h3 {
  font-size: 15px;
  font-weight: 600;
}
.legal-index-item p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.legal-doc h1 {
  font-size: 30px;
  margin-top: 20px;
}
.legal-updated {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.legal-toc {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 23, 34, 0.6);
  border-radius: var(--radius);
  padding: 20px;
}
.legal-toc h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.legal-toc ol {
  columns: 2;
  gap: 20px;
  list-style: none;
}
.legal-toc li {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  break-inside: avoid;
}
.legal-toc a:hover {
  color: var(--text);
}
.legal-sections {
  margin-top: 36px;
}
.legal-section {
  margin-bottom: 34px;
}
.legal-section h2 {
  font-size: 19px;
}
.legal-section p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
.legal-section ul {
  margin: 10px 0 0 22px;
}
.legal-section li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.legal-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
}
.legal-contact a {
  color: var(--brand);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(17, 23, 34, 0.4);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding: 52px 0;
}
.footer-about p {
  margin-top: 16px;
  max-width: 260px;
  font-size: 13px;
  color: var(--muted);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  margin-top: 14px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 0;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   Views (SPA) & toast
   ========================================================= */
.view {
  display: none;
  animation: fade 0.25s ease;
}
.view.active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#toast-root {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast b {
  font-weight: 600;
}
.toast .td {
  color: var(--muted);
  font-size: 12px;
}

.page-back {
  font-size: 14px;
  color: var(--brand);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .trade-layout {
    grid-template-columns: 200px 1fr;
  }
  .trade-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------- Contact (site owner) ---------------- */
.contact-section {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(91, 140, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #080b12 0%, #0a0f1a 100%);
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}
.contact-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8a6bff);
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35);
}
.contact-head h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.contact-head p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 560px;
  line-height: 1.6;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--primary);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #525b6d;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #141b2b;
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}
.contact-form select {
  cursor: pointer;
}
.contact-form select option {
  background: #111722;
  color: #fff;
}
.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}
.contact-form .btn-block {
  width: 100%;
}
.form-error {
  min-height: 18px;
  font-size: 12.5px;
  color: var(--danger, #ff5c6c);
  margin: 0;
}
.contact-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.contact-note svg {
  flex: 0 0 auto;
  color: var(--success);
  margin-top: 1px;
}
@media (max-width: 860px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 26px 20px;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid,
  .security-grid,
  .assets-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .account-side {
    display: none;
  }
  .account-tabs-mobile {
    display: flex;
  }
  .trade-layout {
    grid-template-columns: 1fr;
  }
  .trade-markets {
    display: none;
  }
  .trade-right {
    grid-template-columns: 1fr;
  }
  .pair-stats {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-right {
    display: none;
  }
  .burger {
    display: grid;
  }
  .grid-3,
  .grid-2,
  .grid-4,
  .form-grid,
  .kyc-steps {
    grid-template-columns: 1fr;
  }
  .legal-toc ol {
    columns: 1;
  }
  .hero-stats {
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .section {
    padding: 56px 0;
  }
}

/* =========================================================
   Auth (sign in / register) - 未登录账户页
   ========================================================= */
.auth-wrap {
  display: grid;
  place-items: center;
  padding: 56px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 34px 30px;
}
.auth-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-logo {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #5b8cff, #7a5bff);
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35);
}
.auth-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.auth-sub {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.6;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-form label > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: 0.15s;
}
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.auth-rem {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.auth-rem input {
  width: auto;
  height: auto;
}
.auth-link {
  color: var(--accent);
}
.auth-link:hover {
  text-decoration: underline;
}
.auth-sso {
  margin-top: 16px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-sso .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch .btn-link {
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
  cursor: pointer;
}

/* =========================================================
   Lucky Wheel (modal)
   ========================================================= */
.lucky-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: lwFade 0.2s ease-out;
}
.lava-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background:
    radial-gradient(120% 55% at 85% -8%, rgba(246, 196, 83, 0.20), transparent 62%),
    radial-gradient(90% 45% at 8% 6%, rgba(47, 107, 255, 0.24), transparent 60%),
    radial-gradient(70% 38% at 92% 88%, rgba(37, 201, 160, 0.16), transparent 60%),
    radial-gradient(60% 34% at 6% 92%, rgba(240, 132, 44, 0.18), transparent 58%),
    linear-gradient(160deg, #0a1220, #060a13 70%);
  border: 1px solid rgba(246, 196, 83, 0.28);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  text-align: center;
  animation: lwPop 0.28s ease-out;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(246, 196, 83, 0.06),
    0 0 60px rgba(47, 107, 255, 0.18),
    0 0 90px rgba(246, 196, 83, 0.10);
}
.lava-modal::before {
  content: '₿';
  position: absolute;
  top: -80px;
  right: -60px;
  font-size: 320px;
  line-height: 1;
  color: rgba(255, 216, 104, 0.05);
  pointer-events: none;
  z-index: 0;
  text-shadow: 0 0 60px rgba(246, 196, 83, 0.35);
}
.lava-modal::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: repeating-linear-gradient(
    115deg,
    rgba(6, 10, 19, 0) 0 22px,
    rgba(246, 196, 83, 0.02) 22px 23px
  );
  pointer-events: none;
  z-index: 0;
}
.lm-head,
.lm-stage,
.lm-actions,
.lm-win-actions,
.lm-done {
  position: relative;
  z-index: 1;
}
.lm-head {
  margin-bottom: 70px;
}
.lm-head h2 {
  font-size: 26px;
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.lm-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.6;
}
.lm-stage {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lw-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #f43f5e;
  transform: translateX(-50%);
  z-index: 7;
  filter: drop-shadow(0 2px 8px rgba(244, 63, 94, 0.6));
}
.lw-pointer::after {
  /* small glossy notch on pointer */
  content: '';
  position: absolute;
  top: -26px;
  left: -7px;
  width: 14px;
  height: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* 顶部弧形牌 */
.lw-banner {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #12203a, #0a1322);
  border: 2px solid #f6c453;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(246, 196, 83, 0.18);
  white-space: nowrap;
  pointer-events: none;
}
.lw-banner span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(246, 196, 83, 0.5);
}
.lw-banner em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #f6c453;
  line-height: 1.1;
}
.lw-banner b {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffd868;
  line-height: 1.1;
}
.lw-wheel {
  position: relative;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(
    #f6c453 0deg 30deg,
    #f0842c 30deg 60deg,
    #f6c453 60deg 90deg,
    #2f6bff 90deg 120deg,
    #25c9a0 120deg 150deg,
    #f6c453 150deg 180deg,
    #5f9cff 180deg 210deg,
    #9b6bff 210deg 240deg,
    #f0842c 240deg 270deg,
    #25c9a0 270deg 300deg,
    #2f6bff 300deg 330deg,
    #f0842c 330deg 360deg
  );
  box-shadow:
    inset 0 0 0 6px rgba(6, 9, 16, 0.85),
    0 0 0 2px rgba(246, 196, 83, 0.5),
    0 0 46px rgba(246, 196, 83, 0.28),
    0 22px 60px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition:
    transform 0s,
    box-shadow 0.25s ease;
}
/* glossy top sheen */
.lw-wheel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.06) 42%,
    transparent 62%
  );
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}
/* thin luminous separators between segments */
.lw-wheel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.85) 0deg 0.35deg,
    transparent 0.35deg 30deg
  );
  z-index: 2;
  pointer-events: none;
}
.lw-wheel:hover:not([data-locked]) {
  box-shadow:
    inset 0 0 0 6px rgba(6, 9, 16, 0.8),
    0 0 0 2px rgba(246, 196, 83, 0.65),
    0 0 60px rgba(246, 196, 83, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.65);
}
.lw-wheel:focus-visible {
  outline: 3px solid rgba(246, 196, 83, 0.6);
  outline-offset: 6px;
}
/* glass center hub — bitcoin */
.lw-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 28%, #24427a, #0a101d 72%);
  border: 2px solid rgba(246, 196, 83, 0.85);
  box-shadow:
    0 0 0 4px rgba(6, 9, 16, 0.6),
    0 0 26px rgba(246, 196, 83, 0.6),
    inset 0 0 16px rgba(246, 196, 83, 0.35);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lw-hub-btc {
  font-family: 'DejaVu Sans', 'Arial', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #ffd868;
  text-shadow: 0 0 16px rgba(246, 196, 83, 0.95), 0 0 34px rgba(246, 196, 83, 0.55);
  line-height: 1;
}
.lw-seg {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  z-index: 4;
}
.lw-seg-body {
  position: absolute;
  top: -4%;
  left: 50%;
  width: 14px;
  height: 40%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  writing-mode: vertical-rl;
  text-orientation: rotated;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lw-seg-ic {
  display: none;
}
.lw-seg-text {
  display: block;
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  word-break: normal;
}
.lm-actions {
  margin-top: 20px;
}
.lm-tap {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-top: 4px;
}
.lm-actions .btn {
  width: 100%;
}
.lm-hint {
  font-size: 14px;
  min-height: 20px;
  margin-top: 10px;
}
.lm-hint:not(:empty) {
  color: var(--up);
  font-weight: 600;
}

/* Win state */
.lava-win {
  padding-top: 34px;
}
.lm-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.lm-close:hover {
  color: var(--text);
}
.lm-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(91, 140, 255, 0.28), rgba(32, 201, 151, 0.28));
  margin-bottom: 14px;
}
.lm-crown svg {
  fill: var(--warn);
}
.lava-win h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.lm-win-prize {
  font-size: 20px;
  font-weight: 700;
  color: var(--up);
  margin-bottom: 8px;
}
.lm-win-cta {
  font-size: 13px;
}
.lm-win-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.lm-win-actions .btn {
  width: 100%;
}
.lm-later {
  align-self: center;
  color: var(--muted);
}
.lm-later:hover {
  color: var(--text);
}
@keyframes lwFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lwPop {
  from {
    transform: scale(0.92) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Locked / done state */
.lw-wheel[data-locked] {
  cursor: default;
  filter: saturate(0.55) brightness(0.9);
}
.lw-wheel[data-locked]:hover {
  box-shadow: 0 0 0 8px rgba(8, 11, 18, 0.6), 0 18px 50px rgba(0, 0, 0, 0.5);
}
.lm-done {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.lm-done-prize {
  font-size: 18px;
  font-weight: 700;
  color: var(--up);
  margin-bottom: 6px;
}
.lm-done-cta {
  font-size: 13px;
  margin-bottom: 14px;
}
.lm-after {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-after .btn {
  width: 100%;
}
