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

:root {
  --bg: #030508;
  --surface: #0a0e14;
  --surface-2: #111820;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f4fa;
  --muted: #7a8699;
  --sol: #9945ff;
  --sol-2: #14f195;
  --sol-glow: rgba(153, 69, 255, 0.12);
  --green: #14f195;
  --red: #ff4d6a;
  --radius: 14px;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.dashboard-widget-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.dashboard-widget {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}

.dashboard-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dashboard-widget-header .logo {
  font-size: 1rem;
}

.dashboard-widget-header .dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

#dashboard-connect-btn.hidden,
#dashboard-disconnect-btn.hidden {
  display: none !important;
}

.worker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sol-2);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.25);
  background: rgba(20, 241, 149, 0.06);
}

.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.dash-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dash-sidebar-head h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dash-sidebar-all {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.dash-sidebar-all.active,
.dash-sidebar-all:hover {
  border-color: var(--sol);
  color: var(--sol-2);
}

.dash-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dash-sidebar-item:hover { border-color: var(--border); }
.dash-sidebar-item.active {
  border-color: var(--sol);
  background: rgba(153, 69, 255, 0.1);
}
.dash-sidebar-item.low { border-color: rgba(255, 77, 106, 0.35); }

.dash-sidebar-item-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.agent-avatar {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(153, 69, 255, 0.15);
}

.agent-avatar-lg,
.agent-avatar-hero {
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.25);
}

.agent-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.agent-avatar-sub {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deploy-avatar-preview,
.deploy-success-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.deploy-template-chip-avatar {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 4px;
}

.deploy-template-chip-icon { font-size: 1.1rem; line-height: 1; }

.agent-funds-avatar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.pnl-agent-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-store-modal { max-width: 520px; }

.avatar-store-inner { max-height: 85vh; overflow-y: auto; }

.avatar-store-preview {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.avatar-store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.avatar-store-tab {
  font: inherit;
  font-size: 0.68rem;
  text-transform: capitalize;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.avatar-store-tab.active {
  border-color: var(--sol);
  color: var(--text);
  background: rgba(153, 69, 255, 0.12);
}

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

.avatar-store-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s;
}

.avatar-store-item:hover { border-color: rgba(153, 69, 255, 0.45); }

.avatar-store-item.equipped {
  border-color: var(--sol-2);
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.15);
}

.avatar-store-item.locked { opacity: 0.55; }

.avatar-store-item-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 52px;
}

.avatar-store-item-thumb img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.avatar-store-lock {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.75rem;
}

.avatar-store-item strong { font-size: 0.78rem; }

.avatar-store-tier {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sol-2);
}

.avatar-store-item em {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.avatar-store-price {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--sol);
}

.avatar-store-note {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}

.dash-sidebar-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-sidebar-item-body strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-item-body em {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  font-style: normal;
}

.dash-sidebar-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255, 77, 106, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.dash-sidebar-empty {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 8px 4px;
}

.dash-sidebar-treasury {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

.dash-sidebar-treasury strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--sol-2);
  margin: 4px 0;
}

.dash-sidebar-treasury a {
  color: var(--sol-2);
  text-decoration: none;
  font-size: 0.68rem;
}

.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.progress-card-wide {
  grid-column: 1 / -1;
}

.progress-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-card-head h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.progress-card-head strong {
  font-family: var(--mono);
  color: var(--sol-2);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-fill.worker {
  background: linear-gradient(90deg, var(--sol), var(--sol-2));
}

.progress-fill.util {
  background: linear-gradient(90deg, #3b82f6, var(--sol-2));
}

.progress-note {
  font-size: 0.72rem;
  color: var(--muted);
}

.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.milestone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.milestone.done {
  color: var(--sol-2);
  border-style: solid;
  border-color: rgba(20, 241, 149, 0.3);
  background: rgba(20, 241, 149, 0.05);
}

.milestone-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.milestone.done .milestone-dot {
  background: rgba(20, 241, 149, 0.2);
}

.agent-funds-panel {
  background: linear-gradient(145deg, rgba(153, 69, 255, 0.08), var(--surface));
  border: 1px solid rgba(153, 69, 255, 0.28);
  border-radius: var(--radius);
  padding: 18px;
}

.agent-funds-head h3 { margin-bottom: 4px; }
.agent-funds-head p { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }

.agent-funds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.fund-stat {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

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

.fund-stat strong {
  font-family: var(--mono);
  font-size: 0.95rem;
}

.fund-stat-highlight strong { color: var(--sol-2); }

.fund-util { margin-bottom: 14px; }

.fund-util-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.fund-util-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fund-util-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sol), var(--sol-2));
  transition: width 0.4s ease;
}

