/* ============================================
   YieldFarm Pro — DeFi Yield Farming Platform
   2000+ lines of premium CSS
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0A0D14;
  --bg2: #0F1219;
  --bg3: #151A23;
  --bg4: #1A2030;
  --border: #1E2533;
  --border2: #2A3345;
  --lime: #84CC16;
  --lime-dark: #65A30D;
  --lime-glow: rgba(132, 204, 22, 0.15);
  --lime-glow2: rgba(132, 204, 22, 0.08);
  --red: #EF4444;
  --green: #22C55E;
  --yellow: #F59E0B;
  --blue: #3B82F6;
  --t1: #F1F5F9;
  --t2: #94A3B8;
  --t3: #64748B;
  --t4: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 64px;
  --sidebar-w: 260px;
  --banner-h: 36px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--lime); text-decoration: none; transition: color .2s; }
a:hover { color: #a3e635; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85em; }
.lime { color: var(--lime) !important; }
.green { color: var(--green) !important; }
.red { color: var(--red) !important; }
.muted { color: var(--t3) !important; }
.center { text-align: center; }

/* === DEMO BANNER === */
.demo-banner {
  background: linear-gradient(90deg, var(--lime-dark), var(--lime));
  color: #0A0D14;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.demo-banner a { color: #0A0D14; text-decoration: underline; font-weight: 700; }

/* === HEADER === */
.yf-header {
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: var(--banner-h);
  z-index: 900;
}
.yf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.yf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
  text-decoration: none;
  flex-shrink: 0;
}
.yf-logo i { font-size: 24px; color: var(--lime); }
.yf-logo:hover { color: var(--t1); }

.yf-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.yf-nav a {
  color: var(--t2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: all .2s;
}
.yf-nav a:hover { color: var(--t1); background: var(--bg3); }
.yf-nav a.active { color: var(--lime); background: var(--lime-glow2); }

.yf-header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #0A0D14;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.btn-connect:hover { background: #a3e635; transform: translateY(-1px); }
.btn-connect.connected { background: var(--bg3); color: var(--lime); border: 1px solid var(--border2); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--banner-h) + var(--header-h));
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 800;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--t2);
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--bg3); color: var(--t1); }
.mobile-menu a.active { color: var(--lime); background: var(--lime-glow2); }
.mobile-menu .btn-connect { margin-top: 8px; justify-content: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lime { background: var(--lime); color: #0A0D14; }
.btn-lime:hover { background: #a3e635; color: #0A0D14; transform: translateY(-1px); box-shadow: 0 4px 20px var(--lime-glow); }
.btn-outline { background: transparent; color: var(--t1); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 600;
  transition: gap .2s;
}
.link-arrow:hover { gap: 10px; }

/* === HERO === */
.hero {
  position: relative;
  padding: 100px 20px 80px;
  text-align: center;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--lime);
  border-radius: 50%;
  opacity: 0;
  animation: particleFade 4s infinite;
}
@keyframes particleFade {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-30px); }
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime-glow2);
  border: 1px solid rgba(132, 204, 22, 0.2);
  color: var(--lime);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--t1);
}
.hero h1 .lime { color: var(--lime); }
.hero-sub {
  font-size: 18px;
  color: var(--t2);
  margin-bottom: 32px;
  line-height: 1.6;
}
.apy-cycle {
  color: var(--lime);
  font-weight: 700;
  font-size: 20px;
  transition: opacity 0.3s;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-mini-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--t3);
  font-weight: 500;
}
.hero-mini-stats div { display: flex; align-items: center; gap: 8px; }
.dot-pulse {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--lime-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* === SECTIONS === */
.section { padding: 64px 0; }
.section-dark { background: var(--bg2); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-header.center { flex-direction: column; gap: 8px; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 i { color: var(--lime); }
.section-sub { color: var(--t2); font-size: 15px; }

.page-hero {
  padding: 40px 0 32px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.page-hero h1 i { color: var(--lime); }
.page-hero p { color: var(--t2); font-size: 15px; }

/* === TOKEN PAIR CIRCLES === */
.token-pair { display: flex; align-items: center; flex-shrink: 0; }
.token-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border: 2px solid var(--bg);
  flex-shrink: 0;
}
.token-circle.overlap { margin-left: -12px; }
.token-circle.sm { width: 28px; height: 28px; font-size: 11px; }
.token-circle.sm.overlap { margin-left: -10px; }
.token-circle.lg-circle { width: 52px; height: 52px; font-size: 20px; }
.token-circle.lg-circle.overlap { margin-left: -18px; }
.token-pair.lg .token-circle { width: 52px; height: 52px; font-size: 20px; }
.token-pair.lg .token-circle.overlap { margin-left: -18px; }

/* === FARM CARDS (Landing) === */
.farm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.farm-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s;
}
.farm-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--lime-glow);
}
.farm-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.farm-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.farm-card-apy {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 12px;
}
.farm-card-apy span { font-size: 14px; font-weight: 500; color: var(--t3); }
.farm-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 16px;
}
.farm-card-meta strong { color: var(--t1); }

