body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(56,189,248,.15), transparent 30%),
              radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 30%),
              #050816;
  color: #e5e7eb;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(8,13,30,.9);
  border-right: 1px solid #1f2937;
  padding: 26px;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  color: #22c55e;
  letter-spacing: 1px;
}

.side-sub {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
}

nav {
  margin-top: 36px;
}

.nav-item {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(17,24,39,.7);
  color: #cbd5e1;
}

.nav-item.active {
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.35);
}

.ai-box {
  margin-top: 40px;
  background: rgba(17,24,39,.8);
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 18px;
}

.label {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ai-live {
  margin-top: 10px;
  font-weight: 800;
  color: #22c55e;
}

.muted {
  color: #94a3b8;
  font-size: 13px;
}

.main {
  padding: 30px;
}

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

h1 {
  margin: 0;
  font-size: 34px;
}

.live-pill {
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.35);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.kpi, .panel {
  background: rgba(17,24,39,.82);
  border: 1px solid #1f2937;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(56,189,248,.06);
}

.num {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
}

.green { color: #22c55e; }
.yellow { color: #facc15; }
.blue { color: #38bdf8; }
.red { color: #ef4444; }

.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.panel-head span {
  color: #94a3b8;
  font-size: 12px;
}

.trader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.trader-card {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(8,13,30,.92));
  border: 1px solid rgba(56,189,248,.18);
  box-shadow: 0 0 24px rgba(56,189,248,.06);
  overflow: hidden;
}

.trader-card:before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: rgba(34,197,94,.12);
  filter: blur(18px);
  border-radius: 999px;
}

.trader-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.trader-name {
  font-size: 20px;
  font-weight: 900;
}

.trader-wallet {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 5px;
}

.copy-score {
  text-align: right;
}

.copy-score .score {
  font-size: 32px;
  font-weight: 900;
  color: #22c55e;
  line-height: 1;
}

.copy-score .grade {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

.trader-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.stat {
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(31,41,55,.8);
  border-radius: 14px;
  padding: 10px;
}

.stat-label {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 5px;
  font-weight: 800;
}

.badges {
  margin-top: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.badge {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #1f2937;
  color: #cbd5e1;
}

.badge.live { color:#22c55e; border:1px solid rgba(34,197,94,.35); }
.badge.paper { color:#facc15; border:1px solid rgba(250,204,21,.35); }
.badge.risk-high { color:#ef4444; }
.badge.risk-medium { color:#facc15; }
.badge.risk-low { color:#22c55e; }

.trader-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #03120a;
}

.btn-secondary {
  background: rgba(31,41,55,.7);
  color: #e5e7eb;
}

.chart-placeholder {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 24px;
}

.ai-summary, .feed-item {
  margin-top: 18px;
  line-height: 1.6;
  color: #d1d5db;
}

@media(max-width: 1200px) {
  .trader-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}



.copilot-panel {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.copilot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #38bdf8;
  font-weight: 800;
}

.copilot-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
}

.copilot-status {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.copilot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.copilot-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.copilot-card span,
.copilot-recommendation span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 8px;
}

.copilot-card strong {
  display: block;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.2;
}

.copilot-recommendation {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.copilot-recommendation p {
  margin: 0;
  color: #e0f2fe;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .copilot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .copilot-grid {
    grid-template-columns: 1fr;
  }
}


#live-feed {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 6px;
}

.live-event-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.live-event-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.live-action {
  font-weight: 900;
  color: #f8fafc;
}

.live-status {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
}

.live-wallet {
  color: #e0f2fe;
  font-weight: 800;
  margin-bottom: 8px;
}

.live-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 11px;
}

.live-buy {
  border-color: rgba(34, 197, 94, 0.35);
}

.live-increased {
  border-color: rgba(56, 189, 248, 0.35);
}

.live-sell {
  border-color: rgba(248, 113, 113, 0.35);
}

.live-empty {
  color: #94a3b8;
  font-size: 13px;
}

.live-time {
  margin-top: 6px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
}

/* ================================
   AI TERMINAL V2 — WALLET DNA CARD
================================ */

.panel.wide {
  grid-column: span 1;
}

.wallet-dna-card {
  min-height: 420px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.10), transparent 30%),
    linear-gradient(145deg, rgba(8, 13, 30, 0.98), rgba(15, 23, 42, 0.96));
}

.wallet-dna-card .trader-top {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.wallet-dna-card .trader-name {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.wallet-dna-card .trader-wallet {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-dna-card .copy-score {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 24px rgba(34, 197, 94, 0.05);
}

.wallet-dna-card .copy-score .score {
  font-size: 38px;
}

.wallet-dna-card .copy-score .grade {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wallet-dna-card .grade-s .score,
.wallet-dna-card .grade-s .grade {
  color: #a78bfa;
}

.wallet-dna-card .grade-a .score,
.wallet-dna-card .grade-a .grade {
  color: #22c55e;
}

.wallet-dna-card .grade-b .score,
.wallet-dna-card .grade-b .grade {
  color: #38bdf8;
}

.wallet-dna-card .grade-c .score,
.wallet-dna-card .grade-c .grade {
  color: #f59e0b;
}

.wallet-dna-card .grade-d .score,
.wallet-dna-card .grade-d .grade {
  color: #ef4444;
}

.wallet-dna-card .trader-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wallet-dna-card .stat {
  min-height: 58px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.025);
}

.wallet-dna-card .stat-label {
  font-size: 10px;
  letter-spacing: 0.07em;
}

.wallet-dna-card .stat-value {
  font-size: 15px;
}

.wallet-dna-card .badges {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.wallet-dna-card .badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.wallet-dna-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow:
    0 0 38px rgba(34, 197, 94, 0.08),
    0 0 28px rgba(56, 189, 248, 0.05);
}

.trader-grid {
  grid-template-columns: 1fr;
}

@media(max-width: 1500px) {
  .wallet-dna-card .trader-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.metric-info {
  margin-left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(15,23,42,.85);
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  line-height: 16px;
  padding: 0;
}

.metric-info:hover {
  color: #38bdf8;
  border-color: rgba(56,189,248,.7);
  box-shadow: 0 0 12px rgba(56,189,248,.25);
}

.metric-help-panel {
  position: fixed;
  right: 24px;
  top: 90px;
  width: 360px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: all .18s ease;
}

.metric-help-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.metric-help-card {
  background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(8,13,30,.96));
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 0 40px rgba(56,189,248,.18);
  color: #e5e7eb;
}

.metric-help-close {
  float: right;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 26px;
  cursor: pointer;
}

.metric-help-kicker {
  color: #38bdf8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.metric-help-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.metric-help-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.metric-help-row {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(31,41,55,.8);
}

.metric-help-row strong {
  display: block;
  color: #22c55e;
  margin-bottom: 6px;
}

.metric-help-row span {
  color: #cbd5e1;
  line-height: 1.45;
}

/* === Copy Trading Panel V1 === */

.copy-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(38, 255, 157, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(19, 255, 150, 0.10), rgba(96, 80, 255, 0.08)),
    rgba(4, 10, 24, 0.82);
  box-shadow: 0 0 22px rgba(20, 255, 150, 0.10);
}

.copy-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.copy-subtitle {
  font-size: 11px;
  color: rgba(210, 225, 255, 0.65);
  margin-bottom: 12px;
}

.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: rgba(230, 240, 255, 0.9);
  margin: 10px 0 8px;
}

.copy-muted {
  color: #24f59a;
  font-weight: 700;
}

.copy-amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.copy-amount-btn {
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 160, 255, 0.35);
  background: rgba(5, 12, 30, 0.82);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.copy-amount-btn.active {
  border-color: rgba(34, 255, 153, 0.9);
  background: linear-gradient(135deg, #20e695, #725cff);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(34, 255, 153, 0.20);
}

.copy-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.copy-mini-box {
  padding: 10px;
  border-radius: 10px;
  background: rgba(2, 8, 22, 0.72);
  border: 1px solid rgba(120, 145, 255, 0.14);
}

.copy-mini-label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(210, 225, 255, 0.55);
  margin-bottom: 6px;
}

.copy-mini-value {
  font-size: 13px;
  color: #ffffff;
  font-weight: 900;
}

.copy-mini-value.ok {
  color: #25f59b;
}

.copy-auto {
  margin-top: 8px;
  color: #24f59a;
  font-size: 12px;
  font-weight: 900;
}

.copy-help {
  margin-top: 6px;
  line-height: 1.35;
  color: rgba(210, 225, 255, 0.62);
  font-size: 11px;
}

.copy-start-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #25e59b, #705cff);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(42, 255, 170, 0.16);
}

.copy-start-btn:hover {
  filter: brightness(1.08);
}

.copy-panel.disabled {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.12);
}


/* === Performance Curve V1 === */

.performance-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(3, 10, 25, 0.76);
  border: 1px solid rgba(120, 145, 255, 0.16);
}

.performance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(235, 245, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.performance-head strong {
  color: #25f59b;
}

.roi-sparkline {
  width: 100%;
  height: 72px;
  color: #25f59b;
  filter: drop-shadow(0 0 8px rgba(37, 245, 155, 0.28));
}

.sparkline-empty {
  font-size: 12px;
  color: rgba(210, 225, 255, 0.55);
  padding: 16px 0;
}


/* === Dashboard V3 Wallet Cards === */

.v3-wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  padding: 18px !important;
  border: 1px solid rgba(28, 255, 150, 0.34) !important;
  background:
    radial-gradient(circle at top right, rgba(23, 255, 160, 0.09), transparent 35%),
    linear-gradient(180deg, rgba(7, 15, 35, 0.96), rgba(2, 7, 20, 0.98)) !important;
  box-shadow: 0 0 28px rgba(18, 255, 150, 0.08);
}

.v3-top {
  margin-bottom: 14px;
}

.v3-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.v3-mini-row {
  margin-top: 12px;
  display: flex;
  gap: 22px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(4, 12, 28, 0.78);
  border: 1px solid rgba(110, 140, 255, 0.12);
  color: rgba(220, 235, 255, 0.75);
  font-size: 12px;
}

.v3-mini-row b {
  color: #ffffff;
  margin-left: 8px;
}

.v3-badges {
  margin-top: 14px;
}

.v3-card-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v3-performance-panel,
.v3-copy-panel {
  border-radius: 15px;
  border: 1px solid rgba(105, 130, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 18, 42, 0.95), rgba(3, 9, 24, 0.96));
  padding: 15px;
}

.v3-performance-panel {
  min-height: 170px;
}

.v3-panel-head,
.v3-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

.v3-panel-head strong {
  color: #23f59b;
}

.v3-copy-head em {
  color: #23f59b;
  font-style: normal;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(35, 245, 155, 0.12);
}

.v3-performance-svg {
  width: 100%;
  height: 110px;
  color: #23f59b;
  filter: drop-shadow(0 0 9px rgba(35, 245, 155, 0.28));
}

.v3-empty-curve {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(210, 225, 255, 0.55);
  font-size: 12px;
}

.v3-curve-foot {
  text-align: right;
  font-size: 11px;
  color: rgba(210, 225, 255, 0.55);
}

.v3-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.v3-copy-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(2, 8, 22, 0.78);
  border: 1px solid rgba(115, 145, 255, 0.14);
}

