:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: #131d31;
  --bg-card-subtle: rgba(19, 29, 49, 0.7);
  --bg-hover: #1e293b;
  --border-color: #22324d;
  --border-glow: rgba(6, 182, 212, 0.3);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.3);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.3);
  --accent-red: #f43f5e;
  --accent-red-glow: rgba(244, 63, 94, 0.3);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.3);
  --accent-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(34, 50, 77, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 50, 77, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  padding: 16px 12px 100px 12px;
  overflow-x: hidden;
}

/* Mandatory Standards */
input, select, textarea {
  min-width: 0;
}

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

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

.brand-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.app-layout {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================================
   Header Section
   ============================================================================ */
.header {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0e2238 0%, #1e3a5f 100%);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.35rem;
}

.brand-sub-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 0.8rem;
  background: var(--bg-primary);
  border-radius: 50%;
  padding: 1px;
}

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

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radar-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
  white-space: nowrap;
}

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

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.quick-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.cta-glow-sm {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.cta-glow-sm:hover {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

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

.lang-btn.active {
  background: var(--accent-cyan);
  color: #041019;
  font-weight: 700;
}

/* ============================================================================
   Threat Alert Banner
   ============================================================================ */
.threat-alert-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.threat-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.threat-pulse-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

.threat-content-col {
  flex: 1;
  min-width: 0;
}

.threat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.threat-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.threat-cta-col {
  flex-shrink: 0;
}

.playbook-btn-pulse {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e1b10;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.playbook-btn-pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.55);
}

.playbook-icon {
  font-size: 1.3rem;
}

.playbook-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.playbook-btn-text .btn-top {
  font-size: 0.85rem;
  line-height: 1.2;
}

.playbook-btn-text .btn-sub {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 600;
}

/* ============================================================================
   Input Card & Platform Selector
   ============================================================================ */
.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.input-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.input-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

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

.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.platform-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.platform-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.platform-tab.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.platform-icon {
  font-size: 1.1rem;
}

.platform-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.platform-tab.active .platform-tag {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.input-field-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field-wrap:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.input-prefix-icon {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  margin-right: 8px;
  user-select: none;
}

.target-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 12px 0;
}

.target-input::placeholder {
  color: var(--text-muted);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 6px;
}

.clear-btn:hover {
  color: var(--text-primary);
}

.btn-audit-submit {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
  color: #031422;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-audit-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
}

/* Quick Samples Bar */
.quick-samples-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.samples-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.samples-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sample-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.sample-chip:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.chip-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.chip-gold .chip-badge {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
}

.chip-danger .chip-badge {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-red);
}

.chip-success .chip-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.chip-blue .chip-badge {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

/* ============================================================================
   Scanning Progress HUD Simulation
   ============================================================================ */
.scan-progress-card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  animation: fadeIn 0.3s ease;
}

.scan-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.scan-status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.spinner-radar {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.scan-percent {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

.scan-track {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.scan-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), #3b82f6);
  border-radius: 4px;
  transition: width 0.2s ease;
}

.scan-stages-log {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   HUD Overview Grid: Score Card & Identity Telemetry
   ============================================================================ */
.results-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.4s ease;
}

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

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.hud-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .hud-overview-grid {
    grid-template-columns: 1fr;
  }
}

.card-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.hud-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hud-live-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
}

.profile-network {
  font-size: 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 4px;
}

.score-display-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.score-circle-wrap {
  width: 120px;
  height: 120px;
  position: relative;
  flex-shrink: 0;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: var(--bg-hover);
  stroke-width: 8;
}

