/* Pons Vamp — art direction lifted from ponsfamily.com (tokens read from their
   stylesheet: colours, radii, fonts, field and button treatments). */

:root {
  --bg-page: #f4f4f4;
  --bg-white: #fff;
  --bg-elevated: #fff;
  --panel: #ececec;
  --text-primary: #111;
  --text-muted: rgba(17, 17, 17, .55);
  --text-subtle: rgba(17, 17, 17, .4);
  --divider: rgba(17, 17, 17, .1);
  --accent: #d4fc50;
  --accent-hover: #c4ef3c;
  --accent-soft: #f3ffd4;
  --accent-mid: #e5f99a;
  --accent-contrast: #111;
  --success: #34c759;
  --danger: #ff3b30;
  --field-bg: rgba(17, 17, 17, .035);
  --field-border: rgba(17, 17, 17, .11);
  --field-focus-border: rgba(212, 252, 80, .95);
  --field-focus-glow: 0 0 0 3px rgba(212, 252, 80, .16);
  --btn-glow: 0 8px 24px rgba(212, 252, 80, .35);
  --float-bg: rgba(255, 255, 255, .72);
  --float-border: rgba(255, 255, 255, .8);
  --float-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06), 0 24px 48px rgba(17, 17, 17, .04);
  --shadow-soft: 0 4px 24px rgba(17, 17, 17, .05);
  --shadow-card: 0 2px 12px rgba(17, 17, 17, .04);
  --radius-float: 28px;
  --radius-card: 24px;
  --radius-panel: 20px;
  --radius-field: 13px;
  --radius-pill: 999px;
  --font-sans: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --max-width: 1080px;
  --nav-height: 64px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --duration-fast: .18s;
  --duration-normal: .28s;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg-page: #0d0d0d;
  --bg-white: #161616;
  --bg-elevated: #1c1c1c;
  --panel: #1f1f1f;
  --text-primary: #f2f2f2;
  --text-muted: rgba(242, 242, 242, .58);
  --text-subtle: rgba(242, 242, 242, .4);
  --divider: rgba(242, 242, 242, .12);
  --accent: #d4fc50;
  --accent-hover: #e2ff66;
  --accent-soft: #1c2610;
  --accent-mid: #2a3a14;
  --accent-contrast: #111;
  --success: #30d158;
  --danger: #ff453a;
  --field-bg: rgba(255, 255, 255, .035);
  --field-border: rgba(255, 255, 255, .11);
  --field-focus-glow: 0 0 0 3px rgba(212, 252, 80, .16);
  --btn-glow: 0 8px 24px rgba(212, 252, 80, .28);
  --float-bg: rgba(22, 22, 22, .82);
  --float-border: rgba(255, 255, 255, .08);
  --float-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35), 0 24px 48px rgba(0, 0, 0, .28);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, .35);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 14px 16px 0;
}
.nav-pill {
  width: 100%; max-width: var(--max-width);
  height: 52px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 10px 0 12px;
  background: var(--float-bg);
  border: 1px solid var(--float-border);
  border-radius: var(--radius-float);
  box-shadow: var(--float-shadow);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.hero-logo { display: block; margin: 0 auto 10px; width: 132px; height: 132px; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35)); }
