@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #020302;
--surface: #050705;
--card: #070907;
  --border: rgba(0, 211, 149, 0.12);
  --border-active: rgba(0, 211, 149, 0.35);
  --text: #eaf5ef;
  --muted: #5a7066;
  --muted-light: #8fa89e;
  --green: #00d395;
  --green-soft: rgba(0, 211, 149, 0.08);
  --green-glow: rgba(0, 211, 149, 0.15);
  --yellow: #e8c547;
  --yellow-soft: rgba(232, 197, 71, 0.1);
  --red: #f05a5a;
  --red-soft: rgba(240, 90, 90, 0.1);
  --card-shadow: 0 0 0 1px rgba(0, 211, 149, 0.08), 0 0 20px rgba(0, 211, 149, 0.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 10, 0.9);
  backdrop-filter: blur(20px);
}

.nav {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #040c07;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-links a:hover,
.desktop-links a.active { color: var(--text); }

.connect-btn {
  border: 1px solid var(--border-active);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.connect-btn:hover {
  background: rgba(0, 211, 149, 0.14);
  border-color: rgba(0, 211, 149, 0.4);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.menu-panel {
  position: absolute;
  top: 72px;
  right: 20px;
  width: 220px;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(11, 17, 13, 0.98);
  backdrop-filter: blur(20px);
}

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

.menu-panel a {
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--muted-light);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.menu-panel a:hover {
  background: var(--green-soft);
  color: var(--text);
}

/* PAGE TRANSITIONS */
.page-content {
  opacity: 0;
  animation: fadeIn 0.22s ease forwards;
}

.page-content.fade-out {
  animation: fadeOut 0.22s ease forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .page-content { animation: none; opacity: 1; }
  .page-content.fade-out { animation: none; }
}

/* BUTTONS */
.primary-btn {
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #040c07;
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}

.primary-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.outline-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted-light);
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.outline-btn:hover {
  border-color: var(--border-active);
  color: var(--text);
}

/* SHARED */
.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--green-soft);
  border: 1px solid var(--border-active);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.status-pill1 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--green-soft);
  border: 1px solid var(--border-active);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill1::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.green { color: var(--green); }

/* HERO */
.hero {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-active);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.badge span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-content > p {
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.secondary-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 22px;
  color: var(--muted-light);
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}

.secondary-btn:hover {
  border-color: var(--border-active);
  color: var(--text);
}

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

.trust-row div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.trust-row strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-row span { color: var(--muted); font-size: 0.78rem; }

/* HERO CARD */
.hero-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 28px;
}

.hero-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hero-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.allocation-block {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 14px;
}

.allocation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.83rem;
  color: var(--muted-light);
}

.allocation-top strong { color: var(--text); font-weight: 600; }

.bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 10px;
}

.bar-meth {
  width: 58%;
  background: var(--green);
  border-radius: 999px 0 0 999px;
}

.bar-usdy {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 0 999px 999px 0;
}

.allocation-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.metric-box span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.metric-box strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.ai-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 10px;
  background: var(--green-soft);
  border: 1px solid var(--border-active);
  color: var(--muted-light);
  font-size: 0.83rem;
  line-height: 1.6;
}

.pulse {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 211, 149, 0.15);
}

/* HOW IT WORKS */
.section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section > h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.steps article > span {
  font-family: 'Syne', sans-serif;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps article h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 12px 0 8px;
}

.steps article p {
  color: var(--muted-light);
  font-size: 0.88rem;
  line-height: 1.7;
}
.step-Num{
  color: var(--green);
}

/* DASHBOARD */
.dashboard-page {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.page-heading {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-heading h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 6px 0 10px;
}

.page-heading > p {
  color: var(--muted-light);
  font-size: 0.92rem;
  max-width: 520px;
}

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
  grid-row: span 2;
}

.portfolio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.portfolio-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-top: 4px;
}

.vault-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.asset-breakdown { display: grid; gap: 10px; }

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.asset-info { display: grid; gap: 3px; }
.asset-info strong { font-size: 0.92rem; font-weight: 600; }
.asset-info span { color: var(--muted); font-size: 0.78rem; }
.asset-value { text-align: right; }
.asset-value strong { font-size: 0.88rem; font-weight: 600; }
.asset-value span { color: var(--muted); font-size: 0.78rem; display: block; margin-top: 2px; }

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 22px;
}

.stat-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 6px 0 8px;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* BELOW GRID */
.below-grid { display: grid; gap: 14px; margin-top: 14px; }