.score-circle-fg {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.score-center-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.score-max {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.score-verdict-col {
  flex: 1;
  min-width: 0;
}

.verdict-grade-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.grade-a {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.grade-b {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.grade-c {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.grade-f {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.verdict-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.verdict-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.cqs-tier-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cqs-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.cqs-highest {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cqs-moderate {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.cqs-lowest {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Identity Card */
.identity-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.identity-meta {
  flex: 1;
  min-width: 0;
}

.account-handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.verified-chip {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.verified-yes {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.verified-no {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.account-joined-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.metric-mini-tile {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.metric-mini-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.metric-mini-val {
  font-size: 1rem;
  font-weight: 700;
}

.highlight-gold { color: var(--accent-gold); }
.highlight-cyan { color: var(--accent-cyan); }
.highlight-purple { color: var(--accent-purple); }
.highlight-green { color: var(--accent-green); }
.highlight-red { color: var(--accent-red); }

/* ============================================================================
   HUD Duo Grid: Karma Distribution & Shadowban Heuristics
   ============================================================================ */
.hud-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 950px) {
  .hud-duo-grid {
    grid-template-columns: 1fr;
  }
}

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

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-icon h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

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

.badge-subtle {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

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

.badge-pass {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.badge-fail {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.badge-warn {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.section-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Karma Ratio Bar */
.karma-bar-wrap {
  margin-bottom: 18px;
}

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

.bar-lbl-comment {
  color: var(--accent-cyan);
}

.bar-lbl-post {
  color: var(--accent-purple);
}

.karma-ratio-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1px solid var(--border-color);
}

.ratio-segment {
  height: 100%;
  transition: width 0.6s ease;
}

.segment-comment {
  background: linear-gradient(90deg, #06b6d4, #0284c7);
}

.segment-post {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
}

.karma-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.karma-detail-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kd-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comment-icon { background: rgba(6, 182, 212, 0.15); }
.post-icon { background: rgba(168, 85, 247, 0.15); }
.award-icon { background: rgba(251, 191, 36, 0.15); }
.health-icon { background: rgba(16, 185, 129, 0.15); }

.kd-text {
  flex: 1;
  min-width: 0;
}

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

.kd-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.kd-sub {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.farming-warning-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.warning-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Shadowban Test Results */
.test-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.test-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.test-status-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.test-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.test-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.test-status-val {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-val-pass {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-val-fail {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-val-warn {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.remediation-advice-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.remedy-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.remedy-body {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ============================================================================
   Feature 3: Subreddit Eligibility Matrix
   ============================================================================ */
.eligibility-summary-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  border-radius: 20px;
}

.subreddits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.sub-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.sub-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.sub-card.sub-eligible {
  border-left: 3px solid var(--accent-green);
}

.sub-card.sub-restricted {
  border-left: 3px solid var(--accent-gold);
}

.sub-card.sub-blocked {
  border-left: 3px solid var(--accent-red);
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sub-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-icon {
  font-size: 1.3rem;
}

.sub-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sub-members {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sub-status-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.sub-pill-eligible {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.sub-pill-restricted {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.sub-pill-blocked {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.sub-rules-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.sub-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 3px 6px;
  border-radius: 4px;
}

.rule-check-ok { color: var(--accent-green); }
.rule-check-fail { color: var(--accent-red); }

.sub-verdict-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

/* ============================================================================
   Feature 4: Market Resale Valuation Section ($15 ~ $350)
   ============================================================================ */
.valuation-section {
  background: linear-gradient(135deg, rgba(19, 29, 49, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid var(--border-color);
}

.valuation-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.big-valuation-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: right;
  box-shadow: 0 0 25px var(--accent-gold-glow);
}

.big-val-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.big-val-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.big-val-range {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.val-breakdown-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.breakdown-header {
  background: var(--bg-secondary);
  padding: 10px 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.breakdown-rows {
  display: flex;
  flex-direction: column;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(34, 50, 77, 0.4);
  font-size: 0.8rem;
}

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

.b-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-label {
  color: var(--text-primary);
  font-weight: 600;
}

.b-sub {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.b-amount {
  font-weight: 700;
}

.b-amount-pos { color: var(--accent-green); }
.b-amount-neg { color: var(--accent-red); }
.b-amount-total { 
  color: var(--accent-gold); 
  font-size: 1.05rem;
}

.breakdown-total-row {
  background: rgba(251, 191, 36, 0.05);
  border-top: 1px solid var(--accent-gold);
}

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

@media (max-width: 800px) {
  .market-insights-grid {
    grid-template-columns: 1fr;
  }
}

.insight-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.insight-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.insight-val {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.insight-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================================================
   Export Toolbar
   ============================================================================ */
.export-toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.export-title-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.export-title-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.export-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.export-buttons-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-export-secondary {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-export-secondary:hover {
  background: var(--bg-hover);
  color: #fff;
  border-color: var(--accent-cyan);
}

/* ============================================================================
   Feature 3: Monetization Grid (Telegram Stars / TON & Bybit)
   ============================================================================ */
.monetization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .monetization-grid {
    grid-template-columns: 1fr;
  }
}

.gateway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.unlock-card {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(26, 21, 10, 0.6) 0%, rgba(19, 29, 49, 0.9) 100%);
}

.unlock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.bybit-gateway-card {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, rgba(6, 28, 44, 0.6) 0%, rgba(19, 29, 49, 0.9) 100%);
}

.bybit-gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.gateway-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gateway-header {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.gateway-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.gateway-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.gateway-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gateway-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.gw-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.gw-feat-icon {
  color: var(--accent-green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.gateway-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.pricing-chip {
  display: flex;
  flex-direction: column;
}

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

.pricing-amount {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.pricing-or {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1600;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.15);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* Bybit Card Perks */
.bybit-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.bybit-perk {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.perk-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

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

.gateway-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.btn-bybit {
  flex: 1;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #031726;
  font-weight: 800;
}

.btn-bybit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
}

.btn-copy-code {
  flex-shrink: 0;
}

/* ============================================================================
   Interactive Modal Styles
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}

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

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

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.modal-subtitle {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.unlock-benefit-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.benefit-check {
  color: var(--accent-green);
  font-weight: bold;
}

.payment-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pay-option-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.pay-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pay-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.ton-badge {
  background: rgba(0, 152, 234, 0.15);
  color: #0098ea;
  border: 1px solid rgba(0, 152, 234, 0.4);
}

.stars-badge {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

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

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

.copy-address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  gap: 8px;
  margin-bottom: 8px;
}

.wallet-address-text {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

.ton-deep-link-row {
  display: flex;
  justify-content: flex-start;
}

.stars-action-row {
  margin-top: 6px;
}

.btn-telegram-stars {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1a1600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.verify-tx-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.verify-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.verify-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input-control {
  flex: 1;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
}

.input-control:focus {
  border-color: var(--accent-cyan);
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  gap: 12px;
}

.modal-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Unlocked Playbook Viewer */
.modal-unlocked-body {
  padding: 20px;
}

.unlocked-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.unlocked-tag {
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 700;
}

.playbook-content-scroll {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

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

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

.playbook-content-scroll ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.playbook-content-scroll code {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ============================================================================
   Toast Notification Box
   ============================================================================ */
.toast-box {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.toast-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================================================
   Sticky Bottom CTA Bar
   ============================================================================ */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sticky-lightning {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.sticky-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sticky-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1600;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s;
  white-space: nowrap;
}

.sticky-btn:hover {
  transform: translateY(-1px);
}

.sticky-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.sticky-close:hover {
  color: #fff;
}

/* ============================================================================
   Portal Footer & Disclaimer
   ============================================================================ */
.portal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.portal-backlink-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

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

.portal-divider {
  color: var(--text-muted);
}

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

.portal-disclaimer {
  max-width: 880px;
  margin: 0 auto;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.55;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
}

/* ============================================================================
   Print Media Query
   ============================================================================ */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }

  .header-actions,
  .quick-samples-bar,
  .export-toolbar-card,
  .monetization-grid,
  .sticky-cta-bar,
  .clear-btn,
  .modal-backdrop,
  .toast-box {
    display: none !important;
  }

  .hud-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .score-number,
  .account-name,
  .kd-val,
  .big-val-num {
    color: #000 !important;
  }
}