.fund-util-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

.fund-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.activity-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.fund-modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  max-width: 400px;
  width: calc(100% - 32px);
}

.fund-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.fund-modal-inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fund-modal-inner h3 { margin-bottom: 0; }

.fund-modal-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.fund-modal-inner label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.fund-modal-inner input {
  font: inherit;
  font-family: var(--mono);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.fund-modal-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.fund-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.deploy-modal {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: 560px;
  width: calc(100% - 32px);
}

.deploy-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dash-deploy-card {
  position: relative;
  margin: 0;
  max-width: none;
  min-height: 360px;
}

.dash-deploy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.dash-deploy-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.dash-sidebar-deploy {
  width: 100%;
  margin-bottom: 12px;
}

.app { max-width: 1140px; margin: 0 auto; padding: 0 24px 80px; }

.hidden { display: none !important; }

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.logo-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sol), var(--sol-2));
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 0 16px var(--sol-glow);
}

.logo-glyph-sm {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.header-sol-pill {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sol-2);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.28);
  background: rgba(20, 241, 149, 0.06);
  margin-left: 2px;
}

.sol-badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-badges {
  margin-bottom: 18px;
}

.footer-badges {
  margin-bottom: 14px;
}

.sol-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.sol-badge-brand {
  border-color: rgba(153, 69, 255, 0.35);
  color: var(--text);
  background: rgba(153, 69, 255, 0.08);
}

.sol-badge-live {
  border-color: rgba(20, 241, 149, 0.3);
  color: var(--sol-2);
  background: rgba(20, 241, 149, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.network-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.network-opt {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.network-opt.active {
  color: var(--sol-2);
  background: rgba(20, 241, 149, 0.12);
}

.network-opt[data-network="mainnet"].active {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
}

.network-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sol-2);
  background: rgba(20, 241, 149, 0.1);
  border: 1px solid rgba(20, 241, 149, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
}

.network-badge.mainnet {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.1);
  border-color: rgba(255, 179, 71, 0.25);
}

.deploy-fee-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: center;
}

.mono {
  font-family: var(--mono);
  font-size: 0.85em;
}

.wallet-btn {
  gap: 6px;
}

.wallet-btn.connected {
  border-color: rgba(20, 241, 149, 0.35);
  color: var(--sol-2);
}

.wallet-icon { font-size: 0.95rem; }

.wallet-banner {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 106, 0.25);
  background: rgba(255, 77, 106, 0.06);
  font-size: 0.82rem;
  color: var(--muted);
}

.wallet-banner.connected {
  border-color: rgba(20, 241, 149, 0.25);
  background: rgba(20, 241, 149, 0.06);
}

.wallet-banner a,
.agent-id-card a,
.agent-explorer {
  color: var(--sol-2);
  text-decoration: none;
}

.wallet-banner a:hover,
.agent-id-card a:hover,
.agent-explorer:hover {
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.agent-explorer {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-family: var(--mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

a.btn { color: inherit; }

.btn:active { transform: scale(0.98); }
.btn.sm { padding: 8px 14px; font-size: 0.82rem; }
.btn.full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.95), rgba(108, 52, 200, 0.95));
  color: #fff;
  box-shadow: 0 4px 18px var(--sol-glow);
}

.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.btn-outline, .btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover, .btn-ghost:hover { border-color: var(--sol); }

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0 56px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(153, 69, 255, 0.07), transparent 72%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sol-2);
  margin-bottom: 20px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--sol-2);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--sol-2);
}

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

/* Section */
.section { margin-bottom: 64px; }

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-head p { color: var(--muted); font-size: 0.95rem; }

.section-brand-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-brand-lockup h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 40%, var(--sol-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-brand-head > p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46ch;
  margin: 0 auto;
}

/* Meme store tease */
.meme-store-tease {
  margin-bottom: 64px;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(10, 14, 20, 0.95), rgba(15, 20, 28, 0.85));
}

.meme-store-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.meme-store-copy {
  text-align: center;
}

