/* ========================================
   StakingHub — Premium DeFi Staking Platform
   Dark Theme with Indigo Gradients
   ======================================== */

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0F0B1F;
  --bg-card: rgba(20, 16, 40, 0.7);
  --bg-card-solid: #14102A;
  --bg-elevated: rgba(30, 24, 56, 0.8);
  --border: rgba(99, 102, 241, 0.12);
  --border-hover: rgba(99, 102, 241, 0.3);
  --primary: #6366F1;
  --primary-light: #818CF8;
  --secondary: #8B5CF6;
  --accent: #EC4899;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --text-1: #F1F5F9;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --gradient: linear-gradient(135deg, #6366F1, #8B5CF6, #EC4899);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --sidebar-width: 260px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

input, select, textarea, button {
  font-family: var(--font-body);
  font-size: 14px;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text-2);
}

/* === Utility === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: var(--gradient);
  color: #fff;
}

.positive { color: var(--success); }
.negative { color: var(--danger); }
.neutral { color: var(--text-3); }

/* === Mesh Background === */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: meshFloat1 20s ease-in-out infinite;
}

.mesh-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: meshFloat2 25s ease-in-out infinite;
}

@keyframes meshFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.1); }
  66% { transform: translate(-30px, -20px) scale(0.95); }
}

@keyframes meshFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(1.05); }
  66% { transform: translate(30px, 50px) scale(1.1); }
}

/* === Demo Banner === */
.demo-banner {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.demo-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* === Top Navigation === */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 11, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
}

.nav-logo i {
  font-size: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo:hover {
  color: var(--text-1);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-1);
  background: rgba(99, 102, 241, 0.08);
}

.nav-links a.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === Connect Wallet Button === */
.btn-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-heading);
}

.btn-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-connect.wallet-connected {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.btn-connect.wallet-connected:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.btn-connect.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* === Hamburger === */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* === Mobile Menu === */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  background: rgba(15, 11, 31, 0.95);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-2);
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a.active {
  color: var(--primary-light);
}

.mobile-menu .btn-connect {
  margin-top: 12px;
  justify-content: center;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-heading);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-primary.btn-success {
  background: var(--success);
}

