/*
Theme Name:  PepStackHQ
Theme URI:   https://pepstackhq.com
Description: Fast, minimal research-tools theme for PepStackHQ. 95+ PageSpeed. No jQuery.
Author:      PepStackHQ
Version:     1.0.0
Text Domain: pepstackhq
*/

/* ============================================================
   DESIGN SYSTEM — Custom Properties
============================================================ */
:root {
  --bg-page:    #0D1F2D;
  --bg-card:    #0F2333;
  --bg-inner:   #162535;
  --bg-deep:    #0A1A28;
  --bg-site:    #060B17;

  --border:     #1E3548;
  --border-in:  #2A3F52;
  --border-faint: #1A2E3F;

  --accent:     #00A896;
  --accent-br:  #02D4BE;
  --accent-dk:  #007A6E;

  --text-pr:    #F0F4F8;
  --text-se:    #C8D8E8;
  --text-mu:    #7A9BB5;
  --text-fa:    #4A6177;

  --r-card:     16px;
  --r-inner:    12px;
  --r-btn:      8px;

  --header-h:   64px;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-page);
  color: var(--text-se);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: var(--bg-card);
  color: var(--text-pr);
  border: 1.5px solid var(--border-in);
  border-radius: var(--r-btn);
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-br); }
::selection { background: rgba(2,212,190,0.25); color: var(--text-pr); }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', system-ui, sans-serif;
  color: var(--text-pr);
  line-height: 1.15;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   READ PROGRESS BAR
============================================================ */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-br));
  z-index: 9999;
  will-change: width;
  pointer-events: none;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13,31,45,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0,168,150,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-pr);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.nav-logo .logo-hq { color: var(--accent); }

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mu);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent-br); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 910;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-mu);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-down nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(13,31,45,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 899;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { max-height: 300px; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 1.25rem;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mu);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent-br); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #060B17;
  border-top: 1px solid rgba(0,168,150,0.15);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-pr);
  margin-bottom: 0.6rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-fa);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-fa);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.82rem;
  color: var(--text-mu);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-br); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-fa);
  line-height: 1.6;
  max-width: 280px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-fa);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  border-radius: var(--r-btn);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease, opacity var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
}
.btn-primary:hover {
  background: var(--accent-br);
  color: #0D1F2D;
}
.btn-ghost {
  background: transparent;
  color: var(--text-mu);
  border: 1px solid var(--border);
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-br);
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}
.btn-block { width: 100%; }

/* ============================================================
   BADGE / PILL
============================================================ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-br);
  background: rgba(0,168,150,0.12);
  border: 1px solid rgba(0,168,150,0.4);
  border-radius: 40px;
  padding: 0.3rem 0.85rem;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-br);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Category badge (articles) */
.cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,168,150,0.1);
  border: 1px solid rgba(0,168,150,0.3);
  border-radius: 40px;
  padding: 0.2rem 0.7rem;
}
.cat-badge:hover { background: rgba(0,168,150,0.18); }

/* ============================================================
   HOMEPAGE — HERO
============================================================ */
.hero-section {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(0,168,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge { margin-bottom: 1.5rem; }
.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 5vw, 36px);
  letter-spacing: -1px;
  color: var(--text-pr);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-mu);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* Progress dots */
.calc-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.prog-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.prog-dot.inactive {
  background: var(--bg-inner);
  color: var(--text-fa);
}
.prog-dot.active {
  background: var(--accent-br);
  color: #0D1F2D;
  box-shadow: 0 0 0 5px rgba(2,212,190,0.2);
}
.prog-dot.done {
  background: var(--accent);
  color: #fff;
}
.prog-dot.done::after {
  content: '✓';
  font-size: 0.75rem;
  font-family: system-ui, sans-serif;
}
.prog-dot.done .dot-num { display: none; }
.prog-line {
  height: 1px;
  width: 3rem;
  background: var(--border);
  transition: background var(--transition);
  flex-shrink: 0;
}
.prog-line.passed { background: var(--accent); }

/* ============================================================
   CALCULATOR CARD
============================================================ */
.calc-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-card);
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Step panels */
.calc-step { display: none; }
.calc-step.active {
  display: block;
  animation: step-in 0.3s ease both;
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-pr);
  margin-bottom: 0.3rem;
}
.step-sub {
  font-size: 0.82rem;
  color: var(--text-mu);
  margin-bottom: 1.4rem;
}

/* Tooltip */
.step-tooltip {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-inner);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-mu);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

/* Syringe grid — Step 1 */
.syringe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.syringe-card {
  background: var(--bg-inner);
  border: 1.5px solid var(--border);
  border-radius: var(--r-inner);
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.15s ease;
}
.syringe-card:hover { border-color: rgba(2,212,190,0.4); transform: translateY(-2px); }
.syringe-card.selected {
  border-color: var(--accent-br);
  background: rgba(2,212,190,0.08);
}
.syringe-svg {
  width: 48px;
  height: 80px;
  margin: 0 auto 0.6rem;
  display: block;
}
.syringe-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-pr);
}
.syringe-sub {
  font-size: 0.72rem;
  color: var(--text-mu);
  margin-top: 0.15rem;
}

