@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-0: #0d0e0f;
  --bg-1: #131318;
  --bg-2: #1a1a22;
  --card: rgba(22,22,28,0.92);
  --card-hover: rgba(28,28,36,0.96);
  --border: rgba(255,255,255,0.09);
  --border-purple: rgba(139,92,246,0.38);
  --purple: #7c3aed;
  --violet: #8b5cf6;
  --lavender: #a78bfa;
  --cyan: #22d3ee;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --text: #f1f5ff;
  --text-2: #c8d0e0;
  --muted: #6d7a8f;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 75% -8%,   rgba(124,58,237,.11) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at -8%  92%,   rgba(99,102,241,.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 110%,   rgba(34,211,238,.04) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
  opacity: .55;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(3,3,18,.76);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(139,92,246,.12);
  transition: all 0.3s ease;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: white;
  box-shadow: 0 0 18px rgba(124,58,237,.45);
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.nav-logo:hover .nav-logo-icon {
  box-shadow: 0 0 32px rgba(124,58,237,.70);
  transform: scale(1.1) rotate(-4deg);
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px;
  text-decoration: none; color: var(--text-2);
  font-size: 0.875rem; font-weight: 500; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--lavender); background: rgba(139,92,246,.10); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.badge-testnet {
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.32); color: #f59e0b;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.22s;
  border: none; outline: none; text-decoration: none; white-space: nowrap;
  font-family: inherit; position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(124,58,237,.38);
}
.btn-primary:active { transform: scale(0.97) translateY(0) !important; }
.btn:active { transform: scale(0.97) !important; }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text-2);
  border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--text); background: rgba(255,255,255,.08);
  border-color: var(--border-purple); transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--lavender);
  border: 1px solid var(--border-purple);
}
.btn-outline:hover { background: rgba(124,58,237,.12); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.btn-green {
  background: rgba(16,185,129,.15); color: var(--green);
  border: 1px solid rgba(16,185,129,.32);
}
.btn-green:hover { background: rgba(16,185,129,.26); transform: translateY(-1px); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.card:hover { border-color: var(--border-purple); background: var(--card-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.28); }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.stat-card:hover {
  border-color: var(--border-purple); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.26);
}
.stat-label {
  font-size: 0.74rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px;
}
.stat-value {
  font-size: 2.1rem; font-weight: 900;
  letter-spacing: -0.045em; color: var(--text); line-height: 1;
  transition: text-shadow 0.3s;
  font-variant-numeric: tabular-nums;
}
.stat-card:hover .stat-value { text-shadow: none; }
.stat-change {
  font-size: 0.78rem; font-weight: 600;
  margin-top: 8px; display: flex; align-items: center; gap: 4px;
}
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── LAYOUT ── */
.section { padding: 84px 0; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(139,92,246,.10); border: 1px solid rgba(139,92,246,.28);
  color: var(--lavender); margin-bottom: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.section-label:hover { border-color: rgba(139,92,246,.50); transform: translateY(-1px); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.12; margin-bottom: 18px;
}
.section-desc { color: var(--text-2); font-size: 1.05rem; max-width: 540px; line-height: 1.75; }

@keyframes gradShift {
  0%  { background-position:0%   50%; }
  50% { background-position:100% 50%; }
  100%{ background-position:0%   50%; }
}
.grad-text {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 30%, #22d3ee 65%, #c084fc 100%);
  background-size: 260% 260%;
  animation: gradShift 5s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── TAGS ── */
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; transition: transform 0.2s, box-shadow 0.2s;
}
.tag:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.tag-green  { background:rgba(16,185,129,.12);  color:#10b981; border:1px solid rgba(16,185,129,.28); }
.tag-purple { background:rgba(139,92,246,.12);  color:#a78bfa; border:1px solid rgba(139,92,246,.28); }
.tag-yellow { background:rgba(245,158,11,.12);  color:#f59e0b; border:1px solid rgba(245,158,11,.28); }
.tag-blue   { background:rgba(34,211,238,.12);  color:#22d3ee; border:1px solid rgba(34,211,238,.28); }
.tag-red    { background:rgba(239,68,68,.12);   color:#ef4444; border:1px solid rgba(239,68,68,.28);  }

/* ── TABLE ── */
.table-wrap { overflow-x:auto; border-radius:var(--radius-lg); border:1px solid var(--border); }
table { width:100%; border-collapse:collapse; }
thead th {
  padding:14px 20px; text-align:left;
  font-size:0.73rem; font-weight:700; color:var(--muted);
  text-transform:uppercase; letter-spacing:0.05em;
  background:rgba(255,255,255,.025); border-bottom:1px solid var(--border);
}
tbody td { padding:16px 20px; font-size:0.875rem; color:var(--text-2); border-bottom:1px solid rgba(255,255,255,.035); }
tbody tr:last-child td { border-bottom:none; }
tbody tr:hover td { background:rgba(255,255,255,.03); color:var(--text); }

/* ── SWAP INPUT ── */
.swap-box {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; transition: border-color 0.22s, box-shadow 0.22s;
}
.swap-box:focus-within {
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 0 0 1px rgba(139,92,246,.15);
}
.swap-label { font-size:0.72rem; color:var(--muted); font-weight:700; letter-spacing:0.05em; text-transform:uppercase; margin-bottom:12px; }
.swap-row   { display:flex; align-items:center; gap:12px; }
.token-btn {
  display:flex; align-items:center; gap:8px; padding:9px 14px; border-radius:100px;
  background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.1);
  cursor:pointer; font-size:0.9rem; font-weight:800; color:var(--text);
  white-space:nowrap; transition:all 0.2s; font-family:inherit; flex-shrink:0;
  letter-spacing:-0.01em;
}
.token-btn:hover { background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.18); transform:scale(1.03); }
.token-dot {
  width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:900;
}
.amount-input {
  background:none; border:none; outline:none;
  color:var(--text); font-size:2.1rem; font-weight:800;
  width:100%; text-align:right; font-family:'Inter',sans-serif;
  letter-spacing:-0.03em; font-variant-numeric:tabular-nums;
}
.amount-input::placeholder { color:rgba(255,255,255,.18); }

/* ── POOL CARD ── */
.pool-card {
  background: rgba(255,255,255,.036); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: all 0.22s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.pool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.pool-card:hover::before { opacity: 1; }
.pool-card:hover { border-color:rgba(139,92,246,.38); background:rgba(139,92,246,.04); transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.22); }

/* ── FEAT CARD ── */
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s; text-decoration: none; display: block;
}
.feat-card:hover {
  border-color: var(--border-purple); background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.feat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.26);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px; transition: all 0.3s ease;
}
.feat-card:hover .feat-icon {
  background: rgba(124,58,237,.22);
}
.feat-title { font-size:1rem; font-weight:700; margin-bottom:8px; color:var(--text); }
.feat-desc  { font-size:0.86rem; color:var(--muted); line-height:1.65; }
.feat-link  { margin-top:16px; font-size:0.8rem; color:var(--lavender); font-weight:700; }

/* ── ECO CARD ── */
.eco-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: flex-start; gap: 20px;
}
.eco-logo {
  width:56px; height:56px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:900;
}

/* ── PROJECT ROW ── */
.proj-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; border-bottom:1px solid var(--border);
}
.proj-row:last-child { border-bottom:none; }
.proj-info { display:flex; align-items:center; gap:14px; }
.proj-av {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:17px; font-weight:900; flex-shrink:0;
}

/* ── STEP CIRCLE ── */
.step-circle {
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; font-weight:900; margin:0 auto 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-circle:hover { transform:translateY(-5px); box-shadow:0 14px 40px rgba(124,58,237,.32); }

/* ── FOOTER ── */
.footer { border-top:1px solid var(--border); padding:52px 0 32px; position:relative; z-index:1; }
.footer::before {
  content:''; position:absolute; top:0; left:8%; right:8%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(139,92,246,.5),rgba(34,211,238,.35),rgba(139,92,246,.5),transparent);
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:800; font-size:1.05rem; margin-bottom:12px; }
.footer-desc { color:var(--muted); font-size:0.875rem; line-height:1.7; max-width:280px; }
.footer-heading { font-size:0.72rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.07em; margin-bottom:16px; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { text-decoration:none; color:var(--text-2); font-size:0.875rem; transition:color 0.2s; }
.footer-links a:hover { color:var(--lavender); }
.footer-bottom { border-top:1px solid var(--border); padding-top:24px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:0.78rem; }
.footer-social a { color:rgba(248,250,252,.35); text-decoration:none; font-size:0.875rem; font-weight:600; transition:color .2s; }
.footer-social a:hover { color:var(--lavender); }

/* ── PAGE HEADER ── */
.page-header { padding:100px 0 48px; position:relative; z-index:1; overflow:hidden; }
.page-header { padding-top:136px !important; }
.page-header::before {
  content:'';
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(124,58,237,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
}
.page-header::after {
  content:'';
  position:absolute; top:-60px; left:50%; transform:translateX(-50%);
  width:600px; height:240px;
  background:radial-gradient(ellipse, rgba(124,58,237,.08) 0%, transparent 70%);
  pointer-events:none; z-index:0;
}
.page-header > * { position:relative; z-index:1; }

/* ── DIVIDER ── */
.divider { height:1px; background:var(--border); margin:28px 0; }

/* ── ANIMATIONS ── */
@keyframes pulseGlow {
  0%,100%{ opacity:.7; }
  50%    { opacity:1;  }
}
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* fade-up: hidden by default; animations.js IntersectionObserver adds .in-view */
.fade-up { opacity:0; }

/* ── PROGRESS BAR ── */
.progress-bar {
  height: 8px;
  background: rgba(255,255,255,.07);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; right: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
  animation: barShimmer 2.8s ease-in-out infinite;
}
@keyframes barShimmer {
  0%   { left: -60%; }
  100% { left: 140%; }
}

/* ── SKELETON LOADING ── */
@keyframes skeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.10) 50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 400% 100%;
  animation: skeletonPulse 1.6s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton-line { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg-0); }
::-webkit-scrollbar-thumb { background:linear-gradient(to bottom,#7c3aed,#22d3ee); border-radius:3px; }

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media(max-width:640px){
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .section-title{ font-size:1.75rem; }
  .pool-card{ flex-direction:column; align-items:flex-start; }
}

/* ── HAMBURGER ── */
.hamburger{ display:none; flex-direction:column; gap:5px; padding:6px; background:none; border:none; cursor:pointer; }
.hamburger span{ display:block; width:22px; height:2px; background:var(--text-2); border-radius:2px; transition:all 0.3s; }
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
@media(max-width:768px){ .hamburger{ display:flex; } }

/* ── MOBILE OVERLAY ── */
.mobile-overlay{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.72); z-index:90; backdrop-filter:blur(4px); }
.mobile-overlay.show{ display:block; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav{
  position:fixed; top:0; right:-300px; width:280px; height:100vh;
  background:var(--bg-1); border-left:1px solid var(--border);
  z-index:95; transition:right 0.3s ease; display:flex; flex-direction:column; padding:24px; overflow-y:auto;
}
.mobile-nav.open{ right:0; }
.mobile-nav-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; }
.mobile-nav-close{
  background:var(--card); border:1px solid var(--border); color:var(--text-2);
  width:32px; height:32px; border-radius:8px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:1rem; transition:all 0.2s;
}
.mobile-nav-close:hover{ border-color:var(--border-purple); color:var(--text); }
.mobile-nav-links{ list-style:none; display:flex; flex-direction:column; gap:4px; flex:1; }
.mobile-nav-links a{ display:block; padding:12px 16px; border-radius:10px; text-decoration:none; color:var(--text-2); font-size:0.95rem; font-weight:600; transition:all 0.2s; }
.mobile-nav-links a:hover{ color:var(--lavender); background:rgba(139,92,246,.10); }
.mobile-nav-footer{ display:flex; flex-direction:column; gap:10px; padding-top:20px; border-top:1px solid var(--border); }

/* ── PRICE TICKER BAR ── */
.ticker-bar{
  position:fixed; top:64px; left:0; right:0; height:36px;
  background:rgba(3,3,18,.97);
  border-bottom:1px solid rgba(139,92,246,.20);
  box-shadow:0 1px 24px rgba(124,58,237,.10);
  overflow:hidden; z-index:99; display:flex; align-items:center;
}
.ticker-track{ display:flex; align-items:center; width:100%; overflow:hidden; }
.ticker-scroll{
  display:inline-flex; align-items:center; white-space:nowrap;
  animation:tickerMove 45s linear infinite;
}
.ticker-scroll:hover{ animation-play-state:paused; cursor:default; }
@keyframes tickerMove{ from{transform:translateX(0)} to{transform:translateX(-50%)} }
.tick-item{
  display:inline-flex; align-items:center; gap:5px; padding:0 22px;
  font-size:0.77rem; font-weight:600;
  border-right:1px solid rgba(255,255,255,.05); flex-shrink:0;
}
.tick-sym   { color:var(--text-2); }
.tick-price { color:var(--text); font-weight:700; }
.tick-up    { color:var(--green); }
.tick-down  { color:var(--red);   }

/* ── MODAL BASE ── */
.modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.76);
  z-index:200; display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(12px); opacity:0; pointer-events:none; transition:opacity 0.2s;
}
.modal-overlay.open{ opacity:1; pointer-events:all; }
.modal-box{
  background:var(--bg-1); border:1px solid var(--border-purple);
  border-radius:var(--radius-xl); width:380px;
  max-width:calc(100vw - 32px); max-height:82vh; overflow-y:auto;
  transform:translateY(16px); transition:transform 0.25s;
  box-shadow:0 24px 80px rgba(0,0,0,.68),0 0 0 1px rgba(139,92,246,.12);
}
.modal-overlay.open .modal-box{ transform:translateY(0); }
.modal-header{ display:flex; align-items:center; justify-content:space-between; padding:20px 20px 16px; border-bottom:1px solid var(--border); }
.modal-title{ font-size:0.95rem; font-weight:800; }
.modal-close{
  background:var(--card); border:1px solid var(--border); color:var(--text-2);
  width:28px; height:28px; border-radius:7px; cursor:pointer;
  font-size:0.875rem; display:flex; align-items:center; justify-content:center; transition:all 0.2s;
}
.modal-close:hover{ border-color:var(--border-purple); color:var(--text); }
.modal-body{ padding:16px 20px 20px; }

