:root {
  --bg: #0f1220;
  --card: #1a1f36;
  --text: #e8ecff;
  --muted: #aeb6d9;
  --accent: #6ea8fe;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: linear-gradient(180deg, #0c1020, #121933); color: var(--text); }
.app-header { padding: 24px 16px 8px; text-align: center; }
.subtitle { margin-top: 0; color: var(--muted); }
.disclaimer { 
  display: inline-block; 
  margin-top: 12px; 
  padding: 12px 16px; 
  border-radius: 8px; 
  background: rgba(251, 191, 36, 0.15); 
  border: 2px solid rgba(251, 191, 36, 0.5); 
  color: var(--warning);
  max-width: 700px;
  line-height: 1.5;
}
.container { max-width: 980px; margin: 16px auto 40px; padding: 0 16px; display: grid; gap: 16px; }
.card { background: rgba(26,31,54,.9); border: 1px solid rgba(174,182,217,.2); border-radius: 12px; padding: 16px; }
.guide { background: rgba(52, 211, 153, 0.05); border-color: rgba(52, 211, 153, 0.3); }
.guide h2 { color: var(--success); }
.guide-steps { 
  margin: 12px 0; 
  padding-left: 24px; 
  line-height: 1.8; 
}
.guide-steps li { margin: 8px 0; }
.guide-tip { 
  margin-top: 12px; 
  padding: 10px; 
  background: rgba(110, 168, 254, 0.1); 
  border-left: 3px solid var(--accent); 
  border-radius: 4px; 
}
.wallet-selector { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  align-items: center; 
}
.wallet-btn { 
  flex: 1; 
  min-width: 120px; 
  background: rgba(110, 168, 254, 0.2); 
  border: 2px solid rgba(110, 168, 254, 0.4); 
  transition: all 0.2s; 
}
.wallet-btn:hover { 
  background: rgba(110, 168, 254, 0.3); 
}
.wallet-btn.active { 
  background: var(--accent); 
  border-color: var(--accent); 
  color: #071225; 
  font-weight: 700; 
}
.field { margin: 12px 0; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
.value { background: rgba(0,0,0,.25); border: 1px solid rgba(174,182,217,.2); border-radius: 8px; padding: 10px; overflow-wrap: anywhere; }
.address-row { display: flex; gap: 8px; align-items: center; }
.address-row .value { flex: 1; min-width: 0; }
.balance { font-size: 1.2rem; color: var(--success); font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.blur { filter: blur(6px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
button { background: var(--accent); color: #071225; border: none; border-radius: 8px; padding: 10px 12px; font-weight: 700; cursor: pointer; }
button.danger { background: var(--danger); color: white; }
.small-btn { margin-top: 8px; padding: 6px 10px; font-size: .85rem; }
.icon-btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
input { width: 100%; border-radius: 8px; border: 1px solid rgba(174,182,217,.35); background: rgba(0,0,0,.25); color: var(--text); padding: 10px; }
.muted { color: var(--muted); }
.message { margin-top: 10px; min-height: 22px; }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.tx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tx-item { border: 1px solid rgba(174,182,217,.25); border-radius: 8px; padding: 10px; background: rgba(0,0,0,.2); }
.tx-meta { color: var(--muted); font-size: .9rem; }
.help { cursor: help; color: var(--accent); }

@media (max-width: 640px) {
  .app-header { padding: 20px 12px 8px; }
  .container { margin-top: 12px; padding: 0 12px; }
  .wallet-selector { flex-direction: column; align-items: stretch; }
  .wallet-btn, .small-btn { width: 100%; margin-top: 0; }
  .actions button { width: 100%; }
}
