/* FeeLeak Auditor - High-Tech Bloomberg / Trading Terminal Theme */

/* 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: #060913;
  --bg-card: #0d1322;
  --bg-card-hover: #121a2f;
  --bg-subtle: #151e36;
  --border-dim: #1e293b;
  --border-glow: #2a3958;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-bybit: #f7a600;
  --accent-hl: #00f2fe;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.25);
  
  --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 32px 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(247, 166, 0, 0.12), transparent 70%),
              radial-gradient(circle at 15% 20%, rgba(239, 68, 68, 0.09), transparent 50%),
              radial-gradient(circle at 85% 15%, rgba(0, 242, 254, 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;
}

/* 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: 46px;
  height: 46px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 166, 0, 0.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(247, 166, 0, 0.25);
  flex-shrink: 0;
}

.logo-pulse {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid var(--accent-bybit);
  opacity: 0.5;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

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

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

.brand-version {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.brand-net {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(247, 166, 0, 0.12);
  color: var(--accent-bybit);
  border: 1px solid rgba(247, 166, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.82rem;
  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;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-dim);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--accent-blue);
}

.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(247, 166, 0, 0.4);
}

/* Dual-Engine Affiliate Hero Section */
.affiliate-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 19, 34, 0.95), rgba(9, 14, 25, 0.98));
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.affiliate-hero-header {
  max-width: 860px;
  margin-bottom: 22px;
}

.aff-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247, 166, 0, 0.12);
  color: var(--accent-bybit);
  border: 1px solid rgba(247, 166, 0, 0.3);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.aff-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #f7a600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aff-hero-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.affiliate-dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.aff-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

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

.bybit-card {
  border-color: rgba(247, 166, 0, 0.35);
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.8), rgba(15, 23, 42, 0.9));
}
.bybit-card:hover {
  border-color: var(--accent-bybit);
  box-shadow: 0 10px 30px rgba(247, 166, 0, 0.15);
}

.hl-card {
  border-color: rgba(0, 242, 254, 0.35);
  background: linear-gradient(145deg, rgba(16, 28, 46, 0.8), rgba(15, 23, 42, 0.9));
}
.hl-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

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

.bybit-badge {
  background: rgba(247, 166, 0, 0.15);
  color: var(--accent-bybit);
  border: 1px solid rgba(247, 166, 0, 0.4);
}

.hl-badge {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

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

.venue-logo {
  font-size: 1.15rem;
}

.venue-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.venue-perk {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-muted);
}

.aff-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.aff-card-text {
  font-size: 0.85rem;
  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: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

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

.code-string {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.btn-copy-mini {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.btn-copy-mini:hover {
  opacity: 1;
}

.btn-aff-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.bybit-cta {
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  box-shadow: 0 4px 15px rgba(247, 166, 0, 0.3);
}
.bybit-cta:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(247, 166, 0, 0.5);
  transform: translateY(-1px);
}

.hl-cta {
  background: linear-gradient(135deg, #00f2fe, #0284c7);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}
.hl-cta:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  transform: translateY(-1px);
}

/* Main Auditor Workbench Grid */
.auditor-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* Panel Containers */
.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-dim);
}

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

.panel-icon {
  font-size: 1.15rem;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.panel-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--accent-green) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.panel-body {
  padding: 22px 24px;
}

/* Control Groups */
.control-group {
  margin-bottom: 22px;
}
.control-group:last-child {
  margin-bottom: 0;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.control-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.label-hint {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.volume-display-val,
.ratio-display-val {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-bybit);
}

/* Exchange Grid Selection Chips */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.exchange-chip {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  color: var(--text-muted);
}

.exchange-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  color: #fff;
}

.exchange-chip.active {
  background: rgba(247, 166, 0, 0.12);
  border-color: var(--accent-bybit);
  color: #fff;
  box-shadow: 0 0 12px rgba(247, 166, 0, 0.25);
}

.ex-icon {
  font-size: 1.15rem;
}

.ex-name {
  font-size: 0.78rem;
  font-weight: 700;
}

.ex-tier {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.exchange-chip.active .ex-tier {
  color: var(--accent-bybit);
}

.hidden-select {
  display: none;
}

/* Preset Chips */
.preset-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.preset-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  color: #fff;
}

.preset-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Input Prefix Wrap */
.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.currency-symbol {
  position: absolute;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  pointer-events: none;
}

.terminal-input {
  width: 100%;
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 14px 10px 32px;
  outline: none;
  transition: all 0.2s;
}

.terminal-input:focus {
  border-color: var(--accent-bybit);
  box-shadow: 0 0 15px rgba(247, 166, 0, 0.25);
}

/* Sliders */
.slider-wrap {
  margin-top: 6px;
  margin-bottom: 12px;
}

.terminal-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.terminal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-bybit);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(247, 166, 0, 0.6);
  cursor: pointer;
  transition: transform 0.1s;
}
.terminal-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.ratio-slider::-webkit-slider-thumb {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 6px;
}

/* Calculator Helper Accordion */
.calc-helper-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed var(--border-dim);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 12px;
}

.helper-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.helper-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.helper-title:hover {
  color: var(--accent-cyan);
}

.helper-arrow {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.helper-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.helper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.helper-field label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.helper-input {
  width: 100%;
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 8px;
  outline: none;
}
.helper-input:focus {
  border-color: var(--accent-cyan);
}

.btn-apply-helper {
  width: 100%;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-apply-helper:hover {
  background: rgba(0, 242, 254, 0.22);
}

/* Style Presets */
.style-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.style-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.74rem;
  transition: all 0.2s;
  text-align: left;
}

.style-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-glow);
}

