@font-face {
  font-family: 'Audiowide';
  src: url('./fonts/Audiowide-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* OUR MISSION */
.mission-section {
  position: relative;
  margin: 64px auto 120px; /* adds bottom space below the div */
  padding: 32px 28px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid rgba(0,255,65,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.32);
  overflow: hidden;
  text-align: center; /* centers all text inside */
}

.mission-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,0.7), transparent);
}

.mission-section::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,255,65,0.12), transparent 68%);
  pointer-events: none;
  opacity: 0.8;
}

.mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a6a3a;
}

.mission-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00ff41;
  box-shadow: 0 0 14px rgba(0,255,65,0.55);
}

.mission-section .section-title {
  margin: 0 0 10px;
  text-align: center;
  font-family: Audiowide, ui-sans-serif, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  color: #e8e8e8;
}

.landing-page main {
  padding-bottom: 120px;
}

.mission-section .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 12px auto 0; /* centers underline */
  background: #00ff41;
  box-shadow: 0 0 18px rgba(0,255,65,0.28);
  border-radius: 999px;
}

.mission-intro,
.mission-body {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.mission-body p {
  margin: 0 auto;
  max-width: 72ch;
  color: rgba(255,255,255,0.62);
  font-size: 15px;
  line-height: 1.82;
  text-align: center;
}

.mission-body p + p {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mission-body p + p {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}


/* ── Audiowide — specific headings only ── */

/* Hero: "Trace Your Digital Footprint" and "What you'll discover" */
.hero-title,
.section-title,
.did-heading,
.did-mission-title {
  font-family: 'Audiowide', ui-sans-serif, sans-serif;
}

/* Pre/Post Quiz titles */
.quiz-title,
.quiz-page h1 {
  font-family: 'Audiowide', ui-sans-serif, sans-serif;
}

/* Report 1 & 2: "Your Data Report" */
.r1-title {
  font-family: 'Audiowide', ui-sans-serif, sans-serif;
}

/* =========================================================
   QUIZ FLOATING FEEDBACK PANEL
   Paste at the bottom of styles.css
   ========================================================= */

/* Anchor point: quiz-wrap needs position:relative so the
   panel can be positioned relative to it */
   .quiz-wrap {
    position: relative;
  }
  
  /* The floating panel — sits outside normal flow, pops to the right */
  .quiz-float-panel {
    position: absolute;
    /* Align top with roughly where the quiz card starts
       (progress bar height ~70px + card top margin ~24px) */
    top: 210px;
    left: calc(100% + 24px);
    width: 280px;
  
    /* Animate in from the right */
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }
  
  /* When feedback is visible, slide in */
  .quiz-float-panel:not([hidden]) {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  
  /* Override hidden so the transition works — 
     [hidden] sets display:none which kills transitions.
     We manage visibility via opacity/pointer-events instead. */
  .quiz-float-panel[hidden] {
    display: block !important; /* keep in DOM for transition */
    opacity: 0;
    pointer-events: none;
  }
  
  .quiz-float-inner {
    padding: 18px 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(16, 20, 30, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Feedback title inside float panel */
  .quiz-float-panel .quiz-feedback-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  
  .quiz-float-panel .quiz-feedback-title.ok  { color: rgba(0,255,153,.96); }
  .quiz-float-panel .quiz-feedback-title.bad { color: #ff7c7c; }
  
  /* Explanation text */
  .quiz-float-panel .quiz-feedback-text {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    line-height: 1.58;
  }
  
  /* Divider between text and button */
  .quiz-float-panel .quiz-feedback-text + .quiz-next-button {
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 14px;
  }
  
  .quiz-next-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #00ff41;
    border-radius: 4px;
    color: #00ff41;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  
  .quiz-next-button:hover {
    background: rgba(0,255,65,0.08);
    box-shadow: 0 0 24px rgba(0,255,65,0.22);
  }
  
  .quiz-next-button:active {
    transform: translateY(0);
  }
  
  /* ── Responsive ──────────────────────────────────────────
     On narrower screens, float panel won't fit to the right.
     Below 1200px, pin it as a fixed bottom-right toast instead.
     ========================================================= */
  @media (max-width: 1200px) {
    .quiz-float-panel {
      position: fixed;
      top: auto;
      left: auto;
      bottom: 28px;
      right: 24px;
      width: 300px;
      z-index: 200;
      /* Re-apply transition for fixed position */
      transform: translateY(8px);
    }
  
    .quiz-float-panel:not([hidden]) {
      transform: translateY(0);
    }
  
    .quiz-float-panel[hidden] {
      transform: translateY(8px);
    }
  }
  
  @media (max-width: 640px) {
    .quiz-float-panel {
      bottom: 16px;
      right: 12px;
      left: 12px;
      width: auto;
    }
  }

:root{
  --bg: #07090b;
  --panel: rgba(255,255,255,.03);
  --panel2: rgba(255,255,255,.045);
  --border: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.55);
  --muted2: rgba(255,255,255,.40);
  --accent: #22c55e;
  --accent2: rgba(34,197,94,.18);
  --danger: #ef4444;

  --container: 1080px;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);

  --topbar-h: 78px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(900px 600px at 50% 10%, rgba(34,197,94,.10), transparent 60%),
              radial-gradient(700px 420px at 15% 70%, rgba(34,197,94,.06), transparent 65%),
              radial-gradient(700px 420px at 85% 75%, rgba(34,197,94,.05), transparent 70%),
              var(--bg);
  color: var(--text);
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .22;
  mix-blend-mode: screen;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

/* fixed header padding helper */
body.has-fixed-topbar{
  padding-top: var(--topbar-h);
}
body.has-fixed-topbar:has(.browse-page) {
  padding-top: 0;
}

/* container */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}



/* top-progress header */
.top-progress{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  z-index: 100;
  background: linear-gradient(180deg, rgba(8,10,12,.92), rgba(8,10,12,.72));
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.top-progress .container{
  height: 100%;
  display: flex;
  align-items: center;
}

/* stepper */
.stepper{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: center;
  gap: 12px;
}
.stepper .step{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position: relative;
  padding: 10px 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
.stepper .step .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.16);
  background: transparent;
  flex: 0 0 auto;
}
.stepper .step::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.08);
  z-index: -1;
}
.stepper .step.active{
  color: rgba(34,197,94,.9);
}
.stepper .step.active .dot{
  background: rgba(34,197,94,.85);
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 6px rgba(34,197,94,.10);
}
.stepper .step.done{
  color: rgba(255,255,255,.62);
}
.stepper .step.done .dot{
  background: rgba(34,197,94,.55);
  border-color: rgba(34,197,94,.35);
}

/* buttons */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,.22);
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  color: #06120c;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(34,197,94,.26);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 56px rgba(34,197,94,.34);
  filter: brightness(1.02);
}

/* =========================================================
   Mission (browse intro)
   ========================================================= */
.mission-page{ padding: 30px 0 60px; }
.mission-wrap{ max-width: 840px; margin: 0 auto; }