/* === DEX BADGE === */
.dex-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg3);
  color: var(--t2);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg3);
  color: var(--t2);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* === TAGS (Hot, New) === */
.tag-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.tag-new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

/* === MULTIPLIER BADGES === */
.mult-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
}
.mult-1x { background: rgba(100, 116, 139, 0.2); color: var(--t3); }
.mult-2x { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.mult-5x { background: rgba(245, 158, 11, 0.15); color: var(--yellow); }
.mult-10x { background: rgba(132, 204, 22, 0.15); color: var(--lime); }

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--lime-glow2);
  border: 1px solid rgba(132, 204, 22, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon i { font-size: 22px; color: var(--lime); }
.feature-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--t2); font-size: 14px; line-height: 1.6; }

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 4px;
}
.stat-label { color: var(--t3); font-size: 14px; font-weight: 500; }

/* === DEX LOGOS === */
.dex-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.dex-logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: all .2s;
}
.dex-logo-card:hover { border-color: var(--border2); }
.dex-logo-icon { font-size: 28px; }
.dex-logo-card span { font-weight: 600; font-size: 14px; }

/* === AUDIT CARDS === */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.audit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.audit-icon {
  width: 56px;
  height: 56px;
  background: var(--lime-glow2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.audit-icon i { font-size: 24px; color: var(--lime); }
.audit-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.audit-card p { color: var(--t2); font-size: 13px; margin-bottom: 12px; }
.audit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

/* === FOOTER === */
.yf-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-logo { margin-bottom: 12px; }
.footer-desc { color: var(--t3); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  font-size: 18px;
  transition: all .2s;
}
.footer-socials a:hover { color: var(--lime); border-color: var(--lime); }
.footer-col h4 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--t1); }
.footer-col a { display: block; color: var(--t3); font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.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(--t3);
}

/* ==============================
   FARMS PAGE STYLES
   ============================== */

/* Farm Tabs */
.farm-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.farm-tab {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--t2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.farm-tab:hover { border-color: var(--border2); color: var(--t1); }
.farm-tab.active { background: var(--lime); color: #0A0D14; border-color: var(--lime); }

/* Filters */
.farm-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--t1);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  appearance: auto;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--lime); outline: none; }
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0 12px;
}
.filter-search i { color: var(--t3); font-size: 16px; }
.filter-search input {
  background: none;
  border: none;
  color: var(--t1);
  padding: 8px 0;
  font-size: 13px;
  width: 160px;
  outline: none;
}
.filter-search input::placeholder { color: var(--t4); }

.toggle-group { display: flex; border: 1px solid var(--border); border-radius: var(--radius-xs); overflow: hidden; }
.toggle-btn {
  background: var(--bg3);
  border: none;
  color: var(--t2);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.toggle-btn.active { background: var(--lime); color: #0A0D14; }

/* Farm List Header */
.farm-list-header {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 0.8fr 0.5fr;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

/* Farm Row */
.farm-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg2);
  overflow: hidden;
  transition: all .2s;
}
.farm-row:hover { border-color: var(--border2); }
.farm-row.open { border-color: var(--lime); box-shadow: 0 0 20px var(--lime-glow); }

.farm-row-main {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 0.8fr 0.5fr;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background .2s;
}
.farm-row-main:hover { background: var(--bg3); }

.fr-farm { display: flex; align-items: center; gap: 12px; }
.fr-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fr-dex { font-size: 12px; color: var(--t3); margin-top: 2px; }
.fr-apy { font-weight: 700; color: var(--lime); font-size: 16px; font-family: var(--font-heading); }
.fr-daily { color: var(--t2); font-size: 14px; }
.fr-tvl { color: var(--t1); font-weight: 600; font-size: 14px; }
.fr-mult { }
.fr-action { text-align: right; }
.fr-action i { font-size: 20px; color: var(--t3); transition: transform .3s; }
.farm-row.open .fr-action i { transform: rotate(180deg); color: var(--lime); }

/* Farm Row Expand */
.farm-row-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  border-top: 0 solid var(--border);
}
.farm-row.open .farm-row-expand {
  max-height: 400px;
  border-top: 1px solid var(--border);
}
.farm-expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 24px 20px;
}
.farm-expand-col h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--t2);
}
.farm-expand-col h4 i { color: var(--lime); }