html:not([data-theme="dark"]) .hero-logo { filter: drop-shadow(0 14px 28px rgba(17, 17, 17, .18)); }
.brand-name { font-weight: 500; letter-spacing: -.01em; font-size: 15px; }
.tabs { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--field-bg); }
.tab {
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--text-muted);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.tab:hover { text-decoration: none; color: var(--text-primary); }
.tab.active { color: var(--text-primary); background: var(--bg-elevated); box-shadow: var(--shadow-card); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--field-bg); border: 1px solid var(--field-border);
  cursor: pointer; color: var(--text-primary);
  transition: background var(--duration-fast);
}
.icon-btn:hover { background: var(--panel); text-decoration: none; }
html[data-theme="dark"] .ico-moon { display: none; }
html:not([data-theme="dark"]) .ico-sun { display: none; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--field-bg); border: 1px solid var(--field-border);
  font-size: 13px; cursor: pointer;
}
.chip-btn .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background var(--duration-fast), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast), opacity var(--duration-fast);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--btn-glow); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { background: var(--bg-white); border-color: var(--divider); color: var(--text-primary); }
.btn.ghost:hover:not(:disabled) { background: var(--panel); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.lg { padding: 15px 26px; font-size: 17px; border-radius: 20px; }

/* ---------- page ---------- */
.page { flex: 1; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 40px 16px 60px; }

/* hero */
.hero { max-width: 720px; margin: 8vh auto 0; text-align: center; }
.hero-title { font-size: clamp(40px, 7vw, 68px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 16px; }
.hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
html:not([data-theme="dark"]) .hero-title em { color: #6f9f18; }
.hero-sub { font-size: 16.5px; color: var(--text-muted); margin: 0 auto 28px; max-width: 560px; }
.ca-form { display: flex; gap: 8px; align-items: stretch; max-width: 620px; margin: 0 auto; }
.ca-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 52px;
  background: var(--bg-white); border: 1px solid var(--field-border);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-card);
  color: var(--text-muted);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.ca-field:focus-within { border-color: var(--field-focus-border); box-shadow: var(--field-focus-glow); }
.ca-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--text-primary); }
.ca-field input::placeholder { color: var(--text-subtle); }
.hero-hint { margin: 16px auto 0; max-width: 520px; }
.form-err { color: var(--danger); font-size: 13.5px; margin: 12px 0 0; }
.form-err a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.notice {
  margin: 18px auto 0; max-width: 620px; padding: 10px 14px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-mid); color: var(--text-primary);
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.notice button { background: none; border: 0; cursor: pointer; color: var(--text-muted); padding: 2px 6px; }

/* vamp layout */
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.source-strip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.src-img, .src-fallback { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--panel); flex: none; }
.src-fallback { display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: var(--text-muted); }
.src-name { font-weight: 500; letter-spacing: -.01em; }
.src-ticker { color: var(--text-muted); }
.src-meta .dot { margin: 0 6px; }
.src-meta a { color: var(--text-primary); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
/* One column: the preview goes first and stops being sticky, otherwise it
   would pin over the form while scrolling. */
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } .preview-col { order: -1; position: static; } }

.card {
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.card-title { font-size: 26px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 22px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; letter-spacing: .01em; }
.field input[type="text"], .field textarea, .ex-add input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--field-bg); border: 1px solid var(--field-border);
  border-radius: var(--radius-field); color: var(--text-primary);
  font: inherit; font-size: 14px; outline: 0;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 88px; line-height: 1.45; }
.field input:focus, .field textarea:focus, .ex-add input:focus { border-color: var(--field-focus-border); box-shadow: var(--field-focus-glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
/* Inputs living inside an amount box: the box carries the frame, not the input. */
.field .amount-box input[type="text"] { height: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
/* The launch in flight: nothing in the form moves until it is over. */
.vamp.is-busy .form-card :is(input, textarea, button:not(#launchBtn)), .vamp.is-busy #backBtn { pointer-events: none; opacity: .55; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; gap: 0; } }

.image-row { display: flex; gap: 14px; align-items: stretch; }
.image-box {
  width: 88px; height: 88px; flex: none;
  border-radius: 16px; background: var(--field-bg); border: 1px solid var(--field-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--text-subtle);
}
.image-box img { width: 100%; height: 100%; object-fit: cover; }
.image-side { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.image-side p { margin: 0; }

.more { margin: 4px 0 18px; }
.more > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-size: 14px; padding: 12px 0; border-top: 1px solid var(--divider); color: var(--text-primary);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); transition: transform var(--duration-fast);
}
.more[open] > summary::after { transform: rotate(-135deg); }
.more .grid2 { margin-top: 6px; }

.pair-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pair-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px;
  background: var(--field-bg); border: 1px solid var(--field-border); color: var(--text-primary); font-size: 14px;
}
.pair-pill.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pair-pill:disabled { cursor: default; opacity: 1; }

.amount-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-field);
  background: var(--field-bg); border: 1px solid var(--field-border);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.amount-box:focus-within { border-color: var(--field-focus-border); box-shadow: var(--field-focus-glow); }
.amount-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; font-size: 24px; color: var(--text-primary); }
.amount-box.slim input { font-size: 15px; }
.amount-box input::placeholder { color: var(--text-subtle); }
.amount-unit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }

.ex-add { display: flex; gap: 8px; margin-top: 6px; }
.ex-add input { flex: 1; }
.ex-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ex-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px; background: var(--field-bg); border: 1px solid var(--field-border);
  font-size: 13px;
}
.ex-list .ex-addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ex-list button { background: none; border: 0; cursor: pointer; color: var(--text-muted); padding: 2px 6px; border-radius: 6px; }
.ex-list button:hover { color: var(--danger); background: var(--panel); }

.due {
  margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.due-text { font-size: 15px; }
.stages { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.stages li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.stages li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--divider); flex: none; }
.stages li.active { color: var(--text-primary); }
.stages li.active::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stages li.done { color: var(--text-primary); }
.stages li.done::before { background: var(--success); }
.stages li a { color: var(--text-primary); }

/* preview */
.preview-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.preview-card { padding: 22px; }
.pv-img {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: var(--field-bg); border: 1px solid var(--field-border);
  display: flex; align-items: center; justify-content: center; color: var(--text-subtle);
  margin-bottom: 14px;
}
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-name { font-size: 22px; font-weight: 500; letter-spacing: -.02em; word-break: break-word; }
.pv-ticker { font-size: 14px; }
.pv-desc { margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-rows { margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.pv-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 13.5px; }
.pv-rows dt { color: var(--text-muted); margin: 0; }
.pv-rows dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; text-align: right; }

.source-card { padding: 18px 20px; }
.source-card .label { display: block; margin-bottom: 8px; }
.src-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.src-row + .src-row { border-top: 1px solid var(--divider); }
.src-row a { color: var(--text-primary); }
.src-row .mono { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* result */
.result { max-width: 560px; margin: 6vh auto 0; }
.result-card { text-align: center; padding: 34px 28px; }
.result-img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 14px; background: var(--field-bg); border: 1px solid var(--field-border); overflow: hidden; }
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-title { font-size: 34px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 6px; }
.result-rows { text-align: left; margin: 22px 0; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- launched + dashboard ---------- */
.view { max-width: var(--max-width); margin: 0 auto; }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.view-title { font-size: 28px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 4px; }
.view-sub { margin: 0; max-width: 560px; }
.view-actions { display: flex; justify-content: center; margin-top: 18px; }
.chips { display: flex; gap: 4px; padding: 3px; border-radius: var(--radius-pill); background: var(--field-bg); border: 1px solid var(--field-border); }
.chip { padding: 7px 14px; border-radius: var(--radius-pill); border: 0; background: none; color: var(--text-muted); font-size: 13.5px; cursor: pointer; }
.chip.active { background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow-card); }

