:root {
  --bg: #07090c;
  --surface: rgba(17, 20, 24, 0.85);
  --surface-solid: #111418;
  --border: rgba(30, 37, 48, 0.8);
  --border2: rgba(42, 52, 69, 0.7);
  --text: #d6e2f0;
  --text-secondary: #8a9bb5;
  --muted: #4a6080;
  --accent: #00e5ff;
  --accent2: #6c5ce7;
  --green: #00e676;
  --red: #ff1744;
  --orange: #ff9100;
  --yellow: #ffd600;
  --purple: #d500f9;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Barlow', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.04);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  padding: 1.5rem 1rem 8rem;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0, 229, 255, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 80% 60%, rgba(108, 92, 231, 0.04) 0%, transparent 60%);
  line-height: 1.6;
}

::selection { background: rgba(0, 229, 255, 0.25); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Header / Branding ── */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem 0.3rem 0.6rem;
  border-radius: 99px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.logo-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.header h1 {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.25));
}
.header h1 span { opacity: 0.7; }
.header p {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  gap: 0.25rem;
}
.tab-btn {
  padding: 0.6rem 1.3rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.02); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(0,229,255,0.04); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Cards (Glassmorphism) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  border-top: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-top {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border) !important;
  margin-top: 1.5rem;
  border-top: 1px solid var(--glass-border) !important;
}
.card-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

/* ── Form Elements ── */
textarea, input[type=text], input[type=password] {
  width: 100%;
  background: rgba(13, 16, 23, 0.8);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea {
  height: 150px;
  line-height: 1.7;
  resize: vertical;
  font-size: 0.78rem;
}
textarea:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}
textarea::placeholder, input::placeholder { color: var(--muted); }

/* ── Upload area ── */
.upload-area {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}
.upload-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-color: var(--border2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  border-radius: 6px;
}

/* ── Controls Bar ── */
.controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

/* ── Progress ── */
.progress-bar-wrap {
  flex: 1;
  min-width: 180px;
  height: 6px;
  background: rgba(13, 16, 23, 0.8);
  border-radius: 99px;
  overflow: hidden;
  display: none;
  border: 1px solid var(--border2);
  position: relative;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
  position: relative;
}
.progress-bar.indeterminate {
  width: 30%;
  animation: indeterminate 1.5s ease-in-out infinite;
}
@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.progress-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* ── Summary Stats ── */
.summary-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.stat-item {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.stat-item .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
}
.stat-item .num.green { color: var(--green); }
.stat-item .num.red { color: var(--red); }
.stat-item .num.orange { color: var(--orange); }
.stat-item .num.accent { color: var(--accent); }
.stat-divider {
  width: 1px;
  height: 14px;
  background: var(--border2);
  margin: 0 0.25rem;
}

/* ── Filter Chips ── */
.filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.filter-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
  text-transform: uppercase;
}
.chip {
  padding: 0.28rem 0.75rem;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border2);
  color: var(--muted);
  background: transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.chip[data-filter="all"]         { --c: var(--accent); }
.chip[data-filter="active"]      { --c: var(--green); }
.chip[data-filter="checking"]    { --c: var(--accent); }
.chip[data-filter="invalid"]     { --c: var(--orange); }
.chip[data-filter="unauthorized"] { --c: var(--yellow); }
.chip[data-filter="unreachable"] { --c: var(--purple); }
.chip[data-filter="error"]       { --c: var(--red); }
.chip.active {
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  border-color: var(--c);
}
.chip .dot { background: var(--c); }
.chip .count {
  background: color-mix(in srgb, var(--c) 20%, transparent);
  color: var(--c);
  border-radius: 99px;
  padding: 0 0.35rem;
  font-size: 0.65rem;
  font-family: var(--mono);
}

