/* ==========================================================================
   Anthropic Threat Intelligence Report (September 2026) - Iran Dossier
   Modern Cyber Intelligence Dashboard Theme
   Direction: RTL | Language: Persian / Farsi
   ========================================================================== */

:root {
  --bg-primary: #070b13;
  --bg-secondary: #0d1527;
  --bg-card: rgba(16, 26, 48, 0.75);
  --bg-card-hover: rgba(22, 36, 66, 0.9);
  --bg-glass: rgba(13, 22, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  --border-danger: rgba(244, 63, 94, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;

  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-crimson: #e11d48;

  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.15);
  --glow-rose: 0 0 25px rgba(244, 63, 94, 0.2);
  --glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(241, 245, 249, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(2, 132, 199, 0.3);
  --border-danger: rgba(225, 29, 72, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-highlight: #0284c7;

  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.1);
  --glow-rose: 0 0 25px rgba(225, 29, 72, 0.1);
  --glow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(244, 63, 94, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--text-highlight);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #6366f1, #f43f5e);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.35);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f8fafc, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  font-family: var(--font-code);
  direction: ltr;
  text-align: right;
}

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

.btn-report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text-highlight);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-report-link:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
}

.theme-toggle, .font-size-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle:hover, .font-size-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Quick Nav Ribbon */
.quick-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  scrollbar-width: none;
}

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

.nav-tab {
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-tab:hover, .nav-tab.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--text-highlight);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.badge-red {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 950px;
  margin-bottom: 2rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-cyan);
}

.metric-card.accent-red::before { background: var(--accent-rose); }
.metric-card.accent-purple::before { background: var(--accent-purple); }
.metric-card.accent-amber::before { background: var(--accent-amber); }
.metric-card.accent-emerald::before { background: var(--accent-emerald); }

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-card);
}

.metric-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-code);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Filter & Search Bar */
.filter-search-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1.2rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

/* Section Common Styling */
.dossier-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-title svg {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

/* Case Cards */
.case-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--glow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.case-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.case-id-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.3);
  display: inline-block;
}

.case-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.case-subtitle {
  font-size: 0.95rem;
  color: var(--text-highlight);
  font-weight: 600;
  margin-top: 0.2rem;
}

.case-threat-level {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.case-content {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.85;
}

.case-content p {
  margin-bottom: 1rem;
}

/* Callout Boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid transparent;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.75;
}

.callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
}

.callout-danger {
  background: rgba(244, 63, 94, 0.08);
  border-color: var(--border-danger);
  color: #fecdd3;
}
.callout-danger .callout-icon { color: var(--accent-rose); }
.callout-danger strong { color: #ffe4e6; }

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fef3c7;
}
.callout-warning .callout-icon { color: var(--accent-amber); }
.callout-warning strong { color: #fffbeb; }

.callout-info {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--border-glow);
  color: #e0f2fe;
}
.callout-info .callout-icon { color: var(--accent-cyan); }
.callout-info strong { color: #f0f9ff; }

/* Grid of Findings / Techniques */
.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.feature-box {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.feature-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-box-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.feature-box-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Indicators of Compromise (IOC) Accordion / Pills */
.ioc-container {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ioc-header {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-highlight);
}

.ioc-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ioc-toggle-arrow {
  transition: transform 0.25s ease;
}

.ioc-container.open .ioc-toggle-arrow {
  transform: rotate(180deg);
}

.ioc-body {
  padding: 1.1rem;
  display: none;
  border-top: 1px solid var(--border-subtle);
}

.ioc-container.open .ioc-body {
  display: block;
}

.ioc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ioc-table th, .ioc-table td {
  padding: 0.6rem 0.8rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ioc-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.ioc-code {
  font-family: var(--font-code);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  direction: ltr;
  display: inline-block;
  font-size: 0.8rem;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-size: 0.72rem;
  margin-right: 0.4rem;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* Quotes Section */
.report-quote {
  border-right: 3px solid var(--accent-cyan);
  padding: 0.8rem 1.25rem 0.8rem 0.5rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: #cbd5e1;
  background: rgba(56, 189, 248, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.8;
}

.report-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: var(--font-code);
}

/* Safeguard Bypass Explanation Box */
.safeguard-analysis {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 3rem 0;
}

.safeguard-analysis h3 {
  color: var(--accent-cyan);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.safeguard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.step-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  position: relative;
}

.step-num {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(56, 189, 248, 0.4);
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 3rem 0 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: rgba(56, 189, 248, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-card {
    padding: 1.25rem;
  }
  .feature-list-grid {
    grid-template-columns: 1fr;
  }
  .safeguard-steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Image Container, Lightbox & Enhanced Responsiveness
   ========================================================================== */

.report-figure {
  margin: 1.75rem 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.figure-img-wrapper {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 480px;
}

.figure-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.figure-img-wrapper:hover img {
  transform: scale(1.02);
}

.figure-zoom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 22, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.figure-caption {
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.figure-caption strong {
  color: var(--accent-cyan);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

/* Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .btn-report-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .brand-text span {
    font-size: 0.7rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .metric-num {
    font-size: 1.65rem;
  }

  .case-card {
    padding: 1.15rem;
    margin-bottom: 1.25rem;
  }

  .case-title {
    font-size: 1.18rem;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.4;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .filter-search-panel {
    padding: 1rem;
  }

  .filter-categories {
    gap: 0.35rem;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .quick-nav {
    padding: 0.4rem 0;
  }

  .nav-tab {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
  }

  .feature-list-grid {
    grid-template-columns: 1fr;
  }

  .figure-img-wrapper {
    max-height: 320px;
  }
}

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


/* ==========================================================================
   Visitor Counter Card & Live Badge
   ========================================================================== */

.visitor-counter-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.visitor-counter-card {
  background: rgba(13, 22, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.6rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.visitor-counter-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.counter-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.counter-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.counter-value {
  font-family: var(--font-code);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  min-width: 45px;
  display: inline-block;
  text-align: center;
}

.counter-details {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  padding-right: 1rem;
}

.counter-details strong {
  color: var(--text-primary);
  font-family: var(--font-code);
}

.counter-sep {
  color: var(--border-subtle);
}

@media (max-width: 600px) {
  .visitor-counter-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    width: 100%;
  }

  .counter-details {
    border-right: none;
    padding-right: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
}