.btn-primary.btn-danger {
  background: linear-gradient(135deg, #EF4444, #F97316);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-heading);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary-light);
}

.btn-outline.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-stake {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-stake:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* === Token Icons === */
.token-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.token-icon-sm {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.token-icon-lg {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

.token-icon-xl {
  width: 80px;
  height: 80px;
  font-size: 22px;
}

/* === Glass Card === */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* === Hero Section === */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 12px;
  max-width: 500px;
}

.apy-highlight {
  margin-bottom: 32px;
}

.apy-number {
  font-size: 56px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -2px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 360px;
  height: 320px;
}

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: var(--shadow);
  min-width: 260px;
}

.hero-float-card.card-1 {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  top: 100px;
  right: 0;
  animation-delay: 1s;
}

.hero-float-card.card-3 {
  top: 200px;
  left: 20px;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hfc-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

.hfc-apy {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-dark {
  background: rgba(10, 8, 18, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-2);
  font-size: 16px;
}

.section-subheader {
  margin-bottom: 24px;
  margin-top: 48px;
}

.section-subheader h2 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subheader h2 i {
  color: var(--primary);
}

/* === Pool Cards (Landing) === */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.pool-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.pool-card:hover::before {
  opacity: 1;
}

.pool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pool-chain-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: rgba(99, 102, 241, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pool-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.pool-apy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.apy-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.apy-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.pool-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pool-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  font-weight: 700;
}

/* === Steps / How It Works === */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-line {
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient);
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary-light);
  transition: all 0.3s;
}

.step:hover .step-icon {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

.step-number {
  position: absolute;
  top: -4px;
  right: calc(50% - 52px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text-2);
  max-width: 220px;
  margin: 0 auto;
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.stat-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

/* === Chains Row === */
.chains-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.chain-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.chain-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chain-dot-sm {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* === Security Grid === */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.security-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.security-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--primary-light);
}

.security-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* === Calculator Teaser === */
.calc-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-teaser h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.calc-teaser > div > p {
  color: var(--text-2);
}

.calc-teaser-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.calc-teaser-input-group {
  margin-bottom: 20px;
}

.calc-teaser-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}

.calc-teaser-input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 11, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}

.calc-teaser-input-group input:focus {
  border-color: var(--primary);
}

.calc-teaser-result {
  margin-bottom: 20px;
}

.teaser-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.teaser-result-row span:first-child {
  color: var(--text-2);
  font-size: 14px;
}

.teaser-result-row span:last-child {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  background: rgba(10, 8, 18, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo i {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-grid > div > p {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 18px;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-3);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-chains span {
  display: flex;
  align-items: center;
  color: var(--text-3);
  font-size: 14px;
  padding: 3px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-3);
  font-size: 13px;
}

/* === Page Content === */
.page-content {
  padding: 32px 0 64px;
  min-height: calc(100vh - 100px);
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-2);
  font-size: 15px;
}

/* === Filter Bar (Pools) === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 16px;
  background: rgba(15, 11, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  min-width: 140px;
}

.filter-select:focus {
  border-color: var(--primary);
}

.search-input {
  position: relative;
}

.search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}

.search-input input {
  padding: 10px 16px 10px 36px;
  background: rgba(15, 11, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  width: 200px;
}

.search-input input:focus {
  border-color: var(--primary);
}

.lock-toggle {
  display: flex;
  gap: 4px;
  background: rgba(15, 11, 31, 0.6);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}

.lock-btn {
  padding: 6px 14px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.lock-btn.active {
  background: var(--gradient);
  color: #fff;
}

.pool-toggle {
  display: flex;
  gap: 4px;
  background: rgba(15, 11, 31, 0.6);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}

.toggle-btn {
  padding: 6px 14px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.toggle-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

/* === Featured Pool === */
.featured-pool {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.featured-pool::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.featured-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.featured-left h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.featured-badges {
  display: flex;
  gap: 8px;
}

.chain-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lock-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(148, 163, 184, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
}

.apy-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
}

.featured-stats {
  display: flex;
  gap: 32px;
  flex: 1;
}

.featured-stat-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.featured-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* === Pool Cards Grid (Pools page) === */
.pool-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pool-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.pool-card-full:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.pool-card-badges {
  display: flex;
  gap: 6px;
}

.pool-card-full h3 {
  font-size: 18px;
  margin: 12px 0;
}

.pool-details {
  margin-bottom: 16px;
}

.pool-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.pool-detail-row span:first-child {
  color: var(--text-3);
}

.pool-detail-row span:last-child {
  font-weight: 700;
}

/* === Pool Detail Page === */
.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.pool-header-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.pool-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pool-header-left h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.pool-header-badges {
  display: flex;
  gap: 10px;
}

.detail-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.detail-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.detail-stat-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-stat-value {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.detail-stat-value small {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 600;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* === Stake Card === */
.stake-card {
  padding: 0;
}

.stake-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.stake-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-family: var(--font-heading);
}

.stake-tab.active {
  color: var(--text-1);
}

.stake-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.stake-panel {
  padding: 24px;
}

.stake-input-group {
  margin-bottom: 20px;
}

.stake-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}

.stake-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(15, 11, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stake-input-wrap input {
  flex: 1;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.max-btn {
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.15);
  border: none;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border-radius: var(--radius-xs);
  margin-right: 8px;
  transition: all 0.2s;
}

.max-btn:hover {
  background: var(--primary);
  color: #fff;
}

.stake-balance {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.stake-summary {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.summary-row span:first-child {
  color: var(--text-3);
}

.summary-row span:last-child {
  font-weight: 700;
}

.cooldown-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--warning);
}

.cooldown-notice i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === Rewards Card === */
.rewards-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-2);
}

.rewards-card h3 i {
  color: var(--primary);
}

.rewards-amount {
  text-align: center;
  margin-bottom: 24px;
}

.rewards-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.rewards-usd {
  font-size: 14px;
  color: var(--text-3);
}

.auto-compound {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 50px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* === Pool Info Section === */
.pool-info-section {
  margin-bottom: 24px;
}

.pool-info-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 20px;
}

.pool-info-section h3 i {
  color: var(--primary);
}

.pool-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pool-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
  padding: 2px;
}

.copy-btn:hover {
  color: var(--primary-light);
}

/* === Chart === */
.chart-section {
  margin-bottom: 24px;
}