.challenge-box{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 18px 18px 16px;
  text-align: center;
  margin: 18px auto 18px;
  box-shadow: var(--shadow);
}
.challenge-label{
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
.challenge-score{
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 6px;
}
.challenge-sub{
  margin-top: 6px;
  color: rgba(255,255,255,.55);
}

.mission-icon{
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
  margin: 18px auto 14px;
  font-size: 22px;
}
.mission-title{
  text-align:center;
  font-size: 44px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.mission-sub{
  text-align:center;
  color: rgba(255,255,255,.55);
  margin: 0 auto 20px;
  max-width: 660px;
  line-height: 1.65;
}
.mission-cards{
  display:flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.mission-card{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.mission-card-left{
  display:flex;
  gap: 12px;
}
.mission-card-ic{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
  flex: 0 0 auto;
}
.mission-card-title{ font-weight: 900; }
.mission-card-desc{ color: rgba(255,255,255,.55); margin-top: 4px; }
.mission-card-num{
  color: rgba(34,197,94,.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .10em;
}
.remember-box{
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.08);
  padding: 14px 14px 12px;
  color: rgba(34,197,94,.92);
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.remember-ic{ margin-top: 2px; }
.mission-cta{ display:flex; justify-content:center; margin-top: 22px; }

/* =========================================================
   Browse feed
   ========================================================= */
  .tracking-bar{
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(8,10,12,.70), rgba(8,10,12,.50));
  backdrop-filter: blur(12px);
  }
  .tracking-inner{
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
.tracking-left{
  display:flex;
  align-items:center;
  gap: 14px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.tracking-mid {
  display: flex;
  align-items: center;
  gap: 20px;
}
.tracking-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,.30);
  background: rgba(239,68,68,.08);
  color: rgba(239,68,68,.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tracking-warning {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.tracking-warning-line1 { color: rgba(239,68,68,0.85); }
.tracking-warning-line2 { color: rgba(255,255,255,0.55); }
.tracking-text-red {
  color: rgba(239, 68, 68, 0.95);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.tracking-dot-pulse {
  color: #ff2222;
  animation: tracking-pulse 1.8s ease-in-out infinite;
  font-size: 10px;
}
@keyframes tracking-pulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 0px rgba(255,34,34,0.8), 0 0 8px rgba(255,34,34,0.6);
  }
  50% {
    opacity: 0.4;
    text-shadow: 0 0 0px rgba(255,34,34,0), 0 0 0px rgba(255,34,34,0);
  }
}
.metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
[data-ui-clicks],
[data-ui-articles] {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
[data-ui-time] {
  display: inline-block;
  min-width: 5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stats{
  display:flex;
  align-items:center;
  gap: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
.stat{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  color: rgba(255,255,255,.50);
}
.finish-btn{
  border: none;
  border-radius: 14px;
  height: 44px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  color: #06120c;
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  box-shadow: 0 14px 40px rgba(34,197,94,.22);
}

.feed-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-top: 14px;
}
.feed-title-row{
  display:flex;
  align-items:center;
  gap: 12px;
}
.feed-ic{
  width: 30px; height: 30px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
}
.feed-title{
  font-size: 26px;
  font-weight: 900;
  margin: 0;
}
.feed-sub{
  color: rgba(255,255,255,.55);
  margin: 6px 0 0;
}

.tip-pill{
  align-self:flex-start;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.08);
  color: rgba(34,197,94,.95);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.tip-pill.show{
  opacity: 1;
  transform: translateY(0);
}

.feed-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px){ .feed-grid{ grid-template-columns: 1fr; } }

.article-card{
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease;
}
.article-card:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,.18);
}
.article-img{
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
}
.article-img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgba(0,0,0,.55) 100%);
}
.article-body{ padding: 18px; }
.article-title{
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 8px;
}
.article-desc{
  margin: 0 0 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.article-meta{
  display:flex;
  gap: 12px;
  color: rgba(255,255,255,.45);
  font-size: 12.5px;
}

/* Browse-only category pill (do NOT affect quiz pill) */
.browse-page .pill{
  display:inline-flex;
  align-items:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
  background: rgba(10,12,14,.55);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
}

/* image mapping (same card ids across rounds) */
.article-img[data-card-id="tech1"]{ background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=70"); }
.article-img[data-card-id="health1"]{ background-image: url("https://images.unsplash.com/photo-1580281657527-47f249e8f64a?auto=format&fit=crop&w=1200&q=70"); }
.article-img[data-card-id="shopping1"]{ background-image: url("https://images.unsplash.com/photo-1520975958221-6a3d4acba77a?auto=format&fit=crop&w=1200&q=70"); }
.article-img[data-card-id="social1"]{ background-image: url("https://images.unsplash.com/photo-1526045478516-99145907023c?auto=format&fit=crop&w=1200&q=70"); }
.article-img[data-card-id="finance1"]{ background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=70"); }
.article-img[data-card-id="education1"]{ background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=70"); }

/* modal */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 200;
}
.modal.open{ display:block; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.62);
}
.modal-card{
  position: relative;
  width: min(860px, calc(100% - 48px));
  margin: 80px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,12,14,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  overflow: hidden;
}
.modal-head{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.modal-title{ font-weight: 900; }
.modal-close{
  border: none;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 20px;
  cursor: pointer;
}
.modal-body{
  padding: 18px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
}

/* =========================================================
   QUIZ 
   ========================================================= */
.quiz-page {
  padding: 52px 0 88px;
}

.quiz-wrap,
.quiz-page .container,
main.quiz-page > .container {
  width: min(760px, calc(100% - 48px));
  max-width: 760px;
  margin: 0 auto;
}

.quiz-page .pill {
  display: table;
  margin: 0 auto 18px;
}

.quiz-title,
.quiz-page h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.quiz-sub,
.quiz-page .muted {
  max-width: 620px;
  margin: 0 auto 26px;
  text-align: center;
  color: rgba(255,255,255,.60);
  line-height: 1.55;
  font-size: 15px;
}

/* progress row */
.quiz-progress,
.quizProgress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 10px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.quiz-progress-bar,
.bar[data-qbar] {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-progress-fill,
.bar[data-qbar] > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0,255,153,.72), rgba(0,255,153,.95));
  box-shadow: 0 0 16px rgba(0,255,153,.26);
}

/* question card */
.quiz-card,
.quizCard,
section[data-card],
section[data-quiz] {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(180deg, rgba(13,18,29,.94), rgba(10,14,24,.96));
  box-shadow:
    0 22px 48px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.quiz-kicker,
.qHeader,
[data-qkicker] {
  margin-bottom: 10px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.quiz-question,
.quizCard h2,
[data-qtitle],
[data-q-title] {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.38;
  font-weight: 750;
  color: rgba(255,255,255,.96);
}

/* options */
.quiz-options,
.options,
[data-options],
[data-q-options] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option,
.option,
.options button,
[data-options] > button,
[data-q-options] > button {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
  color: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .14s ease,
    box-shadow .18s ease;
}

.quiz-option:hover,
.option:hover,
.options button:hover,
[data-options] > button:hover,
[data-q-options] > button:hover {
  transform: translateY(-1px);
  border-color: rgba(0,255,153,.22);
  background: rgba(0,255,153,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.opt-letter,
.letter,
.quiz-option .opt-letter,
.option .letter {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.quiz-option.selected,
.quiz-option.is-selected,
.quiz-option.correct,
.quiz-option.is-correct,
.quiz-option[aria-pressed="true"],
.option.selected,
.option.correct,
.option.is-selected,
.option.is-correct {
  border-color: rgba(0,255,153,.40);
  background: linear-gradient(180deg, rgba(0,255,153,.10), rgba(0,255,153,.06));
  box-shadow:
    inset 0 0 0 1px rgba(0,255,153,.10),
    0 10px 24px rgba(0,0,0,.20);
}

.quiz-option.selected .opt-letter,
.quiz-option.is-selected .opt-letter,
.quiz-option.correct .opt-letter,
.quiz-option.is-correct .opt-letter,
.quiz-option[aria-pressed="true"] .opt-letter,
.option.selected .letter,
.option.correct .letter,
.option.is-selected .letter,
.option.is-correct .letter {
  color: rgba(0,255,153,.96);
  border-color: rgba(0,255,153,.28);
  background: rgba(0,255,153,.08);
}

.quiz-option.selected::after,
.quiz-option.is-selected::after,
.quiz-option.correct::after,
.quiz-option.is-correct::after,
.quiz-option[aria-pressed="true"]::after,
.option.selected::after,
.option.correct::after,
.option.is-selected::after,
.option.is-correct::after {
  content: "✓";
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #07140d;
  background: rgba(0,255,153,.95);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(0,255,153,.10);
}

/* feedback */
.quiz-feedback,
.feedbackWrap,
[data-feedback] {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}

.quiz-feedback-title,
[data-feedback-title] {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quiz-feedback-title.ok,
[data-feedback-title].ok {
  color: rgba(0,255,153,.96);
}

.quiz-feedback-title.bad,
[data-feedback-title].bad {
  color: #ff7c7c;
}

.quiz-feedback-text,
[data-feedback-text] {
  color: rgba(255,255,255,.66);
  line-height: 1.55;
  font-size: 14px;
}

.quizNav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.btnGhost {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

.btnGhost:hover {
  background: rgba(255,255,255,.07);
}


/* =========================================================
   HEADER / STEPPER / PAGE WIDTH CONSISTENCY
   ========================================================= */
body > header,
.topbar,
.top-progress {
  height: var(--topbar-h, 74px);
}

body > header nav[data-stepper],
.topbar .stepper,
.top-progress .stepper,
.stepper {
  width: min(980px, calc(100% - 48px));
  max-width: 980px;
  margin: 0 auto;
}

.report-page .container,
.report1-page .container,
.report2-page .container,
.compare-page .container,
.comparison-page .container,
.resources-page .container,
.learn-page .container,
.learnWrap,
main[data-compare],
main[data-resources] {
  width: min(980px, calc(100% - 48px));
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.report-page,
.compare-page,
.comparison-page,
.resources-page,
.learn-page {
  padding-top: 38px;
  padding-bottom: 88px;
}

.report-head,
.compare-hero,
.resources-hero {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.compare-page .card,
.comparison-page .card,
.resources-page .card,
.learn-page .card,
.learnWrap .toolCard,
.learnWrap .faqItem {
  width: 100%;
}

.tableWrap,
.compareCards,
.grid-2,
.grid2,
.grid-4,
.grid4,
.toolsGrid,
.faqList {
  max-width: 100%;
}

@media (max-width: 768px) {
  .quiz-wrap,
  .quiz-page .container,
  .report-page .container,
  .report1-page .container,
  .report2-page .container,
  .compare-page .container,
  .comparison-page .container,
  .resources-page .container,
  .learn-page .container,
  .learnWrap {
    width: min(100%, calc(100% - 28px));
  }

  .quiz-card,
  .quizCard,
  section[data-card],
  section[data-quiz] {
    padding: 18px 16px 16px;
  }

  .quiz-question,
  .quizCard h2,
  [data-qtitle],
  [data-q-title] {
    font-size: 22px;
  }
}

/* ── Compare page ── */
.compareWrap { max-width: 980px; margin: 0 auto; }

.compareTitle {
  font-family: 'Audiowide', ui-sans-serif, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
  text-align: center;
}

.compareSub {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.compareSection { margin: 34px 0 42px; text-align: center; }
.compareSection .sectionTitle { justify-content: center; }

.compareCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 860px) { .compareCards { grid-template-columns: 1fr; } }

.compareCard {
  background: #111318 !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px 18px 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  text-align: center;
}

.compareCardLabel {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  margin-bottom: 12px;
}

.compareCardScore {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.96);
}

.compareCardMeta {
  color: rgba(255,255,255,0.38);
  margin-top: 12px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* ── Gauges ── */
.gauge {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 12px auto 8px;
}

.gaugeSvg {
  width: 180px;
  height: 180px;
  display: block;
}

.gaugeBg { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 3.6; }
.gaugeFill { fill: none; stroke: #22c55e; stroke-width: 3.6; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }

.gaugeCenter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.gaugeNum {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(255,255,255,.96);
}

.gaugeDen {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.28);
  margin-top: 2px;
}

/* ── Delta box ── */
.deltaBox {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 18px 16px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
}
.deltaNum { font-size: 22px; font-weight: 850; letter-spacing: -0.01em; }
.deltaMsg { color: rgba(255,255,255,0.58); max-width: 640px; line-height: 1.5; text-align: center; }
.deltaBox.is-up   { border-color: rgba(34,197,94,0.22);  background: rgba(34,197,94,0.08); }
.deltaBox.is-down { border-color: rgba(239,68,68,0.22);  background: rgba(239,68,68,0.08); }
.deltaBox.is-same { border-color: rgba(255,255,255,0.10); }

/* ── Points panel ── */
.pointsPanel {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 18px 16px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
}
.pointsPanel.is-improved {
  border-color: rgba(34,197,94,.22);
  background: rgba(34,197,94,.07);
}
.pointsNum { font-size: 22px; font-weight: 850; }
.pointsPanel.is-improved .pointsNum { color: #22c55e; }
.pointsMsg { color: rgba(255,255,255,0.56); text-align: center; font-size: 14px; }

/* ── Table ── */
.tableWrap { margin-top: 18px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.compareTable { width: 100%; border-collapse: collapse; }
.compareTable thead th {
  padding: 14px 14px; font-size: 13px;
  color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
}
.compareTable tbody td {
  padding: 14px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
}
.compareTable tbody tr:last-child td { border-bottom: none; }
.compareTable tbody td:first-child,
.compareTable thead th:first-child { text-align: left; color: rgba(255,255,255,.50); font-size: 13px; }
.compareTable tbody td:nth-child(2),
.compareTable tbody td:nth-child(3),
.compareTable thead th:nth-child(2),
.compareTable thead th:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }

/* ── CTA ── */
.ctaRow { display: flex; justify-content: center; padding: 16px 0 40px; }

.btnPrimary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  border: 1px solid rgba(34,197,94,.22);
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  color: #06120c; font-weight: 800; text-decoration: none;
  box-shadow: 0 18px 40px rgba(34,197,94,.22);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btnPrimary:hover { transform: translateY(-1px); box-shadow: 0 22px 55px rgba(34,197,94,.28); }

/* ── Compare section cards ── */
.compare-section-card {
  background: #111318;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  padding: 22px 28px;
}

.compare-section-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}

/* ── Privacy tools ── */
.privacy-tools-grid,
.topic-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 20px;
  align-items: start;
}
.privacy-tools-divider { background: rgba(255,255,255,.08); align-self: stretch; }
.privacy-tools-col,
.topic-compare-col { display: flex; flex-direction: column; gap: 10px; }

.privacy-tools-round {
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,.35);
  margin-bottom: 4px;
}

.privacy-tool-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  font-size: 13px;
}

.pt-icon  { text-align: center; flex-shrink: 0; font-size: 16px; }
.pt-label { font-size: 13px; color: rgba(255,255,255,.75); }
.pt-status { font-size: 12px; font-weight: 700; font-family: ui-monospace, monospace; white-space: nowrap; }
.pt-on  { color: #22c55e; }
.pt-off { color: rgba(255,255,255,.28); }

/* ── Topic chips ── */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
  color: rgba(34,197,94,.95);
  font-size: 12px; font-weight: 700;
}
.topic-chip--muted {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.35);
  font-weight: 400; font-style: italic;
}

/* ── Score breakdown dropdown ── */
.score-breakdown-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
  cursor: pointer;
  background: transparent;
}
.score-breakdown-summary {
  list-style: none;
  font-size: 12px;
  color: rgba(255,255,255,.40);
  font-family: ui-monospace, monospace;
  cursor: pointer;
  user-select: none;
  text-align: center;
}
.score-breakdown-summary::-webkit-details-marker { display: none; }
.score-breakdown-details[open] .score-breakdown-summary {
  color: rgba(255,255,255,.60);
  margin-bottom: 12px;
}
.score-breakdown-body { display: flex; flex-direction: column; gap: 6px; background: transparent; }
.breakdown-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-family: ui-monospace, monospace;
  color: rgba(255,255,255,.55);
}
.breakdown-label { flex: 1; }
.breakdown-detail { color: rgba(255,255,255,.35); }
.breakdown-pts { color: rgba(34,197,94,.80); font-weight: 700; min-width: 52px; text-align: right; }
.breakdown-mults {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.breakdown-mult-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  color: rgba(34,197,94,.90);
  font-family: ui-monospace, monospace;
}

/* =========================================================
   RESOURCES PAGE — resources.css
   Link after styles.css in resources.html
   ========================================================= */

/* ── Page layout ── */
.resources-page-main {
  padding-bottom: 88px;
}

/* ── Hero ── */
.res-hero {
  text-align: center;
  padding: 20px 0 24px;
}
.res-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.08);
  color: rgba(34,197,94,.92);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.res-hero-title {
  font-family: 'Audiowide', ui-sans-serif, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8e8e8;
  margin: 0 0 10px;
}
.res-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.50);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Category section ── */
.res-section {
  margin-bottom: 36px;
}
.res-section-header {
  margin-bottom: 16px;
}
.res-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.res-section-label-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}
.res-section-desc {
  font-size: 13px;
  color: rgba(255,255,255,.40);
  line-height: 1.6;
  margin: 0 0 14px;
}

/* ── Tool card grid ── */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* ── Tool cards ── */
.res-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  cursor: pointer;
}
.res-card:hover {
  border-color: rgba(34,197,94,.22);
  background: rgba(34,197,94,.04);
  transform: translateY(-1px);
}
.res-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.res-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.res-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  letter-spacing: .04em;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.18);
  color: rgba(34,197,94,.80);
  flex-shrink: 0;
}
.res-card-name {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  margin-bottom: 3px;
  line-height: 1.3;
}
.res-card-use {
  font-size: 12px;
  color: rgba(255,255,255,.42);
  line-height: 1.45;
}
.res-card-link {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: rgba(34,197,94,.60);
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.res-card-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 10px;
}

/* ── Team Recommendation cards ── */
.res-card--rec {
  border-color: rgba(255,209,102,.22);
  background: rgba(255,209,102,.04);
  position: relative;
  padding-top: 38px;
}
.res-card--rec:hover {
  border-color: rgba(255,209,102,.40);
  background: rgba(255,209,102,.07);
}
.res-card--rec .res-card-icon {
  background: rgba(255,209,102,.12);
  border-color: rgba(255,209,102,.28);
  color: rgba(255,209,102,.90);
}
.res-card--rec .res-card-link {
  color: rgba(255,209,102,.60);
}
.res-card--rec .res-card-desc {
  border-top-color: rgba(255,209,102,.10);
}
.res-rec-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,209,102,.85);
  background: rgba(255,209,102,.10);
  border: 1px solid rgba(255,209,102,.25);
  border-radius: 999px;
  padding: 3px 9px;
}
.res-rec-badge svg {
  width: 9px;
  height: 9px;
  fill: rgba(255,209,102,.90);
  flex-shrink: 0;
}

