@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
:root{
  --bg:#0a1014;
  --panel:#0d1419aa;
  --panel-solid:#0f171c;
  --stroke:rgba(255,255,255,.08);
  --text:#e6f6ff;
  --muted:#9cb6c6;
  --accent:#36e7ff;
  --accent-2:#6af3d6;
  --shadow:0 10px 40px rgba(0,0,0,.35);
  --radius:18px;
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  /* smoother, deeper fade */
  background:
    radial-gradient(120% 120% at 50% -6%,
      #13222c 0%,
      #0b1318 55%,
      #091217 78%,
      #071015 100%);
  color:var(--text);
  font: 400 16px/1.5 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.scene-glow{
  position:fixed;
  inset:-30% -20% auto -20%;
  height:60vh;
  background:
    radial-gradient(40% 60% at 20% 20%, rgba(54,231,255,.15), transparent 60%),
    radial-gradient(40% 60% at 80% 20%, rgba(106,243,214,.15), transparent 60%);
  filter: blur(40px);
  pointer-events:none;
  z-index:0;
}

.brand-mark{ width:28px; height:28px; opacity:.9 }

.wrap{ max-width:1100px; margin:48px auto 120px; padding:0 20px; position:relative; z-index:1 }

.eyebrow{
  letter-spacing:.2em;
  color:var(--muted);
  text-align:center;
  font-weight:600;
  font-size:12px;
  margin:0 0 10px;
  text-transform:uppercase;
}

.page-title{
  font-size:44px; font-weight:800;
  text-align:center; margin:0 0 8px;
}
.page-title .accent{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}

.lead{
  text-align:center;
  color:var(--muted);
  margin:0 auto 24px;
  max-width:760px;
}

.cta-row{
  display:flex; gap:16px; justify-content:center; align-items:center;
  margin: 10px 0 28px;
}

.btn{
  appearance:none; border:0; outline:none; cursor:pointer;
  padding:14px 20px; border-radius:999px;
  font-weight:700; letter-spacing:.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow);
}
.btn:active{ transform: translateY(1px) }

.btn-primary{
  color:#0b1216;
  background: linear-gradient(180deg,#7cf0ff,#1de4ff);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 8px 30px rgba(53,226,255,.25);
}
.btn-primary:hover{ filter:brightness(1.05) }

.btn-ghost{
  color:var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border:1px solid var(--stroke);
  backdrop-filter: blur(12px) saturate(130%);
}
.btn-ghost:hover{ background: rgba(255,255,255,.12) }

/* Compound button: same ghost style + animated cyan under-glow */
.btn-compound{
  position: relative;
  overflow: hidden;                 /* let the under-glow breathe */
  isolation: isolate;                /* keep glows self-contained */
}

/* tiny cyan “tab” under the button (seen on the left image) */
.btn-compound::before{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom:-4px;
  width:26px;
  height:6px;
  border-radius:999px;
  background: linear-gradient(90deg, #36E7FF, #6AF3D6); /* same as Stake gradient */
  filter: blur(0.6px);
  opacity:1;
  transition:
    width .28s cubic-bezier(.2,.7,.2,1),
    height .28s cubic-bezier(.2,.7,.2,1),
    bottom .28s cubic-bezier(.2,.7,.2,1),
    filter .28s ease;
  z-index:-1;
}

.btn-compound::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background:
    radial-gradient(120% 160% at 50% 120%,
      rgba(54,231,255,.45) 0%,
      rgba(106,243,214,.35) 45%,
      rgba(0,0,0,0) 70%);
  opacity:0;
  transition: opacity .28s ease;
  z-index:-1;
  clip-path: inset(0 round inherit);
}


/* hover: grow the under-glow into a broad base + fade in inner glow */
.btn-compound:hover::before,
.btn-compound:focus-visible::before{
  width:86%;
  height:12px;
  bottom:-8px;
  filter: blur(12px);
}
.btn-compound:hover::after,
.btn-compound:focus-visible::after{
  opacity:1;
}

/* active press: make it feel responsive */
.btn-compound:active::before{
  width:92%;
  height:14px;
  bottom:-10px;
  filter: blur(14px);
}

/* honor reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn-compound::before,
  .btn-compound::after{
    transition: none;
  }
}

#btnConnect.is-connected{
  border-color: rgba(106,243,214,.7);
  box-shadow: 0 0 0 1px rgba(106,243,214,.18) inset;
}


.cards{
  display:grid; gap:24px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 920px){
  .cards{ grid-template-columns: 1fr }
}

.card{
  background: linear-gradient(180deg, rgba(10,18,23,.7), rgba(6,12,16,.7));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
  position:relative;
}
.card::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%, rgba(255,255,255,.06) 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding:1px;
  pointer-events:none;
}

.card-tag{
  display:inline-block;
  padding:6px 10px;
  font-size:12px; font-weight:700; letter-spacing:.03em;
  color:#0b1216;
  background: linear-gradient(180deg, #6af3d6, #37e8ff);
  border-radius: 999px;
  margin-bottom:10px;
}

.card-title{ margin: 6px 0 18px; font-size:22px }

.stats-strip{
  display:flex;
  gap:16px;
  margin:12px auto 0;
  max-width: 720px; /* keeps it tucked under the buttons */
}
.stats-card{
  flex:1;
  padding:12px 14px;
  border-radius:12px;
  background: rgba(18,26,33,.6);
  border:1px solid rgba(255,255,255,.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 3px 10px rgba(8,14,20,.10),
    0 18px 36px rgba(8,14,20,.06);
}
.stats-title{
  font-size:12px; letter-spacing:.02em;
  color:#9aa7b4; margin-bottom:4px;
}
.stats-main{
  font-size:18px; font-weight:700; color:#e7f1f8;
}
.stats-sub{
  font-size:12px; color:#86a0b3; margin-top:2px;
}
.stats-note{
  margin-top:6px; font-size:11px; color:#7c8a98;
}


.kv{ display:flex; justify-content:space-between; align-items:center; margin:10px 0 }
.kv span{ color:var(--muted) }
.kv strong{ font-weight:700 }

.field{ display:block; margin:18px 0 14px }
.field > span{ display:block; color:var(--muted); font-size:14px; margin-bottom:6px }
.field-input{
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-radius: 12px;
  padding:10px 12px;
}
.field-input input{
  flex:1; background:transparent; border:0; outline:none; color:var(--text);
  font-size:16px;
}

.chip{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color:var(--text);
  padding:6px 10px; border-radius:999px; font-weight:700;
}

.btn-row{ display:flex; gap:10px; margin:10px 0 14px; flex-wrap:wrap }

.contract-box{
  margin-top:12px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
}
.contract-label{ color:var(--muted); font-size:13px }
.contract-hash{ font-weight:700; letter-spacing:.02em; margin-top:4px }

.table{ width:100% }
.t-head, .t-row{
  display:grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap:14px; align-items:center;
}
.t-head{
  color:var(--muted); font-size:14px;
  padding:8px 2px 10px; border-bottom:1px solid var(--stroke);
}
.t-row{
  padding:12px 2px; border-bottom:1px dashed rgba(255,255,255,.06)
}
.t-row:last-child{ border-bottom:0 }

.pool-actions{
  display:flex; gap:8px; align-items:center; justify-content:flex-end;
}

.help{ color:var(--muted); font-size:13px; margin-top:10px }
.muted{ opacity:.7 }

.positions{ margin-top:26px }

/* -------- NAV (glass pill) -------- */
.alpha-nav{
  position: sticky; top: 16px; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
}
.alpha-nav .container{ width:100%; max-width: 1180px; padding: 0 20px; }

.nav-shell{
  pointer-events: auto;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding: 14px 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.15);
}

.logo img{ height:28px; width:auto; display:block; opacity:.95 }

.navbar-menu .menu{
  margin:0; padding:0; list-style:none;
  display:flex; gap:32px; align-items:center;
    transition: all .3s ease-in-out;
    font-family: 'Poppins', sans-serif;
  
}
.menu li a{
  position:relative;
  display:block; padding:10px 8px;
  font-weight:700; letter-spacing:.01em;
  text-decoration:none;
  color:#E6F6FF; opacity:.9;
  transition:opacity .2s ease;
}
.menu li a.gray  { color:#A9C0CF; }
.menu li a.white { color:#FFFFFF; }
.menu li a::after{
  content:""; position:absolute; left:12px; right:12px; bottom:4px; height:2px;
  background: linear-gradient(90deg, #37e8ff, #6af3d6);
  transform:scaleX(0); transform-origin:left center;
  transition: transform .22s ease;
  border-radius:2px;
}
.menu li:hover a{ opacity:1 }
.menu li:hover a::after{ transform:scaleX(1) }
.menu li.active a{ opacity:1 }
.menu li.active a::after{ transform:scaleX(1) }

/* Utility */
.container { max-width:1180px; margin:0 auto; padding:0 20px; }
.text-center { text-align:center }
.position-relative { position:relative }
.d-none{ display:none }
@media (min-width:768px){ .d-md-block{ display:block } }

.wrap{ margin-top: 34px; }

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-radius: 9999px;
  width: auto;
  min-width: fit-content;
}

/* ===================== FOOTER (CLEAN) ===================== */

/* Top border above footer */
.acm-foot{
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Grid: Logo | About | Ecosystem | Socials | CTA */
.acm-foot__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 150px 1fr 1fr auto 220px;
  column-gap: 24px;   /* tighter space between the two link columns */
  row-gap: 32px;
  align-items: start;
}

/* Logo block: slightly more air before the first list */
.acm-foot__logo{
  justify-self: start;
  margin-left: -8px;     /* subtle nudge left to match main site */
  margin-right: 36px;    /* space between logo and first list */
}
.acm-foot__logo img{
  width: 124px;
  height: auto;
  display:block;
  opacity:.95;
}

/* Link columns */
.acm-foot__links ul{ list-style:none; margin:0; padding:0; }
.acm-foot__links li{
  margin: 8px 0;        /* tighter vertical rhythm */
  padding-left: 16px;
  position: relative;
}
.acm-foot__links li::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3ed3e6;  /* cyan bullets */
  position: absolute;
  left: 0; top: 0.72em;
  opacity: .9;
}
.acm-foot__links a{
  color: rgba(255,255,255,.86);
  text-decoration: none;
}
.acm-foot__links a:hover{ color:#fff; }

/* Socials — desktop 4/4 split, vertically centered with lists */
.acm-foot__socials{
  align-self: center;   /* centers the block within the grid row */
}
.acm-foot__socials .social{ list-style:none; margin:0; padding:0; }

/* Desktop socials grid (8 icons => 4 columns x 2 rows) */
.acm-foot__socials .social.desktop{
  display: grid;
  grid-template-columns: repeat(4, auto);
  column-gap: 18px;
  row-gap: 16px;
  justify-content: center;   /* center the two rows */
  align-items: center;
}

/* Hide mobile list on desktop by default */
.acm-foot__socials .social.mobile{ display:none; }

.acm-foot__socials li{ line-height:1; }
.acm-foot__socials svg{
  width: 26px; height: 26px; opacity:.82;
  transition: transform .2s ease, opacity .2s ease;
}
.acm-foot__socials a:hover svg{ opacity:1; transform: translateY(-1px); }

/* CTA aligned with socials block */
.acm-foot__cta{
  align-self: center;
  display:flex; justify-content:flex-end;
}
.acm-foot__cta .btn-style{
  padding: 12px 26px;
  border-radius: 999px;
  background: #3ed3e6;
  color: #0c141a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(62,211,230,.25);
}
.acm-foot__cta .btn-style:hover{ filter: brightness(1.05); }

/* Bottom row (copyright) */
.acm-foot__bottom{
  margin-top: 26px;
  padding-top: 12px;
  border-top: none;
  text-align: center;
}
.acm-foot__bottom ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  color: rgba(255,255,255,.65);
}
.acm-foot__bottom a{
  color: rgba(255,255,255,.85);
  text-decoration: underline;
}
.acm-foot__bottom a:hover{ color:#fff; }

/* ===================== Responsive ===================== */

@media (max-width: 1200px){
  .acm-foot__container{
    grid-template-columns: 150px 1fr 1fr auto; /* CTA may wrap below on narrower screens */
    column-gap: 22px;
  }
}

@media (max-width: 768px){
  .acm-foot__container{
    grid-template-columns: 1fr;
    row-gap: 18px;
    text-align: center;
  }

  .acm-foot__logo{
    margin: 0;
  }
  .acm-foot__logo img{
    width: 96px;
    margin: 0 auto 6px;
  }

  /* Hide desktop grid, show mobile list on phones */
  .acm-foot__socials .social.desktop{ display:none; }
  .acm-foot__socials .social.mobile{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .acm-foot__cta{
    justify-content: center;
    margin-top: 8px;
  }
}
/* === Mobile footer: center logo, hide link lists === */
@media (max-width: 768px) {
  /* override earlier "left" rule in your CSS */
  .acm-foot__container,
  .acm-foot__container * {
    text-align: center !important;
  }

  /* one column layout */
  .acm-foot__container {
    grid-template-columns: 1fr !important;
    justify-items: center;
    row-gap: 16px;
  }

  /* hide both link columns */
  .acm-foot__links {
    display: none !important;
  }

  /* center the logo and size it for mobile */
  .acm-foot__logo {
     display: none !important;
    justify-content: center;
  }
  .acm-foot__logo .logo img {
    width: 96px !important;   /* tweak as you like */
    height: auto;
  }

  /* keep socials + whitepaper centered */
  .acm-foot__socials ul {
    justify-content: center !important;
    gap: 14px;
    flex-wrap: wrap;
  }
  .acm-foot__cta {
    justify-content: center !important;
  }
  .acm-foot__bottom {
    margin-top: 12px;
  }
}
/* 0) Make sure nothing else is drawing a glow on the footer */
.acm-foot::before,
.acm-foot::after,
.acm-foot__socials::after {
  display: none !important;
  content: none !important;
}

/* 1) Base footer background – match the page's darkest tone to avoid seams */
.acm-foot{
  position: relative;
  overflow: hidden;              /* clips the internal glow neatly */
  background-color: #071015;     /* matches the tail of body gradient */
}

/* 2) Desktop/tablet: continue the glow from ABOVE the footer so there’s no break */
@media (min-width: 1024px){
  .acm-foot{
    background-image:
      radial-gradient(70% 95% at 50% -120px,
        rgba(54,231,255,0.16) 0%,
        rgba(54,231,255,0.10) 35%,
        rgba(54,231,255,0.00) 75%),
      linear-gradient(0deg, rgba(255,255,255,.03), transparent);
    background-repeat: no-repeat, no-repeat;
    background-size: 120% 520px, 100% 100%;
    background-position: 50% 0, 0 0; /* glow origin is above the top border */
  }
}

/* 3) Mobile: start the glow right at the footer's top so it looks intentional */
@media (max-width: 1023px){
  .acm-foot{
    background-image:
      radial-gradient(80% 120% at 50% 0,
        rgba(54,231,255,0.18) 0%,
        rgba(54,231,255,0.10) 40%,
        rgba(54,231,255,0.00) 80%),
      linear-gradient(0deg, rgba(255,255,255,.03), transparent);
    background-repeat: no-repeat, no-repeat;
    background-size: 140% 420px, 100% 100%;
    background-position: 50% 0, 0 0; /* starts exactly at the top border */
  }
}

/* 4) Ensure content sits above the background */
.acm-foot__container,
.acm-foot__bottom{
  position: relative;
  z-index: 1;
}
/* base color behind everything */
html { background: #071015; }

/* kill body background so we don't fight it */
body { background: transparent; }

/* one fixed gradient layer for the whole app */
body::before{
  content:"";
  position: fixed;
  inset: 0;                 /* full viewport */
  z-index: -1;              /* behind all content */
  pointer-events: none;
  background:
    radial-gradient(110% 90% at 50% 0%,
      #13222c 0%,
      #0b1318 50%,
      #071015 100%);
  /* soft fade near the very bottom to avoid any seam on ultra-tall screens */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 85%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 85%, rgba(0,0,0,0) 100%);
}
/* ==== NAV: compact pill like main site ==== */
.alpha-nav .container{
  /* center the pill; the container itself no longer controls the width */
  display:flex;
  justify-content:center;
}

.nav-shell{
  /* keep the pill narrow and centered */
  width: min(920px, calc(100% - 28px)); /* <— adjust 920px if you want even shorter */
  margin: 0 auto;
  padding: 10px 14px;                 /* slightly slimmer pill */
  gap: 14px;
}

/* logo size inside the pill */
.nav-shell .logo img{
  height: 22px;
}

/* menu compaction (desktop/tablet) */
.navbar-menu .menu{
  gap: 22px;
  white-space: nowrap; /* stops wrapping that pushes items outside */
}
.navbar-menu .menu li a{
  padding: 8px 6px;
}

/* ==== MOBILE FIX: keep Stake inside the pill ==== */
@media (max-width: 640px){
 .nav-shell {
  width: min(580px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 14px;
  gap: 8px; /* reduce from 14px */
}

.nav-shell img {
  margin-right: 0px; /* shrink spacing between logo and links */
}
  .navbar-menu .menu{
    gap: 14px;         /* tighter spacing so all items fit */
    flex-wrap: nowrap; /* absolutely no wrapping */
  }

  .navbar-menu .menu li a{
    padding: 6px 4px;
  }

  /* tiny logo on mobile for extra room */
  .nav-shell .logo img{
    height: 18px;
  }
}
.nav-shell {
  width: min(640px, calc(100% - 28px)); /* try 640px or even 580px */
  margin: 0 auto;
  padding: 10px 14px;
  gap: 14px;
}
/* Make nav use Poppins and tighten spacing like the main site */
.alpha-nav .nav-shell .navbar-menu .menu li a,
header .header-wrapper .navbar-menu ul.menu li a {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

/* Pull items closer to the logo */
.alpha-nav .nav-shell { gap: 16px; padding: 14px 22px; }
.alpha-nav .logo { margin-right: 12px; }
.alpha-nav .navbar-menu .menu { gap: 22px; }

/* ==== NAV — final clean overrides ==== */

/* Compact pill + tighter spacing */
.alpha-nav .container{ display:flex; justify-content:center; }
.nav-shell{
  width: min(640px, calc(100% - 28px));   /* shorter, like main site */
  margin: 0 auto;
  padding: 12px 18px;
  gap: 14px;
}

/* Logo a bit larger + closer to the menu */
.nav-shell .logo img{ height: 24px; }
.alpha-nav .logo{ margin-right: 8px; }

/* Menu typography + spacing (match main site Poppins) */
.alpha-nav .navbar-menu .menu{
  gap: 22px;
  white-space: nowrap;       /* prevents wrapping on small screens */
}
.alpha-nav .navbar-menu .menu li a{
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  padding: 8px 6px;
}

/* Use the gradient-line-icon image for the underline (hover + active) */
.alpha-nav .navbar-menu .menu li a::after{
  content:"";
  position:absolute;
  left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: url("./assets/gradient-line-icon.png") center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
  border-radius: 2px;        /* soft edges if your PNG has transparency */
}
.alpha-nav .navbar-menu .menu li:hover a::after,
.alpha-nav .navbar-menu .menu li.active a::after{
  transform: scaleX(1);
}

/* Mobile: keep everything inside the pill */
@media (max-width: 640px){
  .nav-shell{
    width: min(560px, calc(100% - 24px));
    padding: 10px 14px;
    gap: 10px;
  }
  .nav-shell .logo img{ height: 20px; }
  .alpha-nav .navbar-menu .menu{ gap: 16px; }
  .alpha-nav .navbar-menu .menu li a{ padding: 6px 4px; }
}
/* Base pill */
.pool-pill {
  appearance: none;
  border: 1px solid #2a3b4a;         /* subtle grey border */
  background: #0f1821;               /* your grey pill bg */
  color: #cfd6dc;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 14px/1.1 'Poppins', sans-serif;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

/* Hover/focus (optional) */
.pool-pill:hover,
.pool-pill:focus-visible {
  border-color: #3fc1d7;
  box-shadow: 0 0 0 2px rgba(63,193,215,.15);
  outline: none;
}

/* Selected state: cyan outline glow while staying grey */
.pool-pill.is-selected {
  border-color: #3fc1d7;
  box-shadow:
    0 0 0 2px rgba(63,193,215,.35),   /* outer ring */
    0 6px 22px rgba(63,193,215,.20),  /* soft outer glow */
    inset 0 0 24px rgba(63,193,215,.12); /* faint inner glow */
  background: #0f1821;               /* keep the grey */
  color: #ffffff;
}

/* Selected pool glow */
.btn-ghost.is-selected {
  border-color: #37e8ff;                 /* cyan theme */
  box-shadow:
    0 0 0 2px rgba(55, 232, 255, 0.25),  /* soft outer ring */
    0 0 18px rgba(55, 232, 255, 0.35);   /* glow */
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06)); /* keep grey-ish */
  color: var(--text);
}

/* Make it pop a bit more on hover, still selected */
.btn-ghost.is-selected:hover {
  box-shadow:
    0 0 0 3px rgba(55, 232, 255, 0.3),
    0 0 22px rgba(55, 232, 255, 0.45);
}
/* === Footer glow: extend to real bottom without adding a new overlay === */
html, body { min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }             /* your main content wrapper */
footer.acm-foot { position: relative; flex-shrink: 0; }

/* Extend the existing glow from the footer downward */
footer.acm-foot::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -40vh;                      /* pushes the glow center lower */
  width: 1600px;                      /* wide oval glow */
  height: 120vh;                      /* long enough to reach bottom */
  background: radial-gradient(ellipse at center,
    rgba(63,193,215,.25) 0%,
    rgba(63,193,215,.12) 35%,
    rgba(63,193,215,0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Keep footer content above the glow */
footer.acm-foot > * { position: relative; z-index: 1; }
/* === Navbar spacing & font (scoped) === */
.alpha-nav .nav-shell {
  display: inline-flex;
  align-items: center;
  gap: 2px;               /* tighter gap between logo and links */
  padding: 10px 18px;      /* slim pill padding */
}

.alpha-nav .logo img,
.alpha-nav .logo svg {
  height: 34px;            /* slightly larger logo, like main site */
  width: auto;
  
}

/* menu spacing */
.alpha-nav .navbar-menu .menu {
  display: inline-flex;
  gap: 32px;               /* space between link items */
}

/* match font */
.alpha-nav .navbar-menu .menu a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}
/* Underline: use the gradient-line image, anchored to the pill’s bottom edge */
.alpha-nav .navbar-menu .menu li a::after{
  content:"";
  position:absolute;
  left: 10px; right: 10px;
  bottom: -25px;                   /* sits on the pill bottom edge */
  height: 2px;
  background: url("./assets/gradient-line-icon.png") center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
  pointer-events: none;
}
/* Navbar pill wrapper */
.alpha-nav {
  height: 120px;             /* increases thickness of pill */
  padding: 0 20px;          /* reduce horizontal width */
  display: flex;
  align-items: center;      /* vertically center logo + items */
  justify-content: center;  /* keeps it balanced */
  border-radius: 50px;      /* maintain pill shape */
}

/* Navbar links inside pill */
.alpha-nav .navbar-menu .menu li a {
  line-height: 70px;        /* matches pill height */
  padding: 0 14px;          /* controls spacing between items */
  font-size: 16px;          /* adjust text size if needed */
}

/* Navbar logo inside pill */
.alpha-nav .navbar-menu .logo img {
  height: 32px;             /* slightly larger logo */
  width: auto;
  margin-right: 12px;       /* small gap between logo and menu items */
}
/* === NAVBAR: final overrides === */

/* Desktop/tablet keep the thicker pill */
@media (min-width: 768px){
  .alpha-nav{ height: 96px; }                          /* was 120px */
  .alpha-nav .navbar-menu .menu li a{ line-height: 64px; }
}

/* Mobile: compact pill, no wrapping, safe underline position */
@media (max-width: 767.98px){
  .alpha-nav{
    height: auto;                                      /* remove fixed height */
    padding: 0 10px;
  }
  .nav-shell{
    width: calc(100% - 20px);
    padding: 8px 12px;
    gap: 10px;
  }
  .alpha-nav .logo img{ height: 20px; }

  .alpha-nav .navbar-menu .menu{
    gap: 12px;
    flex-wrap: nowrap;                                 /* prevent wrap */
    white-space: nowrap;
  }
  .alpha-nav .navbar-menu .menu li a{
    font-size: 10px;
    line-height: 1.2;                                  /* no tall line box */
    padding: 6px 4px;
  }
  .alpha-nav .navbar-menu .menu li a::after{
    bottom: 2px;                                       /* keep underline inside pill */
  }
}
/* Mobile fix: move gradient underline to pill edge */
@media (max-width: 767.98px) {
  .alpha-nav .navbar-menu .menu li a::after {
    bottom: -21px;                /* push underline to pill’s bottom edge */
    height: 3px;                 /* keep thickness consistent */
    border-radius: 3px;          /* rounded like desktop */
    left: 0;
    right: 0;
    margin: auto;                /* keep centered under link */
    font-size: 10px;
    gap: 12px;
  }
}

/* === FOOTER: push logo farther left and add space to the lists (desktop/tablet) === */
@media (min-width: 768px){
  footer.acm-foot .acm-foot__container{
    /* widen the first (logo) column and add column gap */
    grid-template-columns: 190px 1fr 1fr auto 220px;
    column-gap: 48px;
  }

  footer.acm-foot .acm-foot__logo{
    justify-self: start;
    margin-left: -12px !important;   /* nudge logo toward the left edge */
    margin-right: 64px !important;   /* more space before the first list */
  }

  /* optional: slightly larger logo for balance */
  footer.acm-foot .acm-foot__logo img{
    width: 136px;
    height: auto;
    display: block;
  }
}

/* Mobile stays stacked/centered; no extra spacing needed */

/* === NAVBAR pill thickness === */
.alpha-nav .nav-shell {
  height: 72px;                  /* was ~56–60px, bump for thicker pill */
  padding: 0 24px;               /* keep horizontal breathing room */
  border-radius: 999px;          /* maintain pill shape */
}

.alpha-nav .logo img {
  height: 28px;                  /* scale logo proportionally */
}

.alpha-nav .navbar-menu .menu li a {
  line-height: 72px;             /* center text vertically in the pill */
}

/* === MOBILE NAV PILL WIDTH FIX FINAL === */ 
@media (max-width: 767.98px) {
  .alpha-nav .nav-shell {
    width: 100%;   /* stretch pill across screen with side padding */
    padding: 0 28px 0 24px; 
    justify-content: space-between;
  }

  .alpha-nav .navbar-menu .menu {
    flex: 1;
    justify-content: center;    /* keep links centered in pill */
  }
}
/* Estimated Rewards widget */
.est-rewards.card{
  background: rgba(14,20,26,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 16px 18px;
  color: #c9d4df;
}

.est-rewards .est-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom: 10px;
  font-weight:600; color:#e7f1f8;
}
.est-rewards .est-head small{ color:#9aa7b4; font-weight:500; }

.est-kpis{
  display:flex; gap:24px; margin: 6px 0 12px;
}
.est-kpi .est-kpi-label{ font-size:12px; color:#9aa7b4; margin-bottom:4px; }
.est-kpi .est-kpi-value{ font-size:18px; font-weight:700; color:#e7f1f8; }

.est-bar{
  position: relative;
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.est-bar-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#00e0ff,#00b0ff 60%, #1af0d5 100%);
  box-shadow: 0 0 14px rgba(0,208,255,.35);
  border-radius: 999px;
  transition: width .35s ease;
}

.est-rewards .est-foot{ margin-top:10px; }
.est-rewards .muted{ color:#8a96a3; }
.pools-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.pools-table th, .pools-table td { padding: 14px 18px; vertical-align: middle; }

.col-apr   { width: 14%; }
.col-lockA { width: 14%; }
.col-lockB { width: 14%; }
.col-tvl   { width: 18%; text-align: right; }
.col-action{ width: 18%; text-align: right; }

.pool-select {
  appearance: none;
  border: 1px solid #2a3b4a;         /* subtle grey border */
  background: #0f1821;               /* your grey pill bg */
  color: #cfd6dc;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 14px/1.1 'Poppins', sans-serif;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.pool-select:hover:not(.is-active){
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

.pool-select.is-active{
  background: linear-gradient(180deg,#0fe1ff,#00bfff);
  color: #051822;
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    0 0 0 2px rgba(14, 229, 255, 0.35) inset,
    0 12px 28px rgba(0, 224, 255, 0.20),
    0 0 22px rgba(0, 224, 255, 0.45);
}

.pool-row.is-selected td { color: #e8f4fb; }
#estRewards { margin-top: 16px; }
/* one source of truth for horizontal padding */
.pools-table-wrap {
  --pad-x: 18px;                 /* adjust to taste (was 18px) */
  padding-inline: var(--pad-x);
}

/* table layout + consistent cell padding (no side padding on cells) */
.pools-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.pools-table thead th,
.pools-table tbody td{
  padding: 16px 0;               /* no left/right padding here */
  vertical-align: middle;
  box-sizing: border-box;
}

/* column widths & alignment (keeps APR/Lock/Lock/TVL/Action lined up) */
.pools-table thead th:nth-child(1),
.pools-table tbody td:nth-child(1){ width:16%; text-align:left; }

.pools-table thead th:nth-child(2),
.pools-table tbody td:nth-child(2){ width:16%; text-align:left; }

.pools-table thead th:nth-child(3),
.pools-table tbody td:nth-child(3){ width:16%; text-align:left; }

.pools-table thead th:nth-child(4),
.pools-table tbody td:nth-child(4){ width:20%; text-align:right; }

.pools-table thead th:nth-child(5),
.pools-table tbody td:nth-child(5){ width:32%; text-align:right; }

/* crisp dotted separator drawn ONCE per row, aligned to wrapper padding */
#poolsList tr{ position: relative; }
#poolsList tr + tr::before{
  content:"";
  position:absolute;
  left: calc(-1 * var(--pad-x));   /* extend to wrapper’s padding edge */
  right: calc(-1 * var(--pad-x));
  top: 0;
  height:1px;
  pointer-events:none;
  background-image: linear-gradient(
    to right,
    rgba(255,255,255,.26) 0 40%,
    rgba(255,255,255,0)   40% 100%
  );
  background-size: 10px 1px;       /* dot + gap */
  background-repeat: repeat-x;
  transform: translateY(-0.5px);   /* sub-pixel snap for sharpness */
  opacity:.9;
}


/* Optional: tiny nudge so TVL and button sit on the same baseline */
.pools-table .col-tvl,
.pools-table .col-action { white-space: nowrap; }

/* Selected row subtle emphasis (optional) */
.pool-row.is-selected td { color: #e8f4fb; }
.pool-select {
  appearance: none;
  border: 1px solid #2a3b4a;         /* subtle grey border */
  background: #0f1821;               /* your grey pill bg */
  color: #cfd6dc;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 14px/1.1 'Poppins', sans-serif;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.pool-select:hover:not(.is-active){
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

/* Neon outline glow for 'Selected' */
.pool-select.is-active{
  border-color: #3fc1d7;
  box-shadow:
    0 0 0 2px rgba(63,193,215,.35),   /* outer ring */
    0 6px 22px rgba(63,193,215,.20),  /* soft outer glow */
    inset 0 0 24px rgba(63,193,215,.12); /* faint inner glow */
  background: #0f1821;               /* keep the grey */
  color: #ffffff;
}
/* Pool row styling */
.pool-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* subtle divider */
}

.pool-row:last-child {
  border-bottom: none; /* don’t draw after the last row */
}

.pool-row td {
  padding: 14px 12px;  /* adjust padding so text and button breathe */
}
/* === POOLS — normalize layout + one dotted divider === */

/* keep the original table behavior and padding */
.pools-table { border-collapse: collapse !important; border-spacing: 0 !important; }
.pools-table thead th,
.pools-table tbody td { padding: 14px 18px !important; vertical-align: middle; }

/* kill the pseudo-line and any solid per-row borders that fight the divider */
#poolsList tr::before { content: none !important; }
.pool-row { border-bottom: 0 !important; }

/* single, crisp dotted divider between body rows */
/* kill any old per-cell borders */
.pools-table tbody tr + tr td { border-top: 0 !important; }

/* draw a single dotted line per row, aligned with the 18px cell padding */
.pools-table tbody tr { position: relative; }
.pools-table tbody tr + tr::after {
  content: "";
  position: absolute;
  left: 18px;           /* must match your th/td horizontal padding */
  right: 18px;
  top: 0;
  border-top: 1px dotted rgba(255,255,255,0.28);
  transform: translateY(-0.5px);   /* sub-pixel snap so it looks sharp */
  pointer-events: none;
}

/* column locks: APR | Lock | Lock | TVL | Action */
.pools-table thead th:nth-child(1),
.pools-table tbody td:nth-child(1) { width: 16%; text-align: left; }

.pools-table thead th:nth-child(2),
.pools-table tbody td:nth-child(2) { width: 18%; text-align: left; }

.pools-table thead th:nth-child(3),
.pools-table tbody td:nth-child(3) { width: 18%; text-align: left; }

.pools-table thead th:nth-child(4),
.pools-table tbody td:nth-child(4) { width: 20%; text-align: right; }

.pools-table thead th:nth-child(5),
.pools-table tbody td:nth-child(5) { width: 28%; text-align: right; white-space: nowrap; }

/* keep the outline-glow selected state (not the filled gradient) */
.pool-select.is-active{
  border-color: #3fc1d7 !important;
  background: #0f1821 !important;
  color: #fff !important;
  box-shadow:
    0 0 0 2px rgba(63,193,215,.35),
    0 6px 22px rgba(63,193,215,.20),
    inset 0 0 24px rgba(63,193,215,.12) !important;
}
/* === DIV-BASED "TABLE" GRID (4 columns) === */
.table { width: 100%; }

.t-head,
.t-row {
  display: grid;
  grid-template-columns: 20% 20% 30% 30%; /* APR | Lock | TVL | Action */
  align-items: center;
  padding: 14px 18px;
}

/* header style */
.t-head {
  color: rgba(255,255,255,.65);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* rows */
.t-body .t-row { position: relative; }

/* dotted separator */
.t-body .t-row + .t-row {
  border-top: 1px dotted rgba(255,255,255,.28);
}

/* align each column */
.t-row .col-apr,
.t-head > :nth-child(1) { text-align: left; }

.t-row .col-lock,
.t-head > :nth-child(2) { text-align: left; }

.t-row .col-tvl,
.t-head > :nth-child(3) { text-align: right; white-space: nowrap; }

.t-row .col-action,
.t-head > :nth-child(4) { text-align: right; }

/* BUTTON: outline glow "Selected" */
.pool-select {
  min-width: 112px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  line-height: 44px;
  font-weight: 600;
  color: #cfe6f5;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.pool-select:hover:not(.is-active){
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

.pool-select.is-active{
  background: #0f1821;
  color: #fff;
  border-color: #3fc1d7;
  box-shadow:
    0 0 0 2px rgba(63,193,215,.35),
    0 6px 22px rgba(63,193,215,.20),
    inset 0 0 24px rgba(63,193,215,.12);
}

/* === Pools: rock-solid mobile layout (button stays inside) ========= */
/* =========================================================
   1) Small phones — stacked data + fixed-width button
   ========================================================= */
/* MOBILE: keep TVL aligned + keep the whole table inside the card */
@media (max-width: 430px) {

  /* One place to control card-side padding for this table */
  .pools-table-wrap { --pad-x: 12px; padding-inline: var(--pad-x); }

  /* Use a responsive Action column that can't force overflow */
  .table .t-head,
  #poolsList .t-row {
    display: grid !important;
    grid-template-columns:
      minmax(0,1fr)        /* APR  */
      minmax(0,1fr)        /* Lock */
      minmax(0,1fr)        /* TVL  */
      minmax(136px, 24vw); /* Action (button) */
    column-gap: 8px;
    align-items: center;
    width: 100%;
  }

  /* Header cells in the first 3 columns (no Action label) */
  .table .t-head > div:nth-child(1) { grid-column: 1; text-align: left  !important; }
  .table .t-head > div:nth-child(2) { grid-column: 2; text-align: center!important; }
  .table .t-head > div:nth-child(3) { grid-column: 3; text-align: right !important; }

  /* Action column + button constraints */
  #poolsList .t-row .col-action { grid-column: 4; text-align: right !important; }
  #poolsList .t-row .col-action .pool-select {
    min-width: 136px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 !important;         /* cancel earlier margin-left */
  }

  /* Safety: prevent any accidental horizontal scroll */
  .table { width: 100%; overflow: hidden; }
}
/* Fine print disclaimer style */
.est-foot small.muted {
  font-size: 11px;                 /* smaller than normal body text */
  line-height: 1.4;
  color: rgba(230,246,255,0.55);   /* softer muted color */
  display: block;
  margin-top: 4px;
}

/* On very small screens */
@media (max-width: 430px) {
  .est-foot small.muted {
    font-size: 10px;
    line-height: 1.3;
  }
}
/* Fine print disclaimer style (matches return disclaimer) */
.pool-disclaimer {
  font-size: 11px;                 /* smaller than normal body text */
  line-height: 1.4;
  color: rgba(230,246,255,0.55);   /* muted tone */
  display: block;
  margin-top: 4px;
}

@media (max-width: 430px) {
  .pool-disclaimer {
    font-size: 10px;
    line-height: 1.3;
  }
}

/* DESKTOP: TVL header aligned; buttons stay at the far right */
@media (min-width: 431px){
  .table .t-head,
  #poolsList .t-row{
    display: grid !important;
    grid-template-columns:
      1fr 1fr 1fr
      minmax(148px, max-content); /* Action track only as wide as the button (min 148px) */
    column-gap: 14px;
    align-items: center;
    width: 100%;
  }



/* ===== DESKTOP FIX: TVL header aligns over TVL values; buttons stay at far right ===== */
@media (min-width: 431px){
  /* Use the same grid for the header and each row (scoped to #poolsList) */
  #poolsList .table .t-head,
  #poolsList .table .t-body .t-row {
    display: grid !important;
    grid-template-columns:
      1fr                 /* APR   */
      1fr                 /* Lock  */
      1fr                 /* TVL   */
      minmax(148px, max-content);  /* Action (fits pill, hugs right) */
    column-gap: 14px;
    padding: 14px 18px !important; /* keep side padding consistent */
    box-sizing: border-box;
    width: 100%;
  }

  /* Place the 3 header cells explicitly in cols 1–3 (no label in col 4) */
  #poolsList .table .t-head > :nth-child(1) { grid-column: 1; text-align: left;  }
  #poolsList .table .t-head > :nth-child(2) { grid-column: 2; text-align: left;  }
  #poolsList .table .t-head > :nth-child(3) { grid-column: 3; text-align: right; }

  /* Map row cells to the same columns */
  #poolsList .table .t-body .t-row .col-apr    { grid-column: 1; text-align: left;  }
  #poolsList .table .t-body .t-row .col-lock   { grid-column: 2; text-align: left;  }
  #poolsList .table .t-body .t-row .col-tvl    { grid-column: 3; text-align: right; }
  #poolsList .table .t-body .t-row .col-action { grid-column: 4; justify-self: end; text-align: right; }

  /* Button guardrails */
  #poolsList .table .t-body .t-row .pool-select { min-width: 148px; max-width: 100%; }
}
}
/* Rounded square buttons */
.btn-square {
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 600;
}

.btn-secondary {
  background: #1a2630;
  color: #cfe3f2;
  border: 1px solid #273745;
}

.actions-inline {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* === POSITIONS TABLE LAYOUT (5 columns) === */
#positionsList .t-head,
#positionsList .t-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 0.9fr 1.2fr; /* Pool | Staked | Rewards | Unlock | Actions */
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

/* header alignment */
#positionsList .t-head > :nth-child(1) { text-align: left;  } /* Pool   */
#positionsList .t-head > :nth-child(2) { text-align: left;  } /* Staked */
#positionsList .t-head > :nth-child(3) { text-align: left;  } /* Rewards*/
#positionsList .t-head > :nth-child(4) { text-align: left;  } /* Unlock */
#positionsList .t-head > :nth-child(5) { text-align: left;  } /* Actions*/

/* row alignment to match */
#positionsList .t-row > :nth-child(1) { text-align: left;  }
#positionsList .t-row > :nth-child(2) { text-align: left;  }
#positionsList .t-row > :nth-child(3) { text-align: left;  }  /* ETH numbers line up under “Rewards” */
#positionsList .t-row > :nth-child(4) { text-align: left;  }  /* dates under “Unlock”              */
#positionsList .t-row > :nth-child(5) { text-align: left;  }

/* actions group inside col 5 */
#positionsList .col-actions .action-group {
  display: inline-flex; gap: 8px; align-items: center;
}

/* Pool select pill (isolated) */
.pool-select {
  appearance: none;
  border: 1px solid #2a3b4a;
  background: #0f1821;
  color: #cfd6dc;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 14px/1.1 'Poppins', sans-serif;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.pool-select.is-active{
  border-color: #3fc1d7;
  box-shadow:
    0 0 0 2px rgba(63,193,215,.35),
    0 6px 22px rgba(63,193,215,.20),
    inset 0 0 24px rgba(63,193,215,.12);
  background: #0f1821;
  color: #fff;
}

/* --- Your Positions: mobile expandable rows --- */
@media (max-width: 640px){
  /* make the whole row feel tappable */
  #positionsList .t-row{
    cursor: pointer;
    border-radius: 12px;
    transition: background .18s ease, box-shadow .18s ease;
  }
  /* selected/open row highlight */
  #positionsList .t-row.is-open{
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
  }

  /* hide inline action column on mobile */
  #positionsList .col-actions{ display:none; }

  /* slide-down drawer: full width under the row content */
  #positionsList .row-menu{
    display: none;
    grid-column: 1 / -1;           /* span all columns */
    padding: 10px 0 6px;
  }
  #positionsList .t-row.is-open .row-menu{ display:block; }

  /* the 3 action buttons inside the drawer */
  #positionsList .row-menu .action-group{
    display:flex; gap:10px; flex-wrap:wrap;
  }

  /* tiny chevron affordance (optional) */
  #positionsList .t-row .chev{
    margin-left: 6px;
    inline-size: 8px; block-size: 8px;
    border-right: 2px solid rgba(230,246,255,.8);
    border-bottom: 2px solid rgba(230,246,255,.8);
    transform: rotate(-45deg);
    transition: transform .18s ease, opacity .18s ease;
    opacity:.7;
  }
  #positionsList .t-row.is-open .chev{ transform: rotate(45deg); opacity:1; }
}

/* desktop keeps the inline buttons; hide the drawer */
@media (min-width: 640.02px){
  #positionsList .row-menu{ display:none !important; }
}

@media (max-width: 768px){
  .pos-drawer { grid-column: 1 / -1; display:flex; justify-content:center; }
  .pos-drawer .action-group {
    display:flex; justify-content:center; gap:10px; width:100%;
  }
}
@media (max-width: 768px){
  #positionsList .t-head > :nth-child(5){ display:none !important; }
}


/* Hide "Actions" column header + cell on mobile */
@media (max-width: 640px){
  #positionsList .t-head .col-actions { display:none; }
  #positionsList .t-row .col-actions { display:none; } /* safety, in case */
}

/* Make the Stake button a full-width rounded square under the Amount field */
#btnStake {
  display: block;        /* break out of any inline/flex button row */
  width: 100%;           /* full width of the input/card */
  height: 46px;          /* consistent height */
  border-radius: 14px;   /* rounded square */
  padding: 0 18px;       /* comfy left/right padding */
  margin-top: 10px;      /* little gap below the Amount input */
}

/* If the Stake button sits inside a flex .btn-row, ensure it can span */
.btn-row #btnStake {
  flex: 0 0 100%;        /* force full row within a flex container */
}

/* tiny utility for right-align text cells used above */
.text-right { text-align: right; }

/* disabled look + no click */
.is-disabled {
  opacity: .45;
  pointer-events: none;
  filter: grayscale(0.2);
}

/* our mini buttons already exist; keep them consistent */
.btn-mini { padding: 6px 10px; border-radius: 10px; font-size: 12px; line-height: 1; }

/* when claimable, use the same gradient as Stake */
.btn-primary { 
  color:#0b1216;
  background: linear-gradient(180deg,#7cf0ff,#1de4ff);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 8px 30px rgba(53,226,255,.25);
}
.btn-primary:hover{ filter:brightness(1.05); }

/* Base pill (already present) */
.btn{
  appearance:none; border:0; outline:0; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 20px; border-radius:999px;
  font-weight:700; letter-spacing:.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow);
}
.btn:active{ transform: translateY(1px) }

/* Primary gradient (Stake look) */
.btn-primary{
  color:#0b1216;
  background: linear-gradient(180deg,#7cf0ff,#1de4ff);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 8px 30px rgba(53,226,255,.25);
}
.btn-primary:hover{ filter:brightness(1.05) }

/* === Mini pill that matches Stake exactly, just smaller === */
.btn-mini{
  /* same pill, smaller size */
  padding: 8px 14px;
  min-height: 32px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;          /* <- important: pill, not rounded square */
}

/* scale the primary shadow so the mini looks identical but proportional */
.btn-primary.btn-mini{
  box-shadow: inset 0 -1.5px 0 rgba(0,0,0,.15), 0 6px 20px rgba(53,226,255,.22);
}

/* disabled state (for non-claimable) */
.is-disabled{
  opacity:.45;
  pointer-events:none;
  filter: grayscale(.2);
}

/* ===== Shadow reductions & cleanups ===== */

/* Globally soften the default component shadow */
:root{
--shadow: 0 4px 12px rgba(0,0,0,.16); }
.btn{ box-shadow: 0 3px 9px rgba(0,0,0,.15); }
.btn.btn-mini{ box-shadow: 0 2px 7px rgba(0,0,0,.12); }

.btn-primary{
  box-shadow:
    inset 0 -1.5px 0 rgba(0,0,0,.12),
    0 4px 12px rgba(53,226,255,.12);
}
.btn-primary.btn-mini{
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 3px 8px rgba(53,226,255,.11);
}

.btn-ghost{ box-shadow: 0 2px 5px rgba(0,0,0,.10); }
.card{ box-shadow: 0 6px 18px rgba(0,0,0,.15); }

.pool-select.is-active, .btn-ghost.is-selected{
  box-shadow:
    0 0 0 2px rgba(63,193,215,.18),
    0 4px 12px rgba(63,193,215,.11),
    inset 0 0 12px rgba(63,193,215,.08);
}


/* Tables: make sure no element adds a big box-shadow underneath */
.table, .pools-table, #positionsList{ box-shadow: none; }

:root{
  --sh-key:.06;
  --sh-amb:.012;
  --sh-amb-2:.035;
}

/* cards/tables */
.card, .table, .table .t-row{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 4px 12px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .14),
    0 18px 48px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .08),
    0 40px 80px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .04);
}

/* buttons */
.btn{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 1.5px 4px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .14),
    0 8px 18px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .08);
}
.btn.btn-mini{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 1px 3px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .12),
    0 6px 14px rgba(var(--bg-r),var(--bg-g),var(--bg-b), .06);
}
.btn-primary{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 3px 9px rgba(54,231,255,.10),
    0 18px 36px rgba(54,231,255,.06);
}
.btn-primary.btn-mini{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 2px 6px rgba(54,231,255,.10),
    0 12px 24px rgba(54,231,255,.05);
}
.pool-select.is-active, .btn-ghost.is-selected{
  box-shadow:
    0 0 0 2px rgba(63,193,215,.12),
    0 6px 16px rgba(63,193,215,.08),
    inset 0 0 10px rgba(63,193,215,.05);
}
.btn-compound.btn-mini::before{
  width:16px; height:3px; bottom:-2px;
}