.section-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
}

.section-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-card-top h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Agent toggle */
.agent-toggle {
  border: 1px solid var(--border-active);
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.agent-toggle.paused {
  border-color: rgba(232, 197, 71, 0.3);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.view-link {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border-active);
  border-radius: 7px;
  background: var(--green-soft);
  transition: background 0.2s;
}

.view-link:hover { background: rgba(0, 211, 149, 0.14); }

/* Agent status list */
.agent-status-list { display: grid; gap: 10px; }

.agent-status-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.agent-status-item > span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-status-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 5px 0 3px;
}

.agent-status-item small { color: var(--muted); font-size: 0.75rem; }

/* Mini feed */
.mini-feed { display: grid; gap: 0; }

.feed-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { padding-bottom: 0; border-bottom: none; }

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.feed-dot.green { background: var(--green); }
.feed-dot.yellow { background: var(--yellow); }
.feed-dot.red { background: var(--red); }

.feed-item strong { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; }
.feed-item p { color: var(--muted-light); font-size: 0.82rem; line-height: 1.5; margin: 0; }

/* Action tabs */
.action-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 18px;
}

.action-tab {
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s;
}

.action-tab.active {
  background: var(--green);
  color: #040c07;
}

/* Vault form */
.vault-form { display: grid; gap: 14px; }

.vault-form label {
  display: grid;
  gap: 6px;
  color: var(--muted-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.vault-form input,
.vault-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.vault-form input:focus,
.vault-form select:focus { border-color: var(--border-active); }

/* Protocol health */
.protocol-list { display: grid; gap: 10px; }

.protocol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.protocol-info strong { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; }
.protocol-info span { color: var(--muted); font-size: 0.78rem; }

.health-badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.health-badge.green { background: var(--green-soft); color: var(--green); border: 1px solid var(--border-active); }
.health-badge.yellow { background: var(--yellow-soft); color: var(--yellow); border: 1px solid rgba(232, 197, 71, 0.25); }
.health-badge.red { background: var(--red-soft); color: var(--red); border: 1px solid rgba(240, 90, 90, 0.25); }

/* Quick stats */
.quick-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-top: 14px;
}

.quick-stat {
  padding: 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}

.quick-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.quick-stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .desktop-links, .connect-btn { display: none; }
  .menu-btn { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; min-height: auto; }
  .trust-row, .steps { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .portfolio-card { grid-row: auto; }
  .quick-stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav { width: calc(100% - 32px); }
  .hero, .section, .dashboard-page { width: calc(100% - 32px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .primary-btn, .secondary-btn { text-align: center; }
  .vault-actions { flex-direction: column; }
  .protocol-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quick-stats-bar { grid-template-columns: 1fr; }
}
@keyframes loadMethBar {
  from { width: 0; }
  to { width: 58%; }
}

.bar-meth {
  animation: loadMethBar 1.2s ease-out forwards;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  animation: riseIn 0.7s ease forwards;
}
.hero-content,
.hero-card,
.trust-row,
.steps,
.dashboard-grid,
.below-grid,
.quick-stats-bar,
.page-heading {
  opacity: 0;
  animation: riseIn 0.7s ease forwards;
}

.hero-card { animation-delay: 0.1s; }
.trust-row { animation-delay: 0.15s; }
.steps { animation-delay: 0.1s; }
.dashboard-grid { animation-delay: 0.1s; }
.below-grid { animation-delay: 0.2s; }
.quick-stats-bar { animation-delay: 0.3s; }
.page-heading { animation-delay: 0s; }

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

/* FEED PAGE */
.feed-page {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.feed-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  opacity: 0;
  animation: riseIn 0.7s ease forwards;
  animation-delay: 0.05s;
}

.feed-stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.feed-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.feed-stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.feed-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 0.7s ease forwards;
  animation-delay: 0.1s;
}

.feed-filter {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--muted-light);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s;
}

.feed-filter:hover {
  border-color: var(--border-active);
  color: var(--text);
}

.feed-filter.active {
  background: var(--green-soft);
  border-color: var(--border-active);
  color: var(--green);
}

.feed-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  opacity: 0;
  animation: riseIn 0.7s ease forwards;
  animation-delay: 0.15s;
}

.feed-entry {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}

.feed-entry:last-child { border-bottom: none; }

.feed-entry:hover { background: var(--surface); }

.feed-entry-left {
  padding-top: 4px;
  flex-shrink: 0;
}

.feed-entry-body { flex: 1; }