/* ── FAQ section ── */
.res-faq-wrap {
  max-width: 760px;
  margin: 0 auto 36px;
}

.faqList {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faqItem {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.faqItem summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
  color: rgba(255,255,255,.88);
}
.faqItem summary::-webkit-details-marker { display: none; }

.faqItem summary::after {
  content: "▾";
  color: rgba(255,255,255,.55);
  font-size: 14px;
  transition: transform .18s ease, color .18s ease;
}
.faqItem[open] summary::after {
  transform: rotate(180deg);
  color: rgba(34,197,94,.85);
}
.faqItem[open] summary {
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

.faqBody {
  padding: 0 16px 16px;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
}

/* ── Restart button ── */
.restartWrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.restartBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.75);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.restartBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.18);
  background: rgba(255,255,255,.04);
}
.restartBtn svg {
  width: 18px;
  height: 18px;
  opacity: .85;
}

/* ── Completion box ── */
.res-complete {
  max-width: 760px;
  margin: 0 auto 12px;
  border-radius: 18px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.07);
  padding: 24px 28px;
  text-align: center;
}
.res-complete-title {
  font-family: 'Audiowide', ui-sans-serif, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  margin: 0 0 8px;
}
.res-complete-text {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0 0 18px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PATCH (Index + Reports) — quiz untouched
   ========================================================= */

/* 1) Report header topbar */
.topbar{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  z-index: 100;
  background: linear-gradient(180deg, rgba(8,10,12,.92), rgba(8,10,12,.72));
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.topbar .topbarInner{ height: 100%; display:flex; align-items:center; }
.topbar nav{ width: 100%; }

/* 2) Index / landing */
.landing-page{ scroll-snap-type: y proximity; }
.landing-page > section{ scroll-snap-align: start; padding: clamp(56px, 9vh, 110px) 0; }

.hero{
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display:grid;
  place-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(180deg, rgba(6,8,10,.78), rgba(6,8,10,.92)),
    url("https://media.base44.com/images/public/69e88c7edb2d26f1c68c9c28/f0d843252_Secondgrid.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(700px 420px at 15% 70%, rgba(34,197,94,.08), transparent 65%),
    radial-gradient(700px 420px at 85% 75%, rgba(34,197,94,.06), transparent 70%);
  pointer-events:none;
}
.hero-content{
  position:relative;
  text-align:center;
  max-width: 920px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.08);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .eye-ic{
  width: 18px; height: 18px;
  display:grid; place-items:center;
  border-radius: 8px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
}
.hero-title{
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.hero-title span{ color: var(--accent); }
.hero-description{
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 26px;
}
.primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.1);
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  color: #06120c;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 18px 44px rgba(34,197,94,.26);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.primary-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 56px rgba(34,197,94,.34);
  filter: brightness(1.02);
}
.hero-time {
  margin-top: 12px;
  color: rgba(255,255,255,.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 14px;
}

/* section titles */
.section-title{
  text-align:center;
  font-size: clamp(22px, 2.4vw, 34px);
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}
.section-title::after{
  content:"";
  display:block;
  width: 44px;
  height: 2px;
  margin: 10px auto 0;
  background: rgba(34,197,94,.8);
  border-radius: 999px;
}

/* discover grid */
.info-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 920px){ .info-grid{ grid-template-columns: 1fr; } }
.info-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.info-ic{
  width: 36px; height: 36px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
  margin-bottom: 12px;
}
.info-title{ font-weight: 900; margin: 0 0 8px; }
.info-text{ color: var(--muted); line-height: 1.65; margin: 0; }

/* how-it-works list */
.steps-list{
  display:flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.step-card{
  display:flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.step-num{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:grid; place-items:center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
  font-weight: 900;
}
.step-title{ font-weight: 900; margin: 0 0 4px; }
.step-desc{ color: var(--muted); margin: 0; line-height: 1.55; }

/* disclaimer */
.warning{
  max-width: 880px;
  margin: 26px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  padding: 18px 18px 16px;
}
.warning-title{
  display:flex; align-items:center; gap: 10px;
  font-weight: 900;
  color: #ff6b6b;
  margin: 0 0 8px;
}
.warning-text{ color: rgba(255,255,255,.70); line-height: 1.65; margin: 0; }

/* final CTA */
.final-cta{
  min-height: calc(100vh - var(--topbar-h));
  display:grid;
  place-items:center;
  padding: clamp(56px, 9vh, 110px) 0;
}
.final-cta .cta-title{
  text-align:center;
  font-size: clamp(26px, 3vw, 44px);
  margin: 0 0 10px;
}
.final-cta .cta-title span{ color: var(--accent); }
.final-cta .cta-sub{
  text-align:center;
  color: rgba(255,255,255,.46);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  margin: 0 0 22px;
}

/* 3) Reports missing cards/grids */
.page{ padding: 0 0 56px; }
.report-head{ text-align:center; margin: 26px 0 30px; }

.reportBadge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.24);
  background: rgba(34,197,94,.08);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
}
.reportBadge .dot{ width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.reportTitle{
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 8px;
}
.reportSub{ color: rgba(255,255,255,.55); margin: 0; }

.gaugeWrap{ display:flex; justify-content:center; margin: 22px 0 26px; }
.gauge{ width: 220px; height: 140px; position: relative; }
.gaugeSvg{ width: 100%; height: 100%; display:block; }
.gaugeCenter{ position:absolute; inset:0; display:grid; place-items:center; transform: translateY(18px); }
.gaugeNum{ font-size: 34px; font-weight: 900; color: #ffd166; }
.gaugeLabel{ font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }
.gaugeTag{
  display:inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,209,102,.35);
  background: rgba(255,209,102,.10);
  color: #ffd166;
  font-size: 12px;
  font-weight: 900;
}

.sectionTitle{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  margin: 26px 0 14px;
}
.sectionTitle .secIc{
  width: 26px; height: 26px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px){ .grid-2{ grid-template-columns: 1fr; } }

.infer-card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 16px 16px 14px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.infer-ic{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
}
.infer-title{ font-weight: 900; margin: 0 0 6px; }
.infer-pill{
  display:inline-flex;
  align-items:center;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #ff6b6b;
}

.grid-4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 920px){ .grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px){ .grid-4{ grid-template-columns: 1fr; } }

.stat-card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 18px 16px 16px;
}
.stat-ic{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: var(--accent);
  margin-bottom: 10px;
}
.stat-num{ font-size: 28px; font-weight: 900; margin: 0; }
.stat-label{ color: rgba(255,255,255,.55); font-size: 13px; margin-top: 4px; }

.topicBox{
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.topicTitle{ color: rgba(255,255,255,.65); font-size: 13px; margin: 0 0 10px; }
.topicPills{ display:flex; flex-wrap:wrap; gap: 10px; }
.topicPill{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.10);
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
}
.topicPill.muted{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.55);
}

