:root {
  --bg-dark: #090d16;
  --bg-card: #101726;
  --bg-card-hover: #182235;
  --bg-input: #0c1220;
  --border-color: #1e293b;
  --border-glow: #334155;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --sol-purple: #9945ff;
  --sol-green: #14f195;
  --sol-cyan: #00f2fe;
  --accent-gold: #f59e0b;
  --accent-orange: #ea580c;
  --accent-danger: #ef4444;
  --accent-danger-bg: rgba(239, 68, 68, 0.12);
  --accent-warning-bg: rgba(245, 158, 11, 0.12);
  --accent-success: #10b981;
  --accent-success-bg: rgba(16, 185, 129, 0.12);
  --accent-cyan: #06b6d4;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(153, 69, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(20, 241, 149, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Mandatory CSS constraints */
input, select, textarea {
  min-width: 0;
  font-family: inherit;
}

.brand {
  min-width: 0;
}

.brand-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switcher {
  flex-shrink: 0;
}

/* App Container */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px 60px 16px;
}

@media (min-width: 768px) {
  .app-container {
    padding: 28px 24px 80px 24px;
  }
}

/* Top Nav Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--sol-purple) 0%, #6366f1 50%, var(--sol-green) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.4);
  flex-shrink: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(90deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sol-green);
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--sol-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sol-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(20, 241, 149, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); }
}

.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Top HUD Grid */
.hud-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hud-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hud-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.hud-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
}