.meme-store-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sol-2);
  margin-bottom: 8px;
}

.meme-store-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.meme-store-copy p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 44ch;
  margin: 0 auto;
}

.meme-tease-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.meme-tease-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.meme-tease-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.meme-tease-art {
  font-size: 1.75rem;
  line-height: 1;
  filter: saturate(0.85);
  display: grid;
  place-items: center;
  min-height: 44px;
}

.meme-tease-svg svg,
.meme-tease-svg img {
  width: 40px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.meme-troll-face svg {
  width: 48px;
  filter: contrast(1.08);
}

.meme-troll {
  background: linear-gradient(160deg, rgba(244, 244, 244, 0.08), rgba(26, 26, 26, 0.12));
  border-color: rgba(255, 255, 255, 0.18);
}

.meme-tease-card strong {
  font-size: 0.72rem;
  font-weight: 700;
}

.meme-tease-card em {
  font-size: 0.58rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.meme-tease-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  opacity: 0.7;
}

.meme-bonk { background: linear-gradient(160deg, rgba(255, 160, 40, 0.12), transparent); }
.meme-wif { background: linear-gradient(160deg, rgba(255, 120, 180, 0.12), transparent); }
.meme-popcat { background: linear-gradient(160deg, rgba(120, 200, 255, 0.1), transparent); }
.meme-jup { background: linear-gradient(160deg, rgba(20, 241, 149, 0.1), transparent); }
.meme-chillhouse { background: linear-gradient(160deg, rgba(94, 196, 168, 0.14), transparent); }

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

.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.template-card:hover {
  border-color: rgba(153, 69, 255, 0.28);
  transform: translateY(-1px);
}

.template-card.selected {
  border-color: rgba(153, 69, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(153, 69, 255, 0.35), 0 8px 24px var(--sol-glow);
}

.template-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.template-avatar {
  margin-bottom: 10px;
  display: grid;
  place-items: center;
}

.template-avatar img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.1);
}

.template-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.template-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.template-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sol-2);
}

/* $AGENT token */
.agent-token-section .section-head { margin-bottom: 20px; }

.agent-token-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: var(--surface);
  overflow: hidden;
}

.agent-token-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(153, 69, 255, 0.22), transparent 60%),
    radial-gradient(ellipse at 70% 10%, rgba(20, 241, 149, 0.12), transparent 55%);
  pointer-events: none;
}

.agent-token-main { position: relative; z-index: 1; }

.agent-token-eyebrow {
  font-size: 0.78rem;
  color: var(--sol-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.agent-token-main h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.agent-token-main h3 em {
  font-style: normal;
  color: var(--sol-2);
}

.agent-token-sub {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 18px;
}

.agent-token-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 14px;
}

.agent-token-ca-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
}

.agent-token-ca-value {
  flex: 1;
  min-width: 200px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--sol-2);
  word-break: break-all;
}