/* report1_explain pipeline */
.report-explain-page .pipeline{
  max-width: 760px;
  margin: 32px auto 0;
  display:flex;
  flex-direction: column;
  gap: 36px;
}
.pipe-row{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pipe-action-header {
  padding: 0 4px;
}
.pipe-kicker{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  color: rgba(255,255,255,.40);
  margin-bottom: 6px;
}
.pipe-action-text {
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,.90);
  margin-top: 4px;
}
.pipe-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pipe-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pipe-col-label {
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0 4px;
}
.pipe-col-label--signal { color: rgba(34,197,94,.80); }
.pipe-col-label--infer  { color: rgba(239,100,100,.80); }
.pipe-box{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 16px 18px;
  height: 100%;
  box-sizing: border-box;
}
.pipe-title{ font-weight: 900; margin: 0 0 6px; }
.pipe-text{ color: rgba(255,255,255,.68); margin: 0; line-height: 1.55; font-size: 15px; }
.pipe-signal{
  border-color: rgba(34,197,94,.22);
  background: rgba(34,197,94,.08);
}
.pipe-infer{
  border-color: rgba(239,68,68,.22);
  background: rgba(239,68,68,.08);
}
.pipe-mid{ display: none; }
@media (max-width: 640px){
  .pipe-cards-row{ grid-template-columns: 1fr; }
}
.quote{
  max-width: 760px;
  margin: 28px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 18px;
  text-align:center;
}
.quote strong{ color: var(--accent); }

