/* ============================================================
   AINODE — Audit Carousel Viewer
   Step-by-step audit report viewer. Blends the infographic
   design language with the website's brutalist aesthetic.
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */

.audit-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--black, #0a0e17);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

.audit-viewer-overlay.active {
  opacity: 1;
  visibility: visible;
}

body[data-theme="light"] .audit-viewer-overlay {
  background: #f4f4f7;
}

/* ── Top Bar ─────────────────────────────────────────────── */

.audit-viewer__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  min-height: 56px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

body[data-theme="light"] .audit-viewer__topbar {
  border-bottom-color: rgba(30, 27, 75, 0.08);
}

.audit-viewer__back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  padding: 12px 16px;
  min-height: 44px;
  min-width: 200px;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

.audit-viewer__back:hover {
  color: #ffffff;
}

.audit-viewer__back::before {
  content: '\2190';
  font-size: 16px;
}

body[data-theme="light"] .audit-viewer__back {
  color: rgba(30, 27, 75, 0.5);
}

body[data-theme="light"] .audit-viewer__back:hover {
  color: #1e1b4b;
}

.audit-viewer__close-x {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
  transition: color 0.2s;
}

.audit-viewer__close-x:hover {
  color: #ffffff;
}

body[data-theme="light"] .audit-viewer__close-x {
  color: rgba(30, 27, 75, 0.4);
}

body[data-theme="light"] .audit-viewer__close-x:hover {
  color: #1e1b4b;
}

.audit-viewer__device-name {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
  text-align: center;
}

body[data-theme="light"] .audit-viewer__device-name {
  color: rgba(30, 27, 75, 0.35);
}

/* ── Slide Container ─────────────────────────────────────── */

.audit-viewer__slides {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: 24px;
}