/* ── TOKEN MODAL ── */
.token-search{
  width:100%; background:var(--bg-2); border:1px solid var(--border);
  border-radius:10px; padding:10px 14px; color:var(--text);
  font-size:0.875rem; font-family:inherit; outline:none;
  margin-bottom:12px; transition:border-color 0.2s;
}
.token-search:focus{ border-color:var(--border-purple); }
.token-search::placeholder{ color:var(--muted); }
.token-list{ display:flex; flex-direction:column; gap:3px; }
.token-item{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-radius:10px; cursor:pointer; transition:background 0.15s; }
.token-item:hover{ background:rgba(255,255,255,.055); }
.token-item-left{ display:flex; align-items:center; gap:12px; }

/* ── CONFIRM MODAL ── */
.confirm-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.04); font-size:0.85rem; }
.confirm-row:last-child{ border-bottom:none; }

/* ── COUNTDOWN ── */
.countdown{ display:inline-flex; gap:5px; align-items:center; }
.cd-block{ background:rgba(255,255,255,.07); border-radius:6px; padding:4px 8px; text-align:center; min-width:38px; }
.cd-num{ font-size:0.88rem; font-weight:900; color:var(--lavender); line-height:1; display:block; }
.cd-lbl{ font-size:0.52rem; color:var(--muted); font-weight:700; text-transform:uppercase; display:block; }
.cd-sep{ color:var(--muted); font-weight:700; font-size:0.85rem; }