.agent-token-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.agent-token-meta div {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.agent-token-meta strong {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.agent-token-meta span {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.agent-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.agent-token-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.agent-token-note a { color: var(--sol-2); }

/* Deploy */
.deploy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
  min-height: 380px;
}

.deploy-panel { display: none; }
.deploy-panel.active { display: block; }

.deploy-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.deploy-template-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deploy-template-pick-label {
  font-size: 0.82rem;
  color: var(--muted);
}

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

.deploy-template-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.deploy-template-chip:hover {
  border-color: rgba(153, 69, 255, 0.45);
}

.deploy-template-chip.active {
  border-color: var(--sol);
  background: rgba(153, 69, 255, 0.1);
  box-shadow: 0 0 16px var(--sol-glow);
}

.deploy-template-chip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.deploy-template-chip-name {
  line-height: 1.2;
}

.btn-gated {
  opacity: 0.55;
  cursor: pointer;
}

.deploy-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deploy-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.deploy-form input,
.deploy-form select {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.deploy-form input:focus,
.deploy-form select:focus {
  outline: none;
  border-color: var(--sol);
}

.deploy-loading-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.deploy-loading-actions.hidden {
  display: none;
}

.deploy-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 3px solid var(--border);
  border-top-color: var(--sol-2);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.deploy-progress {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.deploy-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sol), var(--sol-2));
  border-radius: 999px;
  transition: width 0.35s ease;
}

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

.deploy-steps li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.deploy-steps li.done {
  color: var(--sol-2);
  border-color: rgba(20, 241, 149, 0.25);
}

.deploy-steps li.active {
  color: var(--text);
  border-color: var(--sol);
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(20, 241, 149, 0.15);
  border: 2px solid var(--sol-2);
  color: var(--sol-2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.agent-id-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

.agent-id-card strong { color: var(--sol-2); }

/* Agents dashboard */
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dashboard-title { margin-bottom: 0; text-align: left; }
.dashboard-title h2 { margin-bottom: 6px; }

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-wallet {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

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

.dash-stat-pnl strong,
.dash-stat-earn strong {
  font-size: 1.1rem;
}

.pnl-panel {
  margin-bottom: 20px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(153, 69, 255, 0.28);
  background: linear-gradient(145deg, rgba(153, 69, 255, 0.08), var(--surface));
}

.pnl-panel.hidden { display: none; }

.pnl-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pnl-panel-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sol-2);
  margin-bottom: 6px;
}

.pnl-panel-head h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.pnl-panel-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.pnl-panel-numbers {
  display: flex;
  gap: 24px;
}

.pnl-big {
  text-align: right;
}

.pnl-big-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.pnl-big strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 800;
}

.pnl-big-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.pnl-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pnl-chart-block {
  min-width: 0;
}

.pnl-chart-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.pnl-bars,
.pnl-cumulative {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.pnl-cum-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  position: relative;
}

.pnl-cum-bar {
  width: 100%;
  max-width: 20px;
  border-radius: 4px;
  min-height: 6px;
  transition: height 0.3s ease;
}

.pnl-cum-bar.up {
  background: linear-gradient(180deg, var(--sol-2), rgba(20, 241, 149, 0.3));
}

.pnl-cum-bar.down {
  background: linear-gradient(180deg, var(--red), rgba(255, 77, 106, 0.3));
}

.pnl-cum-label {
  position: absolute;
  bottom: -18px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--sol-2);
  white-space: nowrap;
}

.pnl-bars-empty {
  font-size: 0.82rem;
  color: var(--muted);
  align-self: center;
  width: 100%;
  text-align: center;
}

.pnl-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.pnl-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  min-height: 8px;
  transition: height 0.3s ease;
}

.pnl-bar.up {
  background: linear-gradient(180deg, var(--sol-2), rgba(20, 241, 149, 0.35));
}

.pnl-bar.down {
  background: linear-gradient(180deg, var(--red), rgba(255, 77, 106, 0.35));
  border-radius: 2px 2px 6px 6px;
  align-self: flex-start;
  margin-top: auto;
}

.pnl-bar-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}

.agent-earnings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.agent-earn-block span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.agent-earn-block strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.agent-earn-block em {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  font-style: normal;
  margin-top: 2px;
}

.activity-pnl,
.activity-earn {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: auto;
}

.dash-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.dash-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-stat span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-connect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(153, 69, 255, 0.28);
  background: rgba(153, 69, 255, 0.06);
  font-size: 0.88rem;
  color: var(--muted);
}

.dashboard-connect-banner.hidden { display: none; }

.dashboard-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dash-filter-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.dash-filter-btn:hover { border-color: var(--sol); color: var(--text); }

.dash-filter-btn.active {
  border-color: var(--sol);
  color: var(--sol-2);
  background: rgba(153, 69, 255, 0.1);
}

.agent-card.selected {
  border-color: var(--sol);
  box-shadow: 0 0 20px var(--sol-glow);
}

.activity-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.activity-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sol-2);
}

.activity-item {
  padding: 12px 14px !important;
  border-left-width: 3px !important;
}

.activity-item.on-chain { border-left-color: var(--sol-2) !important; }
.activity-item.sim { border-left-color: var(--sol) !important; }

.activity-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.activity-time {
  font-size: 0.68rem;
  color: var(--muted);
}

.activity-agent {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.activity-type {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.activity-type.on-chain {
  color: var(--sol-2);
  background: rgba(20, 241, 149, 0.1);
}

.activity-detail {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 6px;
}

.activity-tx {
  font-size: 0.7rem;
  color: var(--sol-2);
  text-decoration: none;
}

.activity-tx:hover { text-decoration: underline; }

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

.dashboard-empty {
  color: var(--muted);
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.9rem;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.agent-card h3 { font-size: 0.95rem; }

.agent-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(20, 241, 149, 0.12);
  color: var(--sol-2);
}

.agent-status.demo {
  background: rgba(153, 69, 255, 0.14);
  color: #c4b5fd;
}

.agent-card-demo {
  border-color: rgba(153, 69, 255, 0.28);
}

.demo-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(153, 69, 255, 0.12);
  border: 1px solid rgba(153, 69, 255, 0.28);
}

.demo-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.agent-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.75rem;
}

