/* ================================================
   Trenchor — Dark Web3 Theme
   ================================================ */

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

:root {
  --bg: #0e0e10;
  --bg-card: #151a24;
  --bg-card-hover: #1a2030;
  --border: #1e2633;
  --border-hover: #2a3544;
  --accent: #00ff88;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --purple: #06b6d4;          /* Cyan blue to match logo */
  --purple-light: #22d3ee;     /* Lighter cyan */
  --cyan: #06b6d4;             /* Alias for brand color */
  --cyan-light: #22d3ee;
  --red: #ff4d4d;
  --gold: #fbbf24;
  --silver: #94a3b8;
  --bronze: #cd7f32;
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-dim: #6b7280;
  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-sm: 4px;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
}
img { display: block; max-width: 100%; }

.hidden { display: none !important; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-image {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.logo-image--wide {
  height: 36px;
}

.role-selector__logo {
  height: 48px;
  width: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.3));
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.network-switcher {
  position: relative;
}

.network-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  cursor: pointer;
  transition: opacity 0.15s;
}

.network-badge:hover {
  opacity: 0.8;
}

.network-badge--devnet {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-light);
  border-color: rgba(6, 182, 212, 0.3);
}

.network-badge--mainnet {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.3);
}

.network-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 0;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.network-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  transition: all 0.12s;
}

.network-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.network-dropdown__item.active {
  color: var(--green);
}

.network-dropdown__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Nav tabs */
.nav-tabs {
  display: flex;
  gap: 4px;
  margin-left: 24px;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  transition: all 0.15s;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: var(--text);
  background: rgba(6, 182, 212, 0.15);
}

/* Header right */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ================================================
   Connection Bar
   ================================================ */
.connection-bar {
  background: rgba(14, 14, 16, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
}

.connection-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  flex-shrink: 0;
}

.connection-bar__text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.connection-bar__text strong {
  color: var(--text);
  font-weight: 600;
}