/* ── NOTIFICATION BELL ── */
.notif-wrapper{ position:relative; }
.notif-btn{
  background:var(--card); border:1px solid var(--border);
  width:36px; height:36px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:1rem; transition:border-color 0.2s; color:var(--text-2); position:relative;
}
.notif-btn:hover{ border-color:var(--border-purple); }
.notif-badge{
  position:absolute; top:-5px; right:-5px;
  width:17px; height:17px; background:var(--red); border-radius:50%;
  font-size:0.6rem; font-weight:900; color:white;
  display:flex; align-items:center; justify-content:center; border:2px solid var(--bg-0);
}
.notif-panel{
  position:absolute; top:calc(100% + 8px); right:0; width:300px;
  background:var(--bg-1); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:0 16px 48px rgba(0,0,0,.55); z-index:150; display:none; overflow:hidden;
}
.notif-panel.show{ display:block; }
.notif-panel-header{ padding:14px 16px; border-bottom:1px solid var(--border); font-weight:700; font-size:0.875rem; display:flex; justify-content:space-between; }
.notif-item{ padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.04); cursor:pointer; transition:background 0.15s; }
.notif-item:hover{ background:rgba(255,255,255,.03); }
.notif-item:last-child{ border-bottom:none; }
.notif-dot{ width:6px; height:6px; border-radius:50%; flex-shrink:0; margin-top:4px; }