.v3-copy-box.wide {
  grid-column: span 2;
}

.v3-copy-box label {
  display: block;
  color: rgba(220, 235, 255, 0.62);
  font-size: 11px;
  margin-bottom: 8px;
}

.v3-copy-box strong {
  color: #ffffff;
  font-size: 20px;
}

.v3-copy-box strong.green {
  color: #23f59b;
  font-size: 15px;
}

.v3-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v3-amount-pill {
  border: 1px solid rgba(120, 145, 255, 0.28);
  background: rgba(3, 10, 26, 0.88);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.v3-amount-pill.active {
  border-color: rgba(35, 245, 155, 0.95);
  background: linear-gradient(135deg, rgba(35, 245, 155, 0.95), rgba(85, 90, 255, 0.92));
  box-shadow: 0 0 18px rgba(35, 245, 155, 0.22);
}

.v3-copy-start {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #25e59b, #675cff);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(35, 245, 155, 0.18);
}

.v3-copy-start:hover {
  filter: brightness(1.08);
}

@media (max-width: 1300px) {
  .v3-wallet-card {
    grid-template-columns: 1fr;
  }

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


.top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.copy-wallet-card {
  width: 230px;
  padding: 14px;
  border: 1px solid rgba(0, 255, 160, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 160, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(8, 22, 36, 0.96), rgba(5, 12, 24, 0.96));
  box-shadow:
    0 0 24px rgba(0, 255, 160, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.copy-wallet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-wallet-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 255, 160, 0.12);
  border: 1px solid rgba(0, 255, 160, 0.25);
}

.copy-wallet-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #eafff7;
}

.copy-wallet-sub {
  font-size: 10px;
  color: rgba(234, 255, 247, 0.55);
}

.copy-wallet-address {
  padding: 10px 11px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255,255,255,0.06);
  color: #00ffa3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center;
}

