/* QuikLaunch — dark, Apple-inspired, electric-blue accent. */
:root {
  --bg: #000;
  --card: #111113;
  --card-hi: rgba(255, 255, 255, .06); /* inner hairline on cards */
  --fill-0: rgba(120, 120, 128, .1);
  --fill-1: rgba(120, 120, 128, .16);
  --fill-2: rgba(120, 120, 128, .24);
  --fill-3: rgba(120, 120, 128, .32);
  --sep: rgba(84, 84, 88, .34);
  --label: #f5f5f7;
  --label-2: rgba(235, 235, 245, .6);
  --label-3: rgba(235, 235, 245, .32);
  --blue: #0a84ff;
  --blue-hi: #409cff;
  --cyan: #64d2ff;
  --blue-soft: rgba(10, 132, 255, .15);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, .14);
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, .14);
  --orange: #ff9f0a;
  --orange-soft: rgba(255, 159, 10, .12);
  --ring: 0 0 0 4px rgba(10, 132, 255, .32);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: rgba(10, 132, 255, .45); }

html, body { margin: 0; background: var(--bg); color: var(--label); }
body {
  font: 14px/1.45 var(--font);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -280px, rgba(10, 132, 255, .16), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2 { margin: 0; letter-spacing: -.022em; }
.num { font-variant-numeric: tabular-nums; }
.secondary { color: var(--label-2); }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- Inputs ---------- */
input, textarea {
  width: 100%;
  background: var(--fill-1);
  color: var(--label);
  border: 0;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  letter-spacing: inherit;
  font-variant-ligatures: none;
  outline: none;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
input:hover, textarea:hover { background: var(--fill-2); }
input:focus, textarea:focus { background: var(--fill-2); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--label-3); }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }

