:root {
  --bg: #070d15;
  --glass: rgba(255,255,255,0.05);
  --glass-inner: rgba(255,255,255,0.04);
  --border: rgba(119,168,206,0.22);
  --accent: #6ad8ff;
  --accent-2: #ff8f5c;
  --text: #eef6ff;
  --muted: #9cb2cf;
  --success: #6df4c2;
  --warning: #ffc26a;
  --danger: #ff7fa0;
  --shadow: 0 24px 70px rgba(5,11,19,0.65);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: 0 0 60px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(106,216,255,.18), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(255,143,92,.18),  transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  isolation: isolate; opacity: .28;
}
.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  left: 50%; top: 48%;
  width: 112vmax; height: 112vmax;
  border-radius: 50%;
  transform-origin: 50% 50%;
}
.bg-glow::before {
  background:
    radial-gradient(ellipse at 30% 31%, rgba(106,216,255,.30) 0%, rgba(106,216,255,.16) 15%, transparent 38%),
    radial-gradient(ellipse at 70% 69%, rgba(255,143,92,.27) 0%, rgba(255,143,92,.14) 15%, transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(104,146,190,.10), transparent 51%);
  filter: blur(72px) saturate(112%);
  animation:
    forge-yin-yang-orbit 48s cubic-bezier(.45,.05,.55,.95) infinite,
    forge-yin-yang-breathe 11s ease-in-out infinite;
}
.bg-glow::after {
  width: 92vmax; height: 92vmax;
  background:
    conic-gradient(from 35deg,
      transparent 0deg,
      rgba(106,216,255,.12) 52deg,
      transparent 126deg,
      rgba(255,143,92,.11) 212deg,
      transparent 306deg),
    radial-gradient(ellipse at 66% 35%, rgba(106,216,255,.15), transparent 30%),
    radial-gradient(ellipse at 34% 65%, rgba(255,143,92,.14), transparent 30%);
  filter: blur(88px) saturate(118%);
  mix-blend-mode: screen;
  animation:
    forge-yin-yang-counter-orbit 66s ease-in-out infinite,
    forge-yin-yang-breathe-secondary 15s ease-in-out infinite;
}

@keyframes forge-yin-yang-orbit {
  0%   { transform: translate(-54%, -52%) rotate(0deg) scale(1); }
  25%  { transform: translate(-49%, -56%) rotate(88deg) scale(1.06); }
  50%  { transform: translate(-45%, -49%) rotate(180deg) scale(.98); }
  75%  { transform: translate(-51%, -44%) rotate(271deg) scale(1.05); }
  100% { transform: translate(-54%, -52%) rotate(360deg) scale(1); }
}
@keyframes forge-yin-yang-counter-orbit {
  0%   { transform: translate(-47%, -49%) rotate(360deg) scale(1.04); }
  33%  { transform: translate(-54%, -45%) rotate(238deg) scale(.96); }
  66%  { transform: translate(-50%, -55%) rotate(118deg) scale(1.08); }
  100% { transform: translate(-47%, -49%) rotate(0deg) scale(1.04); }
}
@keyframes forge-yin-yang-breathe {
  0%, 100% { opacity: .66; }
  48%      { opacity: 1; }
  72%      { opacity: .78; }
}
@keyframes forge-yin-yang-breathe-secondary {
  0%, 100% { opacity: .42; }
  38%      { opacity: .72; }
  68%      { opacity: .52; }
}
main, header, footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .bg-glow::before,
  .bg-glow::after {
    animation: none;
  }
  .bg-glow::before { transform: translate(-50%, -50%); opacity: .78; }
  .bg-glow::after  { transform: translate(-50%, -50%); opacity: .48; }
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,13,21,.85);
  backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand h1 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.brand-logo {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(106,216,255,.42);
  box-shadow: 0 0 20px rgba(106,216,255,.18), 0 0 13px rgba(255,143,92,.12);
}
.eyebrow { margin: 0; font-size: 0.65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.nav-links {
  display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-tab {
  color: var(--muted); text-decoration: none; padding: 0.38rem 0.58rem; flex: 0 0 auto;
  border-radius: 8px; font-size: 0.82rem; font-weight: 500; transition: .15s;
}
.nav-tab:hover, .nav-tab.active {
  color: var(--text); background: var(--glass);
}
.nav-tab.active { color: var(--accent); }
.hpflr-nav-tab { display: inline-flex; align-items: center; gap: .38rem; }
.hpflr-nav-tab::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px;
  border-radius: 50%; background: url("assets/forge-hpflr-logo.png") center / cover no-repeat;
  box-shadow: 0 0 9px rgba(106,216,255,.2);
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* ── Pills / Buttons ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--accent); color: var(--accent);
  background: rgba(106,216,255,.08); cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.pill:hover { background: rgba(106,216,255,.18); }
.pill.subtle { border-color: var(--border); color: var(--muted); background: rgba(255,255,255,.04); }
.pill.ghost  { border-color: var(--border); color: var(--text);  background: transparent; }
.pill.ghost:hover { background: var(--glass); }
.pill.primary { background: var(--accent); color: #04080f; border-color: var(--accent); }
.pill.primary:hover { opacity: .88; }
.pill.full-w { width: 100%; justify-content: flex-start; }

.action {
  width: 100%; padding: .72rem 1.2rem; border-radius: 12px; font-size: 1rem; font-weight: 600;
  background: var(--accent); color: #04080f; border: none; cursor: pointer; transition: .15s;
  margin-top: .4rem;
}
.action:hover { opacity: .88; }
.action.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); margin-top: .4rem;
}
.action.ghost:hover { background: rgba(106,216,255,.1); }

