/* ==========================================================================
   WONX CYBER PRIVACY SUITE — SHARED DESIGN SYSTEM
   dns.wonx.eu & blocklists.wonx.eu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Surface & Backgrounds */
  --bg-dark: #06090e;
  --bg-surface: #0a0f18;
  --bg-card: rgba(13, 20, 32, 0.72);
  --bg-card-hover: rgba(20, 31, 50, 0.88);
  --bg-elevated: #111a2c;
  --bg-glass-input: rgba(10, 16, 26, 0.8);

  /* Neon Cyber Palette */
  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --blue: #38bdf8;
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --indigo: #6366f1;
  --coral: #f43f5e;
  --coral-glow: rgba(244, 63, 94, 0.35);
  --amber: #f59e0b;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --border-cyan: rgba(0, 242, 254, 0.4);
  --border-emerald: rgba(16, 185, 129, 0.4);
  --border-purple: rgba(168, 85, 247, 0.4);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow-cyan: 0 0 30px rgba(0, 242, 254, 0.22);
  --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.22);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.22);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0d192e 0%, #06090e 70%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Cyber Grid Accent */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--blue);
}

code, pre {
  font-family: var(--font-mono);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   ECOSYSTEM TOP NAVIGATION BAR
   -------------------------------------------------------------------------- */
.topbar, .cyber-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(6, 9, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  transition: var(--transition);
}

.topbar-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 768px) {
  .topbar-content {
    flex-wrap: wrap;
    padding: 6px 14px;
    gap: 8px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

.brand-group, .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon, .brand-symbol {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  color: var(--cyan);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-group:hover .brand-icon,
.brand-logo:hover .brand-symbol {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.4);
}

.brand-icon svg, .brand-symbol svg {
  width: 22px;
  height: 22px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.brand-text span:first-child {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-text span:last-child {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Nav Links Pill Container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 20, 32, 0.7);
  border: 1px solid var(--border-glass);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
}

/* Topbar Right Controls */
.topbar-right, .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill, .status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-cyan);
  color: var(--cyan);
}


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

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

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding: 60px 0 35px;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: inline-flex;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--cyan) 65%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient-purple {
  background: linear-gradient(135deg, #ffffff 20%, var(--purple) 65%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 30px;
}

/* --------------------------------------------------------------------------
   CARDS & GLASSMORPHISM
   -------------------------------------------------------------------------- */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cyber-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
}

.cyber-card.glow-cyan:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.cyber-card.glow-emerald:hover {
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-glow-emerald);
}

.cyber-card.glow-purple:hover {
  border-color: var(--border-purple);
  box-shadow: var(--shadow-glow-purple);
}

/* --------------------------------------------------------------------------
   CYBER INPUTS & SELECTS
   -------------------------------------------------------------------------- */