.feed-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.feed-entry-top strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.feed-entry-body > p {
  color: var(--muted-light);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.feed-entry-body small {
  color: var(--muted);
  font-size: 0.75rem;
}

.feed-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.feed-tag.green { background: var(--green-soft); color: var(--green); border: 1px solid var(--border-active); }
.feed-tag.yellow { background: var(--yellow-soft); color: var(--yellow); border: 1px solid rgba(232,197,71,0.25); }
.feed-tag.red { background: var(--red-soft); color: var(--red); border: 1px solid rgba(240,90,90,0.25); }

.feed-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}


.feed-empty p { color: var(--muted-light); font-size: 0.9rem; margin-top: 8px; }
.feed-empty strong { display: block; font-size: 1rem; font-weight: 600; margin-top: 12px; }

@media (max-width: 900px) {
  .feed-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .feed-page { width: calc(100% - 32px); }
  .feed-stats { grid-template-columns: 1fr 1fr; }
  .feed-entry-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #080c0a;
  padding: 24px 0;
  margin-top: 80px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand,
.footer-mantle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eaf5ef;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-brand span:last-child {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.brand-mark,
.mantle-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 211, 149, 0.12);
  border: 1px solid rgba(0, 211, 149, 0.25);
  color: #00d395;
  font-weight: 800;
}

.footer-mantle span:first-child {
  color: #8fa89e;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.footer-logo,
.mantle-logo-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.footer-brand {
  gap: 10px;
}

.footer-mantle {
  gap: 10px;
}
.mantle-logo-img-head{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* Stat card with image */
.stat-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-card-text { flex: 1; }

.stat-card-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.stat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Step with image */
.step-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-text { flex: 1; }

.step-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.step-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* portforlio */

.allocation-bar {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}

.allocation-segment {
  height: 100%;
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.meth {
  background: #00d395;
}

.usdy {
  background: #8fa89e;
}

.mnt {
  background: #7cffc7;
}

.usde {
  background: #d6fff0;
}

.weth {
  background: #5a7066;
}


.portfolio-allocation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}

/* donut */

.portfolio-allocation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}

.multi-asset-donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    conic-gradient(
      #00d395 0deg 136.8deg,
      #8fa89e 136.8deg 230.4deg,
      #d6fff0 230.4deg 302.4deg,
      #5a7066 302.4deg 360deg
    );
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
}
.multi-asset-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    transparent 0deg,
    transparent var(--donut-fill),
    #111711 var(--donut-fill),
    #111711 360deg
  );
  border-radius: 50%;
  z-index: 1;
  animation: donutReveal 0.8s ease-out forwards;
}

.multi-asset-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  background: #111711;
  border-radius: 50%;
  z-index: 2;
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portfolio-allocation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  width: 100%;
}

.multi-asset-donut {
  margin: 0 auto;
}

@keyframes donutReveal {
  from {
    --donut-fill: 0deg;
  }

  to {
    --donut-fill: 360deg;
  }
}
@property --donut-fill {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.multi-asset-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  background: #111711;
  border-radius: 50%;
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-center strong {
  font-family: "Syne", sans-serif;
  font-size: 1.75rem;
  color: #eaf5ef;
}

.donut-center span {
  font-size: 0.78rem;
  color: #8fa89e;
}

.asset-dot.usdc {
  background: #d6fff0;
}

.asset-dot.musd {
  background: #5a7066;
}

/* Allocattion Home */
.multi-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bar-segment {
  height: 100%;
}

.bar-meth {
  width: 38%;
  background: #00d395;
}

.bar-usdy {
  width: 26%;
  background: #8fa89e;
}

.bar-usdc {
  width: 20%;
  background: #d6fff0;
}

.bar-musd {
  width: 16%;
  background: #5a7066;
}

.multi-labels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  margin-top: 14px;
}

.multi-labels span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8fa89e;
  font-size: 0.85rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.meth {
  background: #00d395;
}

.dot.usdy {
  background: #8fa89e;
}

.dot.usdc {
  background: #d6fff0;
}

.dot.musd {
  background: #5a7066;
}

/* performance Page */

.performance-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.performance-hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.performance-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3rem);
  color: #eaf5ef;
  margin: 10px 0 14px;
}

.performance-hero p {
  max-width: 620px;
  color: #8fa89e;
  font-size: 1.05rem;
  line-height: 1.7;
}