/* Preset buttons */
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.preset-btn {
  background: var(--bg-inner);
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mu);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.preset-btn:hover { border-color: rgba(2,212,190,0.4); color: var(--text-se); }
.preset-btn.selected {
  border-color: var(--accent-br);
  color: var(--accent-br);
  background: rgba(2,212,190,0.08);
}

/* Custom number input */
.custom-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.custom-input-wrap label {
  font-size: 0.8rem;
  color: var(--text-mu);
  white-space: nowrap;
}
.custom-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-in);
  border-radius: var(--r-btn);
  color: var(--text-pr);
  /* Override autofill */
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset;
  -webkit-text-fill-color: var(--text-pr);
}
.custom-input::placeholder { color: var(--text-fa); }

/* Step nav buttons */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
}
.btn-reset {
  font-size: 0.78rem;
  color: var(--text-fa);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  margin-left: auto;
}
.btn-reset:hover { color: var(--text-mu); }

/* ============================================================
   RESULTS PANEL
============================================================ */
#calc-results { display: none; }
#calc-results.visible {
  display: block;
  animation: step-in 0.4s ease both;
}

.result-hero-box {
  background: rgba(2,212,190,0.06);
  border: 1px solid rgba(2,212,190,0.25);
  border-radius: var(--r-inner);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.result-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mu);
  margin-bottom: 0.4rem;
}
.result-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-br);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.result-sublabel {
  font-size: 0.82rem;
  color: var(--text-mu);
}

/* Syringe fill bar */
.syringe-bar-section { margin-bottom: 1.25rem; }
.syringe-bar-label {
  font-size: 0.72rem;
  color: var(--text-mu);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}
.syringe-bar-outer {
  position: relative;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid #2A4A5E;
}
.syringe-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #007A6E, #02D4BE);
  border-radius: 20px;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.syringe-bar-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.syringe-bar-units {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 0.3rem;
}
.syringe-bar-units span {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #7AB8D0;
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--bg-inner);
  border: 0.5px solid var(--border);
  border-radius: var(--r-inner);
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.stat-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A7A94;
  margin-bottom: 0.4rem;
}
.stat-card-value {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #E0EAF4;
}

/* ============================================================
   HOMEPAGE — TRACKER CTA
============================================================ */
.tracker-section {
  padding: 2.5rem 0;
}
.tracker-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--accent-br);
  border-radius: var(--r-card);
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tracker-icon {
  width: 36px; height: 36px;
  color: var(--accent-br);
}
.tracker-h {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-pr);
  margin-bottom: 0.3rem;
}
.tracker-body {
  font-size: 0.88rem;
  color: var(--text-mu);
  line-height: 1.65;
}
.tracker-meta {
  font-size: 0.75rem;
  color: var(--text-fa);
  margin-top: 0.3rem;
}

/* ============================================================
   HOMEPAGE — CRYPTO SECTION
============================================================ */
.crypto-section {
  padding: 4rem 0 5rem;
  text-align: center;
}
.crypto-h {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text-pr);
  margin-bottom: 0.5rem;
}
.crypto-sub {
  font-size: 0.9rem;
  color: var(--text-mu);
  margin-bottom: 2.5rem;
}
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.crypto-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-inner);
  padding: 1.5rem 1.25rem;
  text-align: left;
  transition: border-color var(--transition), transform 0.2s ease;
}
.crypto-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-in);
}
.crypto-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.crypto-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-pr);
  margin-bottom: 0.4rem;
}
.crypto-address {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--text-fa);
  word-break: break-all;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.btn-copy {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mu);
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  width: 100%;
}
.btn-copy:hover { color: var(--accent-br); border-color: var(--accent); }
.btn-copy.copied { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   ARTICLE — SINGLE.PHP
============================================================ */
.article-wrap {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 5rem;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

/* Article header */
.article-header { margin-bottom: 1.5rem; }
.article-header .cat-badge { margin-bottom: 0.9rem; }
.article-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -1px;
  color: var(--text-pr);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.article-h1 .highlight { color: var(--accent-br); }
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #5A7A94;
  margin-bottom: 1.25rem;
}
.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-fa);
}
.article-featured-img {
  width: 100%;
  height: 220px;
  border-radius: var(--r-inner);
  object-fit: cover;
  margin-bottom: 1.5rem;
}
.article-featured-placeholder {
  width: 100%;
  height: 220px;
  border-radius: var(--r-inner);
  background: linear-gradient(135deg, #0A1A28, #162535, #0F2333);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-featured-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,168,150,0.12), transparent);
}
.header-divider {
  border: none;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.5rem;
}

/* Article body */
.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-se);
}
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-pr);
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #E0EAF4;
  margin: 2rem 0 0.75rem;
}
.article-body a {
  color: var(--accent-br);
  text-decoration: underline;
  text-decoration-color: rgba(2,212,190,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.article-body a:hover { text-decoration-color: var(--accent-br); }
.article-body ul, .article-body ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-mu);
  font-style: italic;
}