/* Deposit Input */
.deposit-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 8px;
}
.deposit-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--t1);
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
}
.deposit-input::placeholder { color: var(--t4); }
.btn-max {
  background: var(--lime-glow2);
  border: none;
  color: var(--lime);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  border-radius: 4px;
  transition: all .2s;
}
.btn-max:hover { background: var(--lime-glow); }
.deposit-balance { font-size: 12px; color: var(--t3); margin-bottom: 12px; }
.balance-usd { color: var(--t4); }
.deposit-actions { display: flex; gap: 8px; }

/* Earned */
.earned-amount {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.earned-usd { color: var(--t3); font-size: 13px; margin-bottom: 16px; }

/* Farm Info */
.farm-info-col {}
.farm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.farm-info-row span:first-child { color: var(--t3); }
.farm-info-row span:last-child { color: var(--t1); font-weight: 500; }
.farm-info-col .link-arrow { margin-top: 12px; font-size: 13px; }

/* ==============================
   FARM DETAIL PAGE
   ============================== */
.breadcrumb { margin-bottom: 24px; }
.breadcrumb a { color: var(--t2); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--lime); }

.farm-detail-header { margin-bottom: 32px; }
.farm-detail-pair { display: flex; align-items: center; gap: 20px; }
.farm-detail-pair h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.farm-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.farm-detail-section { padding-top: 40px; }

/* Detail Stats Row */
.detail-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.detail-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.detail-stat-label { font-size: 12px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.detail-stat-value { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }
.detail-stat-value.lime { color: var(--lime); }

/* Detail Grid */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.detail-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.detail-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-card h3 i { color: var(--lime); }

/* Detail Tabs */
.detail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.detail-tab {
  background: none;
  border: none;
  color: var(--t3);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.detail-tab:hover { color: var(--t1); }
.detail-tab.active { color: var(--lime); border-bottom-color: var(--lime); }
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

.input-label { font-size: 13px; color: var(--t2); font-weight: 500; margin-bottom: 8px; display: block; }

/* Harvest Card */
.harvest-card { text-align: center; }
.harvest-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 4px;
}
.harvest-usd { color: var(--t3); font-size: 14px; margin-bottom: 20px; }

/* Compound Toggle */
.compound-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 20px;
  text-align: left;
}
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--t2);
  border-radius: 50%;
  transition: all .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--lime); border-color: var(--lime); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: #0A0D14; }
.compound-label { display: block; font-size: 13px; font-weight: 600; }
.compound-boost { font-size: 12px; color: var(--t3); }

/* IL Calculator */
.il-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.il-input-group label { font-size: 12px; color: var(--t3); margin-bottom: 4px; display: block; }
.il-result { background: var(--bg3); border-radius: var(--radius-sm); padding: 16px; }
.il-result-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.il-result-row span:first-child { color: var(--t3); }

/* Chart */
.chart-card { margin-bottom: 24px; }
.chart-wrap { position: relative; height: 300px; }
.chart-wrap.donut-wrap { height: 280px; }