.suffix { position: relative; }
.suffix input { padding-right: 46px; font-variant-numeric: tabular-nums; }
.suffix i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--label-3); pointer-events: none; }
.suffix.sm { width: 84px; flex: none; }
.suffix.sm input { padding: 8px 36px 8px 10px; text-align: right; border-radius: 9px; }
.suffix.sm i { right: 10px; font-size: 11.5px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--fill-2);
  color: var(--label);
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  font: 600 13.5px var(--font);
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease), opacity .2s, filter .2s;
}
.btn:hover { background: var(--fill-3); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 18px; font-size: 15px; border-radius: 13px; }
.btn-xl { padding: 15px 18px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn svg { fill: currentColor; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, #2b95ff 0%, #0a7cf5 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px -10px rgba(10, 132, 255, .75);
}
.btn-primary:hover { background: linear-gradient(180deg, #40a0ff 0%, #1688ff 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 36px -10px rgba(10, 132, 255, .95); }
.btn-primary:disabled { box-shadow: none; }
.btn-primary.confirm { background: linear-gradient(180deg, #ffb340, #ff9500); color: #1f1300; box-shadow: 0 10px 28px -10px rgba(255, 159, 10, .7); }
.btn-tinted { background: var(--blue-soft); color: var(--blue-hi); }
.btn-tinted:hover { background: rgba(10, 132, 255, .24); }
.btn-tinted.done { background: var(--green-soft); color: var(--green); }
.btn-plain { background: transparent; color: var(--blue-hi); }
.btn-plain:hover { background: var(--fill-1); }

.btn .spinner { width: 15px; height: 15px; }
.spinner {
  display: inline-block; width: 14px; height: 14px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link { background: none; border: 0; color: var(--label-3); font: inherit; font-size: 12.5px; cursor: pointer; transition: color .2s; }
.link:hover { color: var(--red); }

.icon-btn {
  width: 34px; height: 34px; flex: none;
  display: inline-grid; place-items: center;
  background: transparent; border: 0; border-radius: 10px;
  color: var(--label-2); cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { color: var(--label); background: var(--fill-1); }
.icon-btn:active { transform: scale(.9); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.icon-btn.del:hover { color: var(--red); background: var(--red-soft); }

.addr {
  font: 500 12.5px var(--mono);
  letter-spacing: 0;
  background: none; border: 0; padding: 2px 0; color: var(--label); cursor: pointer;
  border-radius: 6px;
  transition: color .2s var(--ease);
}
.addr:hover { color: var(--blue-hi); }
.addr.copied { color: var(--green); }
.chip { background: var(--fill-1); padding: 4px 9px; color: var(--label-2); }
.chip:hover { background: var(--fill-2); }

/* Sell percentage buttons */
.sells { display: inline-flex; gap: 5px; }
.sells button {
  min-width: 50px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
  border: 0; border-radius: 8px;
  font: 600 12px var(--font); font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), opacity .2s;
}
.sells button:hover:not(:disabled) { background: rgba(255, 69, 58, .26); }
.sells button:active:not(:disabled) { transform: scale(.94); }
.sells button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 69, 58, .35); }
.sells button:disabled { opacity: .28; cursor: not-allowed; }
.sells button.confirm { background: var(--red); color: #fff; }
.sells button .spinner { width: 12px; height: 12px; border-width: 1.8px; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 4px; user-select: none; }
.brand span { font-weight: 650; font-size: 17px; letter-spacing: -.025em; }

/* ---------- Gate: name + one password box ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.gate-form {
  width: 100%; max-width: 300px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: rise .7s var(--ease) both;
}
.gate-title {
  margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, rgba(160, 225, 255, .75));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
#gate-pw {
  height: 52px;
  padding: 0 16px 0 calc(16px + .45em); /* offsets trailing letter-spacing so the dots sit dead centre */
  border-radius: 16px;
  text-align: center;
  font-size: 22px;
  letter-spacing: .45em;
  color: var(--cyan);
  caret-color: var(--cyan);
  background: rgba(120, 120, 128, .14);
  box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .12);
}
#gate-pw:focus { background: rgba(120, 120, 128, .18); box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .45), 0 0 0 4px rgba(100, 210, 255, .14), 0 0 30px -6px rgba(100, 210, 255, .45); }
#gate-pw::placeholder { font-size: 15px; letter-spacing: -.01em; color: var(--label-3); }
#gate-pw:disabled { opacity: .55; }
.gate-hint { margin: 0; min-height: 18px; font-size: 13px; color: var(--label-3); text-align: center; transition: color .2s; }
.gate-hint.err { color: var(--red); }
.gate-form.shake { animation: shake .45s var(--ease); }
.gate-form.busy .gate-title { animation: pulse 1s ease-in-out infinite; }
.err { color: var(--red); font-size: 13px; margin: 0 !important; }
.err:empty { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--sep);
}
.topbar-inner { max-width: 1140px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 16px; }
.rpc {
  flex: 1; max-width: 480px; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--fill-1); border-radius: 12px; padding: 4px 4px 4px 13px;
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.rpc:focus-within { box-shadow: var(--ring); background: var(--fill-2); }
.rpc input { background: transparent !important; box-shadow: none !important; padding: 6px 0; font: 12.5px var(--mono); letter-spacing: 0; border-radius: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--label-3); flex: none; transition: background .3s, box-shadow .3s; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft), 0 0 10px rgba(48, 209, 88, .6); }
.dot.bad { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.pending { background: var(--orange); animation: pulse 1s ease-in-out infinite; }

.grid {
  max-width: 1140px; margin: 0 auto; padding: 32px 28px 64px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start;
}
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.full { grid-column: 1 / -1; }

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  box-shadow: inset 0 0 0 1px var(--card-hi), 0 30px 60px -30px rgba(0, 0, 0, .7);
  animation: rise .5s var(--ease) both;
}
.col .card:nth-child(1) { animation-delay: .04s; }
.col .card:nth-child(2) { animation-delay: .08s; }
.full { animation-delay: .12s; }
.card h2 { font-size: 17px; font-weight: 650; }
.caption { margin: 2px 0 0; font-size: 12.5px; color: var(--label-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--blue-hi);
  background: var(--blue-soft); padding: 5px 10px; border-radius: 99px;
}
.pill svg { fill: currentColor; }

/* ---------- Token ---------- */
.token-top { display: flex; gap: 12px; }
.stack { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
.drop {
  width: 106px; height: 106px; flex: none;
  background: var(--fill-0);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1.5px var(--fill-2);
  display: grid; place-items: center;
  color: var(--label-2); font-size: 12px; font-weight: 500;
  cursor: pointer; overflow: hidden; position: relative;
  transition: box-shadow .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.drop:hover, .drop.over { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue-hi); background: var(--blue-soft); }
.drop:active { transform: scale(.97); }
.drop.over { transform: scale(1.03); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadeIn .3s var(--ease); }
#drop-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.04); } }

/* Grouped list (iOS-style) */
.group { background: var(--fill-0); border-radius: 13px; overflow: hidden; }
.group-row { display: flex; align-items: center; padding: 0 0 0 14px; position: relative; }
.group-row + .group-row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--sep); }
.group-row span { width: 78px; flex: none; font-size: 13.5px; color: var(--label-2); }
.group-row input { background: transparent; border-radius: 0; padding: 12px 14px 12px 0; }
.group-row input:hover { background: transparent; }
.group-row input:focus { background: transparent; box-shadow: none; }
.group-row:focus-within span { color: var(--blue-hi); }