/* ── Results Header ── */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* ── Result Items ── */
#results-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.result-item {
  background: rgba(13, 16, 23, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  animation: fadeIn 0.25s ease;
  transition: border-color 0.2s, background 0.2s;
}
.result-item:hover {
  border-color: var(--border2);
  background: rgba(13, 16, 23, 0.9);
}
.result-item.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.result-icon { font-size: 1rem; line-height: 1; }
.result-body { min-width: 0; }
.result-url {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-msg {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  font-family: var(--sans);
}
.result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  white-space: nowrap;
}
.badge {
  font-family: var(--mono);
  font-size: 0.63rem;
  padding: 0.12rem 0.5rem;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meta-time {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.badge-active       { background: rgba(0,230,118,.12); color: var(--green);  border: 1px solid rgba(0,230,118,.25); }
.badge-checking     { background: rgba(0,229,255,.10); color: var(--accent); border: 1px solid rgba(0,229,255,.2); animation: pulse 1s infinite; }
.badge-invalid      { background: rgba(255,145,0,.10); color: var(--orange); border: 1px solid rgba(255,145,0,.25); }
.badge-unauthorized { background: rgba(255,214,0,.10); color: var(--yellow); border: 1px solid rgba(255,214,0,.25); }
.badge-unreachable  { background: rgba(213,0,249,.10); color: var(--purple); border: 1px solid rgba(213,0,249,.25); }
.badge-error, .badge-failed, .badge-not_found { background: rgba(255,23,68,.10); color: var(--red); border: 1px solid rgba(255,23,68,.25); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Skeleton Loader ── */
.skeleton {
  background: rgba(42, 52, 69, 0.3);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
  background-image: linear-gradient(90deg, rgba(42, 52, 69, 0.3) 0%, rgba(60, 74, 98, 0.3) 50%, rgba(42, 52, 69, 0.3) 100%);
  background-size: 200% 100%;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1rem;
  align-items: center;
}
.skeleton .s-icon { width: 24px; height: 24px; border-radius: 50%; }
.skeleton .s-line { height: 14px; width: 60%; }
.skeleton .s-line-short { height: 12px; width: 30%; }
.skeleton .s-badge { height: 18px; width: 70px; border-radius: 99px; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  display: none;
}
.empty-state .empty-icon {
  margin: 0 auto 1rem;
  width: 56px;
  height: 56px;
  opacity: 0.25;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.empty-state h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.empty-state p {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── Dropdown ── */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: var(--surface-solid);
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 100;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.dropdown-content a {
  color: var(--text);
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: rgba(0, 229, 255, 0.08); color: var(--accent); }
.dropdown:hover .dropdown-content { display: block; }

/* ── Ads ── */
.ad-container {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ad-fallback {
  display: none;
  padding: 1rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.85rem;
  background: rgba(0, 229, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.1);
}
.adblock-detected .ad-fallback,
.ad-container:has(.ads-js-content:empty) .ad-fallback,
.ad-container:has(.ads-js-content[style*="display: none"]) .ad-fallback,
.sticky-bottom-ad:has(.ads-js-content:empty) .ad-fallback {
  display: block;
}
.adblock-detected .ads-js-content { display: none; }
.ad-label {
  font-family: var(--sans);
  font-size: 0.55rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  letter-spacing: 0.12em;
}

/* ── Sticky Bottom Ad ── */
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(17, 20, 24, 0.95);
  border-top: 1px solid var(--border);
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sticky-bottom-ad .close-btn {
  position: absolute;
  top: 4px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}
.sticky-bottom-ad .close-btn:hover { color: var(--text); }

/* ── Sticky Sidebar Ad ── */
.sticky-sidebar {
  position: fixed;
  top: 2rem;
  right: 1rem;
  width: 160px;
  z-index: 9998;
}
@media (max-width: 1200px) { .sticky-sidebar { display: none; } }

/* ── Adblock Overlay ── */
.adblock-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  color: white;
  z-index: 10001;
  text-align: center;
  padding-top: 12%;
  font-family: var(--sans);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.adblock-overlay.active { display: block; }
.adblock-overlay h2 {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.adblock-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}
.adblock-overlay button {
  padding: 0.7rem 2rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  transition: box-shadow 0.2s;
}
.adblock-overlay button:hover { box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }

/* ── Popup Ad ── */
.popup-ad {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.popup-ad.show { display: block; }
.popup-ad .close-btn {
  position: absolute; top: 5px; right: 10px;
  background: transparent; border: none;
  color: var(--muted); font-size: 1.2rem;
  cursor: pointer;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  pointer-events: none;
}
.toast {
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--accent); }
.toast .toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(100%) scale(0.9); } }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--text-secondary);
}
.footer-copy {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body { padding: 1rem 0.75rem 7rem; }
  .card { padding: 1rem; }
  .controls { flex-direction: column; align-items: stretch; }
  .controls .btn { justify-content: center; }
  .progress-bar-wrap { min-width: unset; }
  .result-item { grid-template-columns: auto 1fr; }
  .result-meta { flex-direction: row; grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .filter-bar { gap: 0.3rem; }
  .chip { font-size: 0.68rem; padding: 0.22rem 0.6rem; }
  .summary-stats { gap: 0.3rem; font-size: 0.68rem; }
  .stat-divider { display: none; }
  .header h1 { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .footer-links { gap: 1rem; }
  .dropdown-content { right: auto; left: 0; }
}

@media (max-width: 480px) {
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn { padding: 0.5rem 0.9rem; font-size: 0.72rem; white-space: nowrap; }
  .btn { font-size: 0.75rem; padding: 0.5rem 1rem; }
  .result-url { font-size: 0.7rem; }
  .badge { font-size: 0.58rem; }
  .sticky-bottom-ad { padding: 0.35rem; }
  .logo-badge { font-size: 0.55rem; }
}

/* ── Loading overlay during scan ── */
.scanning-overlay {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text);
  display: none;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.scanning-overlay.show { display: flex; }
.scanning-overlay .spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Copy button inline ── */
.copy-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  color: var(--muted);
  padding: 0.1rem 0.45rem;
  font-size: 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  transition: all 0.15s;
  line-height: 1.6;
}
.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
}