.performance-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.chart-card {
  background: #111711;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}

.metric-card {
  padding: 20px;
}

.metric-card span,
.label {
  color: #8fa89e;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong {
  display: block;
  margin: 10px 0 6px;
  color: #eaf5ef;
  font-family: "DM Sans", sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.metric-card p {
  color: #5a7066;
  font-size: 0.9rem;
}

.positive {
  color: #00d395 !important;
}

.warning {
  color: #f4c95d !important;
}

.main-performance-chart {
  padding: 24px;
  margin-bottom: 18px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.chart-head h2 {
  font-family: "DM Sans", sans-serif;
  color: #eaf5ef;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin-top: 6px;
}

.timeframe-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeframe-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e1410;
  color: #8fa89e;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}

.timeframe-tabs button.active,
.timeframe-tabs button:hover {
  color: #040c07;
  background: #00d395;
  border-color: #00d395;
}

.line-chart-wrap {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 14px;
  background: #0e1410;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.line-chart {
  width: 100%;
  height: 360px;
  display: block;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawChart 1.1s ease forwards;
}

.sentra-line {
  stroke: #00d395;
}

.meth-line {
  stroke: #9fffdc;
  animation-delay: 0.08s;
}

.usdy-line {
  stroke: #6aa7ff;
  animation-delay: 0.14s;
}

.musd-line {
  stroke: #eaf5ef;
  animation-delay: 0.2s;
}

.usdc-line {
  stroke: #5a7066;
  animation-delay: 0.26s;
}

.hover-point {
  fill: #00d395;
  stroke: #080c0a;
  stroke-width: 4;
}

@keyframes drawChart {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-tooltip {
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(260px, calc(100% - 36px));
  background: #111711;
  border: 1px solid rgba(0, 211, 149, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  color: #eaf5ef;
  margin-bottom: 8px;
}

.chart-tooltip span {
  color: #8fa89e;
  font-size: 0.86rem;
  line-height: 1.6;
}

.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8fa89e;
  font-size: 0.9rem;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.sentra,
.decision-list span {
  background: #00d395;
}

.legend-dot.meth,
.stack-meth {
  background: #9fffdc;
}

.legend-dot.usdy,
.stack-usdy {
  background: #6aa7ff;
}

.legend-dot.musd,
.stack-musd {
  background: #eaf5ef;
}

.legend-dot.usdc,
.stack-usdc {
  background: #5a7066;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-bottom: 18px;
}

.allocation-timeline,
.risk-visual,
.comparison-section,
.decision-log-card {
  padding: 24px;
}

.stacked-bars {
  display: grid;
  gap: 18px;
}

.stack-row {
  display: grid;
  gap: 8px;
}

.stack-row > span {
  color: #8fa89e;
  font-weight: 700;
  font-size: 0.9rem;
}

.stack-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #0e1410;
}

.stack-bar i {
  display: block;
  height: 100%;
}

.insight-note {
  color: #8fa89e;
  margin-top: 18px;
  line-height: 1.6;
}

.risk-list {
  display: grid;
  gap: 12px;
}

.risk-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e1410;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}

.risk-list span {
  color: #8fa89e;
}

.risk-list strong {
  color: #eaf5ef;
}

.shield-meter {
  height: 12px;
  border-radius: 999px;
  background: #0e1410;
  overflow: hidden;
  margin-top: 20px;
}

.shield-meter span {
  display: block;
  height: 100%;
  background: #00d395;
  border-radius: inherit;
}

.comparison-table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  background: #0e1410;
  color: #8fa89e;
}

.table-row span:first-child {
  color: #eaf5ef;
  font-weight: 800;
}

.table-head {
  background: transparent;
  color: #5a7066;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.table-row.featured {
  border: 1px solid rgba(0, 211, 149, 0.25);
  background: rgba(0, 211, 149, 0.08);
}

.decision-log-card a {
  color: #00d395;
  text-decoration: none;
  font-weight: 800;
}

.decision-list {
  display: grid;
  gap: 12px;
}

.decision-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: #0e1410;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.decision-list span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 6px;
}

.decision-list p {
  color: #8fa89e;
  line-height: 1.6;
}

.rise-section {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.7s ease forwards;
}

.rise-section:nth-child(2) {
  animation-delay: 0.08s;
}

.rise-section:nth-child(3) {
  animation-delay: 0.14s;
}

.rise-section:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .performance-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .chart-head {
    flex-direction: column;
  }

  .chart-tooltip {
    position: static;
    width: auto;
    margin: 0 14px 14px;
  }
}



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

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

  .table-head {
    display: none;
  }

  .line-chart-wrap {
    min-height: auto;
  }

  .line-chart {
    height: 300px;
  }