.audit-viewer__slide {
  position: absolute;
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.audit-viewer__slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.audit-viewer__slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.audit-viewer__slide.exit-right {
  opacity: 0;
  transform: translateX(60px);
}

/* ── Slide Title (synthetic summary) ─────────────────────── */

.audit-slide__title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 900;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.15;
  color: #f0eaf4;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

body[data-theme="light"] .audit-slide__title {
  color: #1e1b4b;
}

/* ── Slide Content Cards ─────────────────────────────────── */

.audit-slide__card {
  background: #241e28;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

body[data-theme="light"] .audit-slide__card {
  background: #ffffff;
  border-color: rgba(30, 27, 75, 0.1);
  box-shadow: 0 2px 12px rgba(30, 27, 75, 0.06);
}

.audit-slide__card + .audit-slide__card {
  margin-top: 16px;
}

/* Card top accent line */
.audit-slide__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.audit-slide__card--green::before { background: linear-gradient(90deg, #06D6A0, #40E0D0); }
.audit-slide__card--amber::before { background: linear-gradient(90deg, #FFBE0B, #FF8C42); }
.audit-slide__card--red::before { background: linear-gradient(90deg, #FF3B4A, #FF8C42); }
.audit-slide__card--teal::before { background: linear-gradient(90deg, #40E0D0, #4CC9F0); }
.audit-slide__card--purple::before { background: linear-gradient(90deg, #B07AFF, #4CC9F0); }
.audit-slide__card--gray::before { background: linear-gradient(90deg, #6b6175, #6b6175); }

body[data-theme="light"] .audit-slide__card::before { opacity: 0.8; }

/* ── Verdict Pill ────────────────────────────────────────── */

.audit-slide__verdict {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.audit-slide__verdict--pass {
  background: rgba(6, 214, 160, 0.15);
  color: #06D6A0;
  border: 1.5px solid rgba(6, 214, 160, 0.4);
}

.audit-slide__verdict--investigate {
  background: rgba(255, 190, 11, 0.15);
  color: #FFBE0B;
  border: 1.5px solid rgba(255, 190, 11, 0.4);
}

.audit-slide__verdict--fail {
  background: rgba(255, 59, 74, 0.15);
  color: #FF3B4A;
  border: 1.5px solid rgba(255, 59, 74, 0.4);
}

body[data-theme="light"] .audit-slide__verdict--pass {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.3);
}

body[data-theme="light"] .audit-slide__verdict--investigate {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

body[data-theme="light"] .audit-slide__verdict--fail {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

/* ── Tier Badge ──────────────────────────────────────────── */

.audit-slide__tier {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.audit-slide__tier-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  padding: 8px 18px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.audit-slide__tier-info h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.audit-slide__tier-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9a8ea4;
}

body[data-theme="light"] .audit-slide__tier-detail {
  color: #6366a0;
}

.audit-slide__tier-score {
  margin-left: auto;
  text-align: right;
}

.audit-slide__tier-score .big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.audit-slide__tier-score .of {
  font-size: 14px;
  color: #9a8ea4;
}

body[data-theme="light"] .audit-slide__tier-score .of {
  color: #6366a0;
}

.audit-slide__tier-score .method {
  font-size: 10px;
  color: #9a8ea4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

body[data-theme="light"] .audit-slide__tier-score .method {
  color: #6366a0;
}

/* ── Date ────────────────────────────────────────────────── */

.audit-slide__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #9a8ea4;
  margin-top: 12px;
}

body[data-theme="light"] .audit-slide__date {
  color: #6366a0;
}

/* ── Score Cards Grid ────────────────────────────────────── */

.audit-slide__scores {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .audit-slide__scores {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.audit-slide__score-card {
  background: #241e28;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] .audit-slide__score-card {
  background: #ffffff;
  border-color: rgba(30, 27, 75, 0.1);
  box-shadow: 0 2px 12px rgba(30, 27, 75, 0.06);
}

.audit-slide__score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.audit-slide__score-card--pass::before { background: linear-gradient(90deg, #06D6A0, #40E0D0); }
.audit-slide__score-card--investigate::before { background: linear-gradient(90deg, #FFBE0B, #FF8C42); }
.audit-slide__score-card--fail::before { background: linear-gradient(90deg, #FF3B4A, #FF8C42); }
.audit-slide__score-card--na::before { background: linear-gradient(90deg, #6b6175, #6b6175); }

.audit-slide__score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #9a8ea4;
  margin-bottom: 10px;
}

body[data-theme="light"] .audit-slide__score-label {
  color: #6366a0;
}

.audit-slide__score-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.audit-slide__score-max {
  font-size: 16px;
  color: #9a8ea4;
}

body[data-theme="light"] .audit-slide__score-max {
  color: #6366a0;
}

.audit-slide__score-card--pass .audit-slide__score-value { color: #06D6A0; }
.audit-slide__score-card--investigate .audit-slide__score-value { color: #FFBE0B; }
.audit-slide__score-card--fail .audit-slide__score-value { color: #FF3B4A; }
.audit-slide__score-card--na .audit-slide__score-value { color: #6b6175; font-size: 24px; }

body[data-theme="light"] .audit-slide__score-card--pass .audit-slide__score-value { color: #059669; }
body[data-theme="light"] .audit-slide__score-card--investigate .audit-slide__score-value { color: #d97706; }
body[data-theme="light"] .audit-slide__score-card--fail .audit-slide__score-value { color: #dc2626; }
body[data-theme="light"] .audit-slide__score-card--na .audit-slide__score-value { color: #d8d9e4; }

.audit-slide__score-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.audit-slide__score-tag--pass { background: rgba(6, 214, 160, 0.15); color: #06D6A0; }
.audit-slide__score-tag--investigate { background: rgba(255, 190, 11, 0.15); color: #FFBE0B; }
.audit-slide__score-tag--fail { background: rgba(255, 59, 74, 0.15); color: #FF3B4A; }
.audit-slide__score-tag--na { background: rgba(107, 97, 117, 0.15); color: #6b6175; }

body[data-theme="light"] .audit-slide__score-tag--pass { background: rgba(5, 150, 105, 0.1); color: #059669; }
body[data-theme="light"] .audit-slide__score-tag--investigate { background: rgba(217, 119, 6, 0.1); color: #d97706; }
body[data-theme="light"] .audit-slide__score-tag--fail { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
body[data-theme="light"] .audit-slide__score-tag--na { background: rgba(30, 27, 75, 0.06); color: #6366a0; }

/* ── Dimension Bars ──────────────────────────────────────── */

.audit-slide__dim-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .audit-slide__dim-row {
    grid-template-columns: 100px 1fr 40px;
    gap: 6px;
  }
}

.audit-slide__dim-label {
  font-size: 12px;
  color: #f0eaf4;
}

body[data-theme="light"] .audit-slide__dim-label {
  color: #1e1b4b;
}

.audit-slide__dim-bar-bg {
  height: 14px;
  background: #2c2432;
  border-radius: 7px;
  overflow: hidden;
}

body[data-theme="light"] .audit-slide__dim-bar-bg {
  background: #ecedf2;
}

.audit-slide__dim-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audit-slide__dim-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* Fill colors */
.fill-red { background: linear-gradient(90deg, #FF3B4A, #ff6b77); }
.fill-orange { background: linear-gradient(90deg, #FF8C42, #ffaa6b); }
.fill-amber { background: linear-gradient(90deg, #FFBE0B, #ffd54f); }
.fill-green { background: linear-gradient(90deg, #06D6A0, #4ef0c0); }
.fill-teal { background: linear-gradient(90deg, #40E0D0, #4CC9F0); }

body[data-theme="light"] .fill-red { background: linear-gradient(90deg, #dc2626, #ef4444); }
body[data-theme="light"] .fill-orange { background: linear-gradient(90deg, #ea580c, #f97316); }
body[data-theme="light"] .fill-amber { background: linear-gradient(90deg, #d97706, #f59e0b); }
body[data-theme="light"] .fill-green { background: linear-gradient(90deg, #059669, #10b981); }
body[data-theme="light"] .fill-teal { background: linear-gradient(90deg, #0d9488, #2563eb); }

/* Value colors */
.val-red { color: #FF3B4A; }
.val-orange { color: #FF8C42; }
.val-amber { color: #FFBE0B; }
.val-green { color: #06D6A0; }
.val-teal { color: #40E0D0; }

body[data-theme="light"] .val-red { color: #dc2626; }
body[data-theme="light"] .val-orange { color: #ea580c; }
body[data-theme="light"] .val-amber { color: #d97706; }
body[data-theme="light"] .val-green { color: #059669; }
body[data-theme="light"] .val-teal { color: #0d9488; }

/* ── Network Stats ───────────────────────────────────────── */

.audit-slide__net-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.audit-slide__net-stat {
  text-align: center;
  padding: 14px 8px;
  background: #2c2432;
  border-radius: 12px;
}

body[data-theme="light"] .audit-slide__net-stat {
  background: #ecedf2;
  box-shadow: inset 0 1px 3px rgba(30, 27, 75, 0.04);
}

.audit-slide__net-stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.audit-slide__net-stat .lbl {
  font-size: 10px;
  color: #9a8ea4;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body[data-theme="light"] .audit-slide__net-stat .lbl {
  color: #6366a0;
}

/* ── Domain Classification Bar ───────────────────────────── */

.audit-slide__domain-bar-wrap {
  margin-top: 16px;
}

.audit-slide__domain-bar-label {
  font-size: 10px;
  color: #9a8ea4;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body[data-theme="light"] .audit-slide__domain-bar-label {
  color: #6366a0;
}

.audit-slide__domain-bar {
  display: flex;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #2c2432;
}

body[data-theme="light"] .audit-slide__domain-bar {
  background: #ecedf2;
}

.audit-slide__domain-bar .seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #1a1118;
  transition: width 0.6s ease;
}

.seg.benign { background: #06D6A0; }
.seg.unknown { background: #FFBE0B; }
.seg.suspicious { background: #FF3B4A; }

body[data-theme="light"] .seg.benign { background: #059669; }
body[data-theme="light"] .seg.unknown { background: #d97706; }
body[data-theme="light"] .seg.suspicious { background: #dc2626; }

.audit-slide__domain-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.audit-slide__legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9a8ea4;
}

body[data-theme="light"] .audit-slide__legend-item {
  color: #6366a0;
}

.audit-slide__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── Findings ────────────────────────────────────────────── */

.audit-slide__finding {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #f0eaf4;
}

body[data-theme="light"] .audit-slide__finding {
  color: #1e1b4b;
}

.audit-slide__finding:last-child {
  margin-bottom: 0;
}

.audit-slide__finding-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

.fi-green { background: rgba(6, 214, 160, 0.2); color: #06D6A0; }
.fi-orange { background: rgba(255, 140, 66, 0.2); color: #FF8C42; }
.fi-amber { background: rgba(255, 190, 11, 0.2); color: #FFBE0B; }
.fi-red { background: rgba(255, 59, 74, 0.2); color: #FF3B4A; }

body[data-theme="light"] .fi-green { background: rgba(5, 150, 105, 0.12); color: #059669; }
body[data-theme="light"] .fi-orange { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
body[data-theme="light"] .fi-amber { background: rgba(217, 119, 6, 0.12); color: #d97706; }
body[data-theme="light"] .fi-red { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

.audit-slide__finding strong {
  font-weight: 700;
}

/* ── Recommendation Box ──────────────────────────────────── */

.audit-slide__recommendation {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.audit-slide__recommendation--pass {
  background: rgba(6, 214, 160, 0.1);
  border-left: 3px solid #06D6A0;
  color: #06D6A0;
}

.audit-slide__recommendation--warn {
  background: rgba(255, 190, 11, 0.1);
  border-left: 3px solid #FFBE0B;
  color: #FFBE0B;
}

.audit-slide__recommendation--fail {
  background: rgba(255, 59, 74, 0.1);
  border-left: 3px solid #FF3B4A;
  color: #FF3B4A;
}

body[data-theme="light"] .audit-slide__recommendation--pass {
  background: rgba(5, 150, 105, 0.08);
  border-left-color: #059669;
  color: #059669;
}

body[data-theme="light"] .audit-slide__recommendation--warn {
  background: rgba(217, 119, 6, 0.08);
  border-left-color: #d97706;
  color: #d97706;
}

body[data-theme="light"] .audit-slide__recommendation--fail {
  background: rgba(220, 38, 38, 0.08);
  border-left-color: #dc2626;
  color: #dc2626;
}

.audit-slide__recommendation strong {
  font-weight: 700;
}

/* ── UX Bars ─────────────────────────────────────────────── */

.audit-slide__ux-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-slide__ux-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 10px;
}

@media (max-width: 480px) {
  .audit-slide__ux-row {
    grid-template-columns: 80px 1fr 35px;
    gap: 6px;
  }
}

.audit-slide__ux-cat {
  font-size: 12px;
  color: #9a8ea4;
  text-align: right;
}

body[data-theme="light"] .audit-slide__ux-cat {
  color: #6366a0;
}

.audit-slide__ux-bar-bg {
  height: 16px;
  background: #2c2432;
  border-radius: 8px;
  overflow: hidden;
}

body[data-theme="light"] .audit-slide__ux-bar-bg {
  background: #ecedf2;
}

.audit-slide__ux-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audit-slide__ux-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
}

/* ── Bottom Navigation ───────────────────────────────────── */

.audit-viewer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px 28px;
  flex-shrink: 0;
}

.audit-viewer__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.audit-viewer__nav-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: scale(1.05);
}

.audit-viewer__nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.audit-viewer__nav-btn--next {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.audit-viewer__nav-btn--next:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

body[data-theme="light"] .audit-viewer__nav-btn {
  border-color: rgba(30, 27, 75, 0.12);
  color: rgba(30, 27, 75, 0.4);
}

body[data-theme="light"] .audit-viewer__nav-btn:hover:not(:disabled) {
  border-color: rgba(30, 27, 75, 0.4);
  color: #1e1b4b;
}

body[data-theme="light"] .audit-viewer__nav-btn--next {
  background: rgba(30, 27, 75, 0.06);
  border-color: rgba(30, 27, 75, 0.2);
}

body[data-theme="light"] .audit-viewer__nav-btn--next:hover:not(:disabled) {
  background: rgba(30, 27, 75, 0.1);
  border-color: rgba(30, 27, 75, 0.4);
}

.audit-viewer__counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  min-width: 60px;
  text-align: center;
}

body[data-theme="light"] .audit-viewer__counter {
  color: rgba(30, 27, 75, 0.25);
}

/* ── Progress Dots ───────────────────────────────────────── */

.audit-viewer__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 4px;
}

.audit-viewer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.audit-viewer__dot.active {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.3);
}

body[data-theme="light"] .audit-viewer__dot {
  background: rgba(30, 27, 75, 0.1);
}

body[data-theme="light"] .audit-viewer__dot.active {
  background: rgba(30, 27, 75, 0.5);
}

/* ── Section Label (inside cards) ────────────────────────── */

.audit-slide__section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #9a8ea4;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-theme="light"] .audit-slide__section-label {
  color: #6366a0;
}

.audit-slide__section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ── Responsive Overrides ────────────────────────────────── */

@media (max-width: 640px) {
  .audit-viewer__slides {
    padding: 16px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .audit-viewer__slide {
    padding: 0;
    max-width: 100%;
  }

  .audit-slide__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .audit-slide__card {
    padding: 20px;
    border-radius: 12px;
  }

  .audit-slide__tier {
    flex-wrap: wrap;
    gap: 10px;
  }

  .audit-slide__tier-label {
    font-size: 18px;
    padding: 6px 12px;
  }

  .audit-slide__tier-score .big {
    font-size: 28px;
  }

  .audit-slide__score-value {
    font-size: 28px;
  }

  .audit-viewer__nav {
    padding: 16px 24px 24px;
    gap: 16px;
  }

  .audit-viewer__topbar {
    padding: 12px 16px;
  }
}

/* ── Swipe hint animation ────────────────────────────────── */

@keyframes swipeHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.audit-viewer__nav-btn--next.hint {
  animation: swipeHint 1.5s ease-in-out 2;
}

/* Fonts: DM Sans and Playfair Display must be self-hosted (see style.css or host locally).
   No external CDN imports — zero tracking policy. */