/* ── WALLET MODAL ── */
.wallet-item{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border-radius:12px; cursor:pointer;
  border:1px solid var(--border); transition:background 0.18s, border-color 0.18s; margin-bottom:8px;
}
.wallet-item:last-child{ margin-bottom:0; }
.wallet-item:hover{ background:rgba(139,92,246,.10); border-color:rgba(139,92,246,.42); }

/* ── Hero title accent ── */
.hero-title::after{
  content:''; display:block;
  width:92px; height:3px; margin-top:22px;
  background:linear-gradient(90deg,#7c3aed,#22d3ee);
  border-radius:3px; box-shadow:0 0 14px rgba(124,58,237,.52);
}

/* ── Live data flash ── */
@keyframes liveFlash {
  0%  { opacity:1; }
  30% { opacity:.5; color:var(--cyan); }
  100%{ opacity:1; }
}
.live-updated { animation:liveFlash 0.6s ease; }

/* ── Live dot ── */
@keyframes livePulse {
  0%,100%{ box-shadow:0 0 0 0 rgba(16,185,129,.7); }
  60%    { box-shadow:0 0 0 6px rgba(16,185,129,0); }
}
.live-dot {
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background:var(--green); margin-right:6px;
  animation:livePulse 2s ease infinite;
}

/* ── Mobile: perf ── */
@media(max-width:600px){
  .arc-blob { display:none; }
}

/* ── TABULAR NUMS — all data values ── */
.stat-value, .amount-input, .pool-apy, .mini-stat-val,
[data-count], [data-live], .balance-nova, .balance-usdc,
#stakedValue, #miniStakedValue, #earnedRewards, #miniEarnedRewards,
#swapRate, #fromUsd, #toUsd, #userBalance {
  font-variant-numeric: tabular-nums;
}

