/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #e8ecf1;
  --card-bg: #fff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --input-bg: #fff;
  --tag-bg: #2d3748;
  --header-from: #3d4f6f;
  --header-to: #5a6f8e;
  --line-num-bg: #f8fafc;
  --line-num-text: #94a3b8;
  --cookie-bg: #f8fafc;
  --results-bg: #fff;
  --hover-bg: rgba(0,0,0,0.02);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --status-live: #16a34a;
  --status-disabled: #dc2626;
  --status-verify: #d97706;
  --status-unreg: #6b7280;
  --status-error: #ef4444;
}

body.dark {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #a8b8c8;
  --border: #334155;
  --border-light: #334155;
  --input-bg: #0f172a;
  --tag-bg: #0f172a;
  --header-from: #1e293b;
  --header-to: #334155;
  --line-num-bg: #162032;
  --line-num-text: #475569;
  --cookie-bg: #162032;
  --results-bg: #0f172a;
  --hover-bg: rgba(255,255,255,0.03);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 16px;
  transition: background 0.3s, color 0.3s;
}

/* ===== Main Card ===== */
.card {
  width: 100%;
  max-width: 960px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: fit-content;
  transition: background 0.3s, box-shadow 0.3s;
}

/* ===== Header Bar ===== */
.header {
  background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header h1 {
  color: #c8d6e5;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.header h1 strong {
  color: #fff;
  font-weight: 800;
}

.header-badge {
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-top: -8px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* WS Status indicator */
.ws-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  align-self: center;
  transition: background 0.3s;
}
.ws-status.connected { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.ws-status.disconnected { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.ws-status.low-cookie { background: #d97706; box-shadow: 0 0 6px rgba(217,119,6,0.5); }
.ws-status.no-cookie { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }

.dark-mode-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.dark-mode-btn:hover { background: rgba(255,255,255,0.25); }

/* ===== Lang Toggle Button ===== */
.lang-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.25); }

/* ===== Card Body ===== */
.card-body {
  padding: 24px 32px 32px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== Section Labels (pentagon arrow tag) ===== */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  color: #fff;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 30px 9px 20px;
  clip-path: polygon(10px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 10px 100%, 0 50%);
  white-space: nowrap;
}

.tag-icon-btn {
  background: none;
  border: none;
  color: #f59e0b;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.tag-icon-btn:hover { color: #fbbf24; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

/* ===== Editor (Input area) ===== */
.editor-wrapper {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  height: 280px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.3s;
  position: relative;
}

.editor-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.editor-wrapper.drag-over {
  border-color: #22c55e;
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

.drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(34,197,94,0.08);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #22c55e;
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
  border-radius: 8px;
}

.editor-wrapper.drag-over .drop-overlay {
  display: flex;
}

.line-numbers {
  background: var(--line-num-bg);
  color: var(--line-num-text);
  padding: 12px 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  min-width: 44px;
  user-select: none;
  overflow: hidden;
  border-right: 1px solid var(--border-light);
  white-space: pre;
  transition: background 0.3s;
}

#emailInput {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  overflow-y: auto;
  white-space: pre;
  word-wrap: normal;
  color: var(--text);
  background: var(--input-bg);
  transition: background 0.3s, color 0.3s;
}

#emailInput::placeholder { color: var(--line-num-text); }

/* ===== Controls ===== */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.toggle-wrapper input { display: none; }

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.toggle-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-wrapper input:checked + .toggle-track { background: #2563eb; }
.toggle-wrapper input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }

.toggle-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.lightning { color: #f59e0b; font-size: 13px; }

/* Check Button */
.check-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  padding: 14px 72px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}
.check-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34,197,94,0.4);
}
.check-btn:active { transform: translateY(0); }
.check-btn.checking {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.check-btn.checking:hover {
  box-shadow: 0 6px 16px rgba(239,68,68,0.4);
}

/* ===== Progress ===== */
.progress-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px;
}

