/* DeadCoinRecycle Pro - All-Chain Dead Token & Rugged Memecoin Tax-Loss Harvester */
/* Modern Dark Mode Cyber Forensic Design System */

:root {
  --bg-dark: #070a12;
  --bg-card: #0d1322;
  --bg-card-hover: #131b2e;
  --bg-card-subtle: #111a2f;
  --border-subtle: #1f293d;
  --border-highlight: #334155;
  --border-glow: rgba(239, 68, 68, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --neon-crimson: #ef4444;
  --neon-crimson-glow: rgba(239, 68, 68, 0.25);
  --neon-emerald: #10b981;
  --neon-emerald-glow: rgba(16, 185, 129, 0.2);
  --neon-amber: #f59e0b;
  --neon-cyan: #06b6d4;
  --neon-solana: #a855f7;
  --neon-bybit: #f7a600;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(239, 68, 68, 0.15);
}

*, *::before, *::after {
  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;
}

/* Mandatory CSS 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;
}

/* Helper Utilities */
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-crimson { color: var(--neon-crimson); }
.text-emerald { color: var(--neon-emerald); }
.text-amber { color: var(--neon-amber); }
.text-cyan { color: var(--neon-cyan); }
.text-muted { color: var(--text-muted); }

/* Terminal Container */
.terminal-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

/* Header & Brand */
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  gap: 16px;
}

.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, #1e1b4b, #3b0764);
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-crimson);
  box-shadow: 0 0 8px var(--neon-crimson);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

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

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

.brand-version {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.15);
  color: var(--neon-crimson);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.brand-net {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.feed-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 6px var(--neon-emerald);
}

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

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

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

