/* AirdropEV Pro - High-Precision Airdrop Valuation & Gas Expenditure Terminal */
/* Mandatory Standard Rules */
input, select, textarea {
  min-width: 0;
}
.lang-switcher {
  flex-shrink: 0;
}
.brand {
  min-width: 0;
}
.brand-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Base Terminal Variables */
:root {
  --bg-dark: #070a12;
  --bg-card: #0d1322;
  --bg-card-hover: #121a2e;
  --bg-subtle: #151e34;
  --border-dim: #1e293b;
  --border-glow: #2a3958;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
}

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

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

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -15%, rgba(0, 242, 254, 0.16), transparent 70%),
              radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.14), transparent 50%),
              radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.terminal-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.font-mono {
  font-family: var(--font-mono);
}
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }
.text-red { color: var(--accent-red); }
.text-purple { color: var(--accent-purple); }
.text-dim { color: var(--text-dim); }

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

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

.logo-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-pulse {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-cyan);
  opacity: 0.4;
  animation: pulseAura 2.5s infinite;
}

@keyframes pulseAura {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-version {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  font-family: var(--font-mono);
}

.brand-net {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.feed-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-dim);
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: blink 2s infinite;
}

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

.btn-icon {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.lang-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #050b14;
}

.lang-btn:hover:not(.active) {
  color: var(--text-main);
}

/* Top Affiliate & Anti-Sybil Hero Section */
.affiliate-hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.affiliate-hero-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.18), transparent 70%);
  pointer-events: none;
}