/* ---------- Wallets ---------- */
.wallets { display: flex; flex-direction: column; background: var(--fill-0); border-radius: 15px; overflow: hidden; }
.slot { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; min-height: 60px; position: relative; transition: background .2s var(--ease); }
.slot + .slot::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--sep); }
.slot:hover { background: rgba(255, 255, 255, .02); }
.slot.enter { animation: rowIn .45s var(--spring); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.slot .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; align-items: flex-start; gap: 1px; }
.slot .hint { flex: 1; color: var(--label-3); font-size: 13px; }
.slot .bal { font-size: 12px; color: var(--label-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.slot .bal.low { color: var(--orange); }
.slot .key-input { flex: 1; padding: 9px 11px; font: 12px var(--mono); letter-spacing: 0; }
.badge {
  flex: none; width: 40px; height: 26px;
  display: inline-grid; place-items: center;
  font: 650 11px var(--font); letter-spacing: .02em;
  border-radius: 8px;
  background: var(--fill-2); color: var(--label-2);
}
.badge.dev { background: linear-gradient(180deg, rgba(64, 156, 255, .3), rgba(10, 132, 255, .18)); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .2); }
.amt { width: 112px; flex: none; }
.amt input { padding: 9px 42px 9px 10px; text-align: right; border-radius: 10px; background: var(--fill-1); }
.apply-all { display: flex; align-items: center; gap: 6px; }

/* ---------- Launch ---------- */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--label-2); padding-left: 2px; }
.auto {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; background: var(--fill-0); border-radius: 14px;
}
.auto-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.auto-text span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.auto-text small { font-size: 12px; color: var(--label-3); }
.auto-inputs { display: flex; align-items: center; gap: 8px; font-size: 13px; transition: opacity .25s var(--ease); }
.auto.off .auto-inputs { opacity: .35; pointer-events: none; }

.switch { position: relative; width: 46px; height: 28px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--fill-3); border-radius: 99px; transition: background .25s var(--ease); }
.switch span::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25), 0 1px 1px rgba(0, 0, 0, .16);
  transition: transform .3s var(--spring), width .2s var(--ease);
}
.switch:active span::after { width: 28px; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:checked:active + span::after, .switch:active input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

.summary { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--label-2); padding: 2px 4px; }
.summary b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }

.log { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; background: var(--fill-0); border-radius: 14px; }
.log:empty { display: none; }
.log li { display: flex; gap: 10px; align-items: center; color: var(--label-2); word-break: break-word; animation: rowIn .35s var(--ease); }
.log li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--fill-2);
}
.log li.busy::before { background: none; border: 2px solid var(--blue); border-right-color: transparent; width: 14px; height: 14px; margin: 0 2px; animation: spin .7s linear infinite; }
.log li.ok { color: var(--label); }
.log li.ok::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.log li.err { color: var(--red); }
.log li.err::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.log a { color: var(--blue-hi); text-decoration: none; font-weight: 500; }
.log a:hover { text-decoration: underline; }

/* ---------- Shared stat / banner ---------- */
.stat { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.stat small { font-size: 11.5px; color: var(--label-3); }
.stat b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; border-radius: 6px; }
.link-inline { background: none; border: 0; padding: 0 0 0 6px; color: var(--orange); font: 500 12px var(--font); cursor: pointer; }
.link-inline:hover { text-decoration: underline; }

.auto-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 14px; border-radius: 13px;
  background: var(--orange-soft); font-size: 13.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .18);
  animation: rowIn .35s var(--ease);
}
.auto-banner > span:nth-child(2) { flex: 1; color: rgba(255, 214, 10, .85); }
.auto-banner b { color: #fff; font-weight: 600; }
.auto-banner .btn-plain { color: var(--orange); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: pulse 1.1s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Active launch bar (main page) ---------- */
.active { flex-direction: row; align-items: center; gap: 24px; padding: 16px 16px 16px 22px; flex-wrap: wrap; animation-delay: 0s; }
.active-token { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.active-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.active-title b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.active-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px var(--green-soft); animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Panel window ---------- */
.panel-page { min-height: 100vh; display: flex; flex-direction: column; }
.p-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--sep);
}
.p-head .brand span { font-size: 15px; }
.p-conn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--label-2); background: var(--fill-1); padding: 5px 11px 5px 10px; border-radius: 99px; }
.dot.beat { animation: beat .6s var(--ease); }
@keyframes beat { 30% { transform: scale(1.9); box-shadow: 0 0 0 5px rgba(48, 209, 88, .25), 0 0 14px rgba(48, 209, 88, .9); } }

.p-main { flex: 1; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
#p-live { display: flex; flex-direction: column; gap: 12px; }

.p-launching {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--blue-soft); color: var(--blue-hi);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .2);
  animation: rowIn .35s var(--ease);
}
.p-launching div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.p-launching b { color: var(--label); font-size: 14px; }
.p-launching small { color: var(--label-2); font-size: 12.5px; }