/* Activity Table */
.activity-table-wrap { overflow-x: auto; }
.activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.activity-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.activity-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.activity-table tbody tr:hover { background: var(--bg3); }
.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.activity-badge.deposit { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.activity-badge.withdraw { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.activity-badge.harvest { background: rgba(132, 204, 22, 0.12); color: var(--lime); }

.card-header-row { display: flex; justify-content: space-between; align-items: center; }

/* Table farm cell */
.table-farm { display: flex; align-items: center; gap: 10px; }

/* ==============================
   DASHBOARD (SIDEBAR LAYOUT)
   ============================== */
.has-sidebar { display: flex; min-height: 100vh; padding-top: var(--banner-h); }
.has-sidebar .demo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--banner-h);
  bottom: 0;
  left: 0;
  z-index: 800;
  overflow-y: auto;
}
.sidebar-logo { margin-bottom: 32px; padding: 0 4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--t2);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.sidebar-nav a:hover { background: var(--bg3); color: var(--t1); }
.sidebar-nav a.active { background: var(--lime-glow2); color: var(--lime); }
.sidebar-nav a i { font-size: 20px; }

.sidebar-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: auto;
}
.wallet-icon {
  width: 36px;
  height: 36px;
  background: var(--lime-glow2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 18px;
}
.wallet-addr { font-size: 13px; font-weight: 600; }
.wallet-chain { font-size: 11px; color: var(--t3); display: flex; align-items: center; gap: 6px; }
.chain-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: inline-block; }

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px;
  max-width: calc(100% - var(--sidebar-w));
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-header h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-header h1 i { color: var(--lime); }
.dashboard-header p { color: var(--t2); font-size: 14px; margin-top: 4px; }

/* Portfolio Cards */
.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.portfolio-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.has-sidebar .portfolio-card { background: var(--bg3); }
.pc-icon {
  width: 40px;
  height: 40px;
  background: var(--lime-glow2);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 20px;
  margin-bottom: 12px;
}
.pc-label { font-size: 13px; color: var(--t3); margin-bottom: 4px; }
.pc-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.pc-change { font-size: 12px; color: var(--t3); display: flex; align-items: center; gap: 4px; }
.pc-change.green { color: var(--green); }