.aff-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.aff-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.aff-hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.affiliate-dual-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.aff-card {
  position: relative;
  background: rgba(18, 26, 46, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.aff-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.aff-card-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.bybit-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.blueprint-badge {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.aff-venue-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.venue-logo {
  font-size: 18px;
}

.venue-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.venue-perk {
  font-size: 11px;
  color: var(--accent-cyan);
  padding: 1px 6px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: 4px;
}

.aff-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.aff-card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.aff-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.code-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
}

.code-label {
  color: var(--text-dim);
  font-size: 11px;
}

.code-string {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.btn-copy-mini {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-copy-mini:hover {
  opacity: 1;
}

.btn-aff-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.bybit-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
}

.bybit-cta:hover {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.blueprint-cta {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
}

.blueprint-cta:hover {
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

/* Key Metrics Highlights Row */
.metrics-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-card-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-card-val {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.m-card-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Main Terminal Workspace */
.terminal-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.simulator-card,
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

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

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  font-size: 20px;
}

.panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.panel-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-reset-mini {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-mini:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: blink 1.5s infinite;
}

/* Forms & Inputs */
.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.form-hint {
  font-size: 11px;
  font-weight: normal;
  color: var(--text-dim);
}

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

.label-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 4px;
}

.form-select,
.form-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all 0.2s;
  outline: none;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.input-with-affix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.input-with-affix input {
  padding-left: 28px;
  padding-right: 80px;
}

/* Chip Buttons */
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.chip-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Project Quick Bio Box */
.project-bio-pill {
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.bio-key {
  color: var(--text-dim);
}

.bio-val {
  font-weight: 600;
}

/* Right Panel: EV Results Output */
.ev-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(0, 242, 254, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.ev-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ev-sub-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.ev-signal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.badge-exceptional {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-high {
  background: rgba(0, 242, 254, 0.18);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.badge-moderate {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ev-main-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.ev-sub-metrics {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  font-size: 13px;
}

.sub-metric-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

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

.s-val {
  font-weight: 700;
}

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

.res-stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.r-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.r-val {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* Breakdown Ledger */
.breakdown-ledger {
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.ledger-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.ledger-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.l-name {
  color: var(--text-muted);
}

.ledger-total {
  border-top: 1px solid var(--border-dim);
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 700;
}

/* Results Action Buttons */
.results-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-action-tool {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-tool:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* Section Header Shared */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.sec-icon {
  font-size: 24px;
}

.sec-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

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

/* Bridge Route Section */
.bridge-engine-section {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.gas-tracker-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: 30px;
  font-size: 12px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.gas-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.bridge-comparison-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bridge-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
}

.bridge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
}

.featured-bridge {
  border-color: rgba(0, 242, 254, 0.4);
  background: linear-gradient(180deg, rgba(13, 25, 46, 0.8) 0%, rgba(13, 19, 34, 0.8) 100%);
}

.warning-bridge {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(30, 15, 20, 0.6) 0%, rgba(15, 10, 14, 0.6) 100%);
}

.bridge-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

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

.bridge-icon {
  font-size: 22px;
}

.bridge-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.bridge-sub {
  font-size: 11px;
}

.badge-recommended {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 4px;
}

.badge-secondary {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent-purple);
  color: #c084fc;
  border-radius: 4px;
}

.bridge-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.spec-label {
  color: var(--text-dim);
}

.spec-val {
  font-weight: 600;
}

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

.bridge-action-wrap {
  margin-top: auto;
}

.btn-bridge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.debridge-btn {
  background: linear-gradient(135deg, #00f2fe, #0284c7);
  color: #050b14;
}

.debridge-btn:hover {
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.across-btn {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
  color: #ffffff;
}

.across-btn:hover {
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.bridge-warning-tag {
  text-align: center;
  font-size: 11px;
  color: var(--accent-red);
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
}

/* Matrix Table Section */
.matrix-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.matrix-filter-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.matrix-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.matrix-filter-btn.active {
  background: var(--accent-cyan);
  color: #050b14;
}

.matrix-filter-btn:hover:not(.active) {
  color: var(--text-main);
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.matrix-table th {
  background: var(--bg-subtle);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dim);
  white-space: nowrap;
}

.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dim);
  vertical-align: middle;
}

.matrix-table tr:hover td {
  background: var(--bg-card-hover);
}

.proj-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proj-icon {
  font-size: 20px;
}

.proj-name {
  font-weight: 700;
  color: #fff;
}

.proj-badge {
  font-size: 10px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.btn-load-preset {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-load-preset:hover {
  background: var(--accent-cyan);
  color: #050b14;
}

/* FAQ Accordion Section */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: all 0.2s;
}

.faq-item[open] {
  border-color: rgba(0, 242, 254, 0.3);
}

.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bottom VIP Partner Section */
.partner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 19, 34, 0.95), rgba(18, 26, 46, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.partner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  pointer-events: none;
}

.partner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.partner-left {
  max-width: 650px;
}

.partner-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.p-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.p-badge.bybit {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.p-badge.tg {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

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

.dual-ref-boxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
}

.ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

.ref-name {
  color: var(--text-dim);
}

.ref-code {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.btn-ref-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--accent-gold);
  color: #0b0f19;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  font-size: 11px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-ref-link.hl {
  background: var(--accent-purple);
  color: #fff;
}

.btn-ref-link:hover {
  opacity: 0.9;
}

/* Portal Backlink */
.portal-backlink-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border-dim);
  margin-bottom: 16px;
}

.portal-backlink {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.portal-backlink:hover {
  text-decoration: underline;
}

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

/* Legal Disclaimer */
.portal-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 19, 34, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease-out;
}

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

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-dim);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 24px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-banner {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.m-banner-tag {
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 4px;
}

.m-banner-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.5;
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.pay-option-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.opt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.opt-icon {
  font-size: 22px;
}

.opt-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.opt-sub {
  font-size: 11px;
  color: var(--accent-gold);
}

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

.btn-pay-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-tg-stars {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #0b0f19;
}

.btn-tg-stars:hover {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.ton-address-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.ton-addr-text {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-address {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.activation-form {
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 16px;
}

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

.act-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-verify-unlock {
  background: var(--accent-green);
  border: none;
  color: #050b14;
  font-weight: 700;
  font-size: 12px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-verify-unlock:hover {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.test-demo-tip {
  font-size: 11px;
  color: var(--text-dim);
}

/* Unlocked Blueprint View */
.unlocked-header-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.unlocked-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-green);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 4px;
}

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

.blueprint-scroll-content {
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 16px;
}

.blueprint-scroll-content h3 {
  font-size: 14px;
  color: var(--accent-cyan);
  margin: 14px 0 6px 0;
}

.blueprint-scroll-content h4 {
  font-size: 13px;
  color: var(--accent-gold);
  margin: 10px 0 4px 0;
}

.blueprint-scroll-content p,
.blueprint-scroll-content ul {
  margin-bottom: 10px;
}

.blueprint-scroll-content li {
  margin-left: 20px;
  margin-bottom: 4px;
}

.blueprint-scroll-content code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.modal-unlocked-footer {
  display: flex;
  gap: 12px;
}

.btn-close-footer {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .terminal-workspace {
    grid-template-columns: 1fr;
  }
  .affiliate-dual-cards {
    grid-template-columns: 1fr;
  }
  .metrics-summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .bridge-comparison-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .terminal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .partner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .dual-ref-boxes {
    width: 100%;
    min-width: 0;
  }
  .payment-options-grid {
    grid-template-columns: 1fr;
  }
  .metrics-summary-bar {
    grid-template-columns: 1fr;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}