/* Stats strip layout (sits under the connect/docs buttons) */
.stats-strip{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 20px;

    /* Center it */
  max-width: 640px;    /* same visual width as your tables area */
  margin: 16px auto 20px; /* auto left/right = center horizontally */
}

/* Match table/card theme */
.stats-card{
  background: var(--panel, #0f1720);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow:
    0 0.5px 0 rgba(255,255,255,0.06) inset,
    0 8px 20px rgba(0,0,0,0.25),
    0 2px 6px rgba(0,0,0,0.22);
}

/* Typography consistent with table headers/cells */
.stats-title{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #9fb2c2;
  margin-bottom: 8px;
}

.stats-main{
  font-size: 18px;
  font-weight: 700;
  color: #e7f1f8;
}

.stats-sub{
  margin-top: 2px;
  font-size: 12px;
  color: #8ea1b2;
}

/* --- NAVBAR SPACING FIX: make pill contents sit together --- */

/* 1) Most pills use a flex shell with space-between. Force a centered/packed row. */
.alpha-nav, .alpha-nav *[class*="nav"], 
header nav, .navbar, .nav, .pill-nav, .nav-shell {
  display: flex;                     /* ensure flex in case */
  justify-content: flex-start !important;   /* kill space-between */
  align-items: center !important;
  gap: 12px !important;              /* default overall gap */
}

/* 2) Shrink the space after the logo/brand wrapper (common names covered). */
.alpha-nav .logo, .alpha-nav [class*="logo"],
.navbar .brand, .navbar [class*="brand"],
header nav .logo, header nav [class*="logo"] {
  margin-right: 8px !important;      /* was likely 24–72px or a clamp() */
}

/* 3) Tighten link-group spacing inside the pill. */
.alpha-nav .nav-list, .navbar .nav-list, 
nav .nav-list, nav ul[role="menubar"], 
nav .menu, .nav-links {
  display: flex;
  gap: 12px !important;          /* was likely 24–32px */                        
}

/* 4) Slim the pill’s horizontal padding */
.alpha-nav .nav-shell, .navbar, .pill-nav, nav.nav {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* 5) Optional: slightly smaller logo so it visually matches the main site */
.alpha-nav .logo img, header nav .logo img {
  height: 26px !important;
  width: auto !important;
}

/* === NAVBAR layout fixes (make staking nav match main site) === */
.alpha-nav .nav-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* left-align logo + items */
  gap: 28px;                     /* spacing between logo and items */
  padding: 0 32px;               /* adjust side padding to match main */
}

