:root {
    --bg: #0b0f14;
    --panel: #0f1620;
    --panel-2: #0c121a;
    --text: #eaf2fb;
    --muted: #9fb1c6;
    --neon: #4f8cff;
    --neon-2: #2a6ef2;
    --accent: #00e0b6;
    --ring: rgba(79, 140, 255, .35);
    --border: rgba(255, 255, 255, .08);
    --radius: 20px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  }
  
  * {
    box-sizing: border-box;
  }
  
  html,
  body {
    height: 100%;
  }
  
  body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    overflow-x: hidden;
  }
  
  /* Background neon orbs */
  .bg-orb {
    position: fixed;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(60px) saturate(130%);
    opacity: .28;
    pointer-events: none;
    z-index: 0;
  }
  
  .orb-a {
    left: -10vmax;
    top: -15vmax;
    background: radial-gradient(closest-side, #4f8cff, transparent 60%);
  }
  
  .orb-b {
    right: -15vmax;
    bottom: -10vmax;
    background: radial-gradient(closest-side, #00e0b6, transparent 60%);
  }
  
  /* Layout */
  .wrap {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 40px 20px;
  }
  
  /* Card */
  .vault {
    position: relative;
    z-index: 1;
    width: min(780px, 96vw);
    background: radial-gradient(100% 40% at 10% 0%, rgba(255, 255, 255, .06), transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)),
                var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(1.1);
  }
  
  .vault::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79, 140, 255, .15), rgba(0, 224, 182, .10) 40%, transparent 70%);
    pointer-events: none;
  }
  
  .vault-head {
    padding: 22px 22px 0;
  }
  
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .vault-head h1 {
    margin: 0;
    letter-spacing: .3px;
  }
  
  .sub {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 14px;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 12px;
    color: #cfe3ff;
    background: linear-gradient(180deg, #142033, #0e1724);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .03);
  }
  
  .wallet {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Form */
  .grid {
    display: grid;
    gap: 16px;
    padding: 22px;
    padding-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  @media (max-width: 720px) {
    .grid {
      grid-template-columns: 1fr;
    }
  }
  
  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .label {
    font-size: 13px;
    color: var(--muted);
  }
  
  .inp {
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 12px;
    outline: none;
    transition: .2s;
  }
  
  .inp:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 8px var(--ring);
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    margin: 0;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #101826;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s;
  }
  
  .btn:disabled {
    opacity: .6;
    cursor: not-allowed;
  }
  
  .btn.ghost {
    background: transparent;
    border: 1px solid var(--border);
  }
  
  .btn.primary {
    margin: 10px 22px;
    background: linear-gradient(180deg, var(--neon), var(--neon-2));
    box-shadow: 0 10px 30px rgba(42, 110, 242, .35);
  }
  
  .btn.primary:hover:not(:disabled) {
    transform: translateY(-1px);
  }
  
  .btn.primary:active:not(:disabled) {
    transform: translateY(0);
  }
  
  /* Pills and info */
  .info {
    display: flex;
    gap: 10px;
    padding: 0 22px 12px;
    flex-wrap: wrap;
  }
  
  .pill {
    padding: 8px 12px;
    font-size: 13px;
    color: #d9e8ff;
    background: linear-gradient(180deg, #121a27, #0e1622);
    border: 1px solid var(--border);
    border-radius: 999px;
  }
  
  .hide {
    display: none;
  }
  
  /* Log */
  .log {
    margin: 10px 22px 22px;
    padding: 14px;
    height: 260px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #0b1118;
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  
  .log .ok {
    color: #8ff0a4;
  }
  
  .log .err {
    color: #ff9b9b;
  }
  
  .log .evt {
    color: #8ec5ff;
  }
  
  .log .ln {
    padding: 6px 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, .06);
  }
  