/* Apollo AI 3.0 CDP Facilitator - Professional Design */

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

/* Theme Variables - Apollo Gold Premium */
:root {
  /* Apollo Gold Theme */
  --background: 45 20% 3%;
  --foreground: 45 100% 95%;
  --surface: 45 15% 8%;
  --surface-elevated: 45 20% 12%;

  /* Apollo Brand Colors */
  --apollo-gold: 45 80% 55%;
  --apollo-gold-light: 50 80% 60%;
  --apollo-gold-dark: 40 80% 45%;
  --apollo-purple: 120 45% 16%;
  --apollo-blue: 120 100% 40%;
  --cosmic-purple: 85 100% 50%;
  
  /* UI System Colors */
  --primary: 45 80% 55%;
  --primary-foreground: 45 20% 3%;
  --card: 45 15% 8%;
  --card-foreground: 45 100% 95%;
  
  /* Dark Theme Background */
  --bg-dark: 45 20% 3%;
  --bg-card: 45 15% 8%;
  
  /* Text Colors */
  --text-primary: 45 100% 95%;
  --text-secondary: 45 30% 60%;
  --muted-foreground: 45 30% 60%;
  
  /* Accent Colors */
  --accent-purple: 280 60% 60%;
  --accent-blue: 220 90% 60%;
  --accent: 45 80% 55%;
  --accent-foreground: 45 20% 3%;
  
  /* UI Colors */
  --border: 45 15% 8%;
  --input: 45 15% 8%;
  --ring: 45 80% 55%;
  
  /* Status Colors */
  --success: 45 80% 55%;
  --error: 0 84% 60%;
  --destructive: 0 84% 60%;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(45, 80%, 55%) 0%, hsl(50, 80%, 60%) 50%, hsl(45, 80%, 55%) 100%);
  --gradient-cosmic: linear-gradient(135deg, hsl(120, 100%, 40%) 0%, hsl(85, 100%, 50%) 100%);
  --gradient-mesh: linear-gradient(135deg, hsl(45, 80%, 55%) 0%, hsl(280, 60%, 60%) 50%, hsl(220, 90%, 60%) 100%);
  --gradient-surface: linear-gradient(135deg, hsl(45, 15%, 8%) 0%, hsl(45, 20%, 12%) 100%);
  
  /* Glass Effects */
  --glass-bg: hsla(45, 15%, 8%, 0.7);
  --glass-border: hsla(45, 80%, 55%, 0.1);
  
  /* Shadows */
  --shadow-glow: 0 0 40px hsla(45, 80%, 55%, 0.3);
  --shadow-card: 0 8px 32px hsla(0, 0%, 0%, 0.4);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, hsl(0 0% 4%) 0%, hsl(var(--background)) 50%, hsl(45 80% 5%) 100%);
  background-attachment: fixed;
  color: hsl(var(--text-primary));
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-mesh);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  width: 100%;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.header-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Apollo Logo Styling */
.apollo-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.apollo-logo-wrapper {
  position: relative;
  cursor: pointer;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.apollo-logo-wrapper:hover {
  transform: scale(1.1) rotate(3deg);
}

.apollo-logo-image {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 10;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.5));
}

/* ... keep existing code (gradient ring, orbital rings, etc.) */

/* Wallet Status */
.wallet-status {
  display: flex;
  justify-content: center;
  width: 100%;
}

.wallet-connected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.wallet-address {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  color: hsl(var(--text-secondary));
  font-weight: 500;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-submit {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(45, 80%, 55%, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: hsl(var(--text-primary));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: hsl(var(--surface));
  border-color: hsl(var(--primary));
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.btn-secondary:disabled:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  transform: none;
}

.btn-submit {
  width: 100%;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  padding: 1rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-glow);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px hsla(45, 93%, 47%, 0.5);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Cards */
.info-card,
.request-card,
.results-section,
.loading-section,
.docs-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  position: relative;
}

.info-card::before,
.request-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
  border-radius: 16px 16px 0 0;
}