/* ── GRADIENT TOP BORDER — premium card accent ── */
.card-top-accent {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(168,85,247,.36);
}

/* ── GLASS PANEL — heavier glass for key panels ── */
.glass-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
  position: relative; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.glass-panel:hover {
  border-color: var(--border-purple);
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
}

/* ── VALUE HIGHLIGHT — colored numeric outputs ── */
.val-green { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.val-red   { color: var(--red);   font-weight: 700; font-variant-numeric: tabular-nums; }
.val-cyan  { color: var(--cyan);  font-weight: 700; font-variant-numeric: tabular-nums; }
.val-purple{ color: var(--lavender); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── GRADIENT BORDER BUTTON — special CTA ── */
.btn-glow {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 2px 12px rgba(124,58,237,.3);
  color: white;
}
.btn-glow:hover {
  box-shadow: 0 4px 20px rgba(124,58,237,.45);
  transform: translateY(-1px);
}

/* ── SECTION DIVIDER LINE ── */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.3), rgba(34,211,238,.2), transparent);
  margin: 0 0 40px;
}

/* ── IMPROVED TABLE ── */
.table-wrap { background: rgba(255,255,255,.022); }
thead th { background: rgba(255,255,255,.018); }
tbody tr:hover td { background: rgba(139,92,246,.06); color: var(--text); }

/* ── PILL BADGE for stats ── */
.pill-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25);
  color: var(--green);
}
.pill-badge.up::before { content: '↑'; }
.pill-badge.down { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); color: var(--red); }
.pill-badge.down::before { content: '↓'; }
