/* VT Trading panel — Soft Glass Luxe
   Calm slate/indigo, frosted glass, gentle light */

:root {
  --bg0: #0b0f17;
  --bg1: #101826;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-3: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-soft: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-soft: #e2e8f0;
  --muted: #a8b3c7;
  --muted2: #7c8aa3;
  --brand: #9aa7ff;
  --brand-mid: #8b9cf7;
  --brand-deep: #6b7ef0;
  --gold: #e8d5a3;
  --gold-dim: rgba(232, 213, 163, 0.12);
  --up: #6ee7b7;
  --down: #fca5a5;
  --sky: #7dd3fc;
  --rose: #fda4af;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.18);
  --blur: 18px;
  --font: "DM Sans", Inter, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

.app-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg0);
  color: var(--text-soft);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Soft atmospheric background — no harsh neon blobs */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 8% -5%, rgba(120, 140, 220, 0.14), transparent 58%),
    radial-gradient(900px 520px at 95% 5%, rgba(160, 150, 210, 0.1), transparent 52%),
    radial-gradient(800px 500px at 50% 110%, rgba(100, 140, 180, 0.08), transparent 55%),
    linear-gradient(165deg, #0a0e16 0%, #0e1420 42%, #0b101a 100%);
}

.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.03), transparent 60%);
  opacity: 0.9;
}

.app-top,
.app-main,
.app-foot,
.impersonate-banner {
  position: relative;
  z-index: 1;
}

.impersonate-banner {
  background: linear-gradient(90deg, rgba(107,126,240,0.85), rgba(140,120,200,0.8));
  color: #fff;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}
.impersonate-banner a { color: #fff; margin-left: 8px; }

/* —— Glass top bar —— */
.app-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 16, 26, 0.55);
  border-bottom: 1px solid var(--glass-border-soft);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.app-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.app-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(180,190,255,0.95), rgba(150,160,230,0.75) 50%, rgba(232,213,163,0.7));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 6px 16px rgba(100, 120, 200, 0.2);
  border: 1px solid rgba(255,255,255,0.2);
}
.app-brand-text { font-size: 16px; color: #f8fafc; }
.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex: 1;
}
.app-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  transition: 0.18s ease;
  border: 1px solid transparent;
}
.app-nav-link:hover {
  color: var(--text);
  background: var(--glass-2);
  border-color: var(--glass-border-soft);
}
.app-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(120, 135, 230, 0.45), rgba(140, 150, 220, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 14px rgba(80, 100, 180, 0.15);
}
.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.app-bal {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(232, 213, 163, 0.22);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  backdrop-filter: blur(8px);
}
.app-name { color: var(--muted); font-weight: 600; }
.app-out {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(107,126,240,0.75), rgba(130,140,210,0.55));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* —— Main —— */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.app-foot {
  padding: 22px 16px 40px;
  color: var(--muted2);
  font-size: 12px;
}
.app-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.app-foot-dot { opacity: 0.45; }

.app-h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.app-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 54ch;
}

/* Shared glass card surface */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  box-shadow: var(--shadow-glass);
}

/* —— Dashboard hero —— */
.dash-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}
.dash-hero-text {
  padding: 8px 4px 4px;
}
.dash-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.95;
}
.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.dash-hero-card {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 40%, rgba(140,150,220,0.08) 100%),
    rgba(18, 24, 40, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 26px 24px;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: var(--shadow-glass), 0 20px 50px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 188px;
  position: relative;
  overflow: hidden;
}
.dash-hero-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(180,190,255,0.18), transparent 70%);
  pointer-events: none;
}
.dash-hero-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: relative;
}
.dash-hero-card-value {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.dash-hero-card-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}
.dash-hero-card-meta .sep { opacity: 0.45; }
.dash-hero-pill {
  margin-top: 18px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8eef8;
  backdrop-filter: blur(8px);
  position: relative;
}