/* ── Glass cards ─────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.5rem;
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.glass-inner {
  background: var(--glass-inner); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem; margin-bottom: .75rem;
}
.responsibility-notice {
  padding: .9rem 1rem; border: 1px solid rgba(255,143,92,.42);
  border-radius: 12px; color: var(--muted); background: rgba(255,143,92,.08);
  font-size: .84rem; line-height: 1.55;
}
.responsibility-notice strong { color: var(--accent-2); }
.responsibility-notice > p { margin: .55rem 0 0; }
.privacy-coverage-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem; margin-top: .75rem;
}
.privacy-coverage-grid > div {
  padding: .72rem .78rem; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; background: rgba(9,15,28,.34);
}
.privacy-coverage-grid span {
  display: block; color: var(--text); font-weight: 700; margin-bottom: .25rem;
}
.privacy-coverage-grid p { margin: 0; }
.privacy-accounting-note {
  margin: .65rem .2rem 0; color: var(--muted); font-size: .8rem; line-height: 1.5;
}
.privacy-purpose-notice {
  display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 1.2rem;
  margin: 1.2rem 0; padding: 1.15rem 1.25rem; border: 1px solid rgba(255,194,106,.52);
  border-radius: 14px; background: linear-gradient(135deg, rgba(255,194,106,.12), rgba(255,143,92,.06));
  box-shadow: inset 3px 0 0 rgba(255,194,106,.72);
}
.privacy-purpose-notice h3 { margin: .2rem 0 0; color: var(--warning); font-size: 1.08rem; }
.privacy-purpose-notice p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.privacy-purpose-notice p + p { margin-top: .6rem; }
.privacy-purpose-notice strong { color: var(--text); }
.privacy-deposit-purpose {
  margin: 0 0 1rem; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid rgba(255,194,106,.3); background: rgba(255,194,106,.07);
  color: var(--muted); font-size: .78rem; line-height: 1.5;
}
.privacy-deposit-purpose strong { color: var(--warning); }
.privacy-submitter-notice { margin-bottom: 1rem; }
.privacy-submitter-notice strong { color: var(--accent); }
.privacy-submitter-notice p { margin: .45rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
#privacySubmitterRole { color: var(--text); }
.privacy-home-flow {
  display: grid; grid-template-columns: 1fr; gap: .38rem;
  margin: .95rem 0; padding: .65rem; border: 1px solid rgba(255,143,92,.22);
  border-radius: 12px; background: rgba(255,143,92,.05);
}
.privacy-home-flow > span {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  padding: .42rem .5rem; border-radius: 8px; background: rgba(7,13,21,.42);
}
.privacy-home-flow strong { color: var(--text); font-size: .75rem; }
.privacy-home-flow small { color: var(--muted); font-size: .66rem; text-align: right; }
.privacy-home-flow .privacy-home-link { border: 1px solid rgba(106,216,255,.2); }
.privacy-home-flow .privacy-home-link strong { color: var(--accent); }

.privacy-explainer {
  margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.privacy-explainer-heading {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.2rem;
}
.privacy-explainer-heading h3 { margin: .2rem 0 0; font-size: 1.45rem; }
.privacy-explainer-heading > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.55; font-size: .88rem; }
.privacy-flow-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem;
}
.privacy-flow-grid article {
  position: relative; min-width: 0; padding: 1.05rem; border: 1px solid var(--border);
  border-radius: 14px; background: linear-gradient(145deg, rgba(106,216,255,.06), rgba(255,255,255,.025));
}
.privacy-flow-grid article:not(:last-child)::after {
  content: "→"; position: absolute; right: -.72rem; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--bg); color: var(--accent);
  font-size: .7rem;
}
.privacy-flow-grid span { color: var(--accent-2); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.privacy-flow-grid h4 { margin: .75rem 0 .38rem; font-size: .9rem; }
.privacy-flow-grid p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.privacy-visibility-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem;
}
.privacy-model-card { position: relative; overflow: hidden; }
.privacy-model-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }
.privacy-hidden-card::before { background: var(--success); }
.privacy-public-card::before { background: var(--accent-2); }
.privacy-model-card .eyebrow { margin: 0; }
.privacy-model-card h3 { margin: .55rem 0 .8rem; font-size: 1.05rem; }
.privacy-model-card ul { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .82rem; line-height: 1.58; }
.privacy-model-card li + li { margin-top: .35rem; }
.privacy-card-foot { margin: .9rem 0 0; padding-top: .75rem; border-top: 1px solid var(--border); color: var(--text); font-size: .76rem; line-height: 1.5; }
.privacy-role-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem;
}
.privacy-role-grid article { padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--glass-inner); }
.privacy-role-grid h4 { margin: 0 0 .35rem; color: var(--accent); font-size: .83rem; }
.privacy-role-grid p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.privacy-guidance-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start;
}
.privacy-guidance-grid details { min-width: 0; padding: 1.1rem; }
.privacy-guidance-grid summary { cursor: pointer; color: var(--text); font-size: .87rem; font-weight: 700; }
.privacy-guidance-grid summary::marker { color: var(--accent); }
.privacy-guidance-grid details[open] summary { color: var(--accent); margin-bottom: .8rem; }
.privacy-detail-body { color: var(--muted); font-size: .77rem; line-height: 1.55; }
.privacy-detail-body ul { margin: 0; padding-left: 1.1rem; }
.privacy-detail-body li + li { margin-top: .4rem; }
.privacy-detail-body p { margin: 0; }
.privacy-detail-body p + p { margin-top: .7rem; }
.privacy-detail-body strong { color: var(--text); }
.incentive-program-info { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.responsibility-ack { margin-top: .3rem; line-height: 1.45; }

/* ── Sections / Tabs ─────────────────────────────────────────────────────── */
.tab-section { display: none; padding: 2rem 28px; max-width: 1280px; margin: 0 auto; }
.tab-section.active { display: block; }

.section-hero { margin-bottom: 1.8rem; }
.section-hero h2 { margin: 0 0 .3rem; font-size: 1.8rem; }
.lead { color: var(--muted); margin: 0; font-size: 0.97rem; }
.privacy-scope-badge { margin-top: .7rem; }
.privacy-contract-identity { margin: .65rem 0 0; }
.privacy-contract-identity a { color: var(--accent); }
.branded-section-hero { display: flex; align-items: center; gap: 1rem; }
.section-brand-logo {
  width: 68px; height: 68px; flex: 0 0 68px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(106,216,255,.38);
  box-shadow: 0 0 30px rgba(106,216,255,.16), 0 0 22px rgba(255,143,92,.1);
}
.identity-label { display: flex; align-items: center; gap: .42rem; }
.inline-token-logo, .list-token-logo {
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(106,216,255,.32);
}
.list-token-logo { width: 22px; height: 22px; flex-basis: 22px; }
.pool-identity { display: inline-flex; align-items: center; gap: .4rem; }
.token-logo-stack { display: inline-flex; align-items: center; padding-right: .2rem; }
.token-logo-stack .list-token-logo + .list-token-logo { margin-left: -7px; }