.agent-metrics span { color: var(--muted); display: block; }
.agent-metrics strong { font-family: var(--mono); font-size: 0.85rem; }

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.activity-card h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.activity-log {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-log li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 8px;
  border-left: 3px solid var(--sol);
}

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

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

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--sol);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--muted); }

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

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

.price-card.featured {
  border-color: var(--sol);
  box-shadow: 0 0 40px var(--sol-glow);
}

.price-card h3 { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }

.price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.price-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }

.price-card ul {
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.price-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.price-card li::before { content: "✓ "; color: var(--sol-2); }

/* Support / Treasury */
.support-section {
  padding-bottom: 24px;
}

.support-panel {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px 26px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(153, 69, 255, 0.22);
  background: linear-gradient(165deg, rgba(153, 69, 255, 0.08) 0%, var(--surface) 45%, var(--surface) 100%);
  text-align: center;
  overflow: hidden;
}

.support-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(20, 241, 149, 0.12), transparent 70%);
  pointer-events: none;
}

.support-head {
  position: relative;
  margin-bottom: 22px;
}

.support-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sol-2);
  margin-bottom: 10px;
}

.support-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.support-sub {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 auto;
}

.treasury-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.treasury-chip:hover {
  border-color: rgba(20, 241, 149, 0.35);
  background: rgba(20, 241, 149, 0.04);
}

.treasury-chip:active { transform: scale(0.99); }

.treasury-chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sol), var(--sol-2));
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.treasury-chip-addr {
  flex: 1;
  text-align: left;
  letter-spacing: 0.02em;
}

.treasury-chip-copy {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sol-2);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.18);
}

.tip-zone {
  position: relative;
  margin-bottom: 18px;
}

.tip-zone-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.tip-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tip-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}

.tip-chip:hover {
  border-color: rgba(153, 69, 255, 0.45);
  background: rgba(153, 69, 255, 0.06);
}

.tip-chip-featured,
.tip-chip-active {
  border-color: rgba(153, 69, 255, 0.5);
  background: linear-gradient(160deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.06));
  box-shadow: 0 0 24px rgba(153, 69, 255, 0.12);
}

.tip-chip-active .tip-chip-unit { color: var(--sol-2); }

.tip-chip-amt {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.tip-chip-unit {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip-custom-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.tip-custom-bar input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
}

.tip-custom-bar input::-webkit-outer-spin-button,
.tip-custom-bar input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tip-custom-unit {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding-right: 8px;
  flex-shrink: 0;
}

.tip-send-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sol), #7c3aed);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px var(--sol-glow);
}

.tip-send-btn:hover { filter: brightness(1.08); }
.tip-send-btn:active { transform: scale(0.98); }

.support-explorer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.support-explorer:hover {
  color: var(--sol-2);
}

.support-explorer-arrow {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.support-explorer:hover .support-explorer-arrow {
  transform: translate(2px, -2px);
}

.footer-treasury {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.footer {
  text-align: center;
  padding-top: 36px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-love {
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-size: 1.45rem;
  font-weight: 600;
  color: rgba(240, 244, 250, 0.75);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.footer-legal {
  font-size: 0.78rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
  pointer-events: none;
  z-index: 100;
}

.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .meme-tease-grid { grid-template-columns: repeat(4, 1fr); }
  .template-grid, .steps, .pricing-grid, .agents-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .tip-chips { grid-template-columns: repeat(2, 1fr); }
  .support-panel { padding: 26px 20px 22px; }
  .deploy-template-chips { grid-template-columns: repeat(2, 1fr); }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; max-height: none; }
  .progress-board { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: repeat(2, 1fr); }
  .agent-funds-grid { grid-template-columns: repeat(2, 1fr); }
  .pnl-charts { grid-template-columns: 1fr; }
  .pnl-panel-numbers { width: 100%; justify-content: space-between; }
  .pnl-big { text-align: left; }
  .agents-grid { grid-template-columns: 1fr; }
}