/* =========================================================
   INDEX PAGE — DI-D hero layout
   ========================================================= */

  .did-hero {
    position: relative;
    min-height: 75vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 88px 0 80px;
    overflow: hidden;
  }
  
  /* ── Left column ── */
  .did-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  .did-project-name {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .did-project-accent {
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #e8e8e8;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .did-project-d {
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #00ff41;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .did-project-sub {
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 11px;
    color: #3a6a3a;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-left: 8px;
  }
  
  .did-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #00b32c;
    text-transform: uppercase;
    margin-top: -12px;
  }
  .did-eyebrow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2222;
    flex-shrink: 0;
    animation: did-pulse 1.8s ease-in-out infinite;
  }
  @keyframes did-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,34,34,0.5); }
    50%       { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,34,34,0); }
  }
  
  .did-heading {
    font-family: 'Audiowide', ui-sans-serif, sans-serif;
    font-size: clamp(48px, 5.8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #e8e8e8;
    margin: 0;
  }
  .did-heading-accent {
    color: #00ff41;
  }
  
  .did-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 36px;
    background: transparent;
    border: 2px solid #00ff41;
    border-radius: 4px;
    color: #00ff41;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .did-cta:hover {
    background: rgba(0,255,65,0.08);
    box-shadow: 0 0 24px rgba(0,255,65,0.22);
  }
  .did-cta-chevron {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: -0.02em;
  }