/* —— Stats glass —— */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  backdrop-filter: blur(var(--blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: rgba(180, 190, 255, 0.45);
}
.stat-card.accent-gold::before { background: rgba(232, 213, 163, 0.55); }
.stat-card.accent-violet::before { background: rgba(170, 175, 240, 0.5); }
.stat-card.accent-sky::before { background: rgba(125, 211, 252, 0.45); }
.stat-card.accent-rose::before { background: rgba(253, 164, 175, 0.45); }
.stat-icon {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 8px;
  color: var(--brand);
}
.stat-card .lbl {
  font-size: 11px;
  color: var(--muted2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-card .num {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 800;
  font-family: var(--mono);
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.stat-card .num.gold { color: var(--gold); }
.stat-card .num.green { color: var(--up); }
.stat-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  opacity: 0.9;
}
.stat-link:hover { color: #c5cdf8; }

/* —— Action tiles glass —— */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.065), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  min-height: 120px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  transition: 0.2s ease;
}
.action-tile:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  background: linear-gradient(165deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  box-shadow: 0 16px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.1);
}
.action-emoji { font-size: 22px; line-height: 1; filter: saturate(0.9); }
.action-title { font-weight: 800; font-size: 15px; color: #f8fafc; }
.action-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* —— Panels —— */
.panel {
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--shadow-glass);
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2 { margin: 0; }
.panel-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.panel-foot { margin: 14px 0 0; font-size: 13px; }
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
table.data th {
  color: var(--muted2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
table.data td { color: var(--text-soft); }
table.data tr:hover td { background: rgba(255,255,255,0.025); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.strong { font-weight: 700; color: #f8fafc; }
.type-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  background: rgba(255,255,255,0.05);
  color: #d4daf0;
  border: 1px solid rgba(255,255,255,0.08);
}
.empty-state {
  padding: 18px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* —— Forms —— */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(8, 12, 22, 0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(170, 180, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(130, 145, 230, 0.12);
  background: rgba(12, 16, 28, 0.55);
}
.field input::placeholder { color: var(--muted2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(120,135,230,0.85), rgba(140,150,210,0.65));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 22px rgba(60, 80, 160, 0.2);
  transition: 0.18s ease;
  backdrop-filter: blur(8px);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn.secondary:hover {
  background: rgba(255,255,255,0.08);
}
.btn.danger {
  background: linear-gradient(135deg, rgba(220,80,80,0.85), rgba(239,100,100,0.7));
  box-shadow: 0 8px 18px rgba(180, 60, 60, 0.2);
}
.btn.block { width: 100%; border-radius: var(--radius-sm); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(12px);
}
.flash-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.flash.ok {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.22);
  color: #a7f3d0;
}
.flash.ok .flash-icon { background: rgba(110, 231, 183, 0.15); }
.flash.err {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(252, 165, 165, 0.22);
  color: #fecaca;
}
.flash.err .flash-icon { background: rgba(252, 165, 165, 0.15); }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge.open { background: rgba(110, 231, 183, 0.1); color: var(--up); }
.badge.closed { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; }
.badge.active { background: rgba(180, 185, 240, 0.12); color: #e0e4ff; }
.badge.pending { background: rgba(251, 191, 36, 0.1); color: #fde68a; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.market-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: 0.2s ease;
}
.market-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.market-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #0e121a;
}
.market-card .body { padding: 14px; }
.market-card h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: #f8fafc;
  line-height: 1.3;
}
.market-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.market-card .price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

/* Auth — soft glass card */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 15% 0%, rgba(130, 145, 210, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 100%, rgba(160, 155, 200, 0.1), transparent 50%),
    var(--bg0);
}
.auth-card {
  width: min(440px, 100%);
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--shadow-glass), var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.55; }
.auth-card a { color: var(--brand); font-weight: 600; }

.muted { color: var(--muted); font-size: 13px; }
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.quick-links a {
  text-align: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  backdrop-filter: blur(12px);
  transition: 0.15s ease;
}
.quick-links a:hover {
  border-color: rgba(255,255,255,0.14);
  background: var(--glass-2);
}

/* Coin badges */
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.coin-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.coin-sym {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f1f5f9;
}
.market-board-scroll {
  max-height: 420px;
  overflow: auto;
  border-radius: 12px;
}
.market-board .coin-logo {
  width: 24px;
  height: 24px;
}
.coin-select-preview img {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(170, 180, 255, 0.25);
}

@media (max-width: 980px) {
  .grid-stats { grid-template-columns: 1fr 1fr; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .dash-hero { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .quick-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .row-2 { grid-template-columns: 1fr; }
  .grid-stats { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .app-user .app-name { display: none; }
  .app-main { padding: 20px 14px 40px; }
}

/* —— Self custody magnificent glass —— */
.sc-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}
.sc-bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.sc-bullets li { margin-bottom: 4px; }
.sc-hero-status {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.sc-status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 8px;
}
.sc-status-row strong { color: #f8fafc; font-weight: 700; text-align: right; }
.mono-sm { font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.sc-live-status {
  margin: 6px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
.sc-badge-live {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.22);
  color: #a7f3d0;
  white-space: nowrap;
}
.sc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.sc-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.sc-step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(154, 167, 255, 0.2);
  color: #e0e7ff;
}
.sc-section-label {
  margin: 16px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.sc-mobile-intro { margin: 0 0 12px !important; font-size: 13px !important; }
.sc-connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sc-wallet-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  color: inherit;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(12px);
  transition: 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.sc-wallet-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
}
.sc-wallet-btn-muted { opacity: 0.92; }
.sc-wallet-btn-wc {
  grid-column: 1 / -1;
  border-color: rgba(59, 153, 252, 0.35);
  background: linear-gradient(160deg, rgba(59,153,252,0.15), rgba(255,255,255,0.03));
}
.sc-wallet-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sc-mm { background: linear-gradient(135deg,#f6851b,#e2761b); }
.sc-ph { background: linear-gradient(135deg,#ab9ff2,#4e44ce); }
.sc-tw { background: linear-gradient(135deg,#3375bb,#0500ff); }
.sc-ex { background: linear-gradient(135deg,#8b5cf6,#4c1d95); }
.sc-wc { background: linear-gradient(135deg,#3b99fc,#1a5fb4); font-size: 12px; }
.sc-wallet-meta { display: flex; flex-direction: column; gap: 2px; }
.sc-wallet-meta strong { font-size: 14px; color: #f8fafc; }
.sc-wallet-meta small { font-size: 11.5px; color: var(--muted); }
.sc-connect-actions { margin-top: 14px; }
.sc-mobile-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(125, 211, 252, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.15);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.sc-mobile-note code {
  font-family: var(--mono);
  font-size: 11px;
  color: #c7d2fe;
}
.sc-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
}
.sc-addr { color: #e2e8f0 !important; margin: 0 0 8px !important; }
.sc-warn { color: #fca5a5; }
.sc-resume-panel {
  border-color: rgba(232, 213, 163, 0.28) !important;
  background: linear-gradient(160deg, rgba(232,213,163,0.08), rgba(255,255,255,0.02)) !important;
}
@media (max-width: 900px) {
  .sc-hero { grid-template-columns: 1fr; }
  .sc-connect-grid { grid-template-columns: 1fr; }
  .sc-wallet-btn-wc { grid-column: auto; }
}

/* Connected card, wizard, progress, portfolio, on-ramp */
.sc-connected-card { margin-bottom: 16px; }
.sc-cc-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.sc-cc-ident { display: flex; gap: 12px; align-items: center; }
.sc-cc-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(145deg, rgba(154,167,255,0.7), rgba(180,170,220,0.45));
  border: 1px solid rgba(255,255,255,0.12);
}
.sc-cc-name { font-weight: 800; font-size: 16px; color: #f8fafc; }
.sc-cc-addr { color: var(--muted); margin-top: 2px; }
.sc-cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-cc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-cc-stats .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted2);
  margin-bottom: 4px;
}
.sc-cc-stats strong { font-size: 14px; color: #f1f5f9; }
.sc-stay-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.sc-stay-toggle input { width: 18px; height: 18px; accent-color: #8b9cf7; }

.sc-chart-wrap {
  border-radius: 16px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px;
  min-height: 280px;
}
.sc-chart-wrap canvas { width: 100% !important; height: 280px !important; display: block; }

.sc-onramp-panel .btn { text-align: center; }

.sc-wiz-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sc-wiz-step {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sc-wiz-step.is-active {
  color: #fff;
  background: rgba(140, 150, 230, 0.28);
  border-color: rgba(255,255,255,0.14);
}
.sc-wiz-step.is-done { color: #a7f3d0; border-color: rgba(110,231,183,0.25); }
.sc-wiz-pane { display: none; }
.sc-wiz-pane.is-active { display: block; }
.sc-usd-est {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}
.sc-usd-est strong { color: var(--gold); font-family: var(--mono); }
.sc-confirm-box {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.sc-progress {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}
.sc-prog-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.sc-prog-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-prog-step {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted2);
  font-size: 12.5px;
  font-weight: 700;
}
.sc-prog-step .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.sc-prog-step.is-active {
  color: #e0e7ff;
  border-color: rgba(154,167,255,0.35);
  background: rgba(120,135,230,0.12);
}
.sc-prog-step.is-active .dot { background: #9aa7ff; box-shadow: 0 0 0 4px rgba(154,167,255,0.15); }
.sc-prog-step.is-done {
  color: #a7f3d0;
  border-color: rgba(110,231,183,0.25);
}
.sc-prog-step.is-done .dot { background: #6ee7b7; }
.sc-prog-note { margin: 12px 0 0; font-size: 13px; }

@media (max-width: 720px) {
  .sc-cc-stats { grid-template-columns: 1fr; }
}

/* —— Getting started checklist —— */
.start-checklist { margin-bottom: 22px; }
.start-intro { margin: 0 0 14px; padding: 0 2px; font-size: 14px; }
.start-count {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: rgba(154,167,255,0.12);
  border: 1px solid rgba(154,167,255,0.22);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.start-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.start-steps li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border-soft);
}
.start-steps li strong { display: block; font-size: 14px; color: var(--text); }
.start-steps li p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.start-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.18);
}
.start-steps li.is-done {
  border-color: rgba(110,231,183,0.2);
  background: rgba(110,231,183,0.06);
}
.start-steps li.is-done .start-dot {
  background: #6ee7b7;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(110,231,183,0.12);
}
.start-ok {
  font-size: 12px;
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn.sm {
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: 12px;
}
.form-stack .field { margin-bottom: 14px; }
.form-stack label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-stack input:not([type=checkbox]):not([type=radio]),
.form-stack select,
.form-stack textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font: inherit;
}
.form-stack input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* —— Self-custody v2 (clean soft glass) —— */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.sc2-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
  align-items: stretch;
}
.sc2-hero-main {
  padding: 4px 2px 8px;
}
.sc2-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.sc2-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--blur));
}
.sc2-stat .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sc2-stat strong {
  font-size: 1.15rem;
  color: var(--text);
  word-break: break-all;
}
.sc2-status {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(154,167,255,0.08);
  border: 1px solid rgba(154,167,255,0.18);
  color: #c7d2fe;
  font-size: 13.5px;
  font-weight: 600;
}
.sc2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.sc2-card .panel-head { margin-bottom: 4px; }
.sc2-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(154,167,255,0.12);
  border: 1px solid rgba(154,167,255,0.22);
  padding: 4px 10px;
  border-radius: 999px;
}
.sc2-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.sc2-wbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.15s ease;
}
.sc2-wbtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.03));
}
.sc2-wbtn-wide { grid-column: 1 / -1; }
.sc2-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sc2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.sc2-msg { margin-top: 10px !important; min-height: 1.2em; font-size: 13px !important; }

/* Admin form polish */
.admin-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
.admin-tools .field { margin: 0; }
.admin-inline-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
}
.admin-user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  margin-bottom: 12px;
}
.admin-user-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.admin-user-meta { font-size: 13px; color: var(--muted); }
.admin-user-bal {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
}
.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
@media (max-width: 900px) {
  .sc2-hero, .sc2-grid { grid-template-columns: 1fr; }
  .sc2-wallets { grid-template-columns: 1fr; }
  .sc2-wbtn-wide { grid-column: auto; }
}

/* —— Self-custody advanced (logos + mobile wait) —— */
.scx-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
  align-items: stretch;
}
.scx-hud {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--blur));
}
.scx-hud-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
}
.scx-hud-row span { color: var(--muted); font-weight: 600; }
.scx-hud-row strong { color: var(--text); text-align: right; word-break: break-all; }
.scx-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(154,167,255,0.1);
  border: 1px solid rgba(154,167,255,0.22);
  color: #dbe4ff;
  font-size: 13.5px;
  font-weight: 650;
}
.scx-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}
.scx-side { display: flex; flex-direction: column; gap: 16px; }
.scx-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(154,167,255,0.12);
  border: 1px solid rgba(154,167,255,0.25);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.scx-wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scx-wallet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.scx-wallet:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.2);
  background: linear-gradient(165deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
}
.scx-wallet:active { transform: scale(0.99); }
.scx-wallet-wide {
  grid-column: 1 / -1;
  border-color: rgba(59, 153, 252, 0.4);
  background: linear-gradient(165deg, rgba(59,153,252,0.16), rgba(255,255,255,0.03));
}
.scx-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.scx-logo-fallback {
  width: 40px; height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #334155;
  color: #fff;
  flex-shrink: 0;
}
.scx-wallet-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.scx-wallet-text strong { font-size: 14px; color: #f8fafc; }
.scx-wallet-text small { font-size: 11.5px; color: var(--muted); }
.scx-chev { color: var(--muted2); font-size: 22px; line-height: 1; opacity: 0.7; }
.scx-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scx-msg { margin-top: 10px !important; min-height: 1.2em; font-size: 13px !important; }

.scx-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scx-overlay[hidden] { display: none !important; }
.scx-overlay-card {
  width: min(400px, 100%);
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(165deg, #151c2b, #0e1420);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  text-align: center;
}
.scx-overlay-card h3 { margin: 0 0 8px; font-size: 1.2rem; color: #fff; }
.scx-overlay-card .muted { margin: 0 0 18px; line-height: 1.5; }
.scx-spinner {
  width: 42px; height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(154,167,255,0.2);
  border-top-color: #9aa7ff;
  animation: scxspin 0.8s linear infinite;
}
@keyframes scxspin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .scx-hero, .scx-layout { grid-template-columns: 1fr; }
  .scx-wallet-grid { grid-template-columns: 1fr; }
  .scx-wallet-wide { grid-column: auto; }
  .scx-wallet { padding: 14px; min-height: 64px; }
  .scx-logo { width: 44px; height: 44px; }
}

/* Admin detailed layout */
.admin-body .app-nav { flex-wrap: wrap; }
.adm-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.adm-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(232, 213, 163, 0.1);
  border: 1px solid rgba(232, 213, 163, 0.28);
  color: #f5e6c0;
  font-size: 14px;
}
.adm-alert a { color: var(--gold); font-weight: 700; }
.adm-stats { margin-bottom: 8px; }
.adm-filter {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.adm-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.adm-cap {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border-soft);
}
.adm-cap strong { display: block; margin-bottom: 6px; color: var(--text); }
.adm-cap p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.gold { color: var(--gold) !important; }

/* Self-custody dual glass connect */
.scx-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.scx-glass-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px 18px;
  min-height: 168px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.02));
  box-shadow:
    0 12px 40px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}