.alpha-nav .logo {
  margin-right: 20px;            /* spacing between logo and first link */
  flex-shrink: 0;
}

.alpha-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;                     /* consistent spacing between each link */
}

/* === NAV (match main site spacing exactly) === */
.alpha-nav .container {               /* keep pill centered */
  display: flex;
  justify-content: center;
}

.alpha-nav .nav-shell {
  display: inline-flex !important;    /* shrink-to-fit pill */
  justify-content: flex-start !important; /* kill space-between */
  width: auto !important;             /* override all min(...) widths */
  min-width: 0;
  gap: 22px;                           /* tweak if needed */
  padding: 12px 18px;                  /* same left/right padding as main site */
}

.alpha-nav .logo { margin-right: 12px; }     /* small offset before “Home” */
.alpha-nav .navbar-menu .menu { gap: 32px; } /* link-to-link spacing */
/* Animated Alpha-brand gradient for hero text */
.text-anim-brand{
  /* Static fallback first (if animations disabled) */
  background: linear-gradient(90deg, #36E7FF 0%, #6AF3D6 40%, #36E7FF 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Subtle glow that matches your buttons (optional but nice) */
  text-shadow:
    0 0 0.5px rgba(54, 231, 255, 0.25),
    0 0 8px  rgba(106, 243, 214, 0.15);
}

/* Animate the gradient sweep */
@media (prefers-reduced-motion: no-preference){
  .text-anim-brand{
    background-size: 200% 100%;
    animation: brandSweep 6.5s linear infinite;
  }
}

@keyframes brandSweep{
  0%   { background-position: 0% 50%;   filter: hue-rotate(0deg);   }
  50%  { background-position: 100% 50%; filter: hue-rotate(4deg);   }
  100% { background-position: 0% 50%;   filter: hue-rotate(0deg);   }
}

/* Optional: slightly heavier weight & tighter tracking for hero */
.hero-title{
  letter-spacing: -0.01em;
  font-weight: 800;
}
/* "Your Rewards" badge in positions card header */
#yourRewardsBadge,
.your-rewards-badge{
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  color: #9aa7b4;
  pointer-events: none; /* visual only */
}

.your-rewards-badge .label{ opacity: .9; }
.your-rewards-badge strong{ color: #e7f1f8; font-weight: 600; }
.your-rewards-badge .usd{ color: #7f8a97; }
/* Animated gradient ink (same vibe as $AMETA) */
.brand-ink{
  --c1:#36E7FF; --c2:#6AF3D6; --c3:#92ffd8;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c2), var(--c1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ink-slide 6s linear infinite;
}
@keyframes ink-slide{
  0% { background-position:   0% 0; }
  100% { background-position: -200% 0; }
}

.your-rewards-badge .unit { color:#cfe6ee; opacity:.9; }

/* ---------- 1) Center the buttons in the row drawer (mobile) ---------- */
@media (max-width: 768px){
  /* the drawer wrapper that appears under a selected row */
  #positionsList .pos-drawer,
  #positionsList .drawer,
  #positionsList .col-actions {  /* covers the common wrappers you use */
    width: 100%;
  }

  /* center the buttons inside the drawer */
  #positionsList .action-group{
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  /* optional: make the mini pills read nicely when centered */
  #positionsList .action-group .btn{
    min-width: 108px;
  }
}

/* ---------- 2) Stack USD below ETH in the “Your Rewards” badge ---------- */
@media (max-width: 768px){
  #yourRewardsBadge{
    top: 10px;
    right: 12px;
    gap: 2px;
    flex-direction: column;       /* puts USD under ETH */
    align-items: flex-end;
  }
  #yourRewardsBadge #yrUsd{
    display: block;               /* force a line break */
    margin: 0;
    line-height: 1.15;
  }
}
/* numeric columns render with equal-width digits */
.num { font-variant-numeric: tabular-nums; }