/* Dashboard Charts Grid */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.activity-icon.deposit { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.activity-icon.withdraw { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.activity-icon.harvest { background: rgba(132, 204, 22, 0.12); color: var(--lime); }
.activity-icon.compound { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.activity-details { font-size: 13px; }
.activity-time { font-size: 12px; color: var(--t3); margin-top: 2px; }

.mobile-only { display: none !important; }

/* ==============================
   VAULTS PAGE
   ============================== */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.vault-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s;
}
.vault-card:hover { border-color: var(--border2); }
.vault-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.vault-token { display: flex; align-items: center; gap: 12px; }
.vault-token h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.vault-strategy { font-size: 12px; color: var(--t3); }
.vault-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--lime-glow2);
  color: var(--lime);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.vault-apy-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.vault-apy-item { text-align: center; flex: 1; }
.vault-apy-label { font-size: 11px; color: var(--t3); display: block; margin-bottom: 4px; }
.vault-apy-val { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.vault-apy-arrow { color: var(--t3); }
.vault-boost {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.vault-tvl { font-size: 13px; color: var(--t3); margin-bottom: 16px; }
.vault-tvl strong { color: var(--t1); }

.vault-expand-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  transition: color .2s;
}
.vault-expand-toggle:hover { color: var(--lime); }
.vault-expand-toggle i { transition: transform .3s; }
.vault-card.open .vault-expand-toggle i { transform: rotate(180deg); }
.vault-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.vault-card.open .vault-expand { max-height: 200px; padding-top: 16px; }

/* ==============================
   POSITIONS TABLE
   ============================== */
.positions-table td:last-child { display: flex; gap: 6px; align-items: center; }

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.harvest-success {
  animation: harvestPop .5s ease;
}
@keyframes harvestPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px var(--lime-glow); }
  50% { box-shadow: 0 0 24px var(--lime-glow); }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .dashboard-charts-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .farm-expand-grid { grid-template-columns: 1fr; }
  .farm-list-header { display: none; }
  .farm-row-main {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
  }
  .fr-daily, .fr-mult { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .yf-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-only { display: flex !important; }

  .hero { padding: 60px 20px 50px; min-height: auto; }
  .hero h1 { font-size: 32px; }

  .farm-cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .dex-logos { grid-template-columns: 1fr 1fr; }
  .vault-grid { grid-template-columns: 1fr; }
  .portfolio-cards { grid-template-columns: 1fr 1fr; }
  .detail-stats-row { grid-template-columns: 1fr 1fr; }
  .il-inputs { grid-template-columns: 1fr; }

  .farm-row-main {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }
  .fr-tvl { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Sidebar responsive */
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; padding: 16px; max-width: 100%; }
  .has-sidebar .mobile-only { display: flex !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-mini-stats { flex-direction: column; gap: 8px; }
  .portfolio-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .farm-filters { flex-direction: column; align-items: stretch; }
  .filter-group { flex-wrap: wrap; }
  .filter-search input { width: 100px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .pc-value { font-size: 22px; }
  .detail-stats-row { grid-template-columns: 1fr; }
}

/* ==============================
   SCROLLBAR
   ============================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ==============================
   SELECTION
   ============================== */
::selection { background: var(--lime); color: #0A0D14; }

/* ==============================
   FARM SEARCH HIGHLIGHT
   ============================== */
.farm-row.hidden { display: none; }
.farm-row.finished { opacity: 0.4; pointer-events: none; }

/* ==============================
   TOOLTIP STYLES
   ============================== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--t1);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  border: 1px solid var(--border);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ==============================
   LOADING SKELETON
   ============================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

/* ==============================
   HARVEST ANIMATION OVERLAY
   ============================== */
.harvest-particles {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}
.harvest-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: harvestFloat 1s ease-out forwards;
}
@keyframes harvestFloat {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* ==============================
   ADDITIONAL REFINEMENTS
   ============================== */
.farm-detail-section .container { max-width: 1000px; }

/* Glow border on hover for cards */
.vault-card:hover, .portfolio-card:hover, .stat-card:hover {
  box-shadow: 0 0 20px var(--lime-glow);
  border-color: rgba(132, 204, 22, 0.3);
}

/* Smooth reveal animations for page load */
.farms-section .farm-row {
  animation: fadeInUp 0.4s ease both;
}
.farms-section .farm-row:nth-child(1) { animation-delay: 0.05s; }
.farms-section .farm-row:nth-child(2) { animation-delay: 0.1s; }
.farms-section .farm-row:nth-child(3) { animation-delay: 0.15s; }
.farms-section .farm-row:nth-child(4) { animation-delay: 0.2s; }
.farms-section .farm-row:nth-child(5) { animation-delay: 0.25s; }
.farms-section .farm-row:nth-child(6) { animation-delay: 0.3s; }
.farms-section .farm-row:nth-child(7) { animation-delay: 0.35s; }
.farms-section .farm-row:nth-child(8) { animation-delay: 0.4s; }
.farms-section .farm-row:nth-child(9) { animation-delay: 0.45s; }
.farms-section .farm-row:nth-child(10) { animation-delay: 0.5s; }

/* Vault card stagger */
.vault-grid .vault-card {
  animation: fadeInUp 0.4s ease both;
}
.vault-grid .vault-card:nth-child(1) { animation-delay: 0.05s; }
.vault-grid .vault-card:nth-child(2) { animation-delay: 0.1s; }
.vault-grid .vault-card:nth-child(3) { animation-delay: 0.15s; }
.vault-grid .vault-card:nth-child(4) { animation-delay: 0.2s; }
.vault-grid .vault-card:nth-child(5) { animation-delay: 0.25s; }
.vault-grid .vault-card:nth-child(6) { animation-delay: 0.3s; }

/* Farm card stagger */
.farm-cards-grid .farm-card {
  animation: fadeInUp 0.4s ease both;
}
.farm-cards-grid .farm-card:nth-child(1) { animation-delay: 0.1s; }
.farm-cards-grid .farm-card:nth-child(2) { animation-delay: 0.2s; }
.farm-cards-grid .farm-card:nth-child(3) { animation-delay: 0.3s; }
.farm-cards-grid .farm-card:nth-child(4) { animation-delay: 0.4s; }

/* Feature card stagger */
.features-grid .feature-card {
  animation: fadeInUp 0.4s ease both;
}
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Number input arrows hide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* Focus styles */
.deposit-input:focus { outline: none; }
.deposit-input-wrap:focus-within { border-color: var(--lime); }
.filter-search:focus-within { border-color: var(--lime); }

/* Table responsive helpers */
@media (max-width: 768px) {
  .activity-table { font-size: 12px; }
  .activity-table th, .activity-table td { padding: 10px 8px; }
}

/* Background gradient for hero */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Gradient mesh bg for cards section */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--lime-glow2) 0%, transparent 70%);
  pointer-events: none;
}
.section { position: relative; }

/* Multiplier badge sizes on farm detail */
.farm-detail-badges .mult-badge { font-size: 13px; padding: 4px 12px; }

/* Positions table alignment */
.positions-table td { vertical-align: middle; }
.positions-table td small { font-size: 11px; opacity: 0.8; }

/* ==============================
   ENHANCED TOKEN PAIR ANIMATIONS
   ============================== */
.token-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.farm-card:hover .token-circle,
.farm-row:hover .token-circle,
.vault-card:hover .token-circle {
  transform: scale(1.08);
}
.farm-card:hover .token-circle.overlap,
.farm-row:hover .token-circle.overlap,
.vault-card:hover .token-circle.overlap {
  transform: scale(1.08) translateX(3px);
}

/* Token circle inner shadow */
.token-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
  pointer-events: none;
}
.token-circle { position: relative; }

