:root {
  --bg: #0b1020;
  --panel: #121a31;
  --muted: #8da0c3;
  --text: #eef3ff;
  --accent: #5ce1e6;
  --accent2: #ffb86b;
  --line: rgba(255,255,255,.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92,225,230,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255,184,107,.16), transparent 24%),
    var(--bg);
}
.shell { max-width: 1180px; margin: 0 auto; padding: 28px; }
.hero, .panel, .box, .message-view {
  background: rgba(18,26,49,.86);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.hero { display:flex; justify-content:space-between; gap:20px; padding:28px; border-radius:24px; }
.brand { color: var(--accent2); text-transform: uppercase; letter-spacing:.18em; font-size:.78rem; }
h1,h2,h3,p { margin:0; }
h1 { font-size: clamp(2rem, 4vw, 3.8rem); line-height:1.02; max-width: 10ch; margin: 10px 0 14px; }
p { color: var(--muted); }
.primary,.ghost,.alias {
  border:0; border-radius:14px; cursor:pointer;
}
.primary { background: linear-gradient(135deg, var(--accent), #6f8cff); color:#06101c; padding:14px 18px; font-weight:700; }
.ghost { background: rgba(255,255,255,.08); color: var(--text); padding: 12px 16px; }
.grid { display:grid; grid-template-columns: 1.3fr .9fr; gap:20px; margin-top:20px; }
.box,.panel,.message-view { border-radius:24px; padding:22px; }
.address-row { display:flex; gap:10px; margin-top:14px; }
input {
  flex:1; background:#091126; color:var(--text); border:1px solid var(--line);
  border-radius:14px; padding:14px 16px; font-size:1rem;
}
.hint,.status { color:var(--muted); margin-top:10px; }
.alias-list { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.alias { background: rgba(92,225,230,.12); color: var(--text); padding:10px 12px; }
.inbox { margin-top:20px; }
.inbox-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.debug-box {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(92,225,230,.35);
  background: rgba(9,17,38,.8);
  color: #b9c9ef;
  white-space: pre-wrap;
  font-size: .92rem;
}
.message-list { display:grid; gap:10px; }
.message-item {
  display:flex; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:16px;
  background: rgba(255,255,255,.04); cursor:pointer; border:1px solid transparent;
}
.message-item:hover { border-color: rgba(92,225,230,.4); }
.message-item strong { display:block; }
.message-item span { color:var(--muted); font-size:.93rem; }
.message-view { margin-top:18px; min-height:180px; }
.message-view.empty { color:var(--muted); display:grid; place-content:center; text-align:center; }
@media (max-width: 900px) {
  .hero,.grid { grid-template-columns:1fr; display:grid; }
}
