/* ==========================================================================
   CVE MONITOR - Design System & Modern Cyber Dark Theme
   ========================================================================== */
:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: #121829;
  --bg-card-hover: #172036;
  --bg-card-subtle: #0f1524;
  
  --border-color: #1e293b;
  --border-focus: #3b82f6;
  --border-subtle: rgba(255, 255, 255, 0.07);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #38bdf8;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  
  /* CVSS Severity Colors */
  --cvss-critical: #ef4444;
  --cvss-critical-bg: rgba(239, 68, 68, 0.15);
  --cvss-critical-border: rgba(239, 68, 68, 0.35);
  
  --cvss-high: #f97316;
  --cvss-high-bg: rgba(249, 115, 22, 0.15);
  --cvss-high-border: rgba(249, 115, 22, 0.35);
  
  --cvss-medium: #eab308;
  --cvss-medium-bg: rgba(234, 179, 8, 0.15);
  --cvss-medium-border: rgba(234, 179, 8, 0.35);
  
  --cvss-low: #10b981;
  --cvss-low-bg: rgba(16, 185, 129, 0.15);
  --cvss-low-border: rgba(16, 185, 129, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.35);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Header */
.header {
  background: rgba(13, 18, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

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

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-accent {
  color: var(--accent-blue);
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-pulse-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

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

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Main Layout */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* Hero Banner */
.hero-banner {
  margin-bottom: 2rem;
  background: linear-gradient(180deg, rgba(23, 32, 54, 0.6) 0%, rgba(13, 18, 31, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 0.5rem;
}

.hero-desc {
  color: var(--text-secondary);
  max-width: 820px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.stat-critical .stat-value { color: var(--cvss-critical); }
.stat-high .stat-value { color: var(--cvss-high); }
.stat-kev .stat-value { color: var(--accent-purple); }

/* Controls Bar */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 320px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 2.8rem 0.85rem 2.8rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: var(--bg-card);
}

.search-clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.search-clear:hover {
  color: #fff;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background: var(--bg-card);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pill.red { background: var(--cvss-critical); }
.pill.orange { background: var(--cvss-high); }
.pill.purple { background: var(--accent-purple); }

/* Feed List */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.feed-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.feed-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Tarjeta Individual de CVE en el Feed */
.cve-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.cve-card:hover {
  background: var(--bg-card-hover);
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cve-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cve-card-id-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cve-badge-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.cve-badge-kev {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cve-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

.cve-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cve-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cve-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Badges de Severidad CVSS */
.cvss-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.cvss-pill.critical {
  background: var(--cvss-critical-bg);
  color: var(--cvss-critical);
  border: 1px solid var(--cvss-critical-border);
}

.cvss-pill.high {
  background: var(--cvss-high-bg);
  color: var(--cvss-high);
  border: 1px solid var(--cvss-high-border);
}

.cvss-pill.medium {
  background: var(--cvss-medium-bg);
  color: var(--cvss-medium);
  border: 1px solid var(--cvss-medium-border);
}

.cvss-pill.low {
  background: var(--cvss-low-bg);
  color: var(--cvss-low);
  border: 1px solid var(--cvss-low-border);
}

.cvss-pill.none {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* ==========================================================================
   VISTA DETALLADA DE LA CVE
   ========================================================================== */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--border-focus);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--text-muted);
}

/* Header Card Detalle */
.detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-id-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.detail-cve-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-kev {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.detail-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

/* CVSS Banner */
.cvss-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cvss-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 2px solid var(--cvss-critical);
}

.cvss-score-box.critical { border-color: var(--cvss-critical); color: var(--cvss-critical); }
.cvss-score-box.high { border-color: var(--cvss-high); color: var(--cvss-high); }
.cvss-score-box.medium { border-color: var(--cvss-medium); color: var(--cvss-medium); }
.cvss-score-box.low { border-color: var(--cvss-low); color: var(--cvss-low); }

.cvss-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.cvss-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.cvss-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.cvss-vector-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.cvss-vector-str {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

.cvss-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.cvss-chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

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

.detail-col-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-col-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Content Cards */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-card.highlight-card {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.card-head {
  background: var(--bg-secondary);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.highlight-card .card-head {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-highlight {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  border-left: 3px solid var(--accent-blue);
  padding-left: 1rem;
}

.original-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Tablas */
.table-responsive {
  overflow-x: auto;
}

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

.custom-table th {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.version-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.version-fixed {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.version-vuln {
  color: var(--cvss-critical);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Correcciones y Workarounds Box */
.fix-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fix-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fix-item.primary-fix {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

.fix-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fix-label.green { color: var(--accent-emerald); }
.fix-label.amber { color: var(--cvss-high); }

.fix-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f1f5f9;
}

/* FAQ Items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Side Cards */
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.side-head {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.side-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.intel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.intel-val {
  font-weight: 600;
  color: #fff;
}

.ref-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ref-link {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-blue);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.2s;
}

.ref-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Loaders & Skeleton */
.feed-loader {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-card {
  background: var(--bg-card);
  height: 120px;
  border-radius: var(--radius-md);
  animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}

.detail-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  gap: 1rem;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utilities */
.hidden {
  display: none !important;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.6rem; }
  .controls-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  .filter-tabs { overflow-x: auto; }
  .detail-header-card { padding: 1.25rem; }
  .detail-cve-id { font-size: 1.4rem; }
}