/* Finish Browsing button — smaller than the hero CTA */
.tracking-right .did-cta {
  padding: 8px 16px;
  font-size: 13px;
  gap: 6px;
  border-width: 1px;
}
  
  /* ── Right column ── */
  .did-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .did-mission {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(0,255,65,0.14);
    border-radius: 8px;
    padding: 20px 22px;
  }
  .did-mission-label {
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #3a6a3a;
    text-transform: uppercase;
    margin: 0 0 10px;
  }
  .did-mission-title {
    font-family: 'Audiowide', ui-sans-serif, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #e8e8e8;
    margin: 0 0 10px;
  }
  .did-mission-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin: 0;
  }
  
  /* ── Session log (sr-*) sits inside .did-right naturally ── */
  /* Force the log to full width inside right col */
  .did-right .sr-wrap {
    width: 100%;
  }
  
  @media (max-width: 860px) {
    .did-hero {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .did-right {
      order: -1;
    }
  }
  
  /* =========================================================
   BROWSE PAGE ENHANCEMENTS — Cookie, VPN, Ad Blocker
   ========================================================= */

/* ── Wi-Fi Modal (shown before browse starts) ── */
.wifi-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wifi-modal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: min(460px, calc(100% - 40px));
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.wifi-modal-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.wifi-modal-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px;
}
.wifi-modal-sub {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.wifi-network-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
}
.wifi-network-name {
  font-weight: 700;
  font-size: 14px;
}
.wifi-network-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.wifi-tag-open {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.30);
  color: #ff6b6b;
}
.wifi-tag-secure {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.28);
  color: #22c55e;
}
.wifi-btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.wifi-btn-connect {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.30);
  background: rgba(239,68,68,0.08);
  color: #ff6b6b;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s;
}
.wifi-btn-connect:hover { background: rgba(239,68,68,0.14); }
.wifi-btn-secure {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.30);
  background: rgba(34,197,94,0.08);
  color: #22c55e;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s;
}
.wifi-btn-secure:hover { background: rgba(34,197,94,0.14); }
.wifi-btn-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin: 4px 0 0;
}

/* ── Browser chrome bar — hidden, controls live in titlebar ── */
.browser-chrome {
  display: none !important;
}

.browser-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}
.browser-chip:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.80);
}
.browser-chip.chip-active-vpn {
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
  color: #22c55e;
}
.browser-chip.chip-active-block {
  border-color: rgba(99,179,237,0.35);
  background: rgba(99,179,237,0.08);
  color: #63b3ed;
}
.browser-chip.chip-active-cookies {
  border-color: rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: #fbbf24;
}

/* Extensions dropdown */
.ext-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 300;
  display: none;
}
.ext-dropdown.open { display: block; }
.ext-dropdown-title {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 4px 6px 8px;
}
.ext-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.ext-row:hover { background: rgba(255,255,255,0.04); }
.ext-row-left { display: flex; align-items: center; gap: 10px; }
.ext-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ext-name { font-size: 13px; font-weight: 700; }
.ext-desc { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.ext-toggle {
  width: 34px; height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ext-toggle::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.ext-toggle.on { background: #22c55e; }
.ext-toggle.on::after { transform: translateX(14px); }

/* ext wrapper needs relative for dropdown */
.ext-wrap { position: relative; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.60);
  z-index: 400;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-banner-title {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 5px;
}
.cookie-banner-text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
}
.cookie-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-accept-all {
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  color: #06120c;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34,197,94,0.22);
  transition: filter 0.18s;
}
.cookie-accept-all:hover { filter: brightness(1.04); }
.cookie-manage {
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.70);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-manage:hover { background: rgba(255,255,255,0.08); }
.cookie-reject {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.cookie-reject:hover { color: rgba(255,255,255,0.65); }

/* Cookie preferences modal */
.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-prefs-overlay.show { display: flex; }
.cookie-prefs-modal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 26px 26px 22px;
  width: min(520px, calc(100% - 40px));
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.cookie-prefs-title {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}
.cookie-prefs-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  margin: 0 0 20px;
  line-height: 1.55;
}
.cookie-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cookie-pref-label { font-weight: 800; font-size: 14px; margin: 0 0 3px; }
.cookie-pref-desc  { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.45; }
.cookie-pref-toggle {
  width: 40px; height: 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s;
  background: rgba(255,255,255,0.12);
}
.cookie-pref-toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.cookie-pref-toggle.on { background: #22c55e; }
.cookie-pref-toggle.on::after { transform: translateX(18px); }
.cookie-pref-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cookie-prefs-save {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  color: #06120c;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

/* ── Ad slots & sponsored cards ── */
.ad-slot {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: opacity 0.4s, max-height 0.4s;
  overflow: hidden;
  max-height: 120px;
}
.ad-slot.blocked {
  display: none !important;
}
.ad-slot-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-family: ui-monospace, monospace;
}
.ad-slot-content { font-size: 14px; color: rgba(255,255,255,0.60); }
.ad-slot-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,209,102,0.10);
  border: 1px solid rgba(255,209,102,0.25);
  color: #ffd166;
  font-weight: 800;
  white-space: nowrap;
}

/* Sponsored tag */
.sponsored-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  color: #b45309;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
}

/* Sponsored card — smooth hide when blocked */
.article-card[data-sponsored="true"] {
  transition: opacity 0.3s ease;
}
.article-card[data-sponsored="true"].sponsor-blocked {
  display: none;
}

/* ── Newsletter popup ── */
.newsletter-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.50);
  z-index: 380;
  display: none;
  animation: slide-up 0.35s ease;
}
.newsletter-popup.show { display: block; }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.newsletter-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.40);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.newsletter-title { font-size: 15px; font-weight: 900; margin: 0 0 5px; }
.newsletter-text  { font-size: 12px; color: rgba(255,255,255,0.50); margin: 0 0 12px; line-height: 1.5; }
.newsletter-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.newsletter-sub {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, #1fe27b, #18c86a);
  color: #06120c;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

/* ── Blocker hint tooltip ── */
.blocker-hint {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: #0d1117;
  border: 1px solid rgba(99,179,237,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #63b3ed;
  z-index: 380;
  display: none;
  animation: slide-up 0.3s ease;
  max-width: 220px;
  line-height: 1.5;
}
.blocker-hint.show { display: block; }

/* ── Tracker overlay dots (visual noise in round 1) ── */
.tracker-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(239,68,68,0.55);
  pointer-events: none;
  z-index: 9999;
  animation: tracker-fade 1.8s ease forwards;
}
@keyframes tracker-fade {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(2.5); }
}

/* ── Round 2 hint bar ── */
.r2-hint-bar {
  background: rgba(34,197,94,0.08);
  border-bottom: 1px solid rgba(34,197,94,0.15);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(34,197,94,0.85);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.06em;
}

/* =========================================================
   BROWSER WINDOW
   ========================================================= */
.browser-window {
  margin: 24px auto 48px;
  width: 90%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

.browser-window-titlebar {
  background: #1e2025;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-window-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.browser-window-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-window-addressbar {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 5px 8px 5px 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-window-url {
  flex: 1;
  color: rgba(255,255,255,0.45);
}

.browser-settings-wrap {
  position: relative;
  flex-shrink: 0;
}

.browser-settings-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
  color: rgba(255,255,255,0.60);
  cursor: pointer;
  font-size: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.browser-settings-btn:hover {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.90);
}

.browser-settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.50);
  z-index: 9999;
  display: none;
}
.browser-settings-dropdown.open {
  display: block;
}
.browser-settings-dropdown-title {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 4px 6px 8px;
  font-family: ui-monospace, monospace;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.settings-row:hover {
  background: rgba(255,255,255,0.05);
}
.settings-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.settings-row-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.settings-row-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  margin-top: 1px;
}

/* ── White content area ── */
.browser-window-content {
  background: #ffffff;
  color: #111111;
  padding: 32px 40px 48px;
  min-height: 480px;
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
}