.chart-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 20px;
}

.chart-section h3 i {
  color: var(--primary);
}

.chart-container {
  position: relative;
  height: 280px;
}

/* === Activity Table === */
.activity-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 20px;
}

.activity-section h3 i {
  color: var(--primary);
}

.activity-table-wrap {
  overflow-x: auto;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.activity-table td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.action-badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.action-stake {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
}

.action-unstake {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent);
}

.action-claim {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

/* === Confetti === */
.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  top: -10px;
  z-index: 9999;
  animation: confettiFall 2s ease-in forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   SIDEBAR LAYOUT (Dashboard)
   ============================================ */

.has-sidebar {
  display: flex;
  min-height: 100vh;
}

.has-sidebar .mesh-bg {
  position: fixed;
}

.has-sidebar .demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* === Sidebar === */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(15, 11, 31, 0.95);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 36px;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 99;
  backdrop-filter: blur(20px);
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.sidebar-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-1);
}

.sidebar-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
}

.sidebar-link i {
  font-size: 20px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sidebar-wallet i {
  font-size: 20px;
  color: var(--primary-light);
}

.sw-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sw-address {
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
}

.sw-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-left: auto;
}

/* === Dashboard Content === */
.dashboard-content {
  margin-left: var(--sidebar-width);
  margin-top: 36px;
  padding: 32px;
  flex: 1;
  min-width: 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.dashboard-header p {
  color: var(--text-3);
  font-size: 14px;
  font-family: monospace;
}

.mobile-topbar {
  display: none;
}

/* === Portfolio Grid === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s;
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.portfolio-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.pc-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 4px;
}

.pc-value {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.pc-change {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* === Dashboard Cards === */
.dash-card {
  margin-bottom: 24px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-card-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.dash-card-header h3 i {
  color: var(--primary);
}

.dash-two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* === Dashboard Table === */
.table-responsive {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
}

.dash-table td {
  padding: 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
  white-space: nowrap;
}

.table-token {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-name {
  font-weight: 700;
  font-size: 14px;
}

.tt-chain {
  font-size: 12px;
  color: var(--text-3);
}

.tt-amount {
  font-weight: 700;
}

.tt-usd {
  font-size: 12px;
  color: var(--text-3);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn.claim {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.action-btn.claim:hover {
  background: var(--success);
  color: #fff;
}

.action-btn.claim.claimed {
  background: var(--success);
  color: #fff;
}

.action-btn.unstake {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent);
}

.action-btn.unstake:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Claim All Card === */
.claim-all-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.claim-all-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.claim-all-card h3 {
  margin-bottom: 8px;
}

.claim-all-amount {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.claim-all-breakdown {
  width: 100%;
  margin-bottom: 20px;
}

.claim-all-breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.claim-all-breakdown div span:first-child {
  color: var(--text-3);
}

.claim-all-breakdown div span:last-child {
  font-weight: 700;
}

/* === Activity Feed === */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
}

.activity-time {
  font-size: 12px;
  color: var(--text-3);
}

.activity-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================
   CALCULATOR PAGE
   ============================================ */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 24px;
}

.calc-card h3 i {
  color: var(--primary);
}

.calc-field {
  margin-bottom: 24px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.token-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.token-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(15, 11, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.token-select-btn:hover {
  border-color: var(--border-hover);
}

.token-select-btn.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-1);
}

.calc-input-group {
  display: flex;
  align-items: center;
  background: rgba(15, 11, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.calc-input-group input {
  flex: 1;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.input-suffix {
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 700;
}

.calc-token-equiv {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.lock-period-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lock-radio input {
  display: none;
}

.lock-radio-card {
  padding: 14px;
  background: rgba(15, 11, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.lock-radio input:checked + .lock-radio-card {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.lock-radio-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lock-radio-apy {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.compound-toggle {
  display: flex;
  gap: 4px;
  background: rgba(15, 11, 31, 0.6);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}

.compound-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.compound-btn.active {
  background: var(--gradient);
  color: #fff;
}

/* === Results === */
.results-card h3,
.comparison-card h3,
.growth-chart-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 20px;
}

.results-card h3 i,
.comparison-card h3 i,
.growth-chart-card h3 i {
  color: var(--primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.result-item {
  padding: 16px;
  background: rgba(15, 11, 31, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.06);
}

.result-item.highlight {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.result-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.result-total span:first-child {
  font-weight: 700;
  color: var(--text-2);
}

.result-total span:last-child {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.calc-results .glass-card {
  margin-bottom: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.comparison-table td {
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.comparison-table .highlight-row {
  background: rgba(99, 102, 241, 0.06);
}

/* ============================================
   GOVERNANCE PAGE
   ============================================ */
.gov-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.voting-power-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.vp-label {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.vp-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 4px 0;
}

.vp-desc {
  font-size: 13px;
  color: var(--text-3);
}

.gov-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gov-stat {
  text-align: center;
  padding: 20px;
}

.gov-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.gov-stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}

/* Create Proposal Bar */
.create-proposal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.create-proposal-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 600;
}

.create-proposal-bar span i {
  font-size: 20px;
  color: var(--warning);
}

/* Proposal Form */
.proposal-form {
  margin-bottom: 32px;
}

.proposal-form h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 20px;
}

.proposal-form h3 i {
  color: var(--primary);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 11, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* === Proposals Grid === */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

.proposal-card {
  padding: 28px;
}

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

.proposal-id {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 700;
  font-family: monospace;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.status-passed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.status-ended {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-3);
}

.proposal-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.proposal-card > p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Vote Bars */
.vote-bars {
  margin-bottom: 16px;
}

.vote-bar-row {
  margin-bottom: 10px;
}

.vote-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.vote-for {
  color: var(--success);
}

.vote-against {
  color: var(--danger);
}

.vote-bar {
  height: 8px;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 50px;
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.5s ease;
}

.vote-for-fill {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.vote-against-fill {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.vote-count {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.proposal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.time-remaining {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}

.vote-actions {
  display: flex;
  gap: 8px;
}

.vote-btn {
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.vote-for-btn {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.vote-for-btn:hover:not(:disabled) {
  background: var(--success);
  color: #fff;
}

.vote-against-btn {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.vote-against-btn:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.vote-btn.voted {
  opacity: 1 !important;
  cursor: default;
}

.vote-for-btn.voted {
  background: var(--success);
  color: #fff;
}

.vote-against-btn.voted {
  background: var(--danger);
  color: #fff;
}

/* Past Proposals */
.past-proposals {
  margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pool-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .detail-columns {
    grid-template-columns: 1fr;
  }

  .detail-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .calc-teaser {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-two-col {
    grid-template-columns: 1fr;
  }

  .gov-top-row {
    grid-template-columns: 1fr;
  }

  .featured-stats {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .apy-number {
    font-size: 40px;
  }

  .pool-grid {
    grid-template-columns: 1fr;
  }

  .pool-cards-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-line {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .pool-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lock-period-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    flex-direction: column;
  }

  .featured-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .detail-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .chains-row {
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .vote-actions {
    flex-direction: column;
  }

  /* Sidebar responsive */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-content {
    margin-left: 0;
    padding: 16px;
    margin-top: 96px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15, 11, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 98;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pc-value {
    font-size: 20px;
  }

  .gov-stats-row {
    grid-template-columns: 1fr;
  }

  .proposal-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .token-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .create-proposal-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .apy-number {
    font-size: 32px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .detail-stats-row {
    grid-template-columns: 1fr;
  }

  .pool-info-grid {
    grid-template-columns: 1fr;
  }

  .lock-toggle {
    flex-wrap: wrap;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pool-card,
.pool-card-full,
.stat-card,
.security-card,
.portfolio-card,
.proposal-card,
.step {
  animation: fadeInUp 0.5s ease forwards;
}

.pool-card:nth-child(2),
.pool-card-full:nth-child(2),
.stat-card:nth-child(2),
.step:nth-child(3) {
  animation-delay: 0.1s;
}

.pool-card:nth-child(3),
.pool-card-full:nth-child(3),
.stat-card:nth-child(3),
.step:nth-child(4) {
  animation-delay: 0.2s;
}

.pool-card:nth-child(4),
.pool-card-full:nth-child(4),
.stat-card:nth-child(4),
.step:nth-child(5) {
  animation-delay: 0.3s;
}

/* ============================================
   SELECTION / FOCUS
   ============================================ */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
