/* ==========================================================================
   Infomity Design System — CVE Alert Threat Intelligence Platform
   Engineered with luxury obsidian palette, frosted glass, and edge typography
   Fully responsive across iPhone, iPad, Android, and Desktop viewports
   ========================================================================== */

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

:root {
  /* Obsidian Luxury Dark Palette (Default) */
  --bg-color: #07090e;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                 radial-gradient(circle at 100% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 0% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 40%);
  --bg-secondary: #0c1017;
  --paper-bg: #0f141f;
  --card-bg: rgba(15, 20, 31, 0.72);
  --card-hover-bg: rgba(22, 29, 45, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(16, 185, 129, 0.4);
  --card-inner-glow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --text-color: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #10b981;
  --accent-hover: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --tag-bg: rgba(255, 255, 255, 0.04);
  --tag-border: rgba(255, 255, 255, 0.08);
  --tag-text: #cbd5e1;
  --navbar-bg: rgba(7, 9, 14, 0.75);
  --navbar-border: rgba(255, 255, 255, 0.10);
  --navbar-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 24px 48px -12px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 35px -5px rgba(16, 185, 129, 0.25);
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* Compatibility bindings for legacy variables */
  --canvas: var(--bg-color);
  --surface: var(--paper-bg);
  --soft: var(--bg-secondary);
  --ink: var(--text-color);
  --muted: var(--text-secondary);
  --line: var(--card-border);
  --line-strong: rgba(255, 255, 255, 0.14);
  --primary: var(--accent-color);
  --primary-hover: var(--accent-hover);
  --primary-ink: #ffffff;
  --primary-soft: rgba(16, 185, 129, 0.15);
  --link: var(--accent-hover);
  --focus: var(--accent-color);
  --radius: 16px;
  --radius-sm: 10px;

  /* Severity system colors */
  --crit: #ef4444;
  --high: #f97316;
  --med: #eab308;
  --low: #10b981;
  --unk: #64748b;
  --crit-t: #fca5a5;
  --high-t: #fdba74;
  --med-t: #fde047;
  --low-t: #6ee7b7;
  --unk-t: #cbd5e1;
  --crit-bg: rgba(239, 68, 68, 0.16);
  --high-bg: rgba(249, 115, 22, 0.16);
  --med-bg: rgba(234, 179, 8, 0.18);
  --low-bg: rgba(16, 185, 129, 0.16);
  --unk-bg: rgba(100, 116, 139, 0.16);
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
                 radial-gradient(circle at 100% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  --bg-secondary: #f1f5f9;
  --paper-bg: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-hover-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.9);
  --card-border-hover: rgba(16, 185, 129, 0.5);
  --card-inner-glow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
  --text-color: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-color: #059669;
  --accent-hover: #10b981;
  --accent-glow: rgba(5, 150, 105, 0.15);
  --accent-cyan: #0284c7;
  --accent-indigo: #4f46e5;
  --tag-bg: #f1f5f9;
  --tag-border: #e2e8f0;
  --tag-text: #334155;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-border: rgba(0, 0, 0, 0.08);
  --navbar-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 16px 36px -8px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px -5px rgba(5, 150, 105, 0.15);

  --canvas: var(--bg-color);
  --surface: var(--paper-bg);
  --soft: var(--bg-secondary);
  --ink: var(--text-color);
  --muted: var(--text-secondary);
  --line: var(--card-border);
  --line-strong: #cbd5e1;
  --primary: var(--accent-color);
  --primary-hover: var(--accent-hover);
  --primary-ink: #ffffff;
  --primary-soft: #ecfdf5;
  --link: var(--accent-color);
  --focus: var(--accent-color);

  --crit: #dc2626;
  --high: #ea580c;
  --med: #ca8a04;
  --low: #16a34a;
  --unk: #94a3b8;
  --crit-t: #b91c1c;
  --high-t: #c2410c;
  --med-t: #a16207;
  --low-t: #15803d;
  --unk-t: #475569;
  --crit-bg: #fef2f2;
  --high-bg: #fff7ed;
  --med-bg: #fefce8;
  --low-bg: #f0fdf4;
  --unk-bg: #f1f5f9;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  font-variant-numeric: tabular-nums;
}

/* Subtle Engineering Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 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: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0;
}

small { color: var(--text-muted); }
.muted { color: var(--text-secondary); }
[hidden] { display: none !important; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 1000;
  background: var(--accent-color);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 1rem;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.wrap, .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .wrap, .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ==========================================================================
   Floating Frosted Glass Capsule Navbar
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 100;
  max-width: 1180px;
  margin: 1rem auto 0 auto;
  padding: 0 1.5rem;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--navbar-border);
  box-shadow: var(--navbar-shadow);
  border-radius: 9999px;
  padding: 0.6rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  z-index: 102;
  flex-shrink: 0;
}

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

.navbar-name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--text-color);
  line-height: 1.2;
}

.navbar-badge {
  font-size: 0.68rem;
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-color);
  background: var(--tag-bg);
}

.mobile-only-link {
  display: none;
}

.linkbtn-nav {
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 102;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: var(--tag-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-color);
  transform: rotate(15deg);
  background: rgba(16, 185, 129, 0.1);
}

.btn-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #fda4af;
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-support-pill:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile Hamburger Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  background: var(--tag-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  border-color: var(--accent-color);
  background: rgba(16, 185, 129, 0.1);
}

.hamburger-line {
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.navbar-container.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-container.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-container.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navbar Optimization */
@media (max-width: 768px) {
  .navbar-wrapper {
    top: 0.75rem;
    padding: 0 0.85rem;
    margin: 0.5rem auto 0 auto;
  }

  .navbar-container {
    padding: 0.45rem 0.85rem 0.45rem 1rem;
  }

  /* Keep mobile header clean and avoid overflow */
  .desktop-only-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-only-link {
    display: flex;
  }

  .navbar-actions {
    gap: 0.45rem;
  }

  .navbar-brand {
    gap: 0.55rem;
  }

  .navbar-name {
    font-size: 0.92rem;
  }

  .navbar-badge {
    font-size: 0.62rem;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(10, 15, 26, 0.96);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.85rem;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 101;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  [data-theme="light"] .navbar-links {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .navbar-container.is-open .navbar-links {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    border-radius: 12px;
    width: 100%;
  }

  .nav-link:hover, .nav-link:active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
  }

  .nav-link::after {
    content: "→";
    font-size: 0.85rem;
    color: var(--accent-color);
    opacity: 0.7;
  }

  .nav-link-highlight {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    font-weight: 600;
  }
}

/* ==========================================================================
   Typography, Gradient Text, & Status Badges
   ========================================================================== */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 70%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-text {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Centre-Justified Status Pill & Bullet Elements */
.status-pill-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.status-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.status-segment {
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}

.status-bullet {
  color: rgba(52, 211, 153, 0.6);
  font-size: 0.85em;
  user-select: none;
}

@media (max-width: 768px) {
  .status-pill-row {
    margin-bottom: 1.25rem;
    justify-content: flex-start;
  }

  .status-pill {
    font-size: 0.7rem;
    padding: 0.42rem 0.85rem;
    border-radius: 9999px;
    gap: 0.5rem;
    letter-spacing: 0.3px;
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }

  .status-content {
    justify-content: center;
    text-align: center;
    gap: 0.25rem 0.45rem;
  }

  .status-segment {
    white-space: nowrap;
    text-align: center;
  }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.badge-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ==========================================================================
   Buttons (Glow, Glass, Ghost)
   ========================================================================== */
.btn, .btn-primary, .btn-glow, .btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-glow, .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glow:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
}

.btn-glass, .btn:not(.btn-primary):not(.btn-glow) {
  background: var(--tag-bg);
  backdrop-filter: blur(12px);
  color: var(--text-color) !important;
  border: 1px solid var(--card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-glass:hover, .btn:not(.btn-primary):not(.btn-glow):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: var(--text-color) !important;
  transform: translateY(-2px);
}

.btn-quiet {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--accent-hover) !important;
  box-shadow: none !important;
}

.btn-quiet:hover {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: transparent !important;
  transform: none !important;
}

.btn-sm {
  min-height: 36px;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
  min-height: 46px;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  font-weight: 800;
  word-break: break-word;
}

.hero-desc, .lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.meta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 6px var(--accent-color);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-section {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
  }

  .hero-section h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-desc, .lede {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Severity Overview Section
   ========================================================================== */
.overview {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow), var(--card-inner-glow);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.overview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #10b981, #06b6d4);
  opacity: 0.8;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.overview-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.overview-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.sevbar {
  display: flex;
  gap: 4px;
  height: 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .sevbar {
  background: rgba(0, 0, 0, 0.08);
}

.sevbar > span {
  flex: 0 1 0;
  min-width: 0;
  border-radius: 999px;
  background: var(--unk);
}

.sevbar.ready > span {
  flex-grow: var(--grow, 0);
}

@media (prefers-reduced-motion: no-preference) {
  .sevbar > span {
    transition: flex-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.legend {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.85rem 1rem;
}

.legend li {
  min-width: 0;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.25s ease;
}

.legend li:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.legend b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-weight: 500;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--dot, var(--unk));
  box-shadow: 0 0 6px var(--dot, var(--unk));
}

.legend .sep {
  border-left: 2px solid var(--accent-color);
}

@media (max-width: 600px) {
  .overview {
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
  }

  .legend {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .legend li {
    padding: 0.55rem 0.75rem;
  }

  .legend b {
    font-size: 1.15rem;
  }

  .legend span {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   Layout Grid (CVE Feed & Sidebar)
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

#feed {
  scroll-margin-top: 6rem;
  min-width: 0;
}

.panel {
  position: sticky;
  top: 5.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--card-inner-glow);
  padding: 1.75rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  scroll-margin-top: 6rem;
  transition: all 0.25s ease;
}

.panel h2 {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.panel > .muted {
  margin: 0 0 1.25rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .panel {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   Filter Controls
   ========================================================================== */
.filters {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow), var(--card-inner-glow);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search input {
  width: 100%;
  min-height: 48px;
  background: var(--tag-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-color);
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.search input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.seg {
  display: flex;
  margin: 0;
  padding: 4px;
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--tag-bg);
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg label {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.seg label + label {
  border-left: none;
}

.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.seg span {
  display: block;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.seg input:checked + span {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

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

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip input:checked + span {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.field {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-color);
}

.field > input, .field > select {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

.field small {
  display: block;
  font-weight: 400;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.inline-field > select {
  margin-top: 0;
  min-width: 0;
}

input, select {
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-color);
  background: var(--tag-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0 14px;
  min-height: 42px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

input:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 32px;
  color: var(--text-color);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-color);
  cursor: pointer;
  flex-shrink: 0;
}

.more {
  border-top: 1px solid var(--card-border);
  padding-top: 8px;
  margin-bottom: 14px;
}

.more[data-animating="true"] {
  overflow: hidden !important;
}

.filters .more {
  border: 0;
  padding: 0;
  margin: 0;
}

.more > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-hover);
  transition: color 0.2s ease;
  user-select: none;
}

.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.more[open] > summary::before { transform: rotate(45deg); }
.more[open] > summary { margin-bottom: 8px; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .filters {
    padding: 1.25rem 1rem;
    gap: 0.85rem;
  }

  .seg span {
    font-size: 0.78rem;
    padding: 7px 4px;
  }

  .row2 {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .chip {
    width: 100%;
  }

  .chip span {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
  }

  .inline-field {
    width: 100%;
    justify-content: space-between;
  }

  .inline-field > select {
    flex: 1;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CVE Feed List & Cards
   ========================================================================== */
.cves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cve {
  --sev: var(--unk);
  --sev-t: var(--unk-t);
  --sev-bg: var(--unk-bg);
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  grid-template-areas: "score body side";
  gap: 8px 18px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--sev);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--card-inner-glow);
  padding: 1.35rem 1.5rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cve:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  border-left-color: var(--sev);
  box-shadow: var(--shadow), 0 0 25px -5px var(--sev);
}

.cve:has(.more-desc[open]) {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-md), 0 0 30px -8px var(--sev);
}

.cve.sev-critical { --sev: var(--crit); --sev-t: var(--crit-t); --sev-bg: var(--crit-bg); }
.cve.sev-high { --sev: var(--high); --sev-t: var(--high-t); --sev-bg: var(--high-bg); }
.cve.sev-medium { --sev: var(--med); --sev-t: var(--med-t); --sev-bg: var(--med-bg); }
.cve.sev-low { --sev: var(--low); --sev-t: var(--low-t); --sev-bg: var(--low-bg); }

.score {
  grid-area: score;
  line-height: 1.2;
  text-align: center;
  padding-top: 2px;
}

.score b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-color);
}

.score span {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sev-t);
  background: var(--sev-bg);
  border: 1px solid var(--sev);
  font-family: var(--font-mono);
}

.body {
  grid-area: body;
  min-width: 0;
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.id {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-color);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.id:hover {
  color: var(--accent-hover);
}

.when {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.kevtag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  white-space: nowrap;
}

.side {
  grid-area: side;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
  min-width: 4.5rem;
  font-family: var(--font-mono);
}

.side b {
  display: block;
  font-size: 1.15rem;
  color: var(--text-color);
  font-weight: 700;
}

.cve-summary {
  margin: 0.55rem 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.more-desc {
  margin-top: 0.25rem;
}

.more-desc[data-animating="true"],
.more[data-animating="true"] {
  overflow: hidden !important;
}

.cve-expand-trigger {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.cve-expand-trigger::-webkit-details-marker {
  display: none;
}

.trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--tag-bg);
  border: 1px solid var(--card-border);
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cve-expand-trigger:hover .trigger-label {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-color);
  color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.trigger-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  color: var(--accent-color);
}

.more-desc .trigger-collapse {
  display: none;
}

.more-desc[open] .trigger-expand {
  display: none;
}

.more-desc[open] .trigger-collapse {
  display: inline-flex;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}

.cve-drawer {
  background: rgba(7, 9, 14, 0.55);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-top: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 1.15rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .cve-drawer {
  background: rgba(241, 245, 249, 0.75);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

.drawer-section {
  display: grid;
  gap: 0.45rem;
}

.drawer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-color);
  display: block;
}

.full {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-color);
  font-size: 0.92rem;
  line-height: 1.7;
}

.facts {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tech-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
  line-height: 1.3;
  word-break: break-word;
  max-width: 100%;
}

.tech-tag-cwe {
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
}

.refs {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.8rem;
}

.refs a, .ref-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s ease;
  max-width: 100%;
}

.refs a:hover, .ref-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-color);
  background: rgba(16, 185, 129, 0.08);
}

.drawer-collapse-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--card-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  cursor: pointer;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}

[data-theme="light"] .drawer-collapse-hint {
  background: rgba(0, 0, 0, 0.03);
}

.cve:hover .drawer-collapse-hint,
.drawer-collapse-hint:hover {
  color: var(--accent-color);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* Mobile CVE Card Optimization */
@media (max-width: 680px) {
  .cve {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "score side" "body body";
    gap: 8px 10px;
    padding: 1.15rem 1rem;
  }

  .score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    padding-top: 0;
  }

  .score b { font-size: 1.3rem; }
  .score span { margin: 0; }

  .side {
    display: flex;
    gap: 6px;
    align-items: baseline;
  }

  .side b { display: inline; }
}

/* ==========================================================================
   Pager & Floating Controls
   ========================================================================== */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2rem 0 1rem;
}

#page {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

@media (max-width: 480px) {
  .pager .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  #page {
    font-size: 0.78rem;
  }
}

.fab {
  position: fixed;
  z-index: 90;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: none;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.88rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.4);
}

.fab.is-hidden { display: none !important; }
@media (max-width: 960px) { .fab { display: inline-flex; } }

/* ==========================================================================
   Subscribe Form & Status Messages
   ========================================================================== */
.ts {
  margin: 10px 0 14px;
  min-height: 65px;
  max-width: 100%;
  overflow-x: auto;
}

.msg {
  margin: 12px 0 0;
  font-size: 0.88rem;
  min-height: 1.4em;
  font-family: var(--font-mono);
  word-break: break-word;
}

.msg.ok { color: #34d399; }
.msg.err { color: #f87171; }

.fine {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Support Dialog Modal (Patreon)
   ========================================================================== */
.dlg {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0;
  width: min(92vw, 420px);
  background: var(--paper-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text-color);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.2);
}

.dlg::backdrop {
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
}

.dlg-in {
  padding: 1.5rem 1.5rem 1.75rem;
  display: grid;
  gap: 1.15rem;
}

.dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dlg-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.dlg-x {
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dlg-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.qr {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr img {
  width: min(100%, 200px);
  height: auto;
  image-rendering: pixelated;
}

.dlg .muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   Modern Infomity Site Footer
   ========================================================================== */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--card-border);
  padding: 4rem 1.5rem calc(4rem + env(safe-area-inset-bottom)) 1.5rem;
  background: var(--paper-bg);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-color);
  display: block;
  line-height: 1.2;
}

.footer-brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-top: 0.25rem;
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: var(--accent-hover);
}

.footer-link-highlight {
  color: var(--accent-color);
  font-weight: 600;
}

.footer-bottom-disclaimer {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom-disclaimer p {
  margin: 0 0 0.5rem 0;
}

.linkbtn {
  font: inherit;
  color: var(--accent-hover);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkbtn:hover {
  color: #34d399;
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 3.5rem;
    padding: 2.5rem 1rem calc(5rem + env(safe-area-inset-bottom)) 1rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-brand {
    width: 100%;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--card-border);
  }

  .footer-links-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}