.copy-wallet-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: rgba(234, 255, 247, 0.7);
  margin-bottom: 12px;
}

.wallet-status-off {
  color: #ff6b6b;
  font-weight: 800;
}

.wallet-status-on {
  color: #00ffa3;
  font-weight: 800;
}

.copy-wallet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-mini-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #00ffa3, #00c2ff);
  color: #03111b;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-logout {
  font-size: 10px;
  color: rgba(234,255,247,.55);
  text-decoration: none;
}

.wallet-logout:hover {
  color: #fff;
}

.copy-wallet-card {
  width: 310px !important;
}

.copy-wallet-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wallet-mini-btn {
  width: 100%;
  padding: 9px 10px !important;
  font-size: 11px !important;
}

.wallet-logout {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
  font-size: 11px !important;
}


.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.wallet-modal {
  width: 440px;
  max-width: calc(100vw - 40px);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(0,255,160,.16), transparent 45%),
    linear-gradient(145deg, #07131f, #030812);
  border: 1px solid rgba(0,255,160,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.wallet-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.wallet-modal-title {
  font-size: 22px;
  font-weight: 900;
  color: #eafff7;
}

.wallet-modal-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(234,255,247,.58);
}

.wallet-modal-close {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.wallet-modal-warning {
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,255,160,.08);
  border: 1px solid rgba(0,255,160,.16);
  color: rgba(234,255,247,.78);
  font-size: 12px;
  margin-bottom: 18px;
}

.wallet-modal-label {
  font-size: 11px;
  color: rgba(234,255,247,.55);
  font-weight: 900;
  margin-bottom: 8px;
}

.wallet-modal-address {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  color: #00ffa3;
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
  margin-bottom: 18px;
}

.wallet-modal-primary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #00ffa3, #00c2ff);
  color: #03111b;
  font-weight: 900;
  cursor: pointer;
}


.wallet-modal-address {
  cursor: pointer;
}

.wallet-modal-address:hover {
  border-color: rgba(0,255,160,.45);
  box-shadow: 0 0 18px rgba(0,255,160,.10);
}

.wallet-modal-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  color: #eafff7;
  outline: none;
}

.wallet-modal-input:focus {
  border-color: rgba(0,255,160,.45);
  box-shadow: 0 0 18px rgba(0,255,160,.10);
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.20), transparent 34%),
    #050816;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
}

.auth-card {
  width: 380px;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.auth-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #5eead4, #818cf8);
  -webkit-background-clip: text;
  color: transparent;
}

.auth-subtitle {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 14px;
}

.auth-card h1 {
  margin: 28px 0 20px;
  font-size: 24px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card input {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  outline: none;
}

.auth-card input:focus {
  border-color: #5eead4;
}

.auth-card button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.auth-link {
  margin-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.auth-link a {
  color: #5eead4;
  text-decoration: none;
  font-weight: 700;
}

.auth-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
