: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: "Space Grotesk", 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;
}
.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); }
.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[type="text"],
input[type="number"],
select {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: .6rem .9rem;
  font-size: .95rem; font-family: inherit; outline: none;
  transition: border-color .15s; width: 100%;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: var(--accent);
}
select option { background: #0f1923; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.token-input { display: flex; gap: .5rem; }
.token-input input { flex: 1; }
.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; }

.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)); }
}
@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; }
  .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); }
}