.scx-glass-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 16px 48px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}
.scx-glass-btn:active { transform: scale(0.99); }
.scx-glass-wc {
  border-color: rgba(59, 153, 252, 0.35);
  background:
    linear-gradient(155deg, rgba(59,153,252,0.22), rgba(255,255,255,0.04) 50%, rgba(15,23,42,0.35));
}
.scx-glass-ph {
  border-color: rgba(171, 159, 242, 0.4);
  background:
    linear-gradient(155deg, rgba(171,159,242,0.24), rgba(255,255,255,0.04) 50%, rgba(30,20,60,0.4));
}
.scx-glass-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.scx-glass-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.15);
}
.scx-glass-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.scx-glass-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 28ch;
}
.scx-glass-cta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .adm-filter { grid-template-columns: 1fr; }
  .adm-cap-grid { grid-template-columns: 1fr; }
  .scx-duo { grid-template-columns: 1fr; }
  .scx-glass-btn { min-height: 150px; }
}

/* Self-custody: glass WC + Phantom only */
.sc-glass-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.sc-glass-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 18px;
  min-height: 160px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(155deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}
.sc-glass-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
}
.sc-glass-wc {
  border-color: rgba(51, 150, 255, 0.45);
  background:
    linear-gradient(155deg, rgba(51,150,255,0.22), rgba(255,255,255,0.04) 55%, rgba(15,20,40,0.35));
}
.sc-glass-ph {
  border-color: rgba(171, 159, 242, 0.5);
  background:
    linear-gradient(155deg, rgba(83,75,177,0.35), rgba(171,159,242,0.12) 50%, rgba(20,15,40,0.4));
}
.sc-glass-tile img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.2);
}
.sc-glass-tile strong {
  font-size: 1.1rem;
  color: #f8fafc;
  font-weight: 800;
}
.sc-glass-tile small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 28ch;
}
.sc-wait-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5,8,16,0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sc-wait-overlay[hidden] { display: none !important; }
.sc-wait-card {
  width: min(380px, 100%);
  padding: 26px 22px;
  border-radius: 20px;
  background: #121826;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.sc-wait-card h3 { margin: 0 0 8px; color: #fff; }
.sc-wait-spin {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(154,167,255,0.2);
  border-top-color: #9aa7ff;
  animation: scspin 0.8s linear infinite;
}
@keyframes scspin { to { transform: rotate(360deg); } }
.sc-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sc-status-row:last-of-type { border-bottom: 0; }
.sc-status-row span { color: var(--muted); }
.sc-live-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: #c7d2fe;
  font-weight: 600;
}
@media (max-width: 720px) {
  .sc-glass-duo { grid-template-columns: 1fr; }
}