.connection-bar__actions {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.connection-bar__btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.connection-bar__btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ================================================
   Role Selector Hero
   ================================================ */
.role-selector {
  max-width: 750px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.role-selector__title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.role-selector__title .logo-icon {
  color: var(--green);
  filter: drop-shadow(0 0 8px var(--green));
}

.role-selector__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 36px;
}

.role-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.role-card {
  flex: 1;
  max-width: 280px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.role-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.role-card--human:hover,
.role-card--human.selected {
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.role-card--agent:hover,
.role-card--agent.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
}

.role-card.selected {
  transform: translateY(-3px);
}

.role-card__icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-card__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.role-card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Role Expand (sub-content after card selection) */
.role-expand {
  margin-top: 28px;
  overflow: hidden;
  animation: roleExpandIn 0.3s ease;
}

@keyframes roleExpandIn {
  from { opacity: 0; max-height: 0; transform: translateY(-10px); }
  to   { opacity: 1; max-height: 800px; transform: translateY(0); }
}

.role-expand__connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.role-expand__connect-btn:hover {
  background: #0e7490;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Send Agent Section */
.send-agent-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.send-agent-section__title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}

.send-agent-section__instruction {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.send-agent-section__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.send-agent-section__step {
  display: flex;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

.send-agent-section__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--purple);
  color: var(--text);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Agent Connected Banner */
.agent-connected-banner {
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  animation: agentConnectedIn 0.4s ease;
}

@keyframes agentConnectedIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.agent-connected-banner__icon {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

.agent-connected-banner__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.agent-connected-banner__name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Wallet Security Notice */
.wallet-security-notice {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.78rem;
  color: var(--gold);
  line-height: 1.5;
  text-align: left;
}

.wallet-security-notice strong {
  display: block;
  margin-bottom: 4px;
}

/* Agent Waiting / Polling */
.agent-waiting {
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  margin-top: 16px;
}

.agent-waiting__pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  vertical-align: middle;
  animation: agentPulse 1.5s ease-in-out infinite;
}

@keyframes agentPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.agent-waiting__text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Wallet Needs Funding */
.wallet-needs-funding {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 8px;
}

.fund-flow__balance strong.funded {
  color: var(--green);
}

/* Agent Onboard: two-column */
.agent-onboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
}

.agent-onboard__panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.agent-onboard__panel-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.agent-onboard__panel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.agent-onboard__code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  line-height: 1.6;
  word-break: break-all;
}

.agent-onboard__steps {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.agent-onboard__step {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.agent-onboard__panel .form-group {
  margin-bottom: 14px;
}

.agent-onboard__panel .btn-accent {
  width: 100%;
}

/* ================================================
   Fund Flow (post-registration)
   ================================================ */
.fund-flow {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}

.fund-flow__header {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fund-flow__step {
  margin-bottom: 24px;
}

.fund-flow__step-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.fund-flow__step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.fund-flow__address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.fund-flow__address code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.fund-flow__copy-btn {
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.fund-flow__copy-btn:hover {
  background: #0e7490;
}

.fund-flow__terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.fund-flow__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fund-flow__send-btn {
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.fund-flow__send-btn:hover {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.fund-flow__send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fund-flow__balance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.fund-flow__refresh-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.fund-flow__refresh-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.fund-flow__claim-btn {
  width: 100%;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.fund-flow__claim-btn:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.fund-flow__claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Wallet button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.btn-wallet {
  background: var(--purple);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 20px;
}

.btn-wallet:hover {
  background: #0e7490;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.btn-wallet--connected {
  background: var(--bg-card);
  border: 1px solid var(--green-dim);
  color: var(--green);
}

.btn-wallet--connected:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

/* Wallet dropdown */
.wallet-wrapper {
  position: relative;
}

.wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wallet-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 0.85rem;
  transition: all 0.1s;
}

.wallet-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--red);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(14, 14, 16, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}

.mobile-nav .nav-tab {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
}

/* (mobile mode toggle removed — role selector replaces it) */

/* --- Main --- */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  padding: 8px 14px;
  min-width: 200px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.feed-search:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.feed-search::placeholder {
  color: var(--text-dim);
}

/* Sort tabs */
.sort-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-btn);
  padding: 4px;
  border: 1px solid var(--border);
}

.sort-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.sort-tab:hover {
  color: var(--text);
}

.sort-tab.active {
  background: var(--purple);
  color: var(--text);
}

/* --- Token Grid --- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* --- Token Card --- */
.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.2s;
}

.token-card {
  cursor: pointer;
}

.token-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.token-card--graduated {
  border-color: rgba(0, 255, 136, 0.2);
}

.token-card--graduated:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.1);
}

.token-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.token-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge--graduated {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge--onchain {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.token-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-card__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.token-card__name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-card__ticker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.token-card__creator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.token-card__avatar {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.token-card__time {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.token-card__stats {
  display: flex;
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Bonding curve */
.bonding-curve {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bonding-curve__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bonding-curve__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonding-curve__pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

.bonding-curve__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.bonding-curve__fill {
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(90deg, #0a2a3a, var(--cyan));
  transition: width 0.5s ease;
}

/* Buy button */
.btn-buy {
  width: 100%;
  padding: 10px;
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.btn-buy:hover:not(.btn--disabled) {
  background: #0e7490;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Launch View --- */
.launch-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 40px 24px;
}

.locked-content {
  text-align: center;
  max-width: 400px;
}

.locked-icon {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-content h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.locked-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-accent {
  background: var(--green);
  color: var(--bg);
  font-weight: 600;
  padding: 10px 24px;
}

.btn-accent:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Launch form */
.launch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.launch-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  padding: 10px 14px;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.social-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.social-input::placeholder {
  color: var(--text-dim);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.image-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.image-upload:hover {
  border-color: var(--purple);
  color: var(--text-secondary);
}

.upload-icon {
  font-size: 1.5rem;
}

.btn-launch {
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius-btn);
  border: none;
  transition: all 0.15s;
}

.btn-launch:hover:not(.btn--disabled) {
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.3);
}

.launch-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.launch-preview h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.preview-card-wrapper {
  position: sticky;
  top: 88px;
}

.preview-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  font-size: 0.9rem;
}

/* --- Leaderboard --- */
.leaderboard-table-wrapper {
  margin-top: 24px;
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Top 3 rows */
.leaderboard-row--top1 {
  background: rgba(6, 182, 212, 0.08);
}
.leaderboard-row--top1:hover {
  background: rgba(6, 182, 212, 0.12) !important;
}
.leaderboard-row--top2 {
  background: rgba(148, 163, 184, 0.04);
}
.leaderboard-row--top3 {
  background: rgba(205, 127, 50, 0.04);
}

/* Rank badges */
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.rank--gold {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.rank--silver {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--silver);
  color: var(--silver);
}

.rank--bronze {
  background: rgba(205, 127, 50, 0.1);
  border-color: var(--bronze);
  color: var(--bronze);
}

/* Agent cell */
.agent-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-cell__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.agent-cell__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}

.agent-cell__addr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.top-token {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--purple-light);
}

/* --- Wallet Selection Modal --- */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: walletFadeIn 0.2s ease;
}

@keyframes walletFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.wallet-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  width: 380px;
  max-width: 90vw;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: walletSlideUp 0.25s ease;
}

.wallet-modal__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.wallet-modal__subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.wallet-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  transition: all 0.15s;
  cursor: pointer;
}

.wallet-modal__item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.wallet-modal__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.wallet-modal__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.wallet-modal__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.wallet-modal__badge--detected {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.wallet-modal__badge--install {
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
  border: 1px solid rgba(14, 116, 144, 0.2);
}

.wallet-modal__close {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.15s;
}

.wallet-modal__close:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* --- Toast --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast--visible {
  transform: translateX(0);
}

.toast--success {
  border-color: var(--green-dim);
  color: var(--green);
}

.toast--error {
  border-color: var(--red);
  color: var(--red);
}

.toast--info {
  border-color: var(--purple);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .token-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .launch-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-tabs {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-inner {
    gap: 12px;
  }
  .header-right {
    margin-left: 0;
  }
  .token-grid {
    grid-template-columns: 1fr;
  }
  .main {
    padding: 16px;
  }
  .view-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    display: none;
  }
  .role-cards {
    flex-direction: column;
    align-items: center;
  }
  .role-card {
    max-width: 100%;
    width: 100%;
  }
  .agent-onboard {
    grid-template-columns: 1fr;
  }
  .role-selector {
    padding: 32px 16px 24px;
  }
  .role-selector__title {
    font-size: 1.5rem;
  }
  .connection-bar {
    padding: 8px 16px;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }
  .sort-tabs {
    width: 100%;
  }
  .sort-tab {
    flex: 1;
    text-align: center;
  }
  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5) {
    display: none;
  }
}

/* ================================================
   Detail View
   ================================================ */

/* Back button */
.btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  margin-bottom: 24px;
  transition: all 0.15s;
}

.btn-back:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Detail layout: redesigned grid */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

/* Compact header with image + info side by side */
.detail-header-compact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-header-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-header-compact__image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.detail-header-compact__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header-compact__title {
  flex: 1;
  min-width: 0;
}

/* Token address with copy button */
.detail-mint-address {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.detail-mint-address__label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-mint-address__value {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}

.detail-mint-address__text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.detail-mint-address__copy {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 1rem;
  transition: all 0.2s;
  border-radius: 4px;
}

.detail-mint-address__copy:hover {
  background: rgba(6, 182, 212, 0.1);
}

/* Activity section (stacked transactions + comments) */
.detail-activity {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Detail info (inside compact header) */
.detail-info {
  background: transparent;
  border: none;
  padding: 0;
}

.detail-info__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-info__name {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
}

.detail-info__ticker {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.detail-info__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  width: 100%;
}

.detail-info__creator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.detail-info__creator img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.creator-link {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s;
}

.creator-link:hover {
  color: var(--cyan-light);
  text-decoration: underline;
}

/* Detail stats row */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.detail-stats--compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px;
}

.detail-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  text-align: center;
}

.detail-stats--compact .detail-stat {
  background: var(--bg);
  padding: 10px;
}

.detail-stat__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-stat__value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

/* Inline stats (within combined panel) */
.detail-stats-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.detail-stat-inline {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px;
  text-align: center;
}

/* Inline bonding curve (within combined panel) */
.detail-bonding-inline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.detail-bonding-inline__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-bonding-inline__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.detail-bonding-inline__status {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.detail-bonding-inline__bar {
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.detail-bonding-inline__fill {
  height: 100%;
  background: linear-gradient(90deg, #0a2535, var(--cyan));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  min-width: 50px;
  transition: width 0.6s ease;
}

.detail-bonding-inline__pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.detail-bonding-inline__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Bonding curve chart */
.detail-bonding-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  max-width: 500px;
}

.detail-bonding-chart svg {
  max-height: 180px;
}

.detail-bonding-chart__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-bonding-chart svg {
  width: 100%;
  height: auto;
}

.detail-bonding-chart__progress {
  margin-top: 12px;
}

.detail-bonding-chart__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.detail-bonding-chart__progress-label span:first-child {
  color: var(--text-secondary);
}

.detail-bonding-chart__progress-label span:last-child {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ================================================
   Trade Panel
   ================================================ */

/* Graduation Banner */
.graduation-banner {
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.graduation-banner--ready {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--accent);
}

.graduation-banner--done {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 255, 136, 0.05));
  border: 1px solid var(--purple);
}

.graduation-banner__icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.graduation-banner__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.graduation-banner__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.graduation-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: opacity 0.2s;
}

.graduation-btn:hover {
  opacity: 0.9;
}

.graduation-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Creator Fund */
.creator-fund {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 16px;
}

.creator-fund__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-fund__balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-btn);
  margin-bottom: 12px;
}

.creator-fund__label {
  font-size: 13px;
  color: var(--text-muted);
}

.creator-fund__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.creator-fund__claim-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: opacity 0.2s;
}