/* ==============================
   ENHANCED BUTTON STYLES
   ============================== */
.btn-lime::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.btn-lime { position: relative; overflow: hidden; }

.btn-lime::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  pointer-events: none;
}
.btn-lime:active::after {
  width: 300px;
  height: 300px;
}

/* Connect Wallet pulse when not connected */
.btn-connect:not(.connected) {
  animation: glowPulse 3s infinite;
}

/* ==============================
   ENHANCED FARM ROW STYLES
   ============================== */
.farm-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s;
  border-radius: 3px 0 0 3px;
}
.farm-row { position: relative; }
.farm-row:hover::before { background: var(--lime); }
.farm-row.open::before { background: var(--lime); }

/* Row highlight for hot farms */
.farm-row[data-tags="hot"] {
  background: linear-gradient(90deg, rgba(239,68,68,0.03) 0%, var(--bg2) 30%);
}

/* Row highlight for new farms */
.farm-row[data-tags="new"] {
  background: linear-gradient(90deg, rgba(59,130,246,0.03) 0%, var(--bg2) 30%);
}

/* ==============================
   MULTIPLIER BADGE ENHANCEMENTS
   ============================== */
.mult-badge {
  position: relative;
  overflow: hidden;
}
.mult-10x::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(132,204,22,0.1) 50%, transparent 60%);
  animation: shimmerBadge 3s infinite;
}
@keyframes shimmerBadge {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ==============================
   CARD HOVER MICRO-INTERACTIONS
   ============================== */
.feature-card .feature-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--lime-glow);
}

.audit-card .audit-icon {
  transition: transform 0.3s ease;
}
.audit-card:hover .audit-icon {
  transform: scale(1.1) rotate(10deg);
}

.dex-logo-card .dex-logo-icon {
  transition: transform 0.3s ease;
}
.dex-logo-card:hover .dex-logo-icon {
  transform: scale(1.2);
}

/* ==============================
   STAT CARD COUNTER ANIMATION
   ============================== */
.stat-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--lime);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }

/* ==============================
   VAULT CARD GRADIENT OVERLAYS
   ============================== */
.vault-card {
  position: relative;
  overflow: hidden;
}
.vault-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, var(--lime-glow2) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.vault-card:hover::after { opacity: 1; }

/* ==============================
   HARVEST CARD SPECIAL STYLING
   ============================== */
.harvest-card {
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(132,204,22,0.03) 100%);
  border-color: rgba(132,204,22,0.2);
}
.harvest-card:hover {
  border-color: var(--lime);
  box-shadow: 0 0 30px var(--lime-glow);
}
.harvest-amount {
  text-shadow: 0 0 20px var(--lime-glow);
}

/* ==============================
   PORTFOLIO CARD ICONS
   ============================== */
.pc-icon {
  transition: transform 0.3s, background 0.3s;
}
.portfolio-card:hover .pc-icon {
  transform: scale(1.1);
  background: var(--lime-glow);
}

/* ==============================
   DASHBOARD ACTIVITY FEED
   ============================== */
.activity-item {
  transition: background 0.2s, padding-left 0.2s;
}
.activity-item:hover {
  background: var(--bg3);
  padding-left: 8px;
  border-radius: var(--radius-xs);
}

.activity-icon {
  transition: transform 0.2s;
}
.activity-item:hover .activity-icon {
  transform: scale(1.1);
}