/* settings */

.settings-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.settings-hero {
  max-width: 780px;
  margin-bottom: 32px;
}

.settings-hero h1 {
 font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3rem);
  color: #eaf5ef;
  margin: 10px 0 14px;
}

.settings-hero p {
  max-width: 660px;
  color: #8fa89e;
  font-size: 1.05rem;
  line-height: 1.7;
}

.risk-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.risk-card,
.settings-card,
.ai-summary {
  background: #111711;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}

.risk-card {
  text-align: left;
  color: #eaf5ef;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.risk-card:hover,
.risk-card.active {
  border-color: rgba(0, 211, 149, 0.25);
}

.risk-card:hover {
  transform: translateY(-2px);
}

.risk-card span {
  color: #00d395;
  font-size: 0.82rem;
  font-weight: 800;
}

.risk-card h3 {
  font-family: "DsM San", sans-serif;
  font-size: 1.45rem;
  margin: 12px 0 8px;
}

.risk-card p,
.risk-card li {
  color: #8fa89e;
  line-height: 1.6;
}

.risk-card ul {
  margin-top: 16px;
  padding-left: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-bottom: 18px;
}

.lower-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.settings-card {
  padding: 24px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.card-head h2 {
  font-family: "DsM San", sans-serif;
  color: #eaf5ef;
  margin-top: 6px;
}

.preview-metrics,
.simulation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-metrics div,
.simulation-grid div {
  background: #0e1410;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
}

.preview-metrics span,
.simulation-grid span {
  display: block;
  color: #8fa89e;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.preview-metrics strong,
.simulation-grid strong {
  font-family: "DsM San", sans-serif;
  color: #eaf5ef;
  font-size: 1.2rem;
}

.allocation-preview {
  margin-top: 24px;
}

.allocation-row {
  display: flex;
  justify-content: space-between;
  color: #eaf5ef;
  font-size: 0.92rem;
  margin: 16px 0 8px;
}

.allocation-track {
  height: 9px;
  background: #0e1410;
  border-radius: 999px;
  overflow: hidden;
}

.allocation-track span {
  display: block;
  height: 100%;
  background: #00d395;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.control-group {
  margin-bottom: 22px;
}

.control-group label,
.toggle-row strong {
  display: block;
  color: #eaf5ef;
  font-weight: 700;
  margin-bottom: 8px;
}

.control-group select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e1410;
  color: #eaf5ef;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  color: #8fa89e;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: #00d395;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.toggle-row span {
  color: #8fa89e;
  font-size: 0.88rem;
}

.switch input {
  display: none;
}

.switch span {
  width: 46px;
  height: 26px;
  display: block;
  background: #0e1410;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.switch span::after {
  content: "";
  width: 18px;
  height: 18px;
  background: #8fa89e;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: 0.2s ease;
}

.switch input:checked + span {
  background: rgba(0, 211, 149, 0.14);
  border-color: rgba(0, 211, 149, 0.25);
}

.switch input:checked + span::after {
  left: 22px;
  background: #00d395;
}

.restriction-list {
  display: grid;
  gap: 14px;
}

.restriction-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #eaf5ef;
}

.restriction-list input {
  accent-color: #00d395;
}

.ai-summary {
  padding: 26px;
}

.ai-summary p {
  max-width: 900px;
  color: #eaf5ef;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .risk-selector,
  .settings-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .settings-page {
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
  padding-top: 36px;
}

  .preview-metrics,
  .simulation-grid {
    grid-template-columns: 1fr;
  }

  .card-head {
    flex-direction: column;
  }
}

.page-content {
  animation: riseIn 0.7s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Single-page layout */
.single-page-shell {
  width: 100%;
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
  width: 100%;
  animation: riseIn 0.22s ease both;
}

.app-page.page-content {
  opacity: 1;
}

.desktop-links a.active,
.menu-panel a.active {
  color: var(--text);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Wallet connection modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.wallet-modal.open {
  display: block;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}

.wallet-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  background: #0e1410;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
}

.wallet-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wallet-modal-head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.wallet-modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.wallet-list {
  display: grid;
  gap: 8px;
}

.wallet-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}


.wallet-logo,
.wallet-logo-fallback {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wallet-logo-fallback {
  display: grid;
  place-items: center;
  background: rgba(0, 211, 149, 0.12);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.wallet-item:hover {
  border-color: rgba(0, 211, 149, 0.4);
}

.disconnect-menu {
  position: fixed;
  z-index: 1000;
  width: 160px;
  background: #0e1410;
  border: 1px solid rgba(255, 92, 92, 0.22);
  border-radius: 10px;
  padding: 4px;
}

.disconnect-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ff6b6b;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.disconnect-menu button:hover {
  background: rgba(255, 92, 92, 0.08);
}

/* saftey tab */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas {
  max-width: 100%;
}

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

  .menu-btn {
    display: flex;
  }

.page,
.page-content,
.dashboard-page,
.performance-page,
.settings-page,
.feed-page {
  width: calc(100% - 32px);
  margin: 0 auto;
  padding-top: 32px;
}
  .dashboard-grid,
  .metrics-grid,
  .settings-grid,
  .performance-grid,
  .feed-grid,
  .protocol-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-grid,
  .dashboard-main,
  .portfolio-layout,
  .chart-grid,
  .risk-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-heading h1,
  .performance-hero h1,
  .settings-hero h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
    line-height: 0.95;
  }

  .hero-card,
  .portfolio-card,
  .dashboard-card,
  .metric-card,
  .settings-card,
  .chart-card {
    padding: 18px;
  }

  .wallet-modal-card {
    width: min(300px, calc(100% - 32px));
  }
}
/* Wallet */
.mobile-wallet-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-wallet-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid var(--green);
    border-radius: 999px;
    background: var(--green);
    color: #06110b;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .mobile-wallet-btn.wallet-connected {
    background: transparent;
    color: var(--green);
  }
}
/* Check Mint On Explorer */
.mini-explorer-btn {
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 0.82rem;
  text-decoration: none;
}