.cyber-input, .cyber-select {
  width: 100%;
  background: rgba(10, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cyber-input:focus, .cyber-select:focus {
  border-color: var(--cyan);
  background: rgba(13, 22, 38, 0.95);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cyber-input::placeholder {
  color: var(--text-dim);
}

.cyber-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
}

.cyber-select option {
  background: #0a0f18;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   BUTTON SYSTEM
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #10b981 100%);
  color: #06090e;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(13, 20, 32, 0.6);
  border: 1px solid var(--border-glass-hover);
  color: var(--text-main);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   TABS SYSTEM
   -------------------------------------------------------------------------- */
.tab-wrapper {
  width: 100%;
}

.tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(13, 20, 32, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(16, 185, 129, 0.2));
  border-color: var(--border-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: cyberFadeIn 0.2s ease-out;
}

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

/* --------------------------------------------------------------------------
   ALERT BOXES
   -------------------------------------------------------------------------- */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}

.alert-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.alert-err {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

/* --------------------------------------------------------------------------
   STATS METRICS GRID
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 32px auto 0;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 242, 254, 0.15);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* --------------------------------------------------------------------------
   INTERACTIVE LIVE TESTER WIDGET
   -------------------------------------------------------------------------- */
.scanner-card {
  background: linear-gradient(145deg, rgba(16, 26, 44, 0.8), rgba(9, 14, 24, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 0 auto 50px;
  max-width: 820px;
  text-align: center;
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.scanner-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scan-btn {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06090e;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transition: var(--transition);
}

.scan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.scanner-display {
  background: rgba(6, 9, 14, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 15px;
  text-align: left;
}

.status-badge-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.status-badge-result.protected {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
}
.status-badge-result.unprotected {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
}
.status-badge-result.scanning {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   PILL TABS & CONTROLS
   -------------------------------------------------------------------------- */
.tab-nav {
  display: flex;
  gap: 8px;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

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

/* --------------------------------------------------------------------------
   CODE BLOCKS & COPY PILLS
   -------------------------------------------------------------------------- */
.code-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 10px 0;
  transition: var(--transition);
}

.code-pill-row:hover {
  border-color: var(--border-cyan);
}

.code-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cyan);
  word-break: break-all;
  user-select: all;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--border-cyan);
  color: #fff;
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--border-emerald);
  color: var(--emerald);
}

/* --------------------------------------------------------------------------
   GRID LAYOUTS
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

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

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

/* --------------------------------------------------------------------------
   TABLE STYLING
   -------------------------------------------------------------------------- */
.glass-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
}

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

.glass-table th {
  background: rgba(10, 16, 26, 0.9);
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.glass-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

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

/* --------------------------------------------------------------------------
   FLOATING TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(13, 20, 32, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--border-glass);
  background: rgba(6, 9, 14, 0.95);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .topbar-content {
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .scanner-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   WONX CYBER EXTENSIONS: PROFILES, QR, TERMINAL, BLOCKLIST BUILDER, MOBILE
   ========================================================================== */

/* --- Profile Selector Cards --- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.15);
}

.profile-card.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.25), 0 12px 30px rgba(0, 242, 254, 0.2);
}

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

.profile-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.profile-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.profile-card.active .profile-badge {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--border-cyan);
  color: var(--cyan);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.profile-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.profile-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.profile-active-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 8px;
}

.profile-card.active .profile-active-indicator {
  display: inline-flex;
}

/* Custom Profile Input Card */
.profile-custom-box {
  background: rgba(13, 20, 32, 0.6);
  border: 1px dashed var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.profile-custom-box:hover {
  border-style: solid;
  background: rgba(0, 242, 254, 0.04);
}

/* --- Terminal Box --- */
.terminal-box {
  background: #05080d;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin: 12px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.terminal-body {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

.terminal-prompt {
  color: var(--emerald);
  user-select: none;
  margin-right: 8px;
}

/* --- Step List for Setup Guides --- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(13, 20, 32, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: var(--transition);
}

.step-item:hover {
  background: rgba(13, 20, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
}

.step-content code {
  color: var(--cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  word-break: break-all;
}

/* --- QR Code Component --- */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(6, 9, 14, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 320px;
  margin: 0 auto;
}

.qr-frame {
  position: relative;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-frame img, .qr-frame canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Interactive Test Query Box --- */
.test-query-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .test-query-grid {
    grid-template-columns: 1fr;
  }
}

.test-result-panel {
  background: #05080d;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* --- Custom Blocklist Builder --- */
.builder-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--border-cyan);
  color: var(--cyan);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 20, 32, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.source-item:hover {
  background: rgba(13, 20, 32, 0.9);
  border-color: var(--border-glass-hover);
}

.source-item.selected {
  border-color: var(--border-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.source-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.source-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-item-cnt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  flex-shrink: 0;
}

/* Custom Checkbox */
.cyber-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}

.cyber-checkbox:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}

.cyber-checkbox:checked::after {
  content: ✓;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #06090e;
  font-size: 12px;
  font-weight: 900;
}

/* Mobile Sticky Summary Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 9, 14, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-cyan);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 998;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
}

@media (min-width: 769px) {
  .sticky-mobile-bar {
    display: none;
  }
}