/* Right align numeric columns; prevent wrapping */
.col-staked, .col-rewards, .col-tvl, .col-apr { text-align: right; white-space: nowrap; }

/* Make the footer full-bleed edge-to-edge on all browsers */
footer.acm-foot{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;              /* pull to edges */
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;                 /* ensure no rounded sides */
  overflow: hidden;                 /* clip internal glows neatly */

  /* nice safe-area padding for iPhone notches in wallet browsers */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* If you have an inner container, keep it centered but not limiting width */
footer.acm-foot .acm-foot__container{
  max-width: 1200px;
  margin: 0 auto;
}

/* ULTRA MOBILE TUNE for pools + positions */
@media (max-width: 430px){
  /* Pools (APR/Lock/TVL + Select) */
  .table .t-head,
  #poolsList .t-row{
    font-size: 13px;                 /* was 14–16 */
  }
  #poolsList .col-apr,
  #poolsList .col-lock,
  #poolsList .col-tvl{
    font-size: 13px;
  }
  .pool-select{
    font-size: 12px !important;
    padding: 8px 12px !important;
    min-width: 128px !important;     /* stays tappable but doesn’t push */
  }

  /* Positions (Your Positions table) */
  #positionsList .t-head,
  #positionsList .t-row{
    font-size: 13px;                 /* keep a clean single line */
  }
  #positionsList .t-row > div{
    line-height: 1.25;
  }
}
/* Mobile positions drawer — force a single row with equal widths */
@media (max-width: 640px){
  #positionsList .row-menu .action-group{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
  }
  #positionsList .row-menu .action-group .btn{
    min-width: 0 !important;      /* override the 108px rule */
    padding: 8px 12px;             /* tighter pills so they fit */
    font-size: 12px;
    line-height: 1;
  }
}
html, body {
  background: #0b1218;  /* match your app’s dark background */
  min-height: 100%;
  overscroll-behavior: none;   /* stops bounce glow on iOS */
}