.mini-explorer-btn:not([hidden]) {
  display: inline-flex;
}

.mini-explorer-btn:hover {
  background: rgba(27, 209, 122, 0.08);
}

[hidden] {
  display: none !important;
}

/* Balance */
.vault-balance-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vault-balance-row strong {
  color: var(--green);
  font-weight: 600;
}

/* Change */
/* ── Dark cards with green edge sweep ── */
.stat-card,
.portfolio-card,
.section-card,
.hero-card,
.metric-card,
.chart-card,
.settings-card,
.risk-card,
.feed-list,
.feed-stat,
.quick-stat,
.agent-status-item,
.asset-row,
.protocol-row,
.allocation-block,
.metric-box,
.wallet-modal-card,
.disconnect-menu,
.trust-row div,
.steps article,
.menu-panel {
  background: var(--card);
  border: 1px solid var(--border);
  
}
/* Smart cotract links */
/* ── Token contract links ── */
.token-contract-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.token-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.token-link-card:hover {
  border-color: var(--border-active);
  background: var(--green-soft);
}

.token-link-card div { display: grid; gap: 3px; }

.token-link-card strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.token-link-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.token-link-card svg {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s;
}

.token-link-card:hover svg { color: var(--green); }

@media (max-width: 560px) {
  .token-contract-links { grid-template-columns: 1fr 1fr; }
}

/* Toast */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
}

.toast {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  background: #08130f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  animation: toastIn 0.18s ease forwards;
}

.toast.success {
  border-color: rgba(0, 211, 149, 0.35);
}

.toast.error {
  border-color: rgba(255, 77, 77, 0.4);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  flex: 0 0 auto;
}

.toast.success .toast-dot {
  background: #00d395;
}

.toast.error .toast-dot {
  background: #ff4d4d;
}

.toast-content strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 2px;
  color: var(--text);
}

.toast-content span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.toast.hide {
  animation: toastOut 0.16s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(14px, 10px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translate(14px, 10px);
  }
}
/* Mint Tokens */
.mint-btn {
  border: 1px solid var(--border-active);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.mint-btn:hover {
  background: rgba(0, 211, 149, 0.14);
  border-color: rgba(0, 211, 149, 0.4);
}
@media (max-width: 768px) {
  #mintTokenBtn {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .mint-page .vault-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .mint-page .vault-form label,
  .mint-page .vault-form select,
  .mint-page .mint-btn,
  .mint-page .mini-explorer-btn {
    width: 100% !important;
  }

  .mint-page .mint-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 46px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mint-page .mini-explorer-btn[hidden] {
    display: none !important;
  }

  .mint-page .mini-explorer-btn:not([hidden]) {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}



  .performance-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    overflow: hidden;
  }

  .performance-stats .metric-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }


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

  .comparison-section,
  .decision-log-card,
  .main-performance-chart {
    width: 100%;
    min-width: 0;
  }

  .table-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 0.78rem;
  }
}