/* =============================================================================
   LIQUIDITY POOL PAGE
   ========================================================================== */
body.pool { min-height: 100%; background: var(--bg); display: flex; flex-direction: column; }

.app-nav-mid .nav-inline { color: var(--text-2); transition: color .15s; }
.app-nav-mid .nav-inline:hover { color: var(--text); }
.app-nav-mid .sep { color: var(--text-4); margin: 0 2px; }

.pool-main { flex: 1 1 auto; width: 100%; max-width: 980px; margin: 0 auto; padding: 40px 22px 80px; }

/* soft violet glow behind the header */
.pool-hero { position: relative; text-align: center; margin: 18px 0 34px; }
.pool-hero::before { content: ""; position: absolute; inset: -80px 0 auto 0; height: 340px; z-index: -1;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-soft), transparent 70%); pointer-events: none; }
.pool-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em;
  color: var(--text-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 13px; }
.pool-eyebrow .net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.pool-hero h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(34px, 5vw, 56px); margin: 18px 0 12px; }
.pool-hero p { color: var(--text-2); max-width: 560px; margin: 0 auto; line-height: 1.6; font-size: 15.5px; }

/* stat strip */
.pool-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 26px; }
.pstat { background: var(--surface); padding: 18px 20px; }
.pstat .pl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pstat .pv { font-size: 22px; margin-top: 7px; letter-spacing: -0.01em; }
.pstat .pv .u { font-size: 13px; color: var(--text-3); margin-left: 3px; }

/* two-column: your position + action card */
.pool-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.pcard { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px; }
.pcard-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }

/* your position */
.pos-value { font-size: 34px; letter-spacing: -0.02em; }
.pos-sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.pos-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.pos-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.pos-row .k { color: var(--text-3); }
.pos-row .v { color: var(--text); }
.pos-empty { color: var(--text-3); font-size: 13.5px; line-height: 1.6; margin-top: 8px; }

/* action card */
.act-tabs { display: flex; gap: 3px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px; margin-bottom: 18px; }
.act-tab { flex: 1; appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--text-3); height: 34px; border-radius: var(--r-pill); transition: background .15s, color .15s; }
.act-tab:hover { color: var(--text); }
.act-tab.active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 12px var(--accent-glow); font-weight: 600; }

.amt-field { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--bg-2); padding: 14px 16px; transition: border-color .15s; }
.amt-field:focus-within { border-color: var(--accent-line); }
.amt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.amt-top label { font-size: 12px; color: var(--text-3); }
.amt-bal { font-size: 12px; color: var(--text-3); }
.amt-bal b { color: var(--text-2); font-weight: 500; cursor: pointer; }
.amt-bal b:hover { color: var(--accent); }
.amt-in { display: flex; align-items: center; gap: 10px; }
.amt-in input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text);
  font-family: var(--font-mono); font-size: 26px; letter-spacing: -0.01em; width: 100%; }
.amt-in input::placeholder { color: var(--text-4); }
.amt-cur { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; white-space: nowrap; }
.amt-max { appearance: none; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font: inherit; font-size: 11px; cursor: pointer; border-radius: var(--r-xs); padding: 4px 8px; }
.amt-max:hover { border-color: var(--accent-line); color: var(--accent); }

.act-info { margin: 16px 0; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.act-info .row { display: flex; align-items: center; justify-content: space-between; }
.act-info .k { color: var(--text-3); }
.act-info .v { color: var(--text-2); }

.act-btn { width: 100%; height: 50px; font-size: 15px; }
.act-note { margin-top: 12px; font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.5; }
.act-faucet { margin-top: 12px; width: 100%; }

/* how it works */
.pool-how { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-mini { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--surface); }
.how-mini .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.how-mini h4 { font-size: 14.5px; margin: 8px 0 6px; font-weight: 600; }
.how-mini p { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

.pool-foot { text-align: center; padding: 26px; color: var(--text-4); font-size: 12px; }
.pool-foot a { color: var(--text-3); }

/* wallet picker modal (shared look with terminal) */
.wallet-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(3,4,9,0.72); backdrop-filter: blur(4px); }
.wallet-modal.open { display: flex; }
.wallet-card { width: 340px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); }
.wallet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.wallet-x { appearance: none; border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 16px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2);
  margin-bottom: 8px; transition: border-color .15s, background .15s; }
.wallet-opt:hover { border-color: var(--accent-line); background: var(--surface-2); }
.wallet-opt img { width: 26px; height: 26px; border-radius: 6px; }
.wallet-opt .wn { font-size: 14px; color: var(--text); }
.wallet-none { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.wallet-none a { color: var(--accent); }

@media (max-width: 720px) {
  .pool-stats { grid-template-columns: repeat(2, 1fr); }
  .pool-grid { grid-template-columns: 1fr; }
  .pool-how { grid-template-columns: 1fr; }
}