.hud-card.danger::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.hud-card.warning::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.hud-card.success::before {
  background: linear-gradient(90deg, #10b981, #14f195);
}

.hud-card.accent::before {
  background: linear-gradient(90deg, #06b6d4, #9945ff);
}

.hud-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-value {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hud-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.hud-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.danger-tag {
  color: #f87171;
  font-weight: 600;
  background: var(--accent-danger-bg);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.badge-risk {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-risk.high {
  background: var(--accent-danger-bg);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-risk.medium {
  background: var(--accent-warning-bg);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-risk.low {
  background: var(--accent-success-bg);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Card Container */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .calc-card {
    padding: 26px;
  }
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

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

.tab-btn.active {
  background: var(--bg-card-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-icon {
  font-size: 16px;
}

/* Input Form Controls */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.label-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 6px;
}

.search-box-row {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

@media (min-width: 640px) {
  .search-box-row {
    flex-direction: row;
  }
}

.input-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-control:focus {
  outline: none;
  border-color: var(--sol-purple);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.2);
}

.select-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sol-purple) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(153, 69, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(153, 69, 255, 0.45);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Presets Buttons */
.presets-section {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.presets-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

@media (min-width: 640px) {
  .presets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.preset-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.preset-btn:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.preset-btn.active {
  border-color: var(--sol-purple);
  box-shadow: 0 0 15px rgba(153, 69, 255, 0.25);
  background: rgba(153, 69, 255, 0.08);
}

.preset-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.danger-preset .preset-tag {
  background: var(--accent-danger-bg);
  color: #ef4444;
}

.warning-preset .preset-tag {
  background: var(--accent-warning-bg);
  color: #f59e0b;
}

.success-preset .preset-tag {
  background: var(--accent-success-bg);
  color: #10b981;
}

.preset-btn strong {
  font-size: 13px;
  color: #fff;
}

.preset-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Manual Trade Simulator Grid */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}

@media (min-width: 640px) {
  .sim-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-with-val {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.val-pill {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
}

.val-pill.danger-pill {
  background: var(--accent-danger-bg);
  color: #f87171;
}

.range-row input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--sol-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sol-purple);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  color: #fff;
  border-color: var(--text-muted);
}

.chip.active-chip {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.chip.danger-chip {
  background: var(--accent-danger-bg);
  border-color: #ef4444;
  color: #ef4444;
}

/* Analysis Section */
.analysis-section {
  margin-bottom: 24px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Verdict Banner */
.verdict-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(16, 23, 38, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  gap: 22px;
  flex-direction: column;
}

@media (min-width: 768px) {
  .verdict-banner {
    flex-direction: row;
    align-items: center;
  }
}

.meter-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 140px;
}

.risk-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(239, 68, 68, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
}

.risk-score-num {
  font-size: 34px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ef4444;
  line-height: 1;
}

.risk-score-max {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 2px;
}

.risk-verdict-title {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ef4444;
  text-align: center;
}

.verdict-body {
  flex: 1;
}

.verdict-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.verdict-explanation {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.risk-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.risk-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.r-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.danger-icon {
  background: #ef4444;
  color: #fff;
}

.warning-icon {
  background: #f59e0b;
  color: #000;
}

/* Breakdown Grid */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .breakdown-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.breakdown-card.highlight-danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, var(--bg-card) 100%);
}

.breakdown-card.highlight-success {
  border-color: rgba(20, 241, 149, 0.4);
  background: linear-gradient(180deg, rgba(20, 241, 149, 0.06) 0%, var(--bg-card) 100%);
}

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

.bd-icon {
  font-size: 18px;
}

.bd-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.bd-main-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.bd-sub-val {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.bd-note {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: auto;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

/* Timeline Flow */
.timeline-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.badge-slot {
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .steps-flow {
    flex-direction: row;
    align-items: center;
  }
}

.step-card {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
}

.step-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.step-badge.danger {
  background: var(--accent-danger-bg);
  color: #ef4444;
}

.step-badge.warning {
  background: var(--accent-warning-bg);
  color: #f59e0b;
}

.step-actor {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.step-actor code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--sol-green);
}

.step-action {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-fee {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 4px;
}

.step-arrow {
  display: none;
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 900;
}

@media (min-width: 768px) {
  .step-arrow {
    display: block;
  }
}

/* Guide Section */
.guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .guide-section {
    padding: 26px;
  }
}

.guide-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.guide-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.guide-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.gc-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.gc-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.gc-metric {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.gc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.gc-sub-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gc-box-lbl {
  color: var(--text-dim);
  font-weight: 600;
}

.gc-box-val {
  color: #fff;
  font-family: var(--font-mono);
}

/* Bot Matrix Grid */
.bot-matrix-wrap {
  border-top: 1px solid var(--border-color);
  padding-top: 22px;
}

.bm-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

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

@media (min-width: 768px) {
  .bot-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bot-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.bot-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.bot-card.featured-bot {
  border-color: rgba(153, 69, 255, 0.5);
  box-shadow: 0 4px 20px rgba(153, 69, 255, 0.15);
}

.bot-badge-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, var(--sol-purple), #6366f1);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.bot-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bot-avatar {
  font-size: 26px;
}

.bot-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.bot-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.bot-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.btn-bot {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-bot:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-muted);
}

.btn-bot.primary {
  background: linear-gradient(135deg, var(--sol-purple) 0%, #7c3aed 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(153, 69, 255, 0.35);
}

.btn-bot.primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
}

/* Cumulative Loss Section */
.cumul-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.cumul-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cumul-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cumul-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cumul-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.cumul-calc-box {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 840px) {
  .cumul-calc-box {
    grid-template-columns: 1fr 1fr;
  }
}

.cumul-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.c-val-pill {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
}

.c-input-row input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.c-input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent-gold);
  border-radius: 50%;
  cursor: pointer;
}

.cumul-results {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}

.cumul-res-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.cumul-res-card.danger {
  border-left: 4px solid #ef4444;
}

.cumul-res-card.danger-deep {
  border-left: 4px solid #b91c1c;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-input) 100%);
}

.cumul-res-card.success {
  border-left: 4px solid var(--sol-green);
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.06) 0%, var(--bg-input) 100%);
}

.cr-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.cr-val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 4px 0;
}

.cr-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Info Section (5 Rules) */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.info-heading {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

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

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}

.ic-num {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--sol-purple);
  margin-bottom: 4px;
}

.info-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Portal Return Link */
.portal-backlink-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.portal-backlink {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-backlink:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateX(-2px);
}

.portal-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Utility Colors */
.text-sol {
  color: var(--sol-green);
}

.text-danger {
  color: #ef4444;
}

.text-orange {
  color: #f97316;
}

.text-green {
  color: #10b981;
}

.text-cyan {
  color: #06b6d4;
}
