/* ==========================================================================
   AGOR PROTOCOL // MAIN PLATFORM STYLESHEET
   High-end Web3 AI-Agent Launchpad Architecture
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* Page Shell Layout */
.app-shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOP STATUS TICKER TAPE */
.telemetry-ticker {
  background: #040608;
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: tickerSlide 45s linear infinite;
  padding-left: 100%;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.ticker-val-up {
  color: var(--neon-green);
  font-weight: 600;
}

.ticker-val-down {
  color: var(--neon-red);
}

.ticker-val-fee {
  color: var(--neon-cyan);
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* NAVIGATION HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: rgba(139, 92, 246, 0.15);
  border: 1.5px solid #a855f7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.brand-icon:hover {
  transform: scale(1.05);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title .tag {
  font-size: 0.65rem;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  letter-spacing: 0.04em;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* X-PAID STATUS & X SIGN-IN BUTTONS */
.btn-x-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-x-login:hover {
  background: #111;
  border-color: #555;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn-x-login.logged-in {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.08);
  color: var(--neon-green);
}

/* OFFICIAL X LINK BUTTON (HEADER & SECTIONS) */
.header-x-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(29, 155, 240, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.header-x-link:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(29, 155, 240, 0.35));
  border-color: #c084fc;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.55), 0 0 10px rgba(29, 155, 240, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.header-x-link .x-icon {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}

.header-x-link .x-handle {
  color: #c084fc;
}

.header-x-link:hover .x-handle {
  color: #fff;
}

.header-x-link .arrow-icon {
  font-size: 0.72rem;
  color: #a855f7;
  transition: transform 0.2s ease;
}

.header-x-link:hover .arrow-icon {
  transform: translate(2px, -2px);
  color: #c084fc;
}

.xpaid-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
}

.xpaid-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* HERO X-PAID BANNER & SIMULATOR BAR */
.hero-xpaid-bar {
  margin-top: 24px;
  background: linear-gradient(90deg, rgba(7, 12, 20, 0.95) 0%, rgba(13, 20, 32, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.08);
}

.xpaid-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
}

.xpaid-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.xpaid-badge-highlight {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.xpaid-bar-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.xpaid-bar-desc strong {
  color: var(--neon-green);
}

.xpaid-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-xpaid-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-cyan);
  color: #050b14;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  cursor: pointer;
}

.btn-open-xpaid-modal:hover {
  background: #5cf5ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}

/* HOW IT WORKS SECTION */
.how-it-works-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 32px 28px;
  margin-bottom: 36px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.step-card {
  background: #06090e;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}

.step-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.agent-x-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1d9bf0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s;
}

.agent-x-badge:hover {
  background: rgba(29, 155, 240, 0.25);
  color: #fff;
}

.btn-card-back {
  padding: 7px 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-card-back:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

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

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.hud-tool-btn {
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-tool-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.hud-tool-btn.active {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: rgba(0, 255, 136, 0.08);
}

.btn-primary-cyber {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid rgba(192, 132, 252, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
  text-transform: uppercase;
}

.btn-primary-cyber:hover {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
  transform: translateY(-1px);
}

.btn-wallet {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-wallet:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-wallet.connected {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border-color: rgba(0, 255, 136, 0.4);
}

/* MAIN CONTENT WRAPPER */
.main-viewport {
  flex: 1;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 80px 24px;
}

/* HERO SLAB / CORE NARRATIVE */
.hero-slab {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 13, 36, 0.92) 0%, rgba(9, 7, 18, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.1);
  overflow: hidden;
}

.hero-slab::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

/* SOLUS MASCOT SHOWCASE & PILLS */
.solus-mascot-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  margin-bottom: 14px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.solus-mascot-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px #8b5cf6;
  animation: solusBounce 2.4s ease-in-out infinite;
}

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

.solus-hero-mascot-card {
  background: linear-gradient(135deg, rgba(22, 16, 42, 0.95) 0%, rgba(11, 8, 22, 0.98) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.18);
  position: relative;
  overflow: hidden;
}

.solus-hero-mascot-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 2px solid #a855f7;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  margin-bottom: 12px;
  animation: solusFloat 3.5s ease-in-out infinite;
}

.solus-hero-mascot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes solusFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.hero-title .highlight-tree {
  background: linear-gradient(90deg, #c084fc 0%, #8b5cf6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 26px;
}

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

.btn-secondary-cyber {
  border: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary-cyber:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* HERO LIVE TELEMETRY RADAR */
.hero-telemetry-box {
  background: rgba(5, 8, 13, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 20px;
  font-family: var(--font-mono);
}

.telemetry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.radar-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.radar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.radar-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.radar-sub {
  font-size: 0.7rem;
  color: var(--neon-green);
  margin-top: 2px;
}

/* PROTOCOL STATS METRICS BAR */
.protocol-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.stat-metric-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-metric-card .num {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}

.stat-metric-card .subtext {
  font-size: 0.72rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* SECTION HEADERS */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

/* FILTER TABS & SEARCH CONTROLS */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.search-field-wrap {
  position: relative;
  min-width: 320px;
  flex: 1;
}

.search-input {
  width: 100%;
  background: #06090e;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 8px 14px 8px 36px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

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

.filter-segments {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #06090e;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
}

.filter-tab {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border-radius: 3px;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: #fff;
}

.filter-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--neon-green);
  font-weight: 600;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* AGENT / COIN CARDS GRID */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.agent-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.agent-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}

.agent-avatar .gen-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.55rem;
  font-family: var(--font-mono);
  background: #000;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: bold;
}

.agent-title-col {
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-ticker {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.agent-directive {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* RECURSIVE SUB-AGENT SPAWN PROGRESS BAR */
.spawn-progress-container {
  background: #06090e;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 10px 12px;
}

.spawn-progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.spawn-label {
  color: var(--text-muted);
}

.spawn-val {
  color: var(--neon-green);
  font-weight: 600;
}

.cyber-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.cyber-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  transition: width 0.5s ease;
}

/* METRICS ROW IN CARD */
.agent-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.agent-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.agent-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-card-trade {
  flex: 1;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s;
}

.btn-card-trade:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.btn-card-brain {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-card-brain:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* INTERACTIVE LINEAGE SWARM TREE (VISUAL GRAPH) */
.lineage-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 36px;
  position: relative;
}

.lineage-canvas-wrapper {
  width: 100%;
  height: 480px;
  background: #040609;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

#lineageCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lineage-hud-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(8, 12, 19, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
}

.lineage-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

/* LIVE FEED SECTION */
.live-stream-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

/* FEE PAYOUTS / RECURSIVE YIELD ENGINE SECTION */
.yield-vault-box {
  background: linear-gradient(180deg, #0b111a 0%, #070a10 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

.payouts-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-top: 16px;
}

.payouts-table th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dim);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.payouts-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

.payouts-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* MODAL SYSTEM (Wallet, Launch, Brain, Docs, Trade) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 7, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  background: #090e18;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 136, 0.08);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1422;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-content-body {
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* FORM ELEMENTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-input, .form-select, .form-textarea {
  background: #05080e;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--neon-green);
}

.form-textarea {
  resize: vertical;
  min-height: 75px;
}

/* WALLET PROVIDER BUTTONS */
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wallet-provider-btn {
  background: #05080e;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.2s;
}

.wallet-provider-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.wallet-provider-icon {
  font-size: 1.4rem;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.cyber-toast {
  pointer-events: auto;
  background: #090e18;
  border: 1px solid var(--neon-green);
  border-left: 4px solid var(--neon-green);
  border-radius: 4px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .protocol-stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .live-stream-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 12px;
  }
  .nav-menu {
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }
  .protocol-stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-field-wrap {
    min-width: 100%;
  }
  .wallet-grid {
    grid-template-columns: 1fr;
  }
}