/* recently launched, under the address field */
.recent { max-width: 720px; margin: 38px auto 0; text-align: left; }
.recent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.recent-head .label { flex: 1; }
.recent-all { color: var(--text-muted); }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border-radius: 16px;
  background: var(--bg-white); border: 1px solid var(--divider); box-shadow: var(--shadow-card);
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: background var(--duration-fast), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
}
.mini:hover { background: var(--bg-elevated); transform: translateY(-1px); }
.mini.new { animation: card-in .55s var(--ease-out); box-shadow: 0 0 0 1px var(--accent), var(--shadow-card); }
.mini.settled { box-shadow: var(--shadow-card); transition: box-shadow 1.2s ease; }
.mini-img, .mini-fallback { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--panel); flex: none; }
.mini-fallback { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mini-text { min-width: 0; }
.mini-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.view-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); padding: 6px 10px; border-radius: var(--radius-pill); background: var(--field-bg); border: 1px solid var(--field-border); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212, 252, 80, .6); animation: pulse 1.6s ease-out infinite; }
.live.down .live-dot { background: var(--danger); animation: none; }
.live.polling .live-dot { animation-duration: 3s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 252, 80, .55); } 70% { box-shadow: 0 0 0 8px rgba(212, 252, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 252, 80, 0); } }
.live-new-wrap { position: sticky; top: 76px; z-index: 5; display: flex; justify-content: center; height: 0; }
.live-new { box-shadow: var(--float-shadow), var(--btn-glow); transform: translateY(-4px); }
.launch-card.new { animation: card-in .55s var(--ease-out); box-shadow: 0 0 0 1px var(--accent), var(--shadow-card); }
.launch-card.settled { box-shadow: var(--shadow-card); transition: box-shadow 1.2s ease; }
@keyframes card-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.launch-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius-panel); }
.lc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lc-img, .lc-fallback { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--panel); flex: none; }
.lc-fallback { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-muted); }
.lc-title { min-width: 0; }
.lc-name { font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-meta { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 500; background: var(--accent-soft); color: var(--text-primary); border: 1px solid var(--accent-mid); }
.badge.grad { background: var(--field-bg); border-color: var(--field-border); color: var(--text-muted); }
.progress { height: 6px; border-radius: 6px; background: var(--field-bg); border: 1px solid var(--field-border); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.lc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.lc-row b { color: var(--text-primary); font-weight: 500; }
.lc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.lc-actions .btn { padding: 8px 14px; font-size: 13.5px; }
.lc-actions a.link { font-size: 13px; color: var(--text-muted); align-self: center; margin-left: auto; }

.dash-connect { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-connect p { margin: 0; max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat-val { font-size: 30px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-val .unit { font-size: 15px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.stat .btn { align-self: flex-start; margin-top: 8px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin: 6px 0 12px; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--accent); }

/* footer */
.foot { max-width: var(--max-width); margin: 0 auto; padding: 24px 16px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--text-primary); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: 100%; max-width: 380px;
  background: var(--bg-white); border: 1px solid var(--divider); border-radius: var(--radius-card);
  box-shadow: var(--float-shadow); padding: 20px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.wallet-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wallet-list button, .wallet-list a {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--field-bg); border: 1px solid var(--field-border); cursor: pointer;
  font-size: 14.5px; text-align: left; color: var(--text-primary);
  transition: background var(--duration-fast);
}
.wallet-list button:hover, .wallet-list a:hover { background: var(--panel); text-decoration: none; }
.wallet-list img, .wallet-list .w-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--panel); flex: none; }
.wallet-list .w-ico { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.wallet-list .w-install { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.wallet-list .w-state { margin-left: auto; font-size: 12px; color: var(--accent); }
html:not([data-theme="dark"]) .wallet-list .w-state { color: #6f9f18; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 60; max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 16px;
  background: var(--bg-elevated); border: 1px solid var(--divider); box-shadow: var(--float-shadow);
  font-size: 14px;
}
.toast.err { border-color: rgba(255, 69, 58, .45); }

/* loading spinner inside buttons */
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .nav-pill { gap: 6px; padding: 0 6px 0 8px; }
  .brand-name { display: none; }
  .tabs { padding: 2px; gap: 0; }
  .tab { padding: 6px 7px; font-size: 12.5px; }
  .nav-right { gap: 5px; }
  #themeBtn { display: none; }
  .icon-btn { width: 30px; height: 30px; }
  .btn.sm { padding: 7px 11px; font-size: 13px; }
  .chip-btn { padding: 6px 9px; font-size: 12px; }
  .page { padding: 28px 12px 48px; }
  .hero { margin-top: 4vh; }
  .ca-form { flex-direction: column; }
  .card { padding: 20px 16px; }
  .card-title { font-size: 22px; }
  .due { flex-direction: column; align-items: stretch; }
  .due .btn { width: 100%; }
}