.progress-center {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.progress-time {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Results Section ===== */
.results-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

/* Badges (outlined pill style) */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid;
  background: var(--card-bg);
}
.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.badge.active { color: #fff !important; }

.badge-total { border-color: #3b82f6; color: #3b82f6; }
.badge-total.active { background: #3b82f6; }
.badge-live { border-color: #22c55e; color: #22c55e; }
.badge-live.active { background: #22c55e; }
.badge-disabled { border-color: #ef4444; color: #ef4444; }
.badge-disabled.active { background: #ef4444; }
.badge-verify { border-color: #f59e0b; color: #f59e0b; }
.badge-verify.active { background: #f59e0b; }
.badge-unreg { border-color: #6b7280; color: #6b7280; }
.badge-unreg.active { background: #6b7280; }
.badge-error { border-color: #dc2626; color: #dc2626; }
.badge-error.active { background: #dc2626; }

/* Search */
.results-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--cookie-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.results-search svg { color: var(--line-num-text); flex-shrink: 0; }

#searchInput {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  font-family: 'Consolas', monospace;
}
#searchInput::placeholder { color: var(--line-num-text); }

/* Results List */
.results-wrapper { position: relative; }

.results-list {
  background: var(--results-bg);
  border: 2px dashed #22c55e;
  border-radius: 10px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  overflow-anchor: none;
  padding: 0;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1;
  transition: background 0.3s;
}

.results-list::-webkit-scrollbar { width: 6px; }
.results-list::-webkit-scrollbar-track { background: transparent; }
.results-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Result items - table style */
.result-item {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border-light);
  gap: 0;
  transition: background 0.1s;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: var(--hover-bg); }

.result-item .result-index {
  color: var(--line-num-text);
  font-size: 11px;
  min-width: 40px;
  text-align: right;
  padding-right: 12px;
}

.result-item .status-tag {
  font-weight: 700;
  min-width: 110px;
  font-size: 12px;
}

.result-item .result-email {
  flex: 1;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-item.live .status-tag { color: var(--status-live); }
.result-item.disabled .status-tag { color: var(--status-disabled); }
.result-item.die .status-tag { color: var(--status-disabled); }
.result-item.verify .status-tag { color: var(--status-verify); }
.result-item.unregistered .status-tag { color: var(--status-unreg); }
.result-item.error .status-tag { color: var(--status-error); }
.result-item.unknown .status-tag { color: var(--status-unreg); }

/* Empty state */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--line-num-text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Scroll to bottom */
.scroll-bottom-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 20px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 5;
}
.scroll-bottom-btn:hover {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

/* Results actions */
.results-actions {
  position: absolute;
  right: 16px;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.action-btn:hover {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

/* ===== Stats Chart ===== */
.stats-chart {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  background: var(--cookie-bg);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: background 0.3s;
}

.stats-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-value {
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: auto;
  padding-left: 16px;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.warning { background: #d97706; }
.toast.info { background: #2563eb; }

.toast.fade-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ===== Fast Check Mode ===== */
body.fast-mode .badge-verify,
body.fast-mode .badge-unreg {
  display: none;
}

/* ===== Scrollbar (editor) ===== */
#emailInput::-webkit-scrollbar { width: 6px; }
#emailInput::-webkit-scrollbar-track { background: transparent; }
#emailInput::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== Responsive ===== */
@media (max-width: 768px) and (min-width: 641px) {
  .card-body { padding: 20px 24px; }
  .controls { gap: 16px; }
  .stats-chart { gap: 16px; }
  .result-item .status-tag { min-width: 90px; }
}

@media (max-width: 640px) {
  body { padding: 12px 8px; }
  .card-body { padding: 16px; }
  .header { padding: 16px 20px; }
  .header h1 { font-size: 22px; }
  .controls { flex-direction: column; gap: 16px; }
  .check-btn { width: 100%; padding: 14px 0; }
  .badges { justify-content: center; }
  .results-header { flex-direction: column; align-items: flex-start; }
  .results-actions { right: 8px; top: 8px; }
  .stats-chart { flex-direction: column; align-items: center; }
  .seo-features { grid-template-columns: 1fr; }
}

/* ===== SEO Section ===== */
.seo-section {
  max-width: 780px;
  margin: 32px auto 0;
  padding: 0 16px 40px;
}

.seo-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Feature cards */
.seo-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.seo-feature {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.seo-feature-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.seo-feature h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.seo-feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Status guide */
.seo-status-guide h2,
.seo-faq h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.seo-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
}

.seo-status-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.seo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

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

.faq-item p {
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* ===== Fast Check Tooltip ===== */
.fast-check-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.fast-check-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  white-space: nowrap;
  z-index: 100;
}
.fast-check-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-light);
}
/* transparent bridge to prevent gap-flicker */
.fast-check-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.fct-row { padding: 1px 0; }
.fct-muted { color: var(--text-secondary); font-size: 11.5px; }
.fct-sep { border-top: 1px solid var(--border-light); margin: 6px 0; }

/* ===== Promo Shared Buttons ===== */
.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.promo-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.promo-btn-primary {
  background: #22c55e;
  color: #fff;
}
.promo-btn-tg {
  background: #29b6f6;
  color: #fff;
}

/* ===== Option A: Contextual Banner ===== */
.promo-banner {
  display: none;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(41,182,246,0.08) 100%);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  position: relative;
  animation: promo-slide-in 0.3s ease;
}
@keyframes promo-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.promo-banner-icon { font-size: 28px; flex-shrink: 0; }
.promo-banner-body { flex: 1; min-width: 0; }
.promo-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.promo-banner-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.promo-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== Option B: Floating CTA ===== */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.float-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #29b6f6;
  color: #fff;
  box-shadow: 0 4px 16px rgba(41,182,246,0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-cta-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(41,182,246,0.6);
}
.float-cta-tooltip {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: 180px;
  text-align: right;
}
.float-cta:hover .float-cta-tooltip { display: block; }

/* ===== Option C: Static Promo Section ===== */
.promo-section {
  width: 100%;
  max-width: 960px;
  margin-top: 16px;
}
.promo-section-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(34,197,94,0.07) 0%, rgba(41,182,246,0.07) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
}
.promo-section-icon { font-size: 32px; flex-shrink: 0; }
.promo-section-text { flex: 1; min-width: 0; }
.promo-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.promo-section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.promo-section-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== Knowledge Section ===== */
.knowledge-section {
  margin-top: 20px;
}
.knowledge-item {
  background: var(--cookie-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 24px;
  transition: background 0.3s;
}
.knowledge-item summary {
  cursor: pointer;
  list-style: none;
}
.knowledge-item summary::-webkit-details-marker { display: none; }
.knowledge-item summary h2 {
  display: inline;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.knowledge-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
}
.knowledge-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 6px 0;
}
.knowledge-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.knowledge-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}
.knowledge-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 11px;
}
.knowledge-list--green li::before {
  content: '✓';
  color: #16a34a;
}
.knowledge-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}
.knowledge-table th,
.knowledge-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.knowledge-table th {
  background: var(--hover-bg);
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
}
.knowledge-table td {
  color: var(--text-secondary);
}
.knowledge-verdict {
  font-size: 13px;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(34,197,94,0.08);
  border-left: 3px solid #22c55e;
  border-radius: 0 8px 8px 0;
  margin: 12px 0 0;
}
.knowledge-cta {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  margin-top: 12px;
}
.promo-section + .promo-section { margin-top: 12px; }

/* ===== Responsive promo ===== */
@media (max-width: 640px) {
  .promo-banner { flex-wrap: wrap; }
  .promo-banner-actions { width: 100%; }
  .promo-section-inner { flex-direction: column; text-align: center; }
  .promo-section-actions { justify-content: center; }
  .float-cta { bottom: 16px; right: 16px; }
  .knowledge-item { padding: 14px 16px; }
  .knowledge-table { font-size: 12px; }
  .knowledge-table th, .knowledge-table td { padding: 6px 8px; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.footer-contact {
  margin-top: 6px;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  color: #29b6f6 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: opacity 0.2s;
}

.tg-link:hover {
  opacity: 0.8;
}

/* ===== Nav Tabs ===== */
.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}
.nav-tab {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.nav-tab:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}
.nav-tab.active {
  color: #fff;
  background: #22c55e;
  border-color: #22c55e;
}

/* ===== Proxy-specific badge colors ===== */
.badge-dead { border-color: #ef4444; color: #ef4444; }
.badge-dead.active { background: #ef4444; }
.badge-timeout { border-color: #f59e0b; color: #f59e0b; }
.badge-timeout.active { background: #f59e0b; }
/* ===== Proxy result status tag colors ===== */
.result-item.dead .status-tag { color: var(--status-disabled); }
.result-item.timeout .status-tag { color: var(--status-verify); }

/* ===== Proxy public IP inline display ===== */
.proxy-public-ip {
  margin-left: auto;
  padding-right: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Proxy response time ===== */
.proxy-ms {
  padding-right: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===== Proxy table grid columns ===== */
.proxy-table-header {
  display: grid;
  grid-template-columns: 40px 72px 1fr 120px 48px 80px 64px 68px;
  gap: 0;
  padding: 6px 14px;
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 2;
}
.proxy-table-header .ptc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.result-item .ptc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.result-item {
  display: grid !important;
  grid-template-columns: 40px 72px 1fr 120px 48px 80px 64px 68px;
}
.result-item .ptc-idx { color: var(--line-num-text); font-size: 11px; }
.result-item .ptc-proxy { font-family: Consolas, "Courier New", monospace; color: var(--text); }
.result-item .ptc-ip { font-family: monospace; color: var(--text-secondary); font-size: 11px; }
.result-item .ptc-city { color: var(--text-secondary); font-size: 11px; }
.result-item .ptc-country { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.result-item .ptc-ms { color: var(--text-secondary); font-size: 11px; font-family: monospace; text-align: right; }

@media (max-width: 768px) {
  .proxy-table-header,
  .result-item { grid-template-columns: 32px 60px 1fr 100px 48px 40px 52px; }
  .result-item .ptc-city, .proxy-table-header .ptc-city { display: none; }
}
@media (max-width: 480px) {
  .proxy-table-header,
  .result-item { grid-template-columns: 28px 52px 1fr 48px 52px; }
  .result-item .ptc-city, .result-item .ptc-country, .result-item .ptc-ip,
  .proxy-table-header .ptc-city, .proxy-table-header .ptc-country, .proxy-table-header .ptc-ip { display: none; }
}

/* ===== Proxy Type Dropdown ===== */
.proxy-type-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
  text-align: center;
}
.proxy-type-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--input-bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  min-width: 180px;
}
.proxy-type-select:hover { border-color: #3b82f6; }
.proxy-type-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); outline: none; }
.proxy-type-select:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Dual mode: 9 columns ===== */
.dual-mode .proxy-table-header,
.dual-mode .result-item {
  grid-template-columns: 36px 64px 56px 1fr 120px 52px 80px 52px 64px;
}
.result-item .ptc-type { font-size: 11px; font-weight: 700; color: #3b82f6; text-transform: uppercase; }
.result-item .ptc-ipver { font-size: 11px; color: var(--text-secondary); font-family: monospace; }

@media (max-width: 768px) {
  .dual-mode .proxy-table-header,
  .dual-mode .result-item { grid-template-columns: 30px 56px 48px 1fr 100px 48px 40px 52px; }
  .dual-mode .ptc-city, .dual-mode .proxy-table-header .ptc-city { display: none; }
}
@media (max-width: 480px) {
  .dual-mode .proxy-table-header,
  .dual-mode .result-item { grid-template-columns: 28px 48px 44px 1fr 52px; }
  .dual-mode .ptc-city, .dual-mode .ptc-country, .dual-mode .ptc-ip, .dual-mode .ptc-ipver,
  .dual-mode .proxy-table-header .ptc-city, .dual-mode .proxy-table-header .ptc-country,
  .dual-mode .proxy-table-header .ptc-ip, .dual-mode .proxy-table-header .ptc-ipver { display: none; }
}

/* ===== Proxy input textarea ===== */
#proxyInput {
  flex: 1 1 0%;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  overflow-y: auto;
  white-space: pre;
  overflow-wrap: normal;
  color: var(--text);
  background: var(--input-bg);
  transition: background 0.3s, color 0.3s;
}
#proxyInput::placeholder { color: var(--line-num-text); }
#proxyInput::-webkit-scrollbar { width: 6px; }
#proxyInput::-webkit-scrollbar-track { background: transparent; }
#proxyInput::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