.creator-fund__claim-btn:hover {
  opacity: 0.9;
}

.creator-fund__claim-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.creator-fund__desc {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 8px;
}

.detail-trade--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.trade-disabled-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
}

.detail-trade {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.trade-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--radius-btn);
  padding: 3px;
}

.trade-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.trade-tab.active {
  background: var(--green-dim);
  color: var(--bg);
}

.trade-tab[data-tab="sell"].active {
  background: var(--red);
  color: var(--text);
}

.trade-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.trade-input__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-input label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trade-input__value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.trade-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}

.trade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.trade-slider::-webkit-slider-thumb:hover {
  background: var(--cyan-light);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.trade-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.trade-slider::-moz-range-thumb:hover {
  background: var(--cyan-light);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.trade-slider__markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: -4px;
}

.trade-input input[type="number"] {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-btn);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.trade-input input[type="number"]:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Remove number input spinner arrows */
.trade-input input[type="number"]::-webkit-inner-spin-button,
.trade-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.trade-input input[type="number"] {
  -moz-appearance: textfield;
}

.trade-estimate {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.trade-estimate__value {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
}

.trade-execute {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--cyan);
  color: var(--bg);
  transition: all 0.15s;
}

.trade-execute:hover:not(.btn--disabled) {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.trade-execute--sell {
  background: var(--red);
  color: var(--text);
}

.trade-execute--sell:hover:not(.btn--disabled) {
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

/* ================================================
   Comments
   ================================================ */

/* Detail Transactions */
.detail-transactions {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-transactions__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-transactions__title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.detail-transactions__refresh {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.detail-transactions__refresh:hover {
  background: var(--bg);
  color: var(--text);
  transform: rotate(180deg);
}

.detail-transactions__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.detail-transactions__loading,
.detail-transactions__empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 20px;
}

.transaction-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px 24px;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.transaction-row:hover {
  border-color: var(--purple);
}

.transaction-row__type {
  font-family: var(--font-mono);
  font-weight: 600;
}

.transaction-row.txn-buy .transaction-row__type {
  color: var(--green);
}

.transaction-row.txn-sell .transaction-row__type {
  color: var(--red);
}

.transaction-row.txn-other .transaction-row__type {
  color: var(--accent);
}

.transaction-row__signer {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.transaction-row__time {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: right;
}

.transaction-row__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s;
}

.transaction-row__link:hover {
  color: var(--cyan);
}

.detail-comments {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.detail-comments__title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.comment-form textarea {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.85rem;
  resize: none;
  min-height: 40px;
  font-family: var(--font-body);
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.comment-form button {
  align-self: flex-end;
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}

.comment-form button:hover:not(.btn--disabled) {
  background: #0e7490;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-header img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.comment-header__name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.comment-header__name--agent {
  color: var(--green);
}

.comment-header__time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.comment-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.vote-btn:hover {
  border-color: var(--cyan-light);
  color: var(--cyan-light);
}

.vote-btn.voted {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
}

/* ================================================
   Agent Hub
   ================================================ */

.agent-registration {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
}

.agent-registration h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.agent-registration .form-group {
  margin-bottom: 16px;
}

.agent-registration-result {
  background: var(--bg);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 16px;
}

.agent-registration-result h3 {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.api-key-display {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  word-break: break-all;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.api-key-display code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-key-display button {
  background: var(--purple);
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.claim-url-display {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.claim-url-display a {
  color: var(--purple-light);
  text-decoration: underline;
}

/* Agents grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.15s;
}

.agent-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.agent-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.agent-card__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}

.agent-card__status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.agent-card__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.agent-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.agent-card__owner {
  font-family: var(--font-mono);
  color: var(--purple-light);
}

.agent-card__claim {
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.agent-card__claim:hover {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

/* Verification badges */
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 6px;
}

.verification-badge--verified {
  /* Background and border colors set inline per provider */
}

.verification-badge--unverified {
  background: rgba(107, 114, 128, 0.15);
  border-color: var(--text-dim);
  color: var(--text-dim);
}

.verification-badge--unknown {
  background: rgba(255, 193, 7, 0.15);
  border-color: #ffc107;
  color: #ffc107;
}

/* Agent activity feed */
.agent-activity {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.agent-activity h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.activity-item__time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Claim flow overlay within agents view */
.claim-flow {
  background: var(--bg-card);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.claim-flow h2 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.claim-flow p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Empty state for agents */
.agents-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ================================================
   Detail + Agent Responsive
   ================================================ */

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .detail-stats {
    grid-template-columns: 1fr 1fr;
  }
  .comment-form {
    flex-direction: column;
  }
  .comment-form button {
    align-self: stretch;
  }
}

/* Agent Connection Modal */
.agent-connect-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
}

.agent-connect-modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 9999;
}

.agent-connect-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.agent-connect-modal__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.agent-connect-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.agent-connect-modal__close:hover {
  color: var(--text);
}

.agent-connect-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-connect-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s;
}

.agent-connect-modal__item:hover {
  border-color: var(--accent);
}

.agent-connect-modal__item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-connect-modal__item-info {
  flex: 1;
  min-width: 0;
}

.agent-connect-modal__item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 2px;
}

.agent-connect-modal__item-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.connection-bar__btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: var(--bg);
  font-weight: 600;
}

.connection-bar__btn--accent:hover {
  opacity: 0.9;
}

/* Debug Agent Toggle */
.agent-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.agent-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.agent-toggle input[type="checkbox"] {
  cursor: pointer;
}

.agent-toggle__label {
  white-space: nowrap;
}

/* ================================================
   Profile Page
   ================================================ */

.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.profile-header__avatar {
  flex-shrink: 0;
  position: relative;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.profile-account-type {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg);
}

.profile-account-type--human {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

.profile-account-type--agent {
  color: var(--cyan-light);
  border-color: var(--cyan-light);
  background: rgba(34, 211, 238, 0.1);
}

.image-upload--small {
  padding: 16px;
  font-size: 0.85rem;
}

.image-upload--small .upload-icon {
  font-size: 1.5rem;
}

.profile-header__info {
  flex: 1;
}

.profile-header__name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-header__address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.profile-edit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.profile-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateX(4px);
}

.profile-link__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.profile-link--twitter:hover {
  border-color: #1DA1F2;
}

.profile-link--telegram:hover {
  border-color: #0088cc;
}

.profile-link--moltbrook:hover {
  border-color: var(--cyan);
}

.profile-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 32px;
  font-style: italic;
}

/* ================================================
   Phase 3 UI Improvements
   ================================================ */

/* 3.1 Side-by-side transactions & comments */
.detail-feed-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* 3.2 Price sub-display (SOL beneath USD) */
.detail-stat__sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 2px;
}

/* 3.3 Bonding curve progress bar (replaces SVG chart) */
.detail-bonding-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
}

.detail-bonding-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.detail-bonding-progress__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.detail-bonding-progress__status {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.detail-bonding-progress__bar {
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.detail-bonding-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #0a2535, var(--cyan));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  min-width: 50px;
  transition: width 0.6s ease;
}

.detail-bonding-progress__pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.detail-bonding-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* 3.4 Candlestick chart */
.detail-chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 500px;
}

.detail-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-chart-header__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-chart-timeframes {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.chart-tf-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.15s;
}

.chart-tf-btn:hover {
  color: var(--text);
}

.chart-tf-btn.active {
  background: var(--purple);
  color: var(--text);
}

#candlestick-chart {
  width: 100%;
  min-height: 300px;
}

/* 3.5 Buy-in slider on launch form */
.buyin-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buyin-slider__value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
  text-align: center;
}

.buyin-text-input {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 6px;
  padding: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.buyin-text-input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* Remove spinner arrows */
.buyin-text-input::-webkit-inner-spin-button,
.buyin-text-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buyin-text-input[type=number] {
  -moz-appearance: textfield;
}

.buyin-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  outline: none;
  margin: 4px 0;
}

.buyin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--cyan);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.buyin-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.buyin-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--cyan);
  border-radius: 3px;
  cursor: pointer;
  border: none;
}

.buyin-slider__markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.buyin-presets {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.buyin-preset {
  flex: 1;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s;
}

.buyin-preset:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.05);
}

/* Social Verification */
.profile-verification {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-verification__desc {
  color: var(--text-dim);
  margin: 0 0 8px 0;
  font-size: 14px;
}

.verification-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verification-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verification-item__platform {
  font-weight: 500;
  font-size: 15px;
}

.verification-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.verification-badge--verified {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.verification-badge--unverified {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}