.style-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.18);
}

.ratio-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.taker-label-text {
  color: var(--accent-red);
}
.maker-label-text {
  color: var(--accent-green);
}

/* Contract Type Pills */
.contract-toggle-pills {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.c-pill {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 7px;
  cursor: pointer;
  transition: all 0.18s;
  font-weight: 600;
}

.c-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.c-pill.active {
  background: rgba(247, 166, 0, 0.15);
  border-color: var(--accent-bybit);
  color: var(--accent-bybit);
  box-shadow: 0 0 10px rgba(247, 166, 0, 0.2);
}

/* Right Column: Results & Savings */
.btn-export-audit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-export-audit:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--accent-cyan);
}

/* Big Highlight VIP Rebate Savings Banner */
.savings-hero-box {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 95, 70, 0.22));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.15);
}

.savings-glow-bg {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
  pointer-events: none;
}

.savings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.savings-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.savings-tagline {
  font-size: 0.74rem;
  color: #6ee7b7;
}

.savings-amount-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.savings-val {
  font-size: 2.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34d399;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
  animation: valPulse 3s infinite ease-in-out;
}

@keyframes valPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

.savings-unit {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.05em;
}

.savings-callout {
  font-size: 0.88rem;
  color: #d1fae5;
  line-height: 1.5;
  margin-bottom: 16px;
}

.savings-callout strong {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.btn-vip-action {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(247, 166, 0, 0.4);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-vip-action:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 25px rgba(247, 166, 0, 0.6);
  transform: translateY(-2px);
}

/* Core Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.m-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.m-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.06), rgba(15, 23, 42, 0.8));
}

.danger-text {
  color: #f87171;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.warning-card {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(15, 23, 42, 0.8));
}

.warning-text {
  color: #fbbf24;
}

.m-sub {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Severity Meter Card */
.severity-meter-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

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

.meter-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.meter-status {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #f87171;
}

.meter-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.meter-thresholds {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Reality Check Card */
.reality-check-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

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

.reality-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

.reality-item {
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

.item-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.item-name {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Multi-Exchange Matrix Panel */
.matrix-panel {
  margin-bottom: 28px;
}

.matrix-current-vol {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.terminal-table th {
  padding: 12px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-dim);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.terminal-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  color: var(--text-main);
  vertical-align: middle;
}

.terminal-table tr:hover {
  background: rgba(18, 26, 46, 0.6);
}

.tr-highlight-winner {
  background: linear-gradient(90deg, rgba(247, 166, 0, 0.12), rgba(16, 185, 129, 0.08)) !important;
  border-left: 3px solid var(--accent-bybit);
}

.tr-current-ex {
  background: rgba(59, 130, 246, 0.08);
}

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

.ex-logo-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ex-details {
  display: flex;
  flex-direction: column;
}

.ex-name-strong {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.winner-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.dex-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 1px 6px;
  border-radius: 3px;
}

.ex-rate-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.fee-cash-mono {
  font-family: var(--font-mono);
  font-weight: 700;
}

.fee-savings-green {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #34d399;
}

.fee-savings-neutral {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-table-bybit {
  background: var(--accent-bybit);
  color: #000;
}
.btn-table-bybit:hover {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(247, 166, 0, 0.4);
}

.btn-table-hl {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-table-hl:hover {
  background: var(--accent-cyan);
  color: #000;
}

.btn-table-current {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  cursor: default;
}

/* 60-Second VIP Activation Guide */
.guide-panel {
  margin-bottom: 28px;
}

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

.step-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(247, 166, 0, 0.4);
}

.step-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.text-link {
  color: var(--accent-bybit);
  text-decoration: underline;
}

.guide-action-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 10px;
}

.btn-guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.bybit-btn {
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  box-shadow: 0 4px 15px rgba(247, 166, 0, 0.3);
}
.bybit-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(247, 166, 0, 0.5);
  transform: translateY(-2px);
}

.hl-btn {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}
.hl-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: translateY(-2px);
}

/* Partner Dual Footer Card */
.partner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(9, 14, 25, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.partner-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bybit), var(--accent-cyan), transparent);
}

.partner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

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

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

.p-badge.bybit {
  background: rgba(247, 166, 0, 0.15);
  color: var(--accent-bybit);
  border: 1px solid rgba(247, 166, 0, 0.35);
}

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

.partner-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

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

.partner-right {
  flex-shrink: 0;
}

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

.ref-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.ref-name {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.ref-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.btn-ref-link {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--accent-bybit);
  color: #000;
  text-decoration: none;
  transition: all 0.2s;
  margin-left: 8px;
}
.btn-ref-link:hover {
  background: #fbbf24;
}

.btn-ref-link.hl {
  background: var(--accent-cyan);
  color: #000;
}
.btn-ref-link.hl:hover {
  background: #38bdf8;
}

/* Portal Backlink */
.portal-backlink-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
}

.portal-backlink {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.portal-backlink:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

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

/* Legal & Risk Disclaimer */
.portal-disclaimer {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 16px 20px;
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1e293b;
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

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

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .auditor-grid {
    grid-template-columns: 1fr;
  }
  .affiliate-dual-cards {
    grid-template-columns: 1fr;
  }
  .partner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .partner-right {
    width: 100%;
  }
  .dual-ref-boxes {
    width: 100%;
  }
  .ref-row {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .terminal-container {
    padding: 14px 16px 40px 16px;
  }
  .terminal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .reality-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .style-presets {
    grid-template-columns: 1fr;
  }
  .exchange-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .guide-action-bar {
    flex-direction: column;
  }
}