.lang-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Affiliate Hero Banner (Bybit Web3) */
.affiliate-hero-section {
  position: relative;
  background: linear-gradient(135deg, #101628 0%, #171d33 100%);
  border: 1px solid rgba(247, 166, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

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

.affiliate-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: center;
}

.aff-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #f7a600;
  background: rgba(247, 166, 0, 0.1);
  border: 1px solid rgba(247, 166, 0, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aff-hero-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.bybit-card {
  position: relative;
  background: rgba(13, 19, 34, 0.85);
  border: 1px solid rgba(247, 166, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bybit-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

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

.bybit-logo {
  font-size: 24px;
}

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

.bybit-sub {
  font-size: 11px;
  color: #94a3b8;
}

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

.bybit-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.code-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(247, 166, 0, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  gap: 6px;
}

.code-label {
  color: #94a3b8;
}

.code-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #f7a600;
}

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

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

.btn-bybit-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7a600, #e08e00);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bybit-cta:hover {
  box-shadow: 0 0 15px rgba(247, 166, 0, 0.4);
  transform: translateY(-1px);
}

/* Sections Common Header */
.section-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

/* Scanner Section */
.scanner-section {
  margin-bottom: 24px;
}

.scanner-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.scanner-form {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cyber-select, .cyber-input {
  width: 100%;
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  transition: all 0.2s ease;
}

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

.cyber-select:focus, .cyber-input:focus {
  border-color: var(--neon-crimson);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.input-action-group {
  display: flex;
  gap: 10px;
}

.btn-scan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.btn-scan:hover {
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.btn-scan:active {
  transform: translateY(0);
}

/* Sample Wallets Bar */
.samples-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

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

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

.btn-sample {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111a2f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 11.5px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sample:hover {
  background: #18233f;
  border-color: var(--border-highlight);
  color: #fff;
}

.btn-sample.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--neon-crimson);
  color: #fff;
}

/* Scan Progress Console */
.scan-progress-box {
  margin-top: 16px;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.scan-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #162038;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width 0.3s ease;
}

.scan-console {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a5b4fc;
  height: 70px;
  overflow-y: auto;
  line-height: 1.6;
}

.console-line {
  display: block;
}

/* Metrics HUD Section */
.metrics-hud-section {
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

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

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

.m-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

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

/* Tax Config Section */
.tax-config-section {
  margin-bottom: 24px;
}

.irs-code-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tax-config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.tax-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.param-box {
  display: flex;
  flex-direction: column;
}

.param-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tax-summary-pill-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.tax-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.pill-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

/* Audit Table Section */
.audit-table-section {
  margin-bottom: 24px;
}

.table-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-secondary-mini {
  background: #111a2f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-mini:hover {
  background: #18233f;
  color: #fff;
}

.btn-danger-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-action:hover {
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Filters Bar */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
}

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

.filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.filter-chips {
  display: flex;
  gap: 4px;
}

.filter-chip {
  background: #111a2f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: #fff;
}

.filter-chip.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.cyber-select-mini {
  background: #111a2f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 11.5px;
  padding: 4px 8px;
  outline: none;
}

.search-box-wrap {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
}

.search-input-mini {
  width: 100%;
  background: #111a2f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 11.5px;
  padding: 5px 10px;
  outline: none;
}

.search-input-mini:focus {
  border-color: var(--neon-cyan);
}

/* Table Container & Table Styles */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

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

.dead-table th {
  background: #090e1c;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.dead-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.dead-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.th-chk {
  width: 36px;
  text-align: center;
}

.td-chk {
  text-align: center;
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.token-symbol {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

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

/* Network Badges */
.badge-net {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.net-solana {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.net-ethereum {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.net-base {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.net-arbitrum {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Rug Diagnosis Badges */
.badge-rug {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.rug-lp {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rug-honey {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rug-mint {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.rug-abandoned {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.rug-blacklisted {
  background: rgba(185, 28, 28, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(185, 28, 28, 0.5);
}

.rug-ghost {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Contract Cell */
.contract-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.contract-code {
  color: var(--text-dim);
}

.contract-link {
  color: var(--neon-cyan);
  text-decoration: none;
}

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

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-dead {
  background: rgba(239, 68, 68, 0.2);
  color: var(--neon-crimson);
}

.status-burned {
  background: rgba(245, 158, 11, 0.2);
  color: var(--neon-amber);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

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

.empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Table Footer Bar */
.table-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.subtotal-label {
  color: var(--text-muted);
  margin-right: 6px;
}

.subtotal-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--neon-crimson);
}

/* Export Center Section */
.export-center-section {
  margin-bottom: 24px;
}

.audit-stamp-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.export-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.export-card.pro-card {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #12192e 0%, #171d33 100%);
}

.pro-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.export-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

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

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

.export-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-export-pri {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-export-pri:hover {
  background: #1d4ed8;
}

.btn-export-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-export-sec:hover {
  background: #334155;
}

.pro-pricing-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 14px;
}

.pro-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--neon-amber);
}

.pro-dest {
  font-size: 10.5px;
  color: var(--text-dim);
}

.btn-unlock-pro {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
}

.btn-unlock-pro:hover {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* Educational Blueprint & FAQ */
.blueprint-section {
  margin-bottom: 24px;
}

.bp-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.bp-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

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

.bp-card-h {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.bp-card-p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-highlight);
}

.faq-q {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  font-size: 16px;
  color: var(--neon-cyan);
  font-weight: 700;
}

.faq-item[open] .faq-q::after {
  content: '−';
}

.faq-a {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
}

/* Bottom VIP Partner Card */
.partner-card {
  position: relative;
  background: linear-gradient(135deg, #101628 0%, #151d36 100%);
  border: 1px solid rgba(247, 166, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.partner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(247, 166, 0, 0.1), transparent 70%);
  pointer-events: none;
}

.partner-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

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

.p-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.p-badge.safe {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.p-badge.bybit {
  background: rgba(247, 166, 0, 0.15);
  color: #f7a600;
  border: 1px solid rgba(247, 166, 0, 0.3);
}

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

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

.ref-cta-box {
  background: rgba(13, 19, 34, 0.9);
  border: 1px solid rgba(247, 166, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}

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

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

.ref-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #f7a600;
}

.btn-partner-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7a600, #d97706);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-partner-launch:hover {
  box-shadow: 0 0 16px rgba(247, 166, 0, 0.4);
  transform: translateY(-1px);
}

/* Portal Backlink & Prominent Disclaimer */
.portal-backlink-wrap {
  text-align: center;
  padding: 16px 0 10px;
  font-size: 12px;
}

.portal-backlink {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

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

.portal-sub {
  color: var(--text-dim);
  margin-left: 6px;
}

.portal-disclaimer {
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.6;
  text-align: center;
  margin-top: 14px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid var(--neon-emerald);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 10000;
}

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

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.modal-container {
  background: #0d1322;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal-container {
  max-width: 900px;
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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

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

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

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

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

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

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #090e1c;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.btn-secondary {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-secondary:hover {
  background: #334155;
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* Printable Certificate Inside Modal */
.cert-document {
  background: #ffffff;
  color: #0f172a;
  border: 3px double #334155;
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 20px;
  gap: 16px;
}

.cert-emblem {
  font-size: 40px;
}

.cert-heading-wrap {
  flex: 1;
  text-align: center;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #475569;
}

.cert-main-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin: 4px 0;
}

.cert-subtitle {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

.cert-seal {
  width: 72px;
  height: 72px;
  border: 2px dashed #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 8px;
  color: #dc2626;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.cert-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 11.5px;
}

.c-meta-label {
  font-weight: 700;
  color: #475569;
  margin-right: 6px;
}

.c-meta-val {
  color: #0f172a;
  font-weight: 600;
}

.cert-table-wrap {
  margin-bottom: 20px;
  overflow-x: auto;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.cert-table th {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.cert-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  color: #1e293b;
}

.cert-total-row td {
  background: #f8fafc;
  border-top: 2px solid #0f172a;
  font-weight: 700;
}

.cert-affidavit {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px;
  margin-bottom: 24px;
}

.affidavit-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.affidavit-text {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.5;
  text-align: justify;
}

.cert-signatures {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 10px;
}

.sig-block {
  flex: 1;
}

.sig-line {
  border-bottom: 1px solid #0f172a;
  margin-bottom: 6px;
  height: 24px;
}

.sig-title {
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
}

.sig-sub {
  font-size: 9.5px;
  color: #64748b;
}

.sig-stamp {
  font-size: 10px;
  font-weight: 800;
  color: #16a34a;
  border: 1px solid #16a34a;
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 4px;
}

/* Unlock Pro Modal Flow */
.unlock-banner {
  display: flex;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

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

.u-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-amber);
  margin-bottom: 4px;
}

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

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.pay-method-card {
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

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

.pay-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.pay-cost {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.pay-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ton-address-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 10px;
}

.ton-addr {
  font-size: 10.5px;
  color: #38bdf8;
  word-break: break-all;
  flex: 1;
}

.qr-mockup {
  background: #111a2f;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-code-icon {
  font-size: 24px;
}

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

.btn-tg-stars {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 12px;
}

.unlock-perks-list {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tx-verify-box {
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.tx-input-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-verify-unlock {
  background: #2563eb;
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.unlock-status-msg {
  font-size: 12px;
  margin-top: 8px;
}

/* Burn Simulator Modal Flow */
.burn-alert {
  display: flex;
  gap: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
}

.burn-alert-icon {
  font-size: 20px;
}

.burn-details-box {
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 6px;
}

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

.btn-execute-burn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.burn-result-box {
  margin-top: 16px;
  background: #060913;
  border: 1px solid var(--neon-emerald);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.burn-success-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-emerald);
  margin-bottom: 8px;
}

.burn-receipt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .affiliate-hero-content {
    grid-template-columns: 1fr;
  }
  .scanner-form {
    grid-template-columns: 1fr;
  }
  .partner-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .terminal-container {
    padding: 10px 12px 36px;
  }
  .terminal-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }
  .header-right {
    justify-content: space-between;
  }
  .feed-status {
    font-size: 10.5px;
  }
  .input-action-group {
    flex-direction: column;
  }
  .btn-scan {
    width: 100%;
  }
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    justify-content: space-between;
  }
  .search-box-wrap {
    max-width: 100%;
  }
  .table-actions-right {
    width: 100%;
    justify-content: flex-start;
  }
  .cert-meta-grid {
    grid-template-columns: 1fr;
  }
  .cert-signatures {
    flex-direction: column;
    gap: 20px;
  }
}

/* PRINT MEDIA STYLES - Crisp, pure white court/CPA-ready official document */
@media print {
  body * {
    visibility: hidden;
  }
  #certModalOverlay,
  #certModalOverlay * {
    visibility: visible;
  }
  #certModalOverlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent !important;
    padding: 0;
    backdrop-filter: none;
    display: block !important;
  }
  .modal-container {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .modal-header,
  .modal-footer {
    display: none !important;
  }
  .modal-body {
    padding: 0 !important;
    overflow: visible !important;
  }
  .cert-document {
    border: 2px solid #000 !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
  }
}
