:root {
  /* Color Palette - Robinhood & Fintech Inspired */
  --bg-dark: #080B10;
  --bg-card: #0F141E;
  --bg-card-hover: #151C2B;
  --bg-elevated: #1A2336;
  --bg-input: #0B0E15;
  
  --primary: #00C805;
  --primary-light: #22E338;
  --primary-dark: #009904;
  --primary-glow: rgba(0, 200, 5, 0.2);
  --primary-subtle: rgba(0, 200, 5, 0.08);

  --cyan: #00E5FF;
  --cyan-subtle: rgba(0, 229, 255, 0.1);
  --purple: #8B5CF6;
  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.2);
  --rose: #F43F5E;
  
  --text-main: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 200, 5, 0.4);
  --border-highlight: rgba(255, 255, 255, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-glow);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

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

/* Background Ambient Glows */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -15%;
  left: 25%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 5, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.ambient-glow-2 {
  position: absolute;
  top: 45%;
  right: -10%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  filter: blur(90px);
}

.ambient-glow-3 {
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
  filter: blur(90px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, var(--primary-light) 0%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--primary); }
.text-cyan { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-rose { color: var(--rose); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 3px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0, 200, 5, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border-color: rgba(0, 200, 5, 0.3);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-emerald {
  background: rgba(0, 200, 5, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(0, 200, 5, 0.25);
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* ========================================================= */
/* Header & Navigation - Clean, Compact, No Overflow         */
/* ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  flex-wrap: nowrap;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 8px rgba(0, 200, 5, 0.25));
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-network {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 200, 5, 0.2);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wallet-badge-clean {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
}

.wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

/* ========================================================= */
/* Hero Section                                              */
/* ========================================================= */
.hero-section {
  padding: 64px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 5, 0.08);
  border: 1px solid rgba(0, 200, 5, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Showcase Card */
.hero-card-preview {
  background: linear-gradient(180deg, rgba(21, 28, 43, 0.7) 0%, rgba(15, 20, 30, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-cat-avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(0, 200, 5, 0.15) 0%, rgba(15, 20, 30, 0.8) 70%);
  border: 1px solid rgba(0, 200, 5, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 200, 5, 0.15);
}

.hero-cat-avatar-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-cat-avatar-wrap:hover .hero-cat-avatar-img {
  transform: scale(1.06);
}

.hero-cat-status-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.status-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-bar-header span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-fill-emerald {
  background: linear-gradient(90deg, #009904, var(--primary-light));
  box-shadow: 0 0 10px rgba(0, 200, 5, 0.4);
}

.progress-fill-amber {
  background: linear-gradient(90deg, #D97706, var(--amber));
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.progress-fill-cyan {
  background: linear-gradient(90deg, #0284C7, var(--cyan));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.hero-cat-footer {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
}

.hero-yield-info {
  display: flex;
  flex-direction: column;
}

.hero-yield-val {
  font-weight: 800;
  color: var(--primary-light);
  font-size: 1.05rem;
}

/* ========================================================= */
/* Contract Banner                                           */
/* ========================================================= */
.trust-banner-section {
  padding: 16px 0 50px;
}

.trust-banner-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contract-copy-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.contract-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.contract-hash-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  flex: 1;
  justify-content: space-between;
}

.trust-badges-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ========================================================= */
/* Section Headers                                           */
/* ========================================================= */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ========================================================= */
/* Sanctuary & dApp Grid                                     */
/* ========================================================= */
.dapp-section {
  padding: 50px 0 70px;
  position: relative;
}

.dapp-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 5px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  width: fit-content;
  margin: 0 auto 36px;
}

.dapp-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.dapp-tab-btn:hover {
  color: var(--text-main);
}

.dapp-tab-btn.active {
  background: var(--bg-elevated);
  color: var(--primary-light);
  border: 1px solid rgba(0, 200, 5, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cat-adopt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-adopt-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.cat-adopt-card.card-highlight {
  border-color: rgba(0, 200, 5, 0.3);
  box-shadow: 0 0 25px rgba(0, 200, 5, 0.1);
}

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

.cat-preview-box {
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(11, 14, 21, 0.8) 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.cat-avatar-img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.cat-adopt-card:hover .cat-avatar-img {
  transform: scale(1.05);
}

.cat-name-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-desc-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 40px;
}

.cat-specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  background: var(--bg-input);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cat-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.spec-title {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-val {
  font-weight: 700;
  color: var(--text-main);
}

.cat-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-price-amt {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-light);
}

.cat-price-amt small {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ========================================================= */
/* My Sanctuary Dashboard                                    */
/* ========================================================= */
.sanctuary-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  box-shadow: var(--shadow-md);
}

.cats-sidebar-col {
  border-right: 1px solid var(--border-subtle);
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cats-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.cats-list-scroll::-webkit-scrollbar {
  width: 4px;
}

.cats-list-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.cat-selector-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.cat-selector-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-highlight);
}

.cat-selector-card.active {
  background: var(--bg-elevated);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 200, 5, 0.15);
}

.selector-avatar-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.selector-avatar-thumb img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.selector-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.selector-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.selector-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.active-cat-arena {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cat-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.editable-cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-title-text {
  font-size: 1.5rem;
  font-weight: 800;
}

.rename-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.rename-btn:hover {
  color: var(--primary-light);
  background: var(--primary-subtle);
}

.cat-stage-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.cat-hero-display {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 200, 5, 0.12) 0%, transparent 70%);
}

.cat-hero-display img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  animation: floatCat 4s ease-in-out infinite alternate;
}

@keyframes floatCat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.cat-vitals-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feeding-hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feeding-hub-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.food-item-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.food-item-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-elevated);
}

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

.food-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  color: var(--primary);
}

.food-item-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.food-benefits-list {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.food-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.food-price-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-light);
}

.yield-rewards-panel {
  background: linear-gradient(90deg, rgba(0, 200, 5, 0.08) 0%, rgba(0, 229, 255, 0.06) 100%);
  border: 1px solid rgba(0, 200, 5, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.yield-stat-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yield-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 5, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.yield-accumulated-amt {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-light);
}

/* ========================================================= */
/* Tokenomics Section                                        */
/* ========================================================= */
.tokenomics-section {
  padding: 70px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 30, 0.5) 100%);
}

.tokenomics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.tokenomics-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tokenomics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.tokenomics-card:hover {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.t-info-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.t-indicator {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.t-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.t-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.t-percent {
  font-size: 1.25rem;
  font-weight: 800;
}

.supply-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.supply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.supply-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.supply-val {
  font-weight: 700;
  font-size: 1rem;
}

/* ========================================================= */
/* Swap Section                                              */
/* ========================================================= */
.swap-section {
  padding: 60px 0 80px;
}

.swap-container-box {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

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

.swap-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.swap-input-group {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.swap-input-group:focus-within {
  border-color: var(--border-focus);
}

.swap-input-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.swap-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.swap-input-field {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 700;
  outline: none;
  width: 100%;
  font-family: var(--font-family);
}

.token-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elevated);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.token-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.swap-switch-btn-wrap {
  display: flex;
  justify-content: center;
  margin: -10px 0;
  position: relative;
  z-index: 2;
}

.swap-switch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.swap-switch-btn:hover {
  color: var(--primary-light);
  border-color: var(--primary);
  transform: rotate(180deg);
}

.swap-details-box {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.swap-detail-row {
  display: flex;
  justify-content: space-between;
}

/* ========================================================= */
/* Charity / Impact Section                                  */
/* ========================================================= */
.impact-section {
  padding: 70px 0;
  background: radial-gradient(circle at center, rgba(0, 200, 5, 0.05) 0%, transparent 70%);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.impact-card-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.impact-metric-huge {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.02em;
}

/* ========================================================= */
/* Roadmap Section                                           */
/* ========================================================= */
.roadmap-section {
  padding: 70px 0 90px;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: var(--transition);
}

.roadmap-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.roadmap-card.active {
  border-color: rgba(0, 200, 5, 0.4);
  box-shadow: 0 0 20px rgba(0, 200, 5, 0.1);
}

.roadmap-phase-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roadmap-title {
  font-size: 1.18rem;
  font-weight: 700;
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.roadmap-item svg {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ========================================================= */
/* Footer                                                    */
/* ========================================================= */
.footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* ========================================================= */
/* Toast Notifications                                       */
/* ========================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 360px;
}

.toast.toast-success {
  border-color: rgba(0, 200, 5, 0.4);
}

.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.4);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================= */
/* Modals                                                    */
/* ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
}

/* ========================================================= */
/* Mobile Bottom Nav                                         */
/* ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 11, 16, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 90;
  padding: 8px 16px 12px;
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--primary-light);
}

.mobile-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* ========================================================= */
/* Responsive Media Queries                                  */
/* ========================================================= */
@media (max-width: 1080px) {
  .nav-menu {
    gap: 16px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
}

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

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

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

  .cats-sidebar-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .cats-list-scroll {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .cat-selector-card {
    min-width: 200px;
  }

  .tokenomics-grid, .impact-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cat-stage-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .container {
    padding: 0 16px;
  }
}