.browser-window-content .feed-header {
  margin-bottom: 24px;
}

.browser-window-content .feed-title {
  color: #111111 !important;
  font-size: 26px;
}

.browser-window-content .feed-sub {
  color: #666666 !important;
}

.browser-window-content .feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .browser-window-content .feed-grid {
    grid-template-columns: 1fr;
  }
}

.browser-window-content .article-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111111 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
  border-radius: 12px;
  text-align: left;
  width: 100%;
}

.browser-window-content .article-card:hover {
  border-color: #d1d5db !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}

.browser-window-content .card-title {
  color: #111111 !important;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}

.browser-window-content .card-desc {
  color: #555555 !important;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.browser-window-content .card-meta .meta {
  color: #888888 !important;
  font-size: 12px;
}

.browser-window-content .card-content {
  padding: 14px 16px 16px;
}

.browser-window-content .card-media {
  height: 140px;
  background-color: #f3f4f6;
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
  margin: 10px 10px 0 10px;
}

/* Pills visible in round 2 / browser context */
.browser-window-content .pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  margin-bottom: 8px;
}

/* Ad slots in white context */
.browser-window-content .ad-slot {
  background: #fffbeb !important;
  border: 1px dashed #f59e0b !important;
  color: #92400e;
  grid-column: 1 / -1;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.browser-window-content .ad-slot-label {
  color: #b45309 !important;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}

.browser-window-content .ad-slot-content {
  color: #78350f !important;
  font-size: 13px;
}

.browser-window-content .ad-slot-badge {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.40);
  color: #b45309;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.browser-window-content .sponsored-tag {
  background: rgba(245,158,11,0.12) !important;
  border-color: rgba(245,158,11,0.35) !important;
  color: #b45309 !important;
}

/* =========================================================
   COOKIE BAR & PREFERENCES MODAL (browse1)
   Fixed to viewport — always visible regardless of scroll
   ========================================================= */

/* Bar — fixed to real viewport bottom */
.cookie-bar-fixed {
  position: sticky;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 800;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  width: calc(100% - 48px);
  margin: 0 auto;
  display: block;
}
.cookie-bar-fixed[hidden] { display: none; }

.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  flex-wrap: wrap;
}

.cookie-bar-text {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.cookie-bar-manage-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(107,114,128,0.45);
  cursor: pointer;
  font-family: inherit;
}
.cookie-bar-manage-btn:hover { color: #374151; }

.cookie-bar-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-bar-accept {
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;
}
.cookie-bar-accept:hover { background: #1f2937; }

/* Prefs modal — fixed, covers full viewport including scroll */
.cookie-prefs-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-prefs-modal-overlay[hidden] { display: none; }

.cookie-prefs-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: min(480px, calc(100% - 40px));
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  font-family: ui-sans-serif, system-ui, sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-prefs-box-title {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 6px;
}

.cookie-prefs-box-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.55;
}

.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #f3f4f6;
}

.cookie-pref-item-label {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3px;
}

.cookie-pref-item-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.45;
}

/* Toggle switch — proper checkbox-based, works in all contexts */
.cp-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cp-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s;
}
.cp-toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cp-toggle input:checked + .cp-toggle-track { background: #22c55e; }
.cp-toggle input:checked + .cp-toggle-track::after { transform: translateX(20px); }
.cp-toggle input:disabled + .cp-toggle-track { opacity: 0.5; cursor: not-allowed; }

.cookie-prefs-save-btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;
}
.cookie-prefs-save-btn:hover { background: #1f2937; }

/* =========================================================
   ARTICLE READER MODAL
   ========================================================= */
.article-reader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.article-reader[hidden] { display: none; }

.article-reader-card {
  background: #ffffff;
  border-radius: 16px;
  width: min(760px, 100%);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  position: relative;
  margin: auto;
}

.article-reader-hero {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.article-reader-hero-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #9ca3af;
}

.article-reader-body { padding: 32px 36px 36px; }

.article-reader-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-reader-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}
.article-reader-pill.sponsored {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
  color: #b45309;
}

.article-reader-readtime { font-size: 12px; color: #9ca3af; }

.article-reader-title {
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.article-reader-desc {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 24px;
  font-style: italic;
  border-left: 3px solid #e5e7eb;
  padding-left: 14px;
}

.article-reader-content { font-size: 15px; color: #374151; line-height: 1.8; }
.article-reader-content p { margin: 0 0 16px; }
.article-reader-content h2,
.article-reader-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 28px 0 10px;
}

.article-reader-source {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #9ca3af;
}
.article-reader-source a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-reader-source a:hover { color: #1d4ed8; }

.article-reader-ai-note {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.article-reader-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  z-index: 10;
  transition: background 0.18s;
}
.article-reader-close:hover { background: rgba(0,0,0,0.78); }

/* ── Card media images (browser window context) ── */
.card-media {
  height: 140px;
  background: #f3f4f6;
  border-radius: 10px 10px 0 0;
  margin: 10px 10px 0 10px;
  background-size: cover;
  background-position: center;
}
.card-media--smart-speaker { background-image: url('./images/smart-speaker.jpg'); }
.card-media--health        { background-image: url('./images/Mobile-Health.jpg'); }
.card-media--pricing       { background-image: url('./images/Dynamic-Pricing.jpg'); }
.card-media--social        { background-image: url('./images/Social-Network.jpg'); }
.card-media--finance       { background-image: url('./images/banks-social-network.jpg'); }
.card-media--education     { background-image: url('./images/Student-Monitoring.jpg'); }

/* ==========================================================
   REPORT 1 — paste this at the very bottom of styles.css
   Replace any previous "REPORT 1" block entirely.
   ========================================================== */

/* ── Page shell ── */
.r1-page {
  padding-top: 20px !important;
  padding-bottom: 88px;
  min-height: 100vh;
}

.r1-wrap {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Page header ── */
.r1-header {
  text-align: center;
  padding-bottom: 8px;
}

.r1-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.08);
  color: rgba(34,197,94,.92);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.r1-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: r1dot 1.8s ease-in-out infinite;
}
@keyframes r1dot {
  0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(34,197,94,.5); }
  50%    { opacity:.5; box-shadow:0 0 0 6px rgba(34,197,94,0); }
}

.r1-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: rgba(255,255,255,.96);
  line-height: 1.07;
}

.r1-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.48);
  line-height: 1.65;
  margin: 0;
}

.r1-subtitle-warn {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

/* ── Shared card ── */
.r1-card {
  background: #111318;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

.r1-section-head {
  margin-bottom: 20px;
}

.r1-section-title {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.r1-section-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.42);
  line-height: 1.55;
  margin: 0;
}

/* ── Score card ── */
.r1-score-card {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.r1-score-ring-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}

.r1-ring-svg {
  width: 190px;
  height: 190px;
  transform: rotate(-90deg);
}

.r1-ring-track {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 14;
}

.r1-ring-fill {
  fill: none;
  stroke: #22c55e;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1);
}

.r1-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.r1-score-num {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,.96);
  line-height: 1;
}

.r1-score-denom {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.28);
}

.r1-score-lev {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #22c55e;
  margin-top: 2px;
  max-width: 90px;
  word-break: break-word;
  text-align: center;
  line-height: 1.2;
}

.r1-score-caption {
  font-size: 10px;
  color: rgba(255,255,255,.28);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  margin-top: 2px;
}