.p-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 48px 24px; color: var(--label-3); animation: rise .4s var(--ease) both; }
.p-state-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--fill-0); color: var(--label-2); margin-bottom: 10px; }
.p-state-icon .spinner { width: 22px; height: 22px; color: var(--blue); }
.p-state p { margin: 0; color: var(--label); font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.p-state small { max-width: 300px; color: var(--label-2); font-size: 13px; }
.p-state .btn { margin-top: 14px; }

.p-token, .p-total, .p-wallet {
  background: var(--card); border-radius: 18px; padding: 16px;
  box-shadow: inset 0 0 0 1px var(--card-hi);
}
.p-token { display: flex; flex-direction: column; gap: 14px; animation: rise .4s var(--ease) both; }
.p-token-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.p-token-id { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.p-token h1 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.p-links { display: flex; flex-direction: column; align-items: flex-end; }
.p-links .btn { padding: 4px 8px; }
.p-stats { display: flex; gap: 20px; align-items: flex-end; }
.p-stats .grow { flex: 1; }
.p-progress { height: 6px; border-radius: 99px; background: var(--fill-1); overflow: hidden; margin-top: 7px; }
.p-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px rgba(100, 210, 255, .5); transition: width .6s var(--ease); }

.p-total { display: flex; flex-direction: column; gap: 2px; animation: rise .4s var(--ease) .04s both; background: linear-gradient(180deg, rgba(10, 132, 255, .09), rgba(10, 132, 255, .02)), var(--card); }
.p-total > small { font-size: 12px; color: var(--label-2); }
.p-total-row { display: flex; align-items: baseline; gap: 10px; }
#p-total { font-size: 30px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; border-radius: 8px; }
.p-pct { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 8px; background: var(--fill-1); }
.p-pct.pos { background: var(--green-soft); }
.p-pct.neg { background: var(--red-soft); }
.p-sub { display: flex; gap: 16px; margin-top: 6px; font-size: 12.5px; color: var(--label-3); }
.p-sub b { color: var(--label-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.p-wallets { display: flex; flex-direction: column; gap: 10px; }
.p-wallet { display: flex; flex-direction: column; gap: 12px; animation: rowIn .45s var(--spring) both; }
.p-wallet:nth-child(2) { animation-delay: .03s; }
.p-wallet:nth-child(3) { animation-delay: .06s; }
.p-wallet:nth-child(4) { animation-delay: .09s; }
.p-wallet:nth-child(5) { animation-delay: .12s; }
.p-wallet.empty-bag .p-w-top, .p-wallet.empty-bag .p-w-meta { opacity: .55; }
.p-w-top { display: flex; align-items: center; gap: 11px; }
.p-w-id { flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.3; }
.p-w-id small { font-size: 12px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.p-w-pnl { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.p-w-pnl b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 0 4px; margin-right: -4px; border-radius: 6px; }
.p-w-pnl small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-w-meta { display: flex; gap: 14px; font-size: 12px; color: var(--label-3); padding-left: 51px; }
.p-w-meta b { color: var(--label-2); font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 5px; }

.sells-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; }
.sells-5 button { min-width: 0; height: 32px; border-radius: 9px; font-size: 12.5px; }
.p-clear { align-self: center; margin-top: 4px; }

.p-foot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px;
  background: rgba(10, 10, 12, .78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--sep);
}
.p-foot-label { display: flex; justify-content: space-between; align-items: baseline; }
.p-foot-label span { font-size: 13.5px; font-weight: 600; }
.p-foot-label small { font-size: 11.5px; color: var(--label-3); }
.p-foot .sells-5 button { height: 36px; font-size: 13px; }

/* ---------- Copied bubble ---------- */
.bubble {
  position: fixed; z-index: 70; pointer-events: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px 6px 8px; border-radius: 10px;
  background: rgba(44, 44, 48, .88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .5);
  font: 600 12px var(--font); color: var(--label);
  transform: translate(-50%, calc(-100% - 8px));
  animation: bubble 1.4s var(--ease) forwards;
}
.bubble svg { width: 15px; height: 15px; color: var(--green); }
@keyframes bubble {
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 2px)) scale(.85); }
  14% { opacity: 1; transform: translate(-50%, calc(-100% - 8px)) scale(1); }
  78% { opacity: 1; transform: translate(-50%, calc(-100% - 8px)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-100% - 12px)) scale(.96); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 18px 11px 12px; border-radius: 16px;
  background: rgba(36, 36, 40, .86);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 20px 50px rgba(0, 0, 0, .55);
  color: var(--label); font-size: 13.5px; font-weight: 500;
  opacity: 0; transform: translate(-50%, 20px) scale(.96); pointer-events: none;
  transition: opacity .25s var(--ease), transform .4s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast .t-icon { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.toast .t-icon svg { width: 14px; height: 14px; }
.toast.err .t-icon { background: var(--red); }
.toast.info .t-icon { background: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; padding: 18px 16px 48px; gap: 16px; }
  .col { gap: 16px; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px; }
  .rpc { order: 3; flex-basis: 100%; max-width: none; }
  #lock-btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .active { padding: 16px; gap: 16px; }
  .active-stats { gap: 18px; }
  #active-open { width: 100%; }
  .card { padding: 18px; border-radius: 20px; }
  .amt { width: 94px; }
  .slot { gap: 8px; }
  .slot + .slot::before { left: 12px; }
  .card-head { flex-wrap: wrap; }
  .auto { flex-wrap: wrap; }
  .auto-text { flex-basis: calc(100% - 60px); }
  .auto-inputs { order: 3; }
  .stats { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.toast .t-icon .spinner { width: 12px; height: 12px; border-width: 2px; color: #fff; }
.icon-btn.copied { color: var(--green); background: var(--green-soft); }
/* `font` shorthand resets ligatures — keep "//" in URLs and keys literal */
.rpc input, .key-input, .addr { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* ---------- Wallet header controls: equal heights ---------- */
.apply-all .suffix.sm input { height: 34px; padding-top: 0; padding-bottom: 0; }
.apply-all .btn { height: 34px; padding: 0 14px; border-radius: 9px; }

/* ---------- Amount presets ---------- */
.presets { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 2px 0; }
.presets-label { font-size: 12.5px; font-weight: 500; color: var(--label-2); }
.preset-list { flex: 1; min-width: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.preset-empty { font-size: 12.5px; color: var(--label-3); }
.preset {
  display: inline-flex; align-items: center; height: 30px;
  border-radius: 99px; background: var(--fill-1);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
  animation: rowIn .35s var(--spring);
}
.preset:hover { background: var(--fill-2); }
.preset.on { background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .45); }
.preset-load {
  height: 100%; padding: 0 4px 0 13px;
  background: none; border: 0; border-radius: 99px 0 0 99px;
  color: var(--label); font: 500 12.5px var(--font); cursor: pointer;
  transition: color .2s, transform .15s var(--ease);
}
.preset-load:active { transform: scale(.95); }
.preset-load:focus-visible { outline: none; box-shadow: var(--ring); }
.preset.on .preset-load { color: var(--blue-hi); }
.preset-del {
  width: 22px; height: 22px; margin-right: 4px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--label-3); cursor: pointer;
  transition: background .2s, color .2s;
}
.preset-del:hover { background: var(--red-soft); color: var(--red); }
.preset-new { display: flex; align-items: center; gap: 6px; }
.preset-new input { width: 120px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; }
.preset-new .btn { height: 30px; padding: 0 12px; border-radius: 99px; }
.preset-new .btn svg { fill: none; }
/* Edge's built-in "reveal password" eye would push the dots off centre */
#gate-pw::-ms-reveal, #gate-pw::-ms-clear { display: none; }

/* ---------- SOL balances ---------- */
.slot .bal { border-radius: 5px; padding: 0 4px; margin-left: -4px; display: inline-flex; align-items: center; gap: 5px; color: var(--label-2); font-weight: 500; }
.slot .bal::before, .sol-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #9945ff, #14f195);
  box-shadow: 0 0 6px rgba(20, 241, 149, .35);
}
.sol-tag { display: inline-flex; align-items: center; gap: 5px; }
.sol-tag b { color: var(--label); }
#wallets-total { color: var(--label-2); font-weight: 500; }
.refresh-btn svg { transition: transform .3s var(--ease); }
.refresh-btn:hover svg { transform: rotate(45deg); }
.refresh-btn.spinning { color: var(--blue-hi); pointer-events: none; }
.refresh-btn.spinning svg { animation: spin .7s linear infinite; }
.p-head-right { display: flex; align-items: center; gap: 6px; }
.p-sub { flex-wrap: wrap; row-gap: 4px; }

/* ---------- Transfer SOL sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s var(--ease); }
.sheet {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(24, 24, 27, .92);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px; padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 100px -20px rgba(0, 0, 0, .85);
  animation: sheetIn .4s var(--spring);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.sheet.busy .sheet-body, .sheet.busy .seg { opacity: .55; pointer-events: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h3 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.022em; }
.sheet-body { overflow-y: auto; display: flex; flex-direction: column; gap: 16px; margin: 0 -4px; padding: 0 4px; transition: opacity .2s; }

.seg { display: flex; background: var(--fill-1); border-radius: 11px; padding: 3px; }
.seg button {
  flex: 1; height: 32px; border: 0; border-radius: 9px; background: none;
  color: var(--label-2); font: 600 13px var(--font); cursor: pointer;
  transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.seg button:hover { color: var(--label); }
.seg button.on { background: rgba(120, 120, 128, .4); color: var(--label); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }

.x-section { display: flex; flex-direction: column; gap: 8px; }
.x-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 500; color: var(--label-2); padding: 0 2px; }
.x-label .link-inline { color: var(--blue-hi); }
.x-list { background: var(--fill-0); border-radius: 14px; overflow: hidden; }
.x-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; position: relative; cursor: pointer; transition: background .2s; }
.x-row + .x-row::before, .x-custom::before { content: ""; position: absolute; top: 0; left: 12px; right: 0; height: 1px; background: var(--sep); }
.x-row:hover { background: rgba(255, 255, 255, .025); }
.x-row input[type="radio"], .x-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.x-addr { font: 500 12.5px var(--mono); letter-spacing: 0; }
.x-other { font-size: 13.5px; font-weight: 500; }
.x-bal { margin-left: auto; font-size: 12.5px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.x-send { min-width: 92px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--blue-hi); font-variant-numeric: tabular-nums; }
.x-send.dim { color: var(--label-3); font-weight: 500; }
.x-need { font-size: 11.5px; color: var(--orange); white-space: nowrap; }
.x-row .suffix.sm { width: 104px; }
.x-custom { position: relative; padding: 8px 12px 10px; }
.x-custom input { font: 12.5px var(--mono); letter-spacing: 0; }
.x-empty { padding: 14px; font-size: 13px; color: var(--label-3); text-align: center; }
.x-keep { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; font-size: 13px; color: var(--label-2); }
.x-keep .suffix.sm { width: 104px; }

.sheet-foot { display: flex; flex-direction: column; gap: 10px; }
.xfer-summary { margin: 0; min-height: 18px; font-size: 13px; color: var(--label-2); text-align: center; font-variant-numeric: tabular-nums; }
.xfer-summary.warn { color: var(--orange); }

@media (max-width: 520px) {
  .modal { place-items: end center; padding: 0; }
  .sheet { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .x-row { flex-wrap: wrap; }
}

/* ---------- Token address / vanity ---------- */
.mint-box { background: var(--fill-0); border-radius: 13px; padding: 10px 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.mint-row { display: flex; align-items: center; gap: 8px; }
.mint-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mint-label { font-size: 12px; color: var(--label-2); }
.mint-addr { font-size: 13px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mint-addr .addr { font-size: 13px; }
.mint-addr.vanity .addr { color: var(--label); }
.mint-addr.vanity b { color: var(--cyan); font-weight: 600; }
.vanity-progress { display: flex; flex-direction: column; gap: 7px; padding-right: 4px; animation: rowIn .3s var(--ease); }
.vp-bar { height: 5px; border-radius: 99px; background: var(--fill-1); overflow: hidden; }
.vp-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px rgba(100, 210, 255, .5); transition: width .25s linear; }
.vp-text { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.vp-text .link-inline { color: var(--red); }

/* ---------- Creator fee split ---------- */
.fees { background: var(--fill-0); border-radius: 14px; padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fees-head { display: flex; align-items: center; gap: 12px; }
.fees-body { display: flex; flex-direction: column; gap: 8px; animation: rowIn .3s var(--ease); }
.fees-rows { display: flex; flex-direction: column; gap: 6px; }
.fee-row { display: flex; align-items: center; gap: 6px; }
.fee-row > input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 9px; font: 12px var(--mono); letter-spacing: 0; background: var(--fill-1); }
.fee-row .suffix.sm { width: 78px; }
.fees-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fees-quick { display: flex; gap: 5px; flex-wrap: wrap; }
.chip-btn {
  height: 26px; padding: 0 10px; border: 0; border-radius: 99px;
  background: var(--fill-1); color: var(--label-2); font: 500 12px var(--font); cursor: pointer;
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.chip-btn:hover { background: var(--fill-2); color: var(--label); }
.chip-btn:active { transform: scale(.95); }
.fees-total { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fees-total.warn { color: var(--orange); }
.log .link-inline { color: var(--blue-hi); }