/* ── Grid layouts ────────────────────────────────────────────────────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.two-col-grid .wide { grid-column: 1 / -1; }

.metric-grid.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card-center { max-width: 480px; margin: 0 auto; }

/* ── Formal landing page ─────────────────────────────────────────────────── */
.landing-page { max-width: 1440px; min-width: 0; padding-top: 2.4rem; }
.landing-hero {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .65fr);
  gap: 2rem; align-items: end; padding: clamp(1.6rem, 4vw, 3.4rem);
  overflow: hidden; position: relative;
  background:
    linear-gradient(125deg, rgba(106,216,255,.1), transparent 45%),
    linear-gradient(300deg, rgba(255,143,92,.08), transparent 42%),
    var(--glass);
}
.landing-hero::after {
  content: ""; position: absolute; width: 330px; height: 330px; right: -115px; top: -160px;
  border: 1px solid rgba(106,216,255,.16); border-radius: 50%;
  box-shadow: 0 0 90px rgba(106,216,255,.09); pointer-events: none;
}
.landing-hero-copy { position: relative; z-index: 1; min-width: 0; }
.landing-hero h2 {
  max-width: 940px; margin: .55rem 0 1rem; font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.045em;
}
.landing-lead { max-width: 900px; margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.72; }
.landing-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.4rem; }
.landing-actions a { text-decoration: none; }
.landing-status { display: grid; gap: .65rem; position: relative; z-index: 1; }
.landing-status > div {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  background: rgba(7,13,21,.58); border: 1px solid var(--border); border-radius: 12px;
}
.landing-status p { display: grid; gap: .15rem; margin: 0; }
.landing-status strong { font-size: .84rem; }
.landing-status small { color: var(--muted); }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.status-dot.live { background: var(--success); box-shadow: 0 0 14px rgba(109,244,194,.6); }
.status-dot.staged { background: var(--warning); box-shadow: 0 0 14px rgba(255,194,106,.35); }
.landing-principles, .landing-platform { margin-top: 3.4rem; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.principle-grid article { margin: 0; min-height: 190px; }
.principle-grid span { color: var(--accent-2); font-size: .73rem; font-weight: 700; letter-spacing: .12em; }
.principle-grid h3 { margin: 1.4rem 0 .55rem; font-size: 1rem; }
.principle-grid p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.feature-card { min-width: 0; padding: 1.35rem; }
.feature-card.featured { border-color: rgba(106,216,255,.36); }
.feature-card.privacy-feature { border-color: rgba(255,143,92,.38); }
.feature-heading { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.feature-index { color: var(--accent-2); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.feature-card h3 { margin: 1.15rem 0 .55rem; font-size: 1.18rem; }
.feature-card > p { color: var(--muted); line-height: 1.6; min-height: 78px; }
.feature-summary { margin: 1rem 0 1.15rem; padding-left: 1.1rem; color: var(--muted); font-size: .8rem; line-height: 1.58; }
.feature-summary li + li { margin-top: .32rem; }
.feature-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); text-decoration: none; font-size: .85rem; font-weight: 700; }
.feature-link:hover { color: var(--text); }
.feature-link span { transition: transform .15s; }
.feature-link:hover span { transform: translateX(3px); }
.feature-card details { margin-top: 1.05rem; border-top: 1px solid var(--border); padding-top: .85rem; }
.feature-card summary { color: var(--text); cursor: pointer; font-size: .82rem; font-weight: 700; list-style-position: outside; margin-left: 1rem; }
.feature-card summary::marker { color: var(--accent); }
.feature-card details[open] summary { color: var(--accent); margin-bottom: .85rem; }
.feature-detail { color: var(--muted); font-size: .79rem; line-height: 1.62; }
.feature-detail h4 { color: var(--text); margin: .9rem 0 .25rem; font-size: .82rem; }
.feature-detail h4:first-child { margin-top: 0; }
.feature-detail p { margin: 0; }
/* ── Card header ─────────────────────────────────────────────────────────── */
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; flex-wrap: wrap; gap: .5rem;
}
.card-header h3 { margin: 0; font-size: 1.1rem; }
.card-header h4 { margin: 0; font-size: 1rem; }

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.input-group { margin-bottom: .9rem; }
.input-group label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; font-weight: 500; }