.r1-score-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.r1-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.58);
}

.r1-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.r1-legend-note {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: rgba(255,255,255,.52);
  line-height: 1.5;
}

.r1-legend-note strong {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

/* ── Inferences ── */
.r1-infer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .r1-infer-grid { grid-template-columns: 1fr; }
}

.r1-infer-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}

.r1-infer-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.r1-infer-title {
  font-weight: 800;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  margin-bottom: 5px;
}

.r1-infer-reason {
  font-size: 12.5px;
  color: rgba(255,255,255,.50);
  line-height: 1.55;
}

.r1-topics-block {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.r1-topics-label {
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

.r1-topics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.r1-topic-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
  color: rgba(34,197,94,.95);
  font-size: 12px;
  font-weight: 700;
}

.r1-topic-chip--muted {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.35);
  font-weight: 400;
  font-style: italic;
}

/* ── Privacy shield ── */
.r1-shield-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.r1-shield-score {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.92);
  flex-shrink: 0;
  min-width: 80px;
}

.r1-shield-denom {
  font-size: 36px;
  color: rgba(255,255,255,.28);
  font-weight: 700;
}

.r1-shield-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.r1-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: border-color .2s;
}

.r1-check--pass {
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.06);
}

.r1-check--fail {
  border-color: rgba(239,68,68,.18);
  background: rgba(239,68,68,.04);
}

.r1-check-box {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.35);
}

.r1-check-pass {
  background: rgba(34,197,94,.16);
  color: #22c55e;
}

.r1-check-fail {
  background: rgba(239,68,68,.12);
  color: #ef4444;
}

.r1-check-name {
  font-weight: 800;
  font-size: 14px;
  color: rgba(255,255,255,.90);
}

.r1-check-desc {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  margin-top: 2px;
}

.r1-shield-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,.24);
  background: rgba(34,197,94,.07);
  font-size: 13px;
  color: rgba(34,197,94,.90);
  line-height: 1.55;
}
.r1-shield-tip[hidden] {
  display: none !important;
}

.r1-shield-tip strong {
  color: rgba(34,197,94,1);
  font-weight: 800;
}
.r1-shield-tip--success {
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.09);
  color: rgba(34,197,94,.95);
}
.r1-shield-tip--success strong {
  color: rgba(34,197,94,1);
}

.r1-shield-tip--full {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  margin-top: 28px;
  box-sizing: border-box;
  font-size: 16px;
}

/* ── Stats row ── */
.r1-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

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

.r1-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-align: center;
}

.r1-stat-val {
  font-size: 32px;
  font-weight: 900;
  color: rgba(255,255,255,.96);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.r1-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  letter-spacing: .04em;
}

/* ── Charts row ── */
.r1-charts-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 680px) {
  .r1-charts-row { grid-template-columns: 1fr; }
}

.r1-chart-card {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 20px 20px 16px;
}

.r1-chart-card--wide { /* inherits */ }

.r1-chart-label {
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.r1-chart-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.r1-chart-body--pie canvas { display: block; }
.r1-chart-body--bar { align-items: stretch; overflow-x: auto; }
.r1-chart-body--bar canvas { max-width: 100%; }

.r1-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.r1-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

.r1-leg-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.r1-chart-empty {
  font-size: 13px;
  color: rgba(255,255,255,.25);
  text-align: center;
  padding: 28px 0 10px;
  font-style: italic;
  margin: 0;
}

/* ── CTA ── */
.r1-cta {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

/* ── Quiz how-to notice ── */
.quiz-how-to {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.07);
  font-size: 13.5px;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
  margin-bottom: 8px;
}
.quiz-how-to strong { color: rgba(255,255,255,.92); font-weight: 700; }

/* ── Lighter quiz card ── */
.quiz-card--light {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* ── Lighter feedback panel ── */
.quiz-feedback--light {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* ── Click hint inside card ── */
.quiz-click-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.32);
  font-family: ui-monospace, monospace;
  letter-spacing: .05em;
  text-align: center;
  transition: color .2s;
}
.quiz-hint--confirm {
  color: rgba(34,197,94,.75);
  letter-spacing: .04em;
}

/* ── Muted (unchosen) options after pick ── */
.quiz-option--muted {
  opacity: 0.38 !important;
}

/* ── Correct answer ── */
.quiz-option.correct {
  border-color: rgba(0,255,153,.45) !important;
  background: linear-gradient(180deg, rgba(0,255,153,.12), rgba(0,255,153,.07)) !important;
  opacity: 1 !important;
}
.quiz-option.correct .opt-letter {
  color: rgba(0,255,153,.96) !important;
  border-color: rgba(0,255,153,.30) !important;
  background: rgba(0,255,153,.10) !important;
}
.quiz-option.correct::after {
  content: "✓";
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,255,153,.95);
  color: #07140d;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(0,255,153,.12);
}

/* ── Incorrect answer ── */
.quiz-option.incorrect {
  border-color: rgba(239,68,68,.45) !important;
  background: rgba(239,68,68,.08) !important;
  opacity: 1 !important;
}
.quiz-option.incorrect .opt-letter {
  color: #ef4444 !important;
  border-color: rgba(239,68,68,.35) !important;
  background: rgba(239,68,68,.10) !important;
}
.quiz-option.incorrect::after {
  content: "✗";
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(239,68,68,.14);
}
/* ==========================================================
   ADDITIONS — paste at the bottom of styles.css
   ========================================================== */

/* Fix: cookie prefs overlay covers full screen, not just browser window */
.cookie-prefs-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 900;
}

/* Fix: hidden attribute overridden by display:flex on shield tips */
.r1-shield-tip[hidden],
.r1-shield-tip--success[hidden] {
  display: none !important;
}

/* ── Score formula panel ── */
.r1-formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.r1-formula-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
}

.r1-formula-ic {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.r1-formula-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  flex: 1;
  min-width: 0;
}

.r1-formula-val {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: rgba(34,197,94,.85);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.r1-formula-reducers {
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,.18);
  background: rgba(34,197,94,.06);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r1-formula-reducer-title {
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: rgba(34,197,94,.60);
  margin-bottom: 4px;
}

.r1-formula-reducer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.r1-formula-reducer-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  color: rgba(34,197,94,.90);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
/* ── Formula equation row ── */
.r1-formula-equation {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}

.r1-formula-eq-label {
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

.r1-formula-eq-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.8;
}

.r1-formula-eq-term {
  color: rgba(255,255,255,.75);
}

.r1-formula-eq-op {
  color: rgba(255,255,255,.30);
  font-weight: 700;
}

.r1-formula-eq-base {
  color: rgba(255,255,255,.55);
  font-weight: 700;
}

.r1-formula-eq-result {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.r1-formula-eq-mult {
  color: #22c55e;
  font-weight: 900;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.28);
  border-radius: 6px;
  padding: 1px 7px;
}

/* ── Score formula dropdown ── */
.r1-formula-details {
  cursor: pointer;
}
.r1-formula-details[open] .r1-formula-arrow {
  transform: rotate(180deg);
}
.r1-formula-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}
.r1-formula-summary::-webkit-details-marker { display: none; }
.r1-formula-arrow {
  font-size: 18px;
  color: rgba(255,255,255,.40);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.r1-formula-body {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

.center {
  text-align: center;
}