body {
  background-attachment: fixed; /* ensures solid background behind overlays */
}
@supports (padding: max(0px)) {
  body {
    /* extend page into safe area so no white gap shows */
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #0b1218; /* same as your site background */
  }
}
/* Drawer row background (expanded state) */
#positionsList .t-row.expanded {
  background-color: #111a22;   /* slightly lighter than your normal #0b1218 */
  border-radius: 10px;
  transition: background-color 0.25s ease;
}

/* Optional: smooth hover/focus states */
#positionsList .t-row.expanded:hover {
  background-color: #16222d;
}
/* Force footer to span full width of screen */
footer {
  width: 100vw;          /* always span full viewport width */
  margin-left: calc(-50vw + 50%); /* cancel out parent container centering */
  background: #0b1218;   /* or your gradient */
  padding: 20px 0;       /* adjust as needed */
  text-align: center;
}

/* Ensure inner content doesn’t clip */
footer .footer-inner {
  max-width: 1200px;     /* keep content tidy on desktop */
  margin: 0 auto;
  padding: 0 16px;
}
/* --- Toast (success/info/error) --- */
.ameta-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  min-width: 280px;
  max-width: 90vw;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(17,25,31,0.95);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  color: #dfeaf2;
  font: 600 15px/1.4 'Poppins', sans-serif;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  text-align: center;
}
.ameta-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.ameta-toast .title { font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.ameta-toast .msg   { font-weight: 500; font-size: 14px; color: #a9bfcc; }

.ameta-toast.success { border-color: rgba(58,224,255,.35); box-shadow: 0 0 0 2px rgba(58,224,255,.18) inset, 0 10px 30px rgba(0,210,255,.2); }
.ameta-toast.error   { border-color: rgba(255,90,90,.35);  box-shadow: 0 0 0 2px rgba(255,90,90,.18) inset, 0 10px 30px rgba(255,50,50,.2); }
/* === FOOTER — restore desktop layout like main site (desktop only) === */
@media (min-width: 769px){
  footer.acm-foot .acm-foot__container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 150px 1fr 1fr auto 220px; /* Logo | Links | Links | Socials | CTA */
    align-items: center;
    column-gap: 24px;
    text-align: initial; /* undo any mobile centering that leaked */
  }

  /* Show the logo + link columns again (in case any mobile rules stuck) */
  footer.acm-foot .acm-foot__logo{
    display: block !important;
    justify-self: start;
    margin: 0 36px 0 -8px; /* match main-site nudge */
  }
  footer.acm-foot .acm-foot__links{ display: block !important; }

  /* Desktop socials grid; hide the mobile variant */
  footer.acm-foot .acm-foot__socials .social.desktop{
    display: grid !important;
    grid-template-columns: repeat(4, auto);
    column-gap: 18px; row-gap: 16px;
    justify-content: center; align-items: center;
  }
  footer.acm-foot .acm-foot__socials .social.mobile{ display: none !important; }

  /* CTA sits at far-right */
  footer.acm-foot .acm-foot__cta{
    display: flex; justify-content: flex-end; align-items: center;
  }

  /* Safety reset: cancel any universal centering applied for mobile */
  .acm-foot__container, .acm-foot__container *{
    text-align: initial !important;
  }
}
/* centered toast modal (re-usable for stake/claim/compound) */
.toast-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.30);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.toast-modal[aria-live="on"]{
  opacity: 1;
  pointer-events: auto;
}
.toast-box{
  min-width: min(92vw, 460px);
  max-width: 92vw;
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(12,18,23,.92), rgba(8,14,18,.92));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  color: #e7f1f8;
}
.toast-icon{ font-size: 22px; line-height: 1; margin-top: 2px; }
.toast-title{ font-weight: 700; margin-bottom: 4px; }
.toast-lines{ font-size: 14px; color: #a9bfcc; line-height: 1.35; white-space: pre-line; }
.toast-close{
  appearance:none;border:0;cursor:pointer;
  background:transparent;color:#9ab3c2;font-size:22px;line-height:1;
}
.toast-close:hover{ color:#cfe3ee; }

/* mobile fine-tuning */
@media (max-width: 480px){
  .toast-box{ padding: 14px 14px 12px; gap: 10px; }
  .toast-lines{ font-size: 13px; }
}