input:not([type]),
input[type="text"], input[type="number"], input[type="password"],
input[type="email"], input[type="url"], input[type="search"],
input[type="date"], input[type="datetime-local"], input[type="file"], textarea,
select {
  background: linear-gradient(125deg, rgba(106,216,255,.045), transparent), #0a1521;
  border: 1px solid rgba(132,175,210,.3);
  color: var(--text); border-radius: 13px; padding: .82rem 1rem;
  font-size: .95rem; font-family: inherit; line-height: 1.4;
  min-width: 0; min-height: 48px; width: 100%; color-scheme: dark;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
input:not([type]):focus, input[type]:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus, select:focus {
  border-color: var(--accent); outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(106,216,255,.14), inset 0 1px 3px rgba(0,0,0,.1);
}
select option { background: #0f1923; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.token-input { display: flex; gap: .5rem; }
.token-input input { flex: 1; min-width: 0; }
.token-input select { width: auto; flex-shrink: 0; padding: .6rem .7rem; }
.select-with-logo, .token-select-with-logo { position: relative; }
.token-select-with-logo { display: flex; flex: 0 0 auto; }
.select-with-logo .select-logo, .token-select-with-logo .select-logo {
  position: absolute; left: .72rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; z-index: 2; pointer-events: none;
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(106,216,255,.36);
}
.select-with-logo .select-logo:not([hidden]) + select { padding-left: 2.75rem; }
.token-select-with-logo .select-logo:not([hidden]) + select { padding-left: 2.55rem; }

/* Faceted glass selectors: native values, custom desktop option surfaces. */
select, select.pill, .token-input select {
  appearance: none;
  color-scheme: dark;
  min-height: 46px;
  padding-right: 2.8rem;
  border: 1px solid rgba(124, 190, 221, .3);
  border-radius: 13px;
  background-color: #101e2c;
  --select-surface: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236ad8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(120deg, rgba(106,216,255,.07), rgba(255,143,92,.025));
  background-image: var(--select-surface);
  background-position: right 1rem center, center;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(220,244,255,.06), 0 4px 14px rgba(0,0,0,.12);
  color: var(--text);
  font-weight: 550;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
select:hover, select.pill:hover { border-color: rgba(106,216,255,.65); background-color: #142739; }
select.pill.ghost:hover, select.pill.token:hover {
  background-image: var(--select-surface); background-color: #142739;
  background-position: right 1rem center, center; background-repeat: no-repeat;
}
select:focus-visible, select.forge-select-open {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106,216,255,.13), 0 8px 24px rgba(0,0,0,.22);
  outline: none;
}
select:disabled { opacity: .45; cursor: not-allowed; }
.token-input select { min-width: 108px; max-width: 100%; }
.forge-select-menu {
  position: fixed; z-index: 10000; padding: 7px;
  border: 1px solid rgba(137,199,231,.32); border-radius: 18px;
  background: linear-gradient(145deg, #192b3b, #0a131e);
  box-shadow: 0 22px 65px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.25), inset 0 1px rgba(218,245,255,.08);
  animation: forge-menu-reveal .16s ease-out;
  isolation: isolate;
}
.forge-select-heading {
  padding: 9px 12px 12px; color: #a7c1d8;
  font-size: .63rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.forge-select-options { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3c596f transparent; }
.forge-select-option {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 11px;
  border: 1px solid transparent; border-radius: 11px; margin: 2px 0;
  color: #dceaf5; cursor: pointer; transition: background .12s, border-color .12s;
}
.forge-select-option.is-active { background: rgba(106,216,255,.09); border-color: rgba(106,216,255,.21); }
.forge-select-option[aria-selected="true"] { background: linear-gradient(100deg, rgba(106,216,255,.13), rgba(106,216,255,.025)); color: #f0fbff; }
.forge-select-option[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.forge-select-mark { width: 32px; height: 32px; flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(145deg, rgba(106,216,255,.18), rgba(255,143,92,.12)); color: #bfefff; font-size: .65rem; font-weight: 700; }
.forge-select-mark.has-tokens { background: none; width: 42px; flex-basis: 42px; justify-content: flex-start; }
.forge-select-coin { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; background: #20364a; border: 2px solid #152330; overflow: hidden; }
.forge-select-coin + .forge-select-coin { margin-left: -12px; background: #41332e; }
.forge-select-coin img { width: 100%; height: 100%; object-fit: cover; }
.forge-select-label { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; font-weight: 550; line-height: 1.35; }
.forge-select-badge { font-size: .58rem; text-transform: uppercase; letter-spacing: .065em; color: #85e5c4; border: 1px solid rgba(109,244,194,.22); border-radius: 5px; padding: 4px 5px; }
.forge-select-badge[data-type="volatile"] { color: #ffc29f; border-color: rgba(255,143,92,.22); }
.forge-select-check { width: 14px; flex: 0 0 14px; color: var(--accent); opacity: 0; font-size: .85rem; }
.forge-select-option[aria-selected="true"] .forge-select-check { opacity: 1; }
@keyframes forge-menu-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  select, select.pill, .forge-select-option { transition: none; }
  .forge-select-menu { animation: none; }
}
@media (forced-colors: active) {
  select, select.pill { appearance: auto; background-image: none; }
  .forge-select-menu, .forge-select-option { background: Canvas; color: CanvasText; border-color: ButtonText; }
  .forge-select-option.is-active { outline: 2px solid Highlight; }
}
.vault-amount-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.vault-amount-heading label { margin: 0; }
.vault-max { min-width: 48px; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.vault-max:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vault-max:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vault-max:disabled { opacity: .5; cursor: wait; }
.vault-card .metric, .vault-card [id^="vault-lp-bal-"] { overflow-wrap: anywhere; }

.checkbox-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--muted); margin-bottom: .9rem; cursor: pointer;
}
.checkbox-label input { width: auto; cursor: pointer; }

.full-w { width: 100%; }

/* ── Metrics / stats ─────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .8rem; margin: .9rem 0;
}
.metric-card { padding: 1.2rem; border-radius: 14px; }
.metric-card h4 { margin: .4rem 0 .2rem; font-size: 1.15rem; color: var(--accent); }
.metric-card p { margin: 0; }
.hint { font-size: .8rem; color: var(--muted); margin: .2rem 0; }
.tiny { font-size: .72rem; color: var(--muted); }
.metric { font-size: 1rem; font-weight: 600; color: var(--accent); margin: 0; }

/* ── Swap card ───────────────────────────────────────────────────────────── */
.swap-card { padding: 1.5rem; }
.swap-flip-btn {
  display: block; margin: .3rem auto; background: none; border: 1px solid var(--border);
  color: var(--accent); border-radius: 50%; width: 36px; height: 36px;
  font-size: 1.1rem; cursor: pointer; transition: .15s; text-align: center;
  line-height: 32px;
}
.swap-flip-btn:hover { background: var(--glass); }
.swap-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin: .8rem 0; }
.swap-meta > div { text-align: center; background: var(--glass-inner); border-radius: 8px; padding: .5rem; }
.aggregator-toggle { margin: -.15rem 0 .8rem; }
.aggregator-route {
  margin: 0 0 .9rem; padding: .75rem .85rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--glass-inner);
}
.aggregator-route p { margin: .18rem 0 0; }
.aggregator-route.ready { border-color: rgba(109,244,194,.32); }
.aggregator-route.quote-only { border-color: rgba(255,194,106,.32); }
.aggregator-route.error { border-color: rgba(255,127,160,.32); }

/* ── Status banners ──────────────────────────────────────────────────────── */
.status-banner {
  display: none; margin-top: .8rem; padding: .65rem 1rem;
  border-radius: 10px; font-size: .85rem; font-weight: 500;
}
.status-explorer-link {
  color: inherit; font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px;
}
.status-explorer-link:hover { color: var(--accent); }
.status-banner.loading { background: rgba(106,216,255,.1); color: var(--accent); display: block; }
.status-banner.ok      { background: rgba(109,244,194,.1); color: var(--success); display: block; }
.status-banner.warning { background: rgba(255,194,106,.1); color: var(--warning); display: block; }
.status-banner.error   { background: rgba(255,127,160,.1); color: var(--danger);  display: block; }

/* ── Row / layout helpers ────────────────────────────────────────────────── */
.row   { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.gap  { gap: .6rem; flex-wrap: wrap; }
.row.tight { gap: .4rem; }

/* ── Locks list ──────────────────────────────────────────────────────────── */
.locks-list { max-height: 480px; overflow-y: auto; }
.lock-row { margin-bottom: .75rem; }
.lock-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }

/* ── Gauge vote list ─────────────────────────────────────────────────────── */
.gauge-vote-list { margin: .8rem 0; max-height: 360px; overflow-y: auto; }
.vote-header, .gauge-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: .5rem; align-items: center; padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.vote-weight-input { background: var(--glass-inner); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: .3rem .6rem; font-family: inherit; }
.vote-header { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ── Pool directory / positions ──────────────────────────────────────────── */
.positions-list { max-height: 360px; overflow-y: auto; }
.position-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.lst-position-row { justify-content: space-between; padding: .75rem 0; }
.lst-position-row > span:not(.pill) { min-width: 130px; }

/* ── LaunchPad ───────────────────────────────────────────────────────────── */
.launch-row { margin-bottom: .9rem; }
.progress-bar {
  background: rgba(255,255,255,.07); border-radius: 999px;
  height: 6px; overflow: hidden; margin: .5rem 0;
}
.progress-bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; min-width: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 28px; border-top: 1px solid var(--border);
  margin-top: 2rem; color: var(--muted);
}
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }

/* ── Earn tab ────────────────────────────────────────────────────────────── */
.earn-streams {
  padding: 1.4rem 1.6rem;
}
.earn-stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.earn-stream-item {
  display: flex; gap: .9rem; align-items: flex-start;
}
.earn-stream-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(106,216,255,.15); border: 1px solid var(--accent);
  color: var(--accent); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.earn-stream-num--orange {
  background: rgba(255,143,92,.15); border-color: var(--accent-2); color: var(--accent-2);
}
.earn-stream-num--muted {
  background: var(--glass); border-color: var(--border); color: var(--muted);
}
.earn-stream-title { margin: 0 0 .3rem; font-size: .95rem; }

.earn-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem;
}
.earn-section-header h3 { margin: 0; font-size: 1.1rem; }

.gauge-stake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gauge-stake-card { display: flex; flex-direction: column; }
.gauge-stake-card .stats { grid-template-columns: repeat(2, 1fr); margin: .7rem 0; }
.gauge-stake-card .stats .metric { font-size: .88rem; }
.gs-claim-btn { color: var(--accent-2) !important; border-color: var(--accent-2) !important; }
.gs-claim-btn:hover { background: rgba(255,143,92,.1) !important; }

/* ── LP Vaults ───────────────────────────────────────────────────────────── */
.vault-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.vault-summary-stat { text-align: center; }
.vault-summary-stat h3 { margin: .3rem 0 0; font-size: 1.3rem; color: var(--accent); }

.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.vault-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 1.8rem;
}
.vault-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
}
.vault-name { margin: 0 0 .25rem; font-size: 1.05rem; }
.vault-stats { grid-template-columns: repeat(2, 1fr); margin: 0.8rem 0; }
.vault-stats .metric { font-size: .92rem; }
.vault-divider { border: none; border-top: 1px solid var(--border); margin: 0.9rem 0; }
.vault-footer { margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--border); margin-top: 0.9rem; }
.vault-explorer-link {
  color: var(--muted); text-decoration: none;
  font-size: .72rem; font-family: monospace; transition: color .15s;
}
.vault-explorer-link:hover { color: var(--accent); }
.vault-claim-btn {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: #04080f !important;
  border: none !important;
}
.vault-claim-btn:hover { opacity: .88 !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col-grid  { grid-template-columns: 1fr; }
  .metric-grid.four-col { grid-template-columns: repeat(2,1fr); }
  .nav {
    height: auto; min-height: 68px; display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-top: .65rem; padding-bottom: .55rem;
  }
  .brand { grid-column: 1; }
  .nav-actions { grid-column: 3; }
  .nav-links { grid-column: 1 / -1; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .15rem; scrollbar-width: thin; }
  .nav-tab { flex: 0 0 auto; }
  .nav-actions { margin-left: auto; }
  .vault-grid { grid-template-columns: 1fr; }
  .vault-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .gauge-stake-grid { grid-template-columns: 1fr; }
  .earn-stream-grid { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-status { grid-template-columns: repeat(3, 1fr); }
  .landing-status > div { align-items: flex-start; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-coverage-grid { grid-template-columns: 1fr; }
  .privacy-purpose-notice { grid-template-columns: 1fr; gap: .7rem; }
  .privacy-flow-grid, .privacy-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-flow-grid article:nth-child(2)::after { display: none; }
  .privacy-guidance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .metric-grid.four-col { grid-template-columns: 1fr 1fr; }
  .tab-section { padding: 1.2rem 16px; }
  .nav { padding: 0 16px; }
  footer { padding: 1rem 16px; }
  .swap-meta { grid-template-columns: 1fr; }
  .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .section-brand-logo { width: 56px; height: 56px; flex-basis: 56px; }
  .nav-actions #accountBadge { display: none; }
  .nav-actions #networkPill { display: none; }
  .landing-page { padding-top: 1rem; }
  .landing-hero { padding: 1.35rem; }
  .landing-status, .principle-grid, .landing-feature-grid { grid-template-columns: 1fr; }
  .privacy-explainer-heading { display: block; }
  .privacy-explainer-heading > p { margin-top: .7rem; }
  .privacy-flow-grid, .privacy-visibility-grid, .privacy-role-grid { grid-template-columns: 1fr; }
  .privacy-flow-grid article::after { display: none; }
  .principle-grid article, .feature-card > p { min-height: 0; }
  .landing-principles, .landing-platform { margin-top: 2.2rem; }
}

/* ── Pool Governance Tab ─────────────────────────────────────────────────── */
.gov-vp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.gov-vp-strip > div {
  background: var(--glass);
  padding: .75rem 1.2rem;
  text-align: center;
}

.proposal-card {
  background: var(--glass-inner);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: .75rem;
  transition: border-color .2s;
}
.proposal-card:last-child { margin-bottom: 0; }
.proposal-card.active  { border-color: rgba(106,216,255,.35); }
.proposal-card.succeeded { border-color: rgba(109,244,194,.35); }
.proposal-card.defeated { border-color: rgba(255,127,160,.25); }

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .3rem;
}

/* ── Voting Power bar ────────────────────────────────────────────────────── */
.vp-mult-bar {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.vp-mult-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width .4s ease;
}

@media (max-width: 900px) {
  .gov-vp-strip { grid-template-columns: repeat(2, 1fr); }
}
/* Governance-approved provider branding and public registration. */
.provider-registration { margin-top: 1.5rem; }
.provider-registration fieldset { min-width: 0; border: 1px solid rgba(160,190,230,.18); border-radius: 16px; padding: 1.2rem; margin: 1rem 0; }
.provider-registration legend { padding: 0 .5rem; color: var(--accent); }
.provider-registration details { margin: 1rem 0; border-bottom: 1px solid rgba(160,190,230,.15); padding-bottom: 1rem; }
.provider-registration summary { cursor: pointer; padding: .6rem 0; font-weight: 600; }
.provider-registration textarea { resize: vertical; min-height: 120px; }
.provider-logo-upload { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.provider-logo-upload .input-group { flex: 1; min-width: 200px; }
.provider-logo { width: 88px; height: 88px; object-fit: contain; border-radius: 20px; background: rgba(160,190,230,.08); }
#providerReviewText, .provider-proposal-config { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 34rem; overflow: auto; font-size: .78rem; }
.provider-proposal-brand { display: flex; gap: 1rem; align-items: center; margin: .75rem 0; }
.provider-proposal-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
/* Wallet readouts preserve on-chain addresses without breaking mobile layout. */
.wallet-readout { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.65; margin: 1rem 0; }
.wallet-grid > * { min-width: 0; }
.wallet-grid .row { flex-wrap: wrap; }
.wallet-grid input[type="datetime-local"] { min-width: 0; width: 100%; }

/* Shared application surfaces. Default-type and dynamically generated inputs
   use the same controls as the original swap and liquidity forms. */
:root { color-scheme: dark; --control-border: rgba(132,175,210,.3); }
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(106,216,255,.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: #8095ad; opacity: 1; }
input:not([type]):hover:not(:disabled), input[type]:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),
textarea:hover:not(:disabled) { border-color: rgba(106,216,255,.5); }
input[readonly], textarea[readonly] { color: #c5d7e9; background-color: #101c29; }
input:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
input[data-numeric] { min-height: 44px; min-width: 0; font-variant-numeric: tabular-nums; }
.numeric-error { color: var(--danger); font-size: .85rem; line-height: 1.5; margin: .4rem 0 0; }
.numeric-error[hidden] { display: none; }
@media (pointer: coarse) { input[data-numeric] { min-height: 48px; font-size: max(1rem, 16px); } }
textarea { resize: vertical; min-height: 120px; }
input[type="file"] { padding: .45rem; font-size: .82rem; cursor: pointer; }
input[type="file"]::file-selector-button {
  border: 1px solid rgba(106,216,255,.3); border-radius: 9px; padding: .65rem .85rem;
  margin-right: .8rem; background: rgba(106,216,255,.1); color: #c2efff; font: inherit; cursor: pointer;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-label { min-height: 38px; line-height: 1.5; }
.input-group { min-width: 0; margin-bottom: 1.1rem; }
.input-group label { color: #bbcbdf; font-size: .8rem; font-weight: 600; margin-bottom: .5rem; line-height: 1.5; }
.input-group:focus-within > label { color: var(--accent); }
.hint { line-height: 1.65; }
.tiny { line-height: 1.55; }
.two-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.two-col-grid > *, .two-col > *, .card-header > * { min-width: 0; }
.glass {
  background: radial-gradient(ellipse at 0 0, rgba(106,216,255,.055), transparent 65%), linear-gradient(155deg, #111d2a, #0b1420);
  border-color: rgba(141,178,209,.19); border-radius: 24px; padding: 1.7rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.25), inset 0 1px 0 rgba(225,241,255,.07);
}
.glass-inner { background: rgba(5,14,24,.45); border-color: rgba(141,178,209,.16); border-radius: 15px; }
.glass > h3:first-child { margin-top: 0; margin-bottom: .9rem; font-size: 1.12rem; letter-spacing: -.025em; }
.card-header { padding-bottom: 1.2rem; border-bottom: 1px solid rgba(141,178,209,.12); }
.card-header h3, .card-header h4 { letter-spacing: -.025em; }
.section-hero h2, .section-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.055em; font-weight: 700; line-height: 1.1; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; }
.section-header h2 { margin: .35rem 0 .5rem; }
.section-header > div { max-width: 780px; }
.section-header > button { flex-shrink: 0; }
.section-hero .lead { max-width: 860px; line-height: 1.65; }
.tab-section { padding-top: 2.6rem; }
.action {
  min-height: 48px; border: 1px solid rgba(188,237,255,.4); border-radius: 13px;
  background: linear-gradient(115deg, #b0edff, #65d7ff 65%, #45b8e0); color: #062333;
  font-size: .91rem; font-weight: 700; box-shadow: 0 4px 16px rgba(52,184,232,.12), inset 0 1px 0 rgba(255,255,255,.3);
  transition: background-color .18s, box-shadow .18s, border-color .18s;
}
.action:hover:not(:disabled) { opacity: 1; box-shadow: 0 5px 22px rgba(52,184,232,.23); border-color: #c4f1ff; }
.action.ghost { background: rgba(106,216,255,.035); border-color: rgba(132,175,210,.32); color: #b5eaff; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.action.ghost:hover:not(:disabled) { background: rgba(106,216,255,.1); }
button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.pill { min-height: 36px; line-height: 1.35; }
button.pill, a.pill { transition: border-color .18s, background-color .18s; }
button.pill:hover:not(:disabled), a.pill:hover { border-color: rgba(106,216,255,.65); }
.row.gap > .action { width: auto; flex: 1 1 160px; }
.nav { border-bottom: 1px solid rgba(141,178,209,.18); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.nav-tab { padding: .55rem .72rem; border-radius: 10px; }
.nav-tab.active { background: linear-gradient(135deg, rgba(106,216,255,.16), rgba(106,216,255,.04)); box-shadow: inset 0 0 0 1px rgba(106,216,255,.2); }
#connectBtn { background: linear-gradient(115deg, #96e6ff, #62ccef); color: #062333; border-color: transparent; }
.stats > div { background: rgba(5,14,24,.35); border: 1px solid rgba(141,178,209,.1); border-radius: 12px; padding: .75rem; }
.metric, .metric-card h4 { font-variant-numeric: tabular-nums; }
.metric-card { border-top-color: rgba(106,216,255,.35); }
.metric-card h4 { font-size: 1.9rem; letter-spacing: -.05em; }
.swap-card { max-width: 520px; }
.swap-card .token-input { padding: .55rem; border: 1px solid rgba(141,178,209,.16); border-radius: 17px; background: rgba(5,14,24,.5); }
.swap-card .token-input input { font-size: 1.35rem; background: transparent; border-color: transparent; box-shadow: none; padding-left: .5rem; }
.swap-card .token-input input:focus { border-color: var(--accent); }
.swap-flip-btn { width: 42px; height: 42px; line-height: 38px; background: #122537; border-color: rgba(106,216,255,.3); margin: .5rem auto; }
.status-banner { line-height: 1.65; overflow-wrap: anywhere; border: 1px solid currentColor; }
.position-row { padding: .9rem .3rem; gap: .8rem; }
.proposal-card, .lock-row, .launch-row { border-radius: 15px; }
.tab-section details:not(.feature-card details) { border: 1px solid rgba(141,178,209,.16); border-radius: 13px; padding: 0 1rem; margin: 1rem 0; background: rgba(5,14,24,.3); }
.tab-section details > summary { cursor: pointer; padding: .85rem 0; font-size: .83rem; font-weight: 600; color: #b6cce2; line-height: 1.5; }
.tab-section details > summary::marker { color: var(--accent); }
.tab-section details[open] > summary { color: var(--accent); margin-bottom: .6rem; border-bottom: 1px solid rgba(141,178,209,.12); }
.tab-section details[open]:not(.feature-card details) { padding-bottom: 1rem; }
.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.wallet-grid > .wide { grid-column: 1 / -1; }
.wallet-readout:not(:empty) { background: rgba(5,14,24,.5); border: 1px solid rgba(141,178,209,.13); border-left: 2px solid rgba(106,216,255,.45); border-radius: 12px; padding: .9rem 1rem; color: #bdcfe2; font-variant-numeric: tabular-nums; }
.wallet-readout a { color: var(--accent); }
.wallet-grid .tiny { margin-bottom: 1rem; }
.forge-select-menu { border-radius: 18px; }
.forge-select-option { min-height: 48px; }
.forge-select-mark { border: 1px solid rgba(141,178,209,.13); }
.forge-select-check { font-weight: 700; }

/* Forge's application shell and action surfaces. Icons are code-native and
   decorative; the existing links and form elements remain the controls. */
:root {
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 10 9-7 9 7v10H3V10Zm6 10v-7h6v7' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-stake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 7 9-4 9 4-9 4-9-4Zm0 5 9 4 9-4M3 17l9 4 9-4' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h15m-5-5 5 5-5 5M20 17H5m5-5-5 5 5 5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-pool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C9 6 5 10 5 14a7 7 0 0 0 14 0c0-4-4-8-7-12ZM8 15a4 4 0 0 0 4 4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-vote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 8 9-5 9 5H3Zm2 3v7m7-7v7m7-7v7M3 21h18' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-earn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V4m0 16h17M8 15l5-5 3 3 5-8m-5 0h5v5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-vault: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' fill='none' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='m9 9 6 6m-6 0 6-6' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");
  --icon-launch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4c3-2 6-1 6-1s1 3-1 6l-8 8-4-4 7-9Zm-5 6H4l-2 5h6m6 1v5l5-2v-6M5 19l-2 2' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 7H5a2 2 0 0 1 0-4h13v4m2 0v14H5a2 2 0 0 1-2-2V5m17 6h-6v6h6m-3-3h.1' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-tab="home"], #tab-home { --module-icon: var(--icon-home); }
[data-tab="lst"], #tab-lst, [data-tab="lock"], #tab-lock { --module-icon: var(--icon-stake); }
[data-tab="swap"], #tab-swap { --module-icon: var(--icon-swap); }
[data-tab="liquidity"], #tab-liquidity, [data-tab="pool-management"], #tab-pool-management { --module-icon: var(--icon-pool); }
[data-tab="vote"], #tab-vote { --module-icon: var(--icon-vote); }
[data-tab="earn"], #tab-earn { --module-icon: var(--icon-earn); }
[data-tab="vaults"], #tab-vaults { --module-icon: var(--icon-vault); }
[data-tab="launchpad"], #tab-launchpad { --module-icon: var(--icon-launch); }
[data-tab="wallet"], #tab-wallet { --module-icon: var(--icon-wallet); }
.nav-tab { display: inline-flex; align-items: center; gap: .7rem; }
.nav-tab:not(.hpflr-nav-tab)::before {
  content: ""; width: 19px; height: 19px; flex: 0 0 19px; background: currentColor;
  mask: var(--module-icon) center / contain no-repeat;
}
.section-hero, .section-header { position: relative; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(141,178,209,.15); }
.section-hero::after, .section-header::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 52px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.card-header h3 { display: flex; align-items: center; gap: .7rem; }
.card-header h3:not(:has(img))::before, .wallet-grid > article > h3::before {
  content: ""; display: inline-block; width: 21px; height: 21px; flex: 0 0 21px;
  background: var(--accent); mask: var(--module-icon) center / contain no-repeat;
}
.wallet-grid > article > h3 { display: flex; align-items: center; gap: .7rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(141,178,209,.12); }
.input-group:has(> input:not([type="checkbox"]):not([type="radio"])),
.input-group:has(> select), .input-group:has(> textarea) {
  padding: .75rem .9rem .55rem; border: 1px solid rgba(141,178,209,.17); border-radius: 16px;
  background: linear-gradient(115deg, rgba(22,39,56,.75), rgba(7,17,29,.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .18s, box-shadow .18s;
}
.input-group:has(> input, > select, > textarea):focus-within { border-color: rgba(106,216,255,.7); box-shadow: 0 0 0 3px rgba(106,216,255,.07); }
.input-group > input:not([type="checkbox"]):not([type="radio"]), .input-group > textarea {
  background: transparent; border-color: transparent; box-shadow: none; padding: .4rem 0;
  border-radius: 9px; min-height: 46px;
}
.input-group > input:not([type="checkbox"]):not([type="radio"]):hover,
.input-group > input:not([type="checkbox"]):not([type="radio"]):focus,
.input-group > textarea:hover, .input-group > textarea:focus { border-color: transparent; box-shadow: none; }
.input-group > input[type="number"], .input-group > input[inputmode="decimal"] { font-size: 1.65rem; font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.input-group > select { border-color: transparent; background-color: transparent; box-shadow: none; padding-left: 0; }
.input-group > label { font-size: .72rem; letter-spacing: .035em; margin-bottom: .15rem; }
.input-group > .hint { margin-top: .25rem; }
.input-group > input:disabled { opacity: .65; }
select { text-overflow: ellipsis; }
.select-with-logo select { border-radius: 14px; }
.token-input { align-items: center; }
.swap-card { width: 100%; max-width: 550px; }
.swap-card .token-input { min-height: 100px; border-radius: 18px; background: linear-gradient(115deg, #152535, #0b1622); border-color: rgba(141,178,209,.18); padding: .8rem; }
.swap-card .token-input input { font-size: 2rem; letter-spacing: -.05em; }
.swap-card .token-input select { min-height: 44px; background-color: #203548; border-color: rgba(164,204,232,.2); border-radius: 999px; }
.swap-card .swap-meta > div { text-align: left; background: transparent; border-radius: 0; border-left: 1px solid rgba(141,178,209,.2); padding-left: .75rem; }
.swap-card .action { min-height: 54px; }
.swap-flip-btn { border-radius: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.4); background: linear-gradient(140deg, #274354, #122332); }
.forge-select-menu { padding: 9px; background: linear-gradient(145deg, #213649, #101c2b 60%); border-color: rgba(153,211,235,.4); box-shadow: 0 24px 65px #0009, inset 0 1px 0 #d8f5ff1a; }
.forge-select-heading { letter-spacing: .12em; font-size: .65rem; color: #a2bccf; }
.forge-select-option { padding: .75rem; border-radius: 12px; gap: .8rem; }
.forge-select-option[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.forge-select-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
.metric-card { position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 80px; height: 80px; border: 1px solid rgba(106,216,255,.07); border-radius: 50%; right: -35px; bottom: -38px; box-shadow: 0 0 0 14px rgba(106,216,255,.025), 0 0 0 28px rgba(106,216,255,.02); pointer-events: none; }
.metric-card .hint { font-size: .75rem; }
.gov-vp-strip { background: #0e1b29; border-radius: 18px; border-color: rgba(141,178,209,.2); }
.gov-vp-strip > div { background: transparent; padding: 1.1rem; }
.gov-vp-strip .metric { font-size: 1.6rem; margin-top: .35rem; }
.landing-hero { min-height: 460px; background: radial-gradient(ellipse at 90% 0%, #ff8f5c16, transparent 50%), radial-gradient(ellipse at 0% 100%, #6ad8ff18, transparent 60%), #0e1a28; }
.landing-hero h2 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.landing-hero::after { width: 450px; height: 450px; top: -210px; right: -170px; border-color: #ff8f5c29; box-shadow: 0 0 0 35px #ff8f5c05, 0 0 0 70px #ff8f5c04; }
.landing-actions .pill { padding: .8rem 1.2rem; border-radius: 12px; }
.feature-card > h3 { font-size: 1.4rem; letter-spacing: -.035em; }
.feature-index { display: inline-grid; place-items: center; width: 36px; height: 36px; background: #ff8f5c0e; border: 1px solid #ff8f5c24; border-radius: 11px; }
.feature-link { display: flex; justify-content: space-between; padding: .8rem 0; border-top: 1px solid rgba(141,178,209,.14); }
.feature-link span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #6ad8ff33; }
.principle-grid article { background: linear-gradient(140deg, #15253680, #101c2b60); padding: 1.3rem; }
.principle-grid h3 { margin-top: 1rem; }

/* A second navigation row keeps every module discoverable on laptop screens. */
@media (max-width: 1600px) {
  .nav { height: auto; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .65rem 1rem; padding-top: .75rem; padding-bottom: .6rem; }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-actions { grid-column: 3; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 2px 0 5px; scrollbar-width: thin; scrollbar-color: #30485e transparent; }
  .nav-tab { flex-shrink: 0; }
}
@media (max-width: 900px) {
  .two-col-grid, .wallet-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tab-section { padding: 1.6rem 16px; }
  .glass { padding: 1.15rem; border-radius: 18px; }
  .two-col { grid-template-columns: minmax(0,1fr); gap: 0; }
  .section-header { flex-wrap: wrap; gap: .8rem; }
  .section-header > button { min-height: 44px; }
  .nav-tab { min-height: 40px; display: inline-flex; align-items: center; }
  input:not([type]), input[type], select, textarea, select.pill { font-size: 16px; }
  .token-input select { min-width: 100px; }
  .swap-card .token-input { gap: .25rem; padding: .35rem; }
  .swap-card .token-input input { font-size: 1.1rem; }
  .row.gap > .action { flex-basis: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 1200px) {
  body { padding-left: 224px; }
  .nav { position: fixed; inset: 0 auto 0 0; width: 224px; height: 100dvh; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 1.7rem 1rem 1.1rem; border-right: 1px solid rgba(141,178,209,.14); border-bottom: 0; background: linear-gradient(170deg, #101d2b, #09111c 65%); overflow-y: auto; }
  .nav .brand { padding: 0 .45rem 1.7rem; border-bottom: 1px solid rgba(141,178,209,.12); gap: .65rem; }
  .nav .brand h1 { color: #f1f8ff; font-size: 1.2rem; }
  .nav .brand .eyebrow { font-size: .59rem; }
  .nav .nav-links { display: flex; flex-direction: column; flex: 1 0 auto; gap: .35rem; padding: 1.4rem 0; overflow: visible; }
  .nav .nav-tab { position: relative; width: 100%; min-height: 43px; padding: .75rem .85rem; font-size: .8rem; font-weight: 550; border-radius: 11px; color: #8fa6bf; }
  .nav .nav-tab:hover { color: #e5f7ff; background-color: #6ad8ff0a; }
  .nav .nav-tab.active { color: #b4eeff; background: linear-gradient(100deg, #6ad8ff1f, #6ad8ff05); box-shadow: inset 0 0 0 1px #6ad8ff20; }
  .nav .nav-tab.active::after { content: ""; position: absolute; right: 12px; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 9px #6ad8ff88; }
  .nav .nav-actions { display: flex; flex-direction: column; width: 100%; gap: .65rem; padding-top: 1rem; border-top: 1px solid rgba(141,178,209,.12); margin: 0; }
  .nav-actions #networkPill { border: 0; background: transparent; font-size: .68rem; min-height: 22px; padding: 0; }
  .nav-actions #accountBadge { border: 0; background: transparent; color: var(--muted); font-size: .7rem; min-height: 22px; padding: 0; max-width: 100%; overflow-wrap: anywhere; }
  .nav-actions #connectBtn { width: 100%; min-height: 44px; border-radius: 12px; justify-content: center; }
  .tab-section { padding: 3rem 2.5rem; }
  footer { margin: 0 2.5rem; padding-left: 0; padding-right: 0; }
  .landing-hero { grid-template-columns: minmax(0,1fr); }
  .landing-hero h2 { max-width: 880px; }
  .landing-status { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .landing-status > div { align-items: flex-start; }
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1200px) and (max-width: 1360px) {
  .tab-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .wallet-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .nav-tab:not(.hpflr-nav-tab)::before { width: 16px; height: 16px; flex-basis: 16px; }
  .nav-tab { gap: .4rem; }
  .input-group > input[type="number"], .input-group > input[inputmode="decimal"] { font-size: 1.5rem; }
  .input-group > label { font-size: .74rem; }
  .swap-card .token-input { min-height: 84px; padding: .5rem; }
  .swap-card .token-input input { font-size: 1.5rem; }
  .landing-hero { min-height: 0; }
  .landing-hero h2 { font-size: 2.3rem; }
  .section-hero, .section-header { padding-bottom: 1.1rem; }
  .card-header h3 { gap: .5rem; }
}
@media (forced-colors: active) {
  .glass, .glass-inner, .wallet-readout:not(:empty), .stats > div { background: Canvas; border: 1px solid CanvasText; }
  .action, .action.ghost, #connectBtn { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  input:focus, textarea:focus, select:focus { outline: 2px solid Highlight; }
  .nav-tab.active { outline: 1px solid Highlight; }
}
.vault-swap-fees { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.vault-swap-fees .metric { font-size: 1rem; overflow-wrap: anywhere; }
.beta-controls { margin: 0 0 24px; padding: clamp(20px, 3vw, 32px); border-color: rgba(86, 213, 191, .3); background: radial-gradient(ellipse at top right, rgba(58, 181, 161, .12), transparent 70%), var(--panel); }
.beta-controls h2 { margin: 0 0 10px; font-size: 1.25rem; }
.beta-controls p { max-width: 80ch; overflow-wrap: anywhere; }
.beta-controls .action { margin: 10px 0; min-height: 44px; }