/* Key Takeaway block */
.key-takeaway {
  background: rgba(2,212,190,0.05);
  border: 1px solid rgba(2,212,190,0.2);
  border-radius: var(--r-inner);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.key-takeaway-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-br);
  margin-bottom: 0.5rem;
}
.key-takeaway p {
  font-size: 16px;
  color: #A0C8D8;
  margin-bottom: 0 !important;
}

/* Data table */
.data-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--r-inner); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--bg-inner);
  color: var(--text-mu);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 0.5px solid var(--border-faint);
  color: var(--text-se);
}
.data-table td.val {
  color: var(--accent-br);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* Mid-article CTA */
.mid-cta {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-inner);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.mid-cta-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-btn);
  background: rgba(0,168,150,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.mid-cta-text { flex: 1; min-width: 120px; }
.mid-cta-h {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pr);
  margin-bottom: 0.2rem;
}
.mid-cta-sub { font-size: 0.8rem; color: var(--text-mu); }

/* Article footer */
.article-footer {
  border-top: 0.5px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tag-pill {
  font-size: 0.75rem;
  color: #5A7A94;
  background: var(--bg-inner);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  transition: color var(--transition), border-color var(--transition);
}
.tag-pill:hover { color: var(--accent-br); border-color: var(--accent); }

/* Related posts */
.related-label {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-mu);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.related-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color var(--transition);
}
.related-card:hover { border-color: var(--accent); }
.related-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.related-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-se);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.related-meta { font-size: 0.68rem; color: var(--text-fa); }

/* ============================================================
   SIDEBAR
============================================================ */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* TOC */
.toc-card,
.affiliate-card,
.share-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-inner);
  padding: 1.25rem;
}
.sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5A7A94;
  margin-bottom: 0.9rem;
}
.toc-list { display: flex; flex-direction: column; }
.toc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 0.5px solid var(--border-faint);
  cursor: pointer;
  transition: none;
}
.toc-item:last-child { border-bottom: none; }
.toc-num {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2A4A5E;
  min-width: 20px;
  transition: color var(--transition);
  flex-shrink: 0;
  padding-top: 1px;
}
.toc-text {
  font-size: 0.8rem;
  color: var(--text-mu);
  line-height: 1.4;
  transition: color var(--transition), font-weight var(--transition);
}
.toc-item.active .toc-num { color: var(--accent-br); }
.toc-item.active .toc-text { color: #E0EAF4; font-weight: 600; }

/* Affiliate card */
.affiliate-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A7A94;
  margin-bottom: 0.9rem;
}
.affiliate-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-pr);
  margin-bottom: 0.35rem;
}
.affiliate-desc {
  font-size: 0.75rem;
  color: #5A7A94;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.affiliate-price {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-br);
  margin-bottom: 0.85rem;
}
.affiliate-disclaimer {
  font-size: 0.62rem;
  color: #2A4A5E;
  text-align: center;
  margin-top: 0.6rem;
}

/* Share card */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.share-btn {
  background: var(--bg-inner);
  border: 0.5px solid var(--border);
  border-radius: var(--r-btn);
  padding: 0.5rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mu);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  text-align: center;
}
.share-btn:hover { color: var(--accent-br); border-color: var(--accent); }
.share-btn.copied { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   PAGE.PHP — GENERIC PAGE
============================================================ */
.page-wrap {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}
.page-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -1px;
  margin-bottom: 2rem;
}
.page-content { font-size: 17px; line-height: 1.85; color: var(--text-se); }
.page-content p { margin-bottom: 1.4rem; }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--text-pr); }

/* ============================================================
   INDEX.PHP — BLOG LOOP
============================================================ */
.blog-wrap {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  transition: border-color var(--transition), transform 0.2s ease;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card-cat { margin-bottom: 0.75rem; }
.blog-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-pr);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-mu); line-height: 1.65; margin-bottom: 1rem; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-fa); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .crypto-grid { grid-template-columns: 1fr; max-width: 360px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .article-grid { padding: 0 1.25rem; }
  .calc-card { padding: 1.25rem; }
  .syringe-grid { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .stat-cards { grid-template-columns: 1fr; }
  .mid-cta { flex-direction: column; align-items: flex-start; }
  .share-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .syringe-grid { gap: 0.35rem; }
  .syringe-card { padding: 0.75rem 0.4rem; }
}