/* ==============================
   BREADCRUMB ENHANCED
   ============================== */
.breadcrumb a {
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}
.breadcrumb a:hover {
  background: var(--bg3);
  color: var(--lime);
}

/* ==============================
   IL CALCULATOR STYLING
   ============================== */
.il-result {
  transition: all 0.3s;
}
.il-result:hover {
  border: 1px solid var(--border2);
}
.il-input-group input {
  transition: border-color 0.2s;
}

/* ==============================
   DETAIL STAT HOVER
   ============================== */
.detail-stat {
  transition: all 0.3s ease;
}
.detail-stat:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

/* ==============================
   SECTION DIVIDERS
   ============================== */
.section + .section-dark,
.section-dark + .section {
  border-top: 1px solid var(--border);
}

/* ==============================
   HERO BACKGROUND PATTERN
   ============================== */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(132,204,22,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(132,204,22,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
.hero .hero-content::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  right: -200px;
  bottom: -200px;
  background-image:
    linear-gradient(rgba(132,204,22,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132,204,22,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* ==============================
   LOADING STATE UTILITY
   ============================== */
.loading {
  pointer-events: none;
  opacity: 0.6;
}
.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==============================
   CHART CARD ENHANCEMENTS
   ============================== */
.chart-card {
  transition: all 0.3s;
}
.chart-card:hover {
  border-color: var(--border2);
}
.chart-card h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

/* ==============================
   TABLE ROW HOVER EFFECTS
   ============================== */
.activity-table tbody tr {
  transition: all 0.2s;
}
.activity-table tbody tr:hover {
  background: rgba(132,204,22,0.03);
}

/* ==============================
   PAGE HERO GRADIENT
   ============================== */
.page-hero {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--lime-glow2) 0%, transparent 70%);
  pointer-events: none;
}

/* ==============================
   FOOTER ENHANCED
   ============================== */
.yf-footer {
  position: relative;
}
.yf-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.footer-col a {
  position: relative;
  padding-left: 0;
  transition: all 0.2s;
}
.footer-col a:hover {
  padding-left: 8px;
}

/* ==============================
   HEADER SCROLL SHADOW
   ============================== */
.yf-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ==============================
   FOCUS VISIBLE STYLES
   ============================== */
*:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ==============================
   ANIMATED GRADIENT BORDER
   ============================== */
.farm-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--lime) 0%, transparent 50%, var(--lime) 100%);
  border-radius: calc(var(--radius) + 1px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.farm-card { position: relative; z-index: 0; }
.farm-card:hover::before { opacity: 0.3; }

/* ==============================
   SIDEBAR TRANSITIONS
   ============================== */
.sidebar-nav a {
  position: relative;
  overflow: hidden;
}
.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--lime);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s;
}
.sidebar-nav a.active::before {
  height: 60%;
}
.sidebar-nav a:hover::before {
  height: 40%;
}

/* ==============================
   CUSTOM SELECT STYLING
   ============================== */
.filter-select {
  position: relative;
  background-image: none;
  padding-right: 32px;
  transition: all 0.2s;
}
.filter-select:hover {
  border-color: var(--border2);
  background: var(--bg4);
}
.filter-select option {
  background: var(--bg2);
  color: var(--t1);
  padding: 8px;
}

/* ==============================
   RESPONSIVE SIDEBAR OVERLAY
   ============================== */
@media (max-width: 768px) {
  .sidebar.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
}

/* ==============================
   UNSPLASH IMAGE STYLING
   ============================== */
.unsplash-img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
}

/* ==============================
   ACCESSIBILITY REDUCED MOTION
   ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-particles { display: none; }
}

/* ==============================
   HIGH CONTRAST MODE SUPPORT
   ============================== */
@media (forced-colors: active) {
  .btn-lime { border: 2px solid ButtonText; }
  .token-circle { border: 2px solid ButtonText; }
  .mult-badge { border: 1px solid ButtonText; }
}

/* ==============================
   PRINT STYLES
   ============================== */
@media print {
  .demo-banner, .yf-header, .sidebar, .hamburger, .btn-connect, .yf-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .detail-card, .portfolio-card, .farm-card, .vault-card { border: 1px solid #ddd; }
  .hero { min-height: auto; padding: 20px; }
  .hero-particles { display: none; }
  .lime { color: #65A30D !important; }
}