.info-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: hsl(var(--text-primary));
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-description {
  color: hsl(var(--text-secondary));
  line-height: 1.7;
  font-size: 1.05rem;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: hsl(var(--surface));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 8px 24px hsla(45, 80%, 55%, 0.15);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: hsl(var(--text-primary) / 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contract Scanner Section */
.analysis-hint {
  text-align: center;
  color: hsl(var(--text-primary) / 0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.05));
  border-radius: 8px;
  border-left: 4px solid hsl(var(--primary));
}

.contract-safety-card {
  background: hsl(var(--surface));
  border: 2px solid hsl(var(--primary) / 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-divider {
  height: 2px;
  background: var(--gradient-primary);
  margin: 2rem 0;
  border-radius: 2px;
}

.verdict-header {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.verdict-safe {
  background: linear-gradient(135deg, #22c55e20, #22c55e10);
  border: 2px solid #22c55e;
}

.verdict-moderate {
  background: linear-gradient(135deg, #f59e0b20, #f59e0b10);
  border: 2px solid #f59e0b;
}

.verdict-high {
  background: linear-gradient(135deg, #f9731620, #f9731610);
  border: 2px solid #f97316;
}

.verdict-scam {
  background: linear-gradient(135deg, #ef444420, #ef444410);
  border: 2px solid #ef4444;
}

.verdict-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.risk-score-section {
  margin-bottom: 2rem;
}

.score-bar-container {
  width: 100%;
  padding: 0;
  margin: 0.5rem 0;
}

.score-bar {
  width: 100%;
  height: 40px;
  background: hsl(var(--background));
  border-radius: 20px;
  overflow: hidden;
  margin: 1rem 0;
  border: 2px solid hsla(45, 80%, 55%, 0.2);
}

.score-fill {
  height: 100%;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 700;
}

.score-text {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.ai-assessment-section {
  background: hsl(var(--background));
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid hsl(var(--primary));
}

.ai-text {
  color: hsl(var(--text-primary));
  line-height: 1.8;
  font-size: 1.05rem;
}

.risk-breakdown {
  margin-bottom: 2rem;
}

.risk-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.risk-metric {
  background: hsl(var(--background));
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  color: hsl(var(--text-primary) / 0.8);
  font-size: 0.9rem;
}

.metric-value {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 1.1rem;
}

.flags-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
}

.red-flags {
  background: #ef444410;
  border-left: 4px solid #ef4444;
}

.green-flags {
  background: #22c55e10;
  border-left: 4px solid #22c55e;
}

.flags-section ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.flags-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.flags-section li:last-child {
  border-bottom: none;
}

/* Holder Transparency Section */
.holder-transparency-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.holder-transparency-section h4 {
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.holder-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.holder-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.holder-rank {
  font-weight: 700;
  color: hsl(var(--primary));
  min-width: 30px;
}

.holder-address {
  flex: 1;
  font-family: 'Courier New', monospace;
  color: hsl(var(--secondary));
  text-decoration: none;
  transition: color 0.2s;
}

.holder-address:hover {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.holder-percentage {
  font-weight: 700;
  color: hsl(var(--accent));
  min-width: 60px;
  text-align: right;
}

.transparency-note {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid hsl(var(--primary));
  border-radius: 4px;
  font-size: 0.9rem;
}

.transparency-note a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.transparency-note a:hover {
  color: hsl(var(--accent));
}

/* History Section */
.history-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  color: hsl(var(--primary));
}

.refresh-btn {
  padding: 0.5rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid hsl(var(--primary));
  border-radius: 8px;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: scale(1.05);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.2s;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: hsl(var(--primary) / 0.3);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.history-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.history-date, .history-model {
  font-size: 0.85rem;
  color: #94a3b8;
}

.history-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #22c55e;
  font-weight: 600;
}

.history-expand-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.history-expand-btn:hover {
  background: rgba(251, 191, 36, 0.1);
}

.history-prompt {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 0.9rem;
}

.history-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.history-response {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.6;
}

.history-payment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
}

.tx-link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 600;
}

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

.empty-state, .error-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #94a3b8;
}

.empty-hint {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: hsl(var(--primary));
  animation: pulse 1.5s ease-in-out infinite;
}

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



/* Trading Action Sections */
.trading-action-section {
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 2px solid;
}

.action-strong-buy {
  background: linear-gradient(135deg, #22c55e15, #22c55e08);
  border-color: #22c55e !important;
}

.action-buy {
  background: linear-gradient(135deg, #10b98115, #10b98108);
  border-color: #10b981 !important;
}

.action-hold {
  background: linear-gradient(135deg, #f59e0b15, #f59e0b08);
  border-color: #f59e0b !important;
}

.action-avoid {
  background: linear-gradient(135deg, #f9731615, #f9731608);
  border-color: #f97316 !important;
}

.action-strong-avoid {
  background: linear-gradient(135deg, #ef444415, #ef444408);
  border-color: #ef4444 !important;
}

.trading-action-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.action-reasoning {
  background: hsl(var(--background));
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.action-reasoning p {
  margin-bottom: 0.75rem;
}

.action-reasoning strong {
  color: hsl(var(--primary));
}

.trade-details {
  background: hsl(var(--surface));
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.trade-details h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.trade-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.trade-metric {
  background: hsl(var(--background));
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.trade-metric .metric-label {
  display: block;
  font-size: 0.85rem;
  color: hsl(var(--text-primary) / 0.7);
  margin-bottom: 0.5rem;
}

.trade-metric .metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.trade-metric .metric-value.success {
  color: #22c55e;
}

.trade-metric .metric-value.error {
  color: #ef4444;
}

.position-sizing {
  background: hsl(var(--background));
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}

.position-sizing strong {
  color: hsl(var(--primary));
}


@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 50px hsla(45, 80%, 55%, 0.5); }
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

.network {
  font-size: 0.875rem;
  color: hsla(var(--primary-foreground), 0.8);
  font-weight: 500;
}

/* Documentation Tabs */
.docs-container {
  padding: 0;
  overflow: hidden;
}

.docs-tabs {
  display: flex;
  gap: 0;
  background: hsl(var(--surface));
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}

.docs-tab-btn {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: hsl(var(--text-secondary));
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.docs-tab-btn .tab-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.docs-tab-btn:hover {
  color: hsl(var(--text-primary));
  background: hsla(45, 80%, 55%, 0.05);
}

.docs-tab-btn:hover .tab-icon {
  transform: scale(1.1);
}

.docs-tab-btn.active {
  color: hsl(var(--primary));
  background: var(--glass-bg);
}

.docs-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.docs-tab-content {
  display: none;
  padding: 2rem;
  animation: fade-in-up 0.4s ease-out;
}

.docs-tab-content.active {
  display: block;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Documentation Cards */
.docs-card,
.dev-docs-card {
  background: transparent;
  border: none;
  padding: 0;
}

.docs-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--text-primary));
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.title-icon {
  font-size: 1.75rem;
}

/* Docs Grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.doc-step-card {
  background: hsl(var(--surface));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-step-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 8px 24px hsla(45, 80%, 55%, 0.15);
  transform: translateY(-4px);
}

.step-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.step-content p {
  color: hsl(var(--text-primary) / 0.9);
  line-height: 1.7;
  font-size: 0.95rem;
}

.step-content ul {
  list-style-type: none;
  margin-left: 0;
  margin-top: 0.75rem;
}

.step-content li {
  color: hsl(var(--text-primary) / 0.85);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.step-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
  font-weight: 700;
}

/* API Overview */
.api-overview {
  padding: 1.25rem;
  background: hsl(var(--surface));
  border-left: 3px solid hsl(var(--primary));
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.api-overview p {
  color: hsl(var(--text-primary));
  line-height: 1.7;
  margin: 0;
}

/* Accordion Styles */
.accordion-item {
  background: hsl(var(--surface));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin: 1rem 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item:hover {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 4px 16px hsla(45, 80%, 55%, 0.1);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  background: hsla(45, 80%, 55%, 0.03);
  transition: all 0.3s ease;
  list-style: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background: hsla(45, 80%, 55%, 0.08);
}

.accordion-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-icon {
  font-size: 1.25rem;
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.accordion-chevron {
  font-size: 1.5rem;
  color: hsl(var(--text-secondary));
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion-item[open] .accordion-chevron {
  transform: rotate(90deg);
}

.accordion-item[open] .accordion-header {
  border-bottom: 1px solid var(--glass-border);
  background: hsla(45, 80%, 55%, 0.05);
}

.accordion-content {
  padding: 1.5rem;
  animation: accordion-slide-down 0.3s ease-out;
}

@keyframes accordion-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-subtitle {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quick Start Box */
.quick-start-box {
  background: hsl(var(--bg-dark));
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.endpoint-primary {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.endpoint-primary code {
  background: hsl(var(--surface));
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  color: hsl(var(--text-primary));
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--text-primary));
}

.req-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.requirement-item code {
  background: hsl(var(--surface));
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: hsl(var(--text-primary));
}

/* Endpoints Grid */
.endpoints-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.endpoint-card {
  background: hsl(var(--bg-dark));
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.endpoint-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  transform: translateX(4px);
}

.endpoint-card.minor {
  opacity: 0.7;
}

.endpoint-method {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.endpoint-method.post {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.endpoint-method.get {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.endpoint-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: hsl(var(--primary));
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.endpoint-desc {
  color: hsl(var(--text-secondary));
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Code Blocks */
.code-block {
  background: hsl(var(--bg-dark));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: hsl(var(--surface));
  border-bottom: 1px solid var(--glass-border);
}

.code-lang {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-code-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.copy-code-btn:hover {
  background: hsl(var(--primary) / 0.25);
  transform: scale(1.05);
}

.copy-icon {
  font-size: 1rem;
}

.copy-text {
  font-size: 0.8rem;
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary) / 0.3) transparent;
}

.code-block pre::-webkit-scrollbar {
  height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
  background: transparent;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: hsl(var(--primary) / 0.3);
  border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.5);
}

.code-block code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: hsl(var(--text-primary));
}

/* Payment Details Card */
.payment-details-card {
  background: hsl(var(--bg-dark));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.config-label {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.config-value {
  background: hsl(var(--surface));
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: hsl(var(--primary));
  border: 1px solid var(--glass-border);
}

/* Code Examples Tabs */
.code-examples-tabs {
  margin-top: 1rem;
}

.code-tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.code-tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: hsl(var(--text-secondary));
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
}

.code-tab-btn:hover {
  color: hsl(var(--text-primary));
  background: hsl(var(--surface));
}

.code-tab-btn.active {
  color: hsl(var(--primary));
  background: hsl(var(--surface));
  position: relative;
}

.code-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.code-tab-content {
  display: none;
}

.code-tab-content.active {
  display: block;
  animation: fade-in-up 0.3s ease-out;
}

/* Form Elements */
.request-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--text-primary));
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: hsl(var(--text-primary));
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  padding: 1rem;
  background: hsl(var(--bg-dark));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: hsl(var(--text-primary));
  font-size: 1rem;
  font-family: 'Inter', inherit;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(45, 93%, 47%, 0.15);
  background: hsl(var(--surface));
}

textarea::placeholder {
  color: hsl(var(--text-secondary));
  opacity: 0.6;
}

.hint {
  font-size: 0.875rem;
  color: hsl(var(--text-secondary));
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.8;
}

.balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: hsl(var(--surface));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.balance-info span {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
}

.balance-info strong {
  color: hsl(var(--success));
  font-size: 1.125rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* Loading, Results, Error */
.loading-section {
  text-align: center;
  padding: 3rem 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid hsl(var(--surface));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loading-message {
  color: hsl(var(--text-primary));
  font-size: 1.1rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.results-section {
  animation: fade-in-up 0.5s ease-out;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.results-header h3 {
  font-size: 1.5rem;
  color: hsl(var(--primary));
  font-weight: 700;
}

.results-content {
  line-height: 1.8;
  color: hsl(var(--text-primary));
}

.error-section {
  text-align: center;
  padding: 2rem;
  background: hsla(0, 84%, 60%, 0.1);
  border: 1px solid hsla(0, 84%, 60%, 0.3);
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-section h3 {
  color: hsl(var(--error));
  margin-bottom: 1rem;
}

.error-section p {
  color: hsl(var(--text-secondary));
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--glass-border);
  color: hsl(var(--text-secondary));
  font-size: 0.9rem;
}

.footer-security {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.footer-security a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: all 0.2s;
}

.footer-security a:hover {
  text-decoration: underline;
}

/* Wallet Modal */
.wallet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fade-in 0.2s ease-out;
}

.wallet-modal {
  background: hsl(var(--surface));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  animation: scale-in 0.3s ease-out;
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wallet-modal-header h3 {
  font-size: 1.25rem;
  color: hsl(var(--primary));
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: hsl(var(--text-secondary));
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: all 0.2s;
}

.modal-close:hover {
  color: hsl(var(--text-primary));
}

.wallet-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--bg-dark));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: hsl(var(--text-primary));
}

.wallet-option:hover {
  border-color: hsl(var(--primary));
  transform: translateX(4px);
}

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

.wallet-name {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

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

  .docs-tabs {
    flex-direction: column;
  }

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

  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ============================================
   DATA CARDS SECTION
   ============================================ */

.data-cards-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.data-card {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.data-card:hover {
  border-color: hsl(var(--apollo-gold) / 0.3);
  box-shadow: 0 0 20px hsl(var(--apollo-gold) / 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-icon {
  font-size: 1.25rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(var(--text-primary));
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
}

.data-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(var(--text-primary));
}

/* Risk Analysis Card */
.risk-card {
  border-width: 2px;
}

.risk-critical {
  border-color: hsl(0 84% 60%);
  background: linear-gradient(135deg, hsl(0 84% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.risk-high {
  border-color: hsl(25 95% 53%);
  background: linear-gradient(135deg, hsl(25 95% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.risk-medium {
  border-color: hsl(45 93% 47%);
  background: linear-gradient(135deg, hsl(45 93% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.risk-low {
  border-color: hsl(217 91% 60%);
  background: linear-gradient(135deg, hsl(217 91% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.risk-score {
  margin-left: auto;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--bg-dark));
  border-radius: 8px;
}

.risk-warnings {
  padding: 1rem;
  background: hsl(var(--bg-dark) / 0.5);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.risk-warnings strong {
  display: block;
  margin-bottom: 0.5rem;
  color: hsl(var(--text-primary));
}

.risk-warnings ul {
  margin: 0;
  padding-left: 1.5rem;
}

.risk-warnings li {
  margin: 0.25rem 0;
  color: hsl(var(--text-secondary));
}

.risk-flags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.risk-flag {
  padding: 0.75rem;
  background: hsl(var(--bg-dark) / 0.3);
  border-left: 3px solid;
  border-radius: 6px;
}

.risk-flag-danger {
  border-left-color: hsl(0 84% 60%);
}

.risk-flag-warning {
  border-left-color: hsl(45 93% 47%);
}

.risk-flag-info {
  border-left-color: hsl(217 91% 60%);
}

.flag-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--apollo-gold));
  margin-bottom: 0.25rem;
}

.flag-desc {
  font-size: 0.85rem;
  color: hsl(var(--text-primary));
  margin-bottom: 0.25rem;
}

.flag-data {
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
  font-style: italic;
}

.risk-context {
  padding: 0.75rem;
  background: hsl(var(--bg-dark) / 0.5);
  border-radius: 6px;
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  font-style: italic;
  margin-bottom: 1rem;
}

.risk-disclaimer {
  padding: 0.75rem;
  background: hsl(var(--bg-dark) / 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Contract Address */
.contract-row {
  font-family: 'Courier New', monospace;
}

.contract-address {
  font-size: 0.8rem;
  cursor: pointer;
}

/* Price Changes */
.positive {
  color: hsl(142 76% 36%);
}

.negative {
  color: hsl(0 84% 60%);
}

/* Health Scores */
.health-good {
  color: hsl(142 76% 36%);
}

.health-medium {
  color: hsl(45 93% 47%);
}

.health-poor {
  color: hsl(0 84% 60%);
}

/* Buy/Sell Ratios */
.ratio-bullish {
  color: hsl(142 76% 36%);
  font-weight: 700;
}

.ratio-bearish {
  color: hsl(0 84% 60%);
  font-weight: 700;
}

.ratio-neutral {
  color: hsl(var(--text-secondary));
}

/* Momentum */
.momentum-bullish {
  color: hsl(142 76% 36%);
  text-transform: uppercase;
  font-weight: 600;
}

.momentum-bearish {
  color: hsl(0 84% 60%);
  text-transform: uppercase;
  font-weight: 600;
}

.momentum-neutral {
  color: hsl(var(--text-secondary));
  text-transform: uppercase;
}

/* Data Quality */
.data-quality {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
  font-style: italic;
}

/* Top Holders */
.holder-item {
  display: grid;
  grid-template-columns: 2rem 6rem 1fr 4rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

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

.holder-rank {
  font-weight: 700;
  color: hsl(var(--apollo-gold));
}

.holder-address {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
  overflow: hidden;
  text-overflow: ellipsis;
}

.holder-bar-container {
  height: 8px;
  background: hsl(var(--bg-dark));
  border-radius: 4px;
  overflow: hidden;
}

.holder-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.3s;
}

.holder-percentage {
  font-weight: 600;
  text-align: right;
  color: hsl(var(--text-primary));
}

/* Whale Movements */
.whale-movement {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: hsl(var(--bg-dark) / 0.3);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border-left: 3px solid;
}

.whale-movement:last-child {
  margin-bottom: 0;
}

.movement-buy {
  border-left-color: hsl(142 76% 36%);
}

.movement-sell {
  border-left-color: hsl(0 84% 60%);
}

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

.movement-info {
  flex: 1;
}

.movement-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.movement-buy .movement-type {
  color: hsl(142 76% 36%);
}

.movement-sell .movement-type {
  color: hsl(0 84% 60%);
}

.movement-amount {
  font-weight: 700;
  font-size: 1rem;
  color: hsl(var(--text-primary));
}

.movement-meta {
  text-align: right;
}

.movement-time {
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
  margin-bottom: 0.25rem;
}

.movement-address {
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  color: hsl(var(--text-secondary));
}

/* News Cards */
.news-item {
  padding: 1rem;
  background: hsl(var(--bg-dark) / 0.3);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 3px solid hsl(var(--apollo-gold));
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.news-source {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--apollo-gold));
  text-transform: uppercase;
}

.news-time {
  font-size: 0.7rem;
  color: hsl(var(--text-secondary));
}

.news-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: hsl(var(--text-primary));
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-summary {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: hsl(var(--apollo-gold));
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.news-link:hover {
  opacity: 0.8;
}

/* ============================================
   AGENT SECTIONS (Multi-Agent Display)
   ============================================ */

.consensus-header {
  padding: 1rem;
  background: hsl(var(--bg-dark) / 0.5);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(var(--apollo-gold) / 0.2);
}

.agent-section {
  padding: 1.5rem;
  background: hsl(var(--bg-card));
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.agent-pro {
  border-left-color: hsl(217 91% 60%);
  background: linear-gradient(135deg, hsl(217 91% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.agent-fast {
  border-left-color: hsl(142 76% 36%);
  background: linear-gradient(135deg, hsl(142 76% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.agent-deep {
  border-left-color: hsl(280 60% 60%);
  background: linear-gradient(135deg, hsl(280 60% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.agent-social {
  border-left-color: hsl(330 81% 60%);
  background: linear-gradient(135deg, hsl(330 81% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.agent-web {
  border-left-color: hsl(25 95% 53%);
  background: linear-gradient(135deg, hsl(25 95% 10%) 0%, hsl(var(--bg-card)) 100%);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

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

.agent-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: hsl(var(--text-primary));
}

.agent-content {
  color: hsl(var(--text-secondary));
  line-height: 1.7;
}

/* History Section */
.history-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  color: hsl(var(--primary));
}

.refresh-btn {
  padding: 0.5rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid hsl(var(--primary));
  border-radius: 8px;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.refresh-btn:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: scale(1.05);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.2s;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: hsl(var(--primary) / 0.3);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.history-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.history-date, .history-model {
  font-size: 0.85rem;
  color: #94a3b8;
}

.history-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #22c55e;
  font-weight: 600;
}

.history-expand-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.history-expand-btn:hover {
  background: rgba(251, 191, 36, 0.1);
}

.history-prompt {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 0.9rem;
}

.history-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.history-response {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}

.history-payment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tx-link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 600;
}

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

.empty-state, .error-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #94a3b8;
}

.empty-hint {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Success Toast Notification */
.success-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(234, 179, 8, 0.95));
  color: hsl(var(--bg-dark));
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.success-toast .toast-icon {
  font-size: 1.25rem;
}

.success-toast .toast-message {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .success-toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    padding: 0.875rem 1.25rem;
  }
}
