:root {
  --ink: #f5f8ff;
  --muted: #9baac4;
  --line: rgba(163, 199, 255, .15);
  --line-bright: rgba(121, 192, 255, .32);
  --night: #030816;
  --electric: #3c9cff;
  --electric-soft: #8dccff;
  --danger: #ff9aab;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(53, 179, 255, .28), transparent 25rem),
    radial-gradient(circle at 83% 0%, rgba(21, 105, 241, .22), transparent 30rem),
    linear-gradient(rgba(60, 156, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 156, 255, .055) 1px, transparent 1px),
    linear-gradient(135deg, #020611, #07132b 55%, #020817);
  background-attachment: fixed;
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before, body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}
body::before {
  opacity: .34;
  background:
    radial-gradient(circle, rgba(141, 204, 255, .8) 0 1px, transparent 2px) 8% 18% / 180px 180px,
    radial-gradient(circle, rgba(60, 156, 255, .72) 0 1px, transparent 2px) 62% 22% / 220px 220px,
    radial-gradient(circle, rgba(141, 204, 255, .62) 0 1px, transparent 2px) 32% 74% / 260px 260px,
    radial-gradient(circle, rgba(60, 156, 255, .7) 0 1px, transparent 2px) 84% 68% / 210px 210px;
  animation: particleDrift 34s linear infinite;
}
body::after {
  opacity: .2;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(92, 181, 255, .26) 18.2% 18.35%, transparent 18.7% 42%, rgba(92, 181, 255, .18) 42.15% 42.3%, transparent 42.7% 100%),
    linear-gradient(38deg, transparent 0 28%, rgba(92, 181, 255, .18) 28.2% 28.35%, transparent 28.7% 68%, rgba(92, 181, 255, .16) 68.15% 68.3%, transparent 68.7% 100%);
  background-size: 520px 520px, 640px 640px;
  animation: nodeLineDrift 48s linear infinite;
}
@keyframes particleDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-90px, 54px, 0); }
}
@keyframes nodeLineDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 260px 180px, -240px 220px; }
}
button, input, textarea { font: inherit; }
.hidden { display: none !important; }
.shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: auto; }
.topbar { height: 78px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.1rem; font-weight: 780; letter-spacing: 0; text-decoration: none; }
.brand-mark, .token-icon { display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(128, 197, 255, .65); border-radius: 50%; background: #061123; box-shadow: 0 0 18px rgba(36, 148, 255, .35); }
.brand-mark { width: 34px; height: 34px; }
.brand-mark img, .token-icon img { width: 100%; height: 100%; object-fit: cover; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.network-badge, .wallet-state, .status { display: inline-flex; align-items: center; gap: 7px; color: #c4d4ef; font-size: .78rem; }
.network-badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.network-badge span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(60, 156, 255, .12), 0 0 12px var(--electric); }
.wallet-pill { border: 1px solid var(--line-bright); border-radius: 999px; padding: 8px 12px; color: var(--ink); background: rgba(8, 26, 57, .68); font-size: .78rem; font-weight: 750; cursor: pointer; }
.wallet-pill:hover { background: rgba(18, 79, 158, .66); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; padding: 11px 16px; color: var(--ink); font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, #127df0, #35b3ff); box-shadow: 0 8px 26px rgba(22, 137, 250, .25); }
.button-primary:hover { background: linear-gradient(135deg, #2895ff, #65c8ff); box-shadow: 0 11px 32px rgba(22, 137, 250, .38); }
.button-secondary { border: 1px solid var(--line-bright); background: rgba(11, 32, 68, .45); }
.full { width: 100%; }
.eyebrow { margin: 0 0 12px; color: var(--electric-soft); font-size: .7rem; font-weight: 830; letter-spacing: 0; }
.eyebrow span { display: inline-block; width: 19px; height: 1px; margin: 0 8px 3px 0; background: var(--electric); box-shadow: 0 0 9px var(--electric); }
.welcome { min-height: 420px; display: grid; place-items: center; gap: 24px; padding: 56px 0 48px; text-align: center; }
.welcome h1, .section-heading h2, .action-panel h2, .wallet-card h2, .review h2 { margin: 0; letter-spacing: 0; line-height: .98; }
.welcome h1 { font-size: clamp(3rem, 6vw, 5rem); }
.welcome h1 em { color: var(--electric-soft); font-style: normal; text-shadow: 0 0 35px rgba(83, 185, 255, .25); }
.welcome p:not(.eyebrow) { max-width: 610px; margin: 18px auto 0; color: #bdcbe2; font-size: 1.05rem; }
.welcome-intro { display: grid; justify-items: center; }
.welcome-coin { display: grid; place-items: center; width: min(420px, 76vw); }
.welcome-coin::before, .welcome-coin::after { display: none; }
.welcome-coin img { width: 100%; max-width: 420px; border-radius: 30px; filter: drop-shadow(0 0 28px rgba(24, 151, 255, .22)); }
.panel { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(14, 39, 82, .88), rgba(4, 16, 38, .94)); box-shadow: 0 22px 62px rgba(0, 0, 0, .22); backdrop-filter: blur(12px); }
.wallet-card { padding: 26px; }
.wallet-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.wallet-card h2, .section-heading h2, .action-panel h2 { font-size: clamp(1.85rem, 3.4vw, 3.1rem); }
.onchainkit-shell { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: stretch; margin-top: 24px; padding: 12px; border: 1px solid rgba(98, 174, 255, .2); border-radius: 12px; background: rgba(2, 11, 29, .34); }
.onchainkit-shell div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 18, 42, .58); }
.onchainkit-shell small, .onchainkit-shell span { display: block; color: var(--muted); font-size: .72rem; }
.onchainkit-shell strong { display: block; margin: 2px 0 4px; color: #eaf4ff; font-size: .9rem; }
.onchainkit-shell .button { align-self: center; white-space: nowrap; }
.token-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: center; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.token-name { display: flex; align-items: center; gap: 12px; }
.token-icon { width: 42px; height: 42px; }
.token-name strong { display: block; letter-spacing: 0; }
.token-name small, .token-balance small, .token-balance span { display: block; color: var(--muted); font-size: .75rem; }
.token-balance { text-align: right; }
.token-balance strong { display: inline-block; margin: 2px 5px 0 0; font-size: 1.25rem; letter-spacing: 0; }
.token-balance.private strong { color: var(--electric-soft); }
.public-read-status { margin: 10px 0 0; color: var(--muted); font-size: .73rem; text-align: right; }
.actions { padding: 92px 0 34px; }
.flow-controls { display: grid; grid-template-columns: minmax(220px, .4fr) 1fr; gap: 18px; align-items: center; margin-top: 30px; padding: 14px; }
.asset-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 11, 29, .36); }
.asset-option { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 780; cursor: pointer; }
.asset-option img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.asset-option.active { border-color: rgba(83, 171, 255, .62); color: var(--ink); background: linear-gradient(145deg, rgba(18, 79, 158, .72), rgba(6, 30, 70, .76)); box-shadow: 0 8px 22px rgba(22, 137, 250, .18); }
.flow-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.flow-step { position: relative; display: grid; gap: 5px; min-height: 60px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(4, 18, 42, .42); }
.flow-step span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--electric-soft); font-size: .72rem; font-weight: 830; }
.flow-step strong { font-size: .78rem; }
.flow-step.complete, .flow-step.active { border-color: rgba(83, 171, 255, .56); color: var(--ink); }
.flow-step.active { background: rgba(18, 79, 158, .54); }
.flow-step.complete span, .flow-step.active span { color: #00152e; background: var(--electric-soft); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 32px; }
.action-button { min-height: 142px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: rgba(8, 26, 57, .42); text-align: left; cursor: pointer; transition: border .18s, background .18s, transform .18s; }
.action-button:hover, .action-button.active { border-color: rgba(83, 171, 255, .6); background: linear-gradient(145deg, rgba(18, 79, 158, .66), rgba(6, 30, 70, .72)); transform: translateY(-2px); }
.action-button strong, .action-button small { display: block; }
.action-button-bcaz .action-icon { color: #fff; background: #146fe3; }
.action-button strong { margin-top: 13px; font-size: 1.05rem; letter-spacing: 0; }
.action-button small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.action-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line-bright); border-radius: 9px; color: var(--electric-soft); font-size: 1.15rem; }
.action-stage { padding: 29px; }
.action-panel { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 70px; }
.action-panel-copy > p:not(.eyebrow) { color: #b5c5de; }
.action-note { padding: 10px 12px; border-left: 2px solid var(--electric); color: #cad9ee !important; font-size: .84rem; }
.action-fields { display: grid; gap: 14px; }
.action-fields label { display: grid; gap: 7px; color: #d9e5f6; font-size: .8rem; font-weight: 680; }
.action-fields label > span { color: var(--muted); font-size: .72rem; font-weight: 500; }
.action-fields input:not([type="checkbox"]), .action-fields textarea { width: 100%; border: 1px solid rgba(179, 213, 255, .17); border-radius: 10px; outline: 0; padding: 12px; color: var(--ink); background: rgba(1, 9, 24, .48); transition: border .18s, box-shadow .18s; }
.action-fields input:focus, .action-fields textarea:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(50, 157, 255, .12); }
.action-fields textarea { min-height: 86px; resize: vertical; }
.note-option { display: flex !important; grid-template-columns: 18px auto auto; align-items: center; gap: 8px !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(56, 155, 255, .07); cursor: pointer; }
.note-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--electric); }
.note-option span { margin-left: auto; }
.address-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-helper { min-height: 1.1em; margin: 0; color: var(--muted); font-size: .76rem; }
.form-error { min-height: 1.2em; margin: 14px 0 0; color: var(--danger); font-size: .82rem; }
.testnet-dapp { margin: 34px 0 42px; padding: 28px; }
.primary-testnet { margin-top: 26px; }
.testnet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.testnet-title-row { display: flex; align-items: center; gap: 20px; }
.testnet-logo { display: grid; flex: 0 0 auto; place-items: center; width: 104px; height: 104px; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 22px; background: rgba(3, 14, 33, .42); box-shadow: 0 0 34px rgba(36, 148, 255, .2); }
.testnet-logo img { width: 100%; height: 100%; object-fit: cover; }
.testnet-head h1 { max-width: 680px; margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .95; letter-spacing: 0; }
.testnet-head h2 { max-width: 680px; margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
.testnet-head p:not(.eyebrow) { max-width: 700px; margin: 13px 0 0; color: #b5c5de; }
.testnet-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.testnet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.testnet-asset { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 18, 42, .48); }
.testnet-asset dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.testnet-asset dl div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(1, 9, 24, .34); }
.testnet-asset dt { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.testnet-asset dd { margin: 4px 0 0; color: #e4efff; font-size: .86rem; overflow-wrap: anywhere; }
.testnet-buy-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 10px; align-items: end; }
.testnet-buy-row label { display: grid; gap: 7px; color: #d9e5f6; font-size: .8rem; font-weight: 680; }
.testnet-buy-row input { width: 100%; border: 1px solid rgba(179, 213, 255, .17); border-radius: 10px; outline: 0; padding: 12px; color: var(--ink); background: rgba(1, 9, 24, .48); }
.testnet-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.testnet-flow li { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 14, 33, .42); }
.testnet-flow li.flow-active { border-color: rgba(83, 171, 255, .7); background: rgba(18, 79, 158, .58); box-shadow: 0 10px 30px rgba(22, 137, 250, .12); }
.testnet-flow li.flow-complete { border-color: rgba(141, 204, 255, .36); }
.testnet-flow span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #00152e; background: var(--electric-soft); font-size: .72rem; font-weight: 830; }
.testnet-flow strong, .testnet-flow small { display: block; }
.testnet-flow strong { margin-top: 8px; font-size: .85rem; }
.testnet-flow small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.readiness-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.readiness-grid article { min-width: 0; min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(1, 9, 24, .3); }
.readiness-grid small { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.readiness-grid strong { display: block; margin-top: 5px; color: #e4efff; font-size: .82rem; overflow-wrap: anywhere; }
.asset-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; margin: 22px auto 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 11, 29, .36); }
.asset-tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 830; cursor: pointer; }
.asset-tab img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.asset-tab.active { border-color: rgba(83, 171, 255, .62); color: var(--ink); background: linear-gradient(145deg, rgba(18, 79, 158, .72), rgba(6, 30, 70, .76)); box-shadow: 0 8px 22px rgba(22, 137, 250, .18); }
.assets-category { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 14, 33, .34); }
.assets-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.assets-head h2 { margin: 0; font-size: 1.2rem; line-height: 1; letter-spacing: 0; }
.asset-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.asset-balance-card { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 74px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: rgba(4, 18, 42, .48); text-align: left; cursor: pointer; }
.asset-balance-card.active { border-color: rgba(83, 171, 255, .62); background: linear-gradient(145deg, rgba(18, 79, 158, .64), rgba(6, 30, 70, .7)); }
.asset-balance-card > span:last-child { display: grid; min-width: 0; gap: 2px; }
.asset-balance-card small { color: var(--muted); font-size: .72rem; }
.asset-balance-card strong { overflow-wrap: anywhere; font-size: 1rem; letter-spacing: 0; }
.selected-asset-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 22px; }
.balance-panel, .action-panel-mini { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 18, 42, .48); }
.balance-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.balance-panel dl div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(1, 9, 24, .34); }
.balance-panel dt { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.balance-panel dd { margin: 5px 0 0; color: #e4efff; font-size: .86rem; overflow-wrap: anywhere; }
.enhancement-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; margin-top: 16px; }
.receive-panel, .activity-panel { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 18, 42, .48); }
.receive-panel h2, .activity-panel h2 { margin: 0; font-size: 1.2rem; line-height: 1; letter-spacing: 0; }
.receive-panel output { display: block; min-height: 44px; padding: 12px; border: 1px solid rgba(179, 213, 255, .17); border-radius: 10px; color: #dbe8f9; background: rgba(1, 9, 24, .42); font-size: .78rem; overflow-wrap: anywhere; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.activity-list { display: grid; gap: 9px; max-height: 178px; overflow: auto; padding: 0; margin: 0; list-style: none; }
.activity-list li { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(1, 9, 24, .34); }
.activity-list span, .activity-list small { display: block; min-width: 0; overflow-wrap: anywhere; }
.activity-list span { color: #e4efff; font-size: .84rem; font-weight: 760; }
.activity-list small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.activity-list a { color: var(--electric-soft); text-decoration: none; }
.testnet-operations { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.testnet-operations h2 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1; letter-spacing: 0; }
.testnet-operations p:not(.eyebrow) { margin: 12px 0 0; color: #b5c5de; font-size: .9rem; }
.operation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.operation-button { min-height: 108px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: rgba(8, 26, 57, .44); text-align: left; cursor: pointer; transition: border .18s, background .18s, transform .18s; }
.operation-button:hover { border-color: rgba(83, 171, 255, .6); background: rgba(18, 79, 158, .52); transform: translateY(-1px); }
.operation-button strong, .operation-button small { display: block; }
.operation-button strong { font-size: .95rem; }
.operation-button small { margin-top: 6px; color: var(--muted); font-size: .72rem; }
.review-backdrop { position: fixed; inset: 0; z-index: 4; background: rgba(0, 5, 16, .54); backdrop-filter: blur(4px); }
.review-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 5; width: min(470px, 100%); overflow-y: auto; padding: 30px; border-left: 1px solid var(--line-bright); color: var(--ink); background: linear-gradient(145deg, rgba(13, 43, 88, .98), rgba(4, 16, 38, .98)); box-shadow: -24px 0 80px rgba(0, 0, 0, .42); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.review h2 { font-size: 2rem; }
.review-drawer h2 { margin: 0; font-size: 2rem; line-height: 1; }
.review-grid { display: grid; gap: 15px; margin: 25px 0 0; }
.review-grid div { padding-top: 13px; border-top: 1px solid var(--line); }
.review-grid dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.review-grid dd { margin: 6px 0 0; color: #dbe8f9; font-size: .86rem; overflow-wrap: anywhere; }
.review-gate { margin: 16px 0 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: #c8daf3; background: rgba(1, 9, 24, .36); font-size: .78rem; }
.review-continue { margin-top: 24px; }
.receive-empty { align-content: center; min-height: 180px; }
.address-placeholder { display: block; padding: 14px; border: 1px dashed var(--line-bright); border-radius: 10px; color: var(--muted); text-align: center; font-size: .84rem; }
.onboarding-dialog { width: min(450px, calc(100% - 32px)); padding: 30px; border: 1px solid var(--line-bright); border-radius: 20px; color: var(--ink); background: linear-gradient(145deg, #102c5b, #06152f); box-shadow: 0 28px 90px rgba(0, 0, 0, .55); }
.onboarding-dialog::backdrop { background: rgba(0, 5, 16, .74); backdrop-filter: blur(5px); }
.onboarding-dialog h2 { margin: 0; font-size: 2rem; letter-spacing: 0; line-height: 1; }
.onboarding-dialog p:not(.eyebrow):not(.form-error) { color: #c0d1eb; font-size: .9rem; }
.onboarding-dialog label { display: grid; gap: 7px; margin: 22px 0 14px; color: #d9e5f6; font-size: .8rem; font-weight: 680; }
.onboarding-dialog input { width: 100%; border: 1px solid rgba(179, 213, 255, .24); border-radius: 10px; outline: 0; padding: 12px; color: var(--ink); background: rgba(1, 9, 24, .48); }
.onboarding-dialog input:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(50, 157, 255, .12); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 1.35rem; cursor: pointer; }
.onboarding-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: .72rem; }
.onboarding-divider::before, .onboarding-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.wallet-route-grid { display: grid; gap: 10px; margin-top: 22px; }
.wallet-route { min-height: 54px; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.wallet-route span { color: rgba(245, 248, 255, .7); font-size: .72rem; font-weight: 650; }
.dialog-helper { margin: 17px 0 0 !important; color: var(--muted) !important; font-size: .76rem !important; }
.privacy-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 26px 0 90px; border-top: 1px solid var(--line); }
.privacy-strip article { display: flex; gap: 12px; padding: 18px 0; }
.privacy-strip article > span { color: var(--electric-soft); font-size: .74rem; font-weight: 800; }
.privacy-strip strong { font-size: .9rem; }
.privacy-strip p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
footer { display: flex; justify-content: space-between; padding: 24px 0 38px; border-top: 1px solid var(--line); color: #8196b7; font-size: .75rem; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 3; max-width: calc(100% - 32px); transform: translate(-50%, 140%); padding: 10px 14px; border: 1px solid var(--line-bright); border-radius: 10px; color: var(--ink); background: #0d2b58; font-size: .82rem; transition: transform .22s; }
.toast.visible { transform: translate(-50%, 0); }
@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 680px); }
  .topbar { height: 70px; }
  .welcome { min-height: 0; gap: 20px; padding: 44px 0 38px; }
  .welcome-coin { width: min(330px, 82vw); }
  .token-row, .action-panel, .privacy-strip, .testnet-grid, .testnet-operations { grid-template-columns: 1fr; }
  .selected-asset-panel, .balance-panel dl, .asset-balance-grid, .enhancement-grid { grid-template-columns: 1fr; }
  .readiness-grid { grid-template-columns: 1fr 1fr; }
  .flow-controls { grid-template-columns: 1fr; }
  .onchainkit-shell { grid-template-columns: 1fr 1fr; }
  .onchainkit-shell .button { grid-column: 1 / -1; width: 100%; }
  .token-balance { text-align: left; }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
  .action-panel { gap: 30px; }
  .privacy-strip { gap: 0; padding-bottom: 68px; }
  .review-head, .testnet-head, footer { flex-direction: column; align-items: flex-start; }
  .testnet-actions { justify-content: flex-start; }
  .operation-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shell { width: min(100% - 24px, 680px); }
  .network-badge { display: none; }
  .header-actions { gap: 8px; }
  .wallet-pill { max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .welcome-coin { width: min(285px, 86vw); }
  .wallet-card, .action-stage, .review { padding: 20px; }
  .wallet-card-head { align-items: flex-start; flex-direction: column; }
  .actions { padding-top: 70px; }
  .flow-rail { grid-template-columns: 1fr 1fr; }
  .testnet-flow { grid-template-columns: 1fr 1fr; }
  .testnet-buy-row { grid-template-columns: 1fr; }
  .readiness-grid, .button-row { grid-template-columns: 1fr; }
  .asset-switcher { max-width: none; }
  .testnet-title-row { align-items: flex-start; flex-direction: column; }
  .testnet-logo { width: 82px; height: 82px; border-radius: 18px; }
  .operation-grid { grid-template-columns: 1fr; }
  .flow-step { min-height: 54px; }
  .action-button { min-height: 125px; padding: 15px; }
  .action-grid { gap: 9px; }
  .onchainkit-shell { grid-template-columns: 1fr; }
  .review-drawer { padding: 24px 20px; }
  .review-head { align-items: flex-start; flex-direction: column; }
  .address-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .welcome { min-height: 0; }
}
