/* ═══════════════════════════════════════════════════════════════════════
   HealthCalcsHub — Global Stylesheet
   Covers: index.php · article.php · archives.php · about-us.php
           privacy.php · terms-of-service.php · help.php
           contact-us.php · cookie.php
   Design System: Blue-to-Red Gradient (dark) · Sky-Blue/Rose (light)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Backgrounds — deep navy bleeding to dark maroon */
  --bg-deep:   #060814;
  --bg-card:   #0d0f20;
  --bg-card2:  #131528;
  --surface:   #1a1d32;
  --surface2:  #22253e;

  /* Accent palette — blue → violet → red gradient spectrum */
  --accent:      #4d8fff;   /* primary blue */
  --accent2:     #9b5de5;   /* mid violet */
  --accent3:     #ff4d6d;   /* red-rose */
  --accent-warm: #ff7a45;   /* warm orange-red (extra) */
  --accent-dim:  rgba(77,143,255,0.14);

  /* Gradient shorthands */
  --grad-br:  linear-gradient(135deg, #4d8fff 0%, #9b5de5 50%, #ff4d6d 100%);
  --grad-br-h:linear-gradient(90deg,  #4d8fff 0%, #9b5de5 50%, #ff4d6d 100%);

  /* Legacy alias — kept for backward-compat with any inline styles */
  --border-gold: rgba(77,143,255,0.22);
  --gold-dim:    var(--accent);

  /* Text */
  --text-main: #e8ecf5;
  --text-sub:  #8892b0;
  --text-dim:  #4a5578;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(77,143,255,0.22);

  /* Misc */
  --nav-bg:    rgba(6,8,20,0.93);
  --code-bg:   #080b18;
  --result-bg: #060814;
  --news-bg:   #080b1a;
  --grid-line: rgba(77,143,255,0.035);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.45);

  /* Prose */
  --prose-heading: var(--accent);
  --prose-link:    var(--accent);

  /* Fonts */
  --font-body:    'Sora', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Radii */
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html.light {
  --bg-deep:   #eef2ff;
  --bg-card:   #f4f6ff;
  --bg-card2:  #dde3f8;
  --surface:   #ccd4f4;
  --surface2:  #bcc6ee;

  --accent:    #2563eb;
  --accent2:   #7c3aed;
  --accent3:   #e11d48;
  --accent-warm: #ea580c;
  --accent-dim:  rgba(37,99,235,0.1);

  --grad-br:  linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #e11d48 100%);
  --grad-br-h:linear-gradient(90deg,  #2563eb 0%, #7c3aed 50%, #e11d48 100%);

  --text-main: #0d1a3d;
  --text-sub:  #2a3870;
  --text-dim:  #5a6a9a;

  --border:        rgba(0,50,160,0.14);
  --border-accent: rgba(37,99,235,0.32);

  --nav-bg:    rgba(238,242,255,0.96);
  --code-bg:   #d8dff5;
  --result-bg: #eef2ff;
  --news-bg:   #eaeffc;
  --grid-line: rgba(37,99,235,0.055);
  --shadow-card: 0 4px 20px rgba(10,30,130,0.11);

  --prose-heading: var(--accent);
  --prose-link:    var(--accent);
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
}

/* Background: diagonal blue→red gradient wash + grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(77,143,255,0.07)  0%,
      rgba(155,93,229,0.05)  45%,
      rgba(255,77,109,0.07)  100%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── ANIMATED DATA POINTS CANVAS ─────────────────────────────
   A ::after pseudo-element carries the animated data-point dots.
   Pure CSS: we use multiple radial-gradient "dots" that drift
   via keyframe transform on layered pseudo-elements.
   For the real animated canvas version, add data-points.js
   (see comment at end of file). These CSS dots give a lightweight
   fallback that matches the reference screenshot aesthetic.
────────────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* Blue cluster — left side */
    radial-gradient(circle 2px at 8%  15%, rgba(77,143,255,0.7)  0%, transparent 100%),
    radial-gradient(circle 2px at 12% 42%, rgba(77,143,255,0.5)  0%, transparent 100%),
    radial-gradient(circle 2px at 5%  68%, rgba(77,143,255,0.6)  0%, transparent 100%),
    radial-gradient(circle 2px at 18% 82%, rgba(77,143,255,0.4)  0%, transparent 100%),
    radial-gradient(circle 2px at 22% 27%, rgba(120,180,255,0.5) 0%, transparent 100%),
    radial-gradient(circle 2px at 3%  55%, rgba(77,143,255,0.55) 0%, transparent 100%),
    radial-gradient(circle 2px at 15% 10%, rgba(100,160,255,0.6) 0%, transparent 100%),
    radial-gradient(circle 2px at 28% 60%, rgba(77,143,255,0.45) 0%, transparent 100%),
    /* Violet midfield */
    radial-gradient(circle 2px at 38% 22%, rgba(155,93,229,0.55) 0%, transparent 100%),
    radial-gradient(circle 2px at 45% 50%, rgba(155,93,229,0.6)  0%, transparent 100%),
    radial-gradient(circle 2px at 52% 35%, rgba(155,93,229,0.5)  0%, transparent 100%),
    radial-gradient(circle 2px at 42% 75%, rgba(155,93,229,0.45) 0%, transparent 100%),
    radial-gradient(circle 2px at 55% 88%, rgba(180,110,240,0.4) 0%, transparent 100%),
    radial-gradient(circle 2px at 35% 92%, rgba(155,93,229,0.5)  0%, transparent 100%),
    radial-gradient(circle 2px at 60% 15%, rgba(155,93,229,0.4)  0%, transparent 100%),
    /* Red cluster — right side */
    radial-gradient(circle 2px at 72% 20%, rgba(255,77,109,0.6)  0%, transparent 100%),
    radial-gradient(circle 2px at 80% 45%, rgba(255,77,109,0.55) 0%, transparent 100%),
    radial-gradient(circle 2px at 88% 30%, rgba(255,77,109,0.65) 0%, transparent 100%),
    radial-gradient(circle 2px at 95% 60%, rgba(255,77,109,0.5)  0%, transparent 100%),
    radial-gradient(circle 2px at 75% 72%, rgba(255,120,100,0.5) 0%, transparent 100%),
    radial-gradient(circle 2px at 92% 85%, rgba(255,77,109,0.45) 0%, transparent 100%),
    radial-gradient(circle 2px at 68% 88%, rgba(255,77,109,0.55) 0%, transparent 100%),
    radial-gradient(circle 2px at 85% 12%, rgba(255,100,80,0.5)  0%, transparent 100%),
    /* Connection-line effect: thin diagonal glows */
    radial-gradient(ellipse 60px 1px at 25% 38%, rgba(77,143,255,0.12)  0%, transparent 100%),
    radial-gradient(ellipse 80px 1px at 55% 55%, rgba(155,93,229,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 70px 1px at 78% 40%, rgba(255,77,109,0.10)  0%, transparent 100%);
  animation: dataPointsDrift 18s ease-in-out infinite alternate;
}

@keyframes dataPointsDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(6px, -8px) scale(1.01); }
  50%  { transform: translate(-4px, 5px) scale(0.99); }
  75%  { transform: translate(8px, 3px) scale(1.01); }
  100% { transform: translate(-5px, -6px) scale(1); }
}

/* Pulsing bright dot highlights */
.data-point-pulse {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.data-point-pulse.blue {
  width: 4px; height: 4px;
  background: rgba(77,143,255,0.9);
  box-shadow: 0 0 8px 2px rgba(77,143,255,0.5);
  animation: dpPulse 3s ease-in-out infinite;
}
.data-point-pulse.red {
  width: 4px; height: 4px;
  background: rgba(255,77,109,0.9);
  box-shadow: 0 0 8px 2px rgba(255,77,109,0.5);
  animation: dpPulse 3.5s ease-in-out infinite 0.8s;
}
@keyframes dpPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(1.8); }
}

[dir="rtl"], [dir="rtl"] * { font-family: 'IBM Plex Sans Arabic', var(--font-body); }

/* ─────────────────────────────────────────────
   3. HEADER
───────────────────────────────────────────── */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--grad-br);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-main); letter-spacing: 0.02em;
}
.logo-text span { background: var(--grad-br-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  background: var(--bg-card2); border: 1px solid var(--border-accent);
  color: var(--text-sub); border-radius: 8px;
  padding: 6px 12px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-body);
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.ctrl-btn.active { background: var(--accent); color: #060814; border-color: var(--accent); }
.header-nav-link {
  color: var(--text-sub); text-decoration: none;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 10px; border-radius: 6px; transition: color 0.2s;
}
.header-nav-link:hover { color: var(--accent); }
.priv-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-dim);
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px;
}
.priv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent3); box-shadow: 0 0 6px var(--accent3);
}
html.light .site-header { background: var(--nav-bg); border-bottom-color: var(--border); }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
@media (max-width: 640px) {
  .header-inner { padding: 0 12px; }
  .logo-text { font-size: 1rem; }
  .header-nav-link { display: none; }
}

/* ─────────────────────────────────────────────
   4. HERO
───────────────────────────────────────────── */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 72px 20px 56px;
  text-align: center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(77,143,255,0.12) 0%,
    rgba(155,93,229,0.07) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(77,143,255,0.1);
  border: 1px solid rgba(77,143,255,0.25);
  color: var(--accent);
  padding: 5px 16px; border-radius: 100px; margin-bottom: 22px;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px;
  background: var(--accent3); border-radius: 50%;
  animation: dpPulse 2s infinite;
  box-shadow: 0 0 6px var(--accent3);
}
.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 20px;
}
.hero-section h1 .grad-text {
  background: var(--grad-br-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-sub); max-width: 580px;
  margin: 0 auto 36px; line-height: 1.8;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; justify-content: center;
  margin: 36px auto 0; flex-wrap: wrap;
}
.stat-item  { display: flex; flex-direction: column; align-items: center; }
.stat-val   { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-main); }
.stat-val span { background: var(--grad-br-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl   { font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* ─────────────────────────────────────────────
   5. BUTTONS
───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-br);
  color: #fff;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(155,93,229,0.35);
  opacity: 0.92;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: all 0.2s; white-space: nowrap; cursor: pointer;
  font-family: var(--font-body);
}
.btn-secondary:hover {
  background: rgba(77,143,255,0.07);
  border-color: var(--accent); color: var(--accent);
}

/* ─────────────────────────────────────────────
   6. CARDS
───────────────────────────────────────────── */
.card, .content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-card);
}
.card::before, .content-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover, .content-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 40px rgba(155,93,229,0.1);
}
.card:hover::before, .content-card:hover::before { opacity: 1; }
html.light .card:hover, html.light .content-card:hover { box-shadow: 0 8px 40px rgba(37,99,235,0.1); }

/* ─────────────────────────────────────────────
   7. CATEGORY TABS / FILTER PILLS
───────────────────────────────────────────── */
.tab-row, .filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tab-btn, .filter-btn {
  padding: 7px 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-dim);
  cursor: pointer; background: none; transition: all 0.2s;
  white-space: nowrap; font-family: var(--font-body);
}
.tab-btn:hover, .filter-btn:hover { color: var(--accent); border-color: var(--border-accent); }
.tab-btn.active, .filter-btn.active {
  background: var(--accent-dim); border-color: var(--accent); color: var(--accent);
}

/* ─────────────────────────────────────────────
   8. BREADCRUMB
───────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  max-width: 1200px; margin: 0 auto;
  padding: 14px 20px;
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--text-sub); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span, .breadcrumb .current { color: var(--accent); }
.breadcrumb .sep { color: var(--border-accent); }

/* ─────────────────────────────────────────────
   9. CALC WIDGET / INPUTS
───────────────────────────────────────────── */
.calc-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card); position: relative; z-index: 1;
}
.calc-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.calc-body { padding: 24px; }
.form-group { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-sub); margin-bottom: 6px;
}
.field-input, .field-select, .field-textarea {
  width: 100%; background: var(--bg-card2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 14px; font-size: 14px;
  color: var(--text-main); font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,143,255,0.12);
}
.field-textarea { resize: vertical; min-height: 120px; }
html.light .field-input:focus, html.light .field-select:focus, html.light .field-textarea:focus {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
html.light .field-input, html.light .field-select, html.light .field-textarea {
  background: var(--bg-card2); color: var(--text-main);
}
.calc-btn {
  width: 100%; padding: 14px;
  background: var(--grad-br);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: opacity 0.2s, transform 0.1s; font-family: var(--font-body);
}
.calc-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.calc-btn:active { transform: scale(0.98); }
.result-box {
  background: var(--result-bg); border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg); padding: 20px; margin-top: 16px;
  text-align: center; position: relative; overflow: hidden;
}
.result-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,143,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.result-val {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
  background: var(--grad-br-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; display: block;
}
.result-lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; display: block; }

/* ─────────────────────────────────────────────
   10. CALCULATOR GRID (index page)
───────────────────────────────────────────── */
.calcs-section { position: relative; z-index: 1; padding: 0 20px 60px; max-width: 1200px; margin: 0 auto; }
.calcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.calc-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: all 0.22s; position: relative; overflow: hidden;
}
.calc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h); opacity: 0; transition: opacity 0.22s;
}
.calc-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(155,93,229,0.12); }
.calc-card:hover::after { opacity: 1; }
.calc-icon { font-size: 28px; }
.calc-name { font-size: 13px; font-weight: 700; color: var(--text-main); transition: color 0.2s; }
.calc-card:hover .calc-name { color: var(--accent); }
.calc-desc { font-size: 11px; color: var(--text-sub); line-height: 1.5; }

/* ─────────────────────────────────────────────
   11. SECTION HEADERS
───────────────────────────────────────────── */
.section { margin-bottom: 64px; position: relative; z-index: 1; }
.section-header { margin-bottom: 28px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  color: var(--accent); padding: 4px 14px; border-radius: 100px; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.15; color: var(--text-main); margin-bottom: 10px;
}
.section-title .hl {
  background: var(--grad-br-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub, .section-desc {
  font-size: 15px; color: var(--text-sub); max-width: 600px; line-height: 1.7;
}

/* ─────────────────────────────────────────────
   12. NEWS / ARTICLE STRIP
───────────────────────────────────────────── */
/* ─── NEWS SECTION ─── */
.news-section {
  background: var(--news-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.news-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── GRID ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ─── CARD BASE ─── */
a.news-card,
.news-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none !important;
  color: inherit !important;          /* kills the blue-link bleed */
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

/* ─── TOP GRADIENT ACCENT LINE ─── */
a.news-card::before,
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-br-h);
  opacity: 0;
  transition: opacity 0.22s;
}

/* ─── CARD HOVER ─── */
a.news-card:hover,
.news-card:hover {
  border-color: var(--border-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(155,93,229,0.12);
  text-decoration: none !important;
}

a.news-card:hover::before,
.news-card:hover::before {
  opacity: 1;
}

/* ─── CARD TAGS ROW ─── */
.news-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ─── CATEGORY BADGE ─── */
.news-card .tag-cat,
.news-tag-cat {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--grad-br-h) !important;
  color: #fff !important;
  border-radius: 100px;
  padding: 2px 9px;
  text-decoration: none !important;
}

/* ─── GEO TAG ─── */
.news-card .tag-geo,
.news-tag-geo {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim) !important;
  background: var(--bg-card2, #181d35);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px;
  text-decoration: none !important;
}

/* ─── TYPE TAG ─── */
.news-card .tag-type,
.news-tag-type {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent) !important;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 2px 8px;
  text-decoration: none !important;
}

/* ─── TITLE ─── */
.news-card .news-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main) !important;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s;
  text-decoration: none !important;
}

.news-card:hover .news-card-title {
  color: var(--accent) !important;
}

/* ─── DESCRIPTION ─── */
.news-card .news-card-desc {
  font-size: 11px;
  color: var(--text-sub) !important;
  line-height: 1.55;
  margin-bottom: 12px;
  text-decoration: none !important;
}

/* ─── META ROW ─── */
.news-card .news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── DATE ─── */
.news-card .news-card-date {
  font-size: 9px;
  color: var(--text-dim) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── READ MORE ─── */
.news-card .news-card-read {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--grad-br-h);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── SECTION HEADER ─── */
.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.news-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.news-section-title span {
  background: var(--grad-br-h);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── VIEW ALL LINK ─── */
.news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim) !important;
  text-decoration: none !important;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}

.news-view-all:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ─── SUB TABS ─── */
.news-sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.news-sub-tab {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  background: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.news-sub-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.news-sub-tab:hover:not(.active) {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ─── PANEL VISIBILITY ─── */
.news-panel { display: none; }
.news-panel.active { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-section { padding: 28px 16px; }
}

/* ─────────────────────────────────────────────
   13. CONTENT PANEL (article page)
───────────────────────────────────────────── */
.content-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 40px;
  position: relative; z-index: 1; overflow: hidden;
}
.content-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-br-h); opacity: 0.7;
}
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin: 32px 0 14px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin: 24px 0 10px; }
.prose p  { color: var(--text-sub); line-height: 1.8; margin-bottom: 16px; }
.prose a  { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(77,143,255,0.4); transition: color 0.2s; }
.prose a:hover { color: var(--accent2); }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; }
.prose li { color: var(--text-sub); line-height: 1.8; margin-bottom: 6px; }
.prose strong { color: var(--text-main); }
.prose code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px; color: var(--accent);
}
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 14px 20px;
  background: var(--bg-card2); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0; color: var(--text-sub); font-style: italic;
}

/* ─────────────────────────────────────────────
   14. SIDEBAR / TOC
───────────────────────────────────────────── */
.article-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; display: grid; grid-template-columns: 1fr 280px; gap: 28px; position: relative; z-index: 1; }
.toc-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc-panel::-webkit-scrollbar { width: 4px; }
.toc-panel::-webkit-scrollbar-track { background: transparent; }
.toc-panel::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 2px; }
.toc-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); margin-bottom: 14px; }
.toc-link { display: block; font-size: 12px; color: var(--text-sub); text-decoration: none; padding: 5px 0; border-left: 2px solid transparent; padding-left: 10px; transition: all 0.2s; line-height: 1.4; }
.toc-link:hover { color: var(--accent); border-left-color: var(--accent); }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .article-wrap { grid-template-columns: 1fr; } .toc-panel { position: static; max-height: none; } }

/* ─────────────────────────────────────────────
   15. EXTENDED ARTICLE SECTION
───────────────────────────────────────────── */
.extended-section { position: relative; z-index: 1; }
.extended-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 40px; overflow: hidden;
}
.extended-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h); opacity: 0.6;
}
.extended-marker { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border-accent); }
.extended-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dpPulse 2s ease-in-out infinite; box-shadow: 0 0 8px var(--accent); }
.extended-marker span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }

/* ─────────────────────────────────────────────
   16. CALCULATOR CTA
───────────────────────────────────────────── */
.calc-cta {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  padding: 24px 28px; margin: 32px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.calc-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(77,143,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.calc-cta-text h4 { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.calc-cta-text p { font-size: 12px; color: var(--text-sub); }
.calc-cta-btn {
  background: var(--grad-br); color: #fff; border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; text-decoration: none; display: inline-block;
  text-transform: uppercase; letter-spacing: 0.06em; transition: opacity 0.2s;
  font-family: var(--font-body);
}
.calc-cta-btn:hover { opacity: 0.85; }

/* ─────────────────────────────────────────────
   17. SHARE SECTION
───────────────────────────────────────────── */
.share-section {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; text-align: center; margin: 48px 0;
}
.share-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.share-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 24px; }
.share-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px;
  border: 1px solid var(--border-accent); border-radius: var(--radius);
  background: none; color: var(--text-sub); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.06em;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.share-btn.copied { background: var(--grad-br); color: #fff; border-color: transparent; }
.copy-toast { font-size: 11px; color: var(--accent); margin-top: 10px; opacity: 0; transition: opacity 0.3s; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.copy-toast.show { opacity: 1; }

/* ─────────────────────────────────────────────
   18. RELATED ARTICLES
───────────────────────────────────────────── */
.related-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-accent); }
.related-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.related-title span { background: var(--grad-br-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─────────────────────────────────────────────
   19. CONTACT PAGE
───────────────────────────────────────────── */
.form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; position: relative; overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: span 2; }
.submit-btn {
  width: 100%; padding: 14px;
  background: var(--grad-br);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
}
.submit-btn:hover { opacity: 0.9; }
.submit-btn:active { transform: scale(0.98); }
.success-box {
  display: none; background: rgba(77,143,255,0.05);
  border: 1px solid rgba(77,143,255,0.2); border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
}
.success-box.show { display: block; }
.success-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.success-box h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.success-box p { font-size: 0.875rem; color: var(--text-sub); }
.contact-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-row h4 { font-size: 11px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.contact-row p { font-size: 11px; color: var(--text-sub); line-height: 1.5; }
.contact-row a { color: var(--accent); text-decoration: none; font-size: 11px; }
.response-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  padding: 20px; text-align: center;
}
.response-box .rnum { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; background: var(--grad-br-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.response-box .rlbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-top: 4px; }
[dir="rtl"] .header-inner, [dir="rtl"] .footer-bottom, [dir="rtl"] .breadcrumb, [dir="rtl"] .contact-row { flex-direction: row-reverse; }
[dir="rtl"] .field { align-items: flex-end; }
html.light .response-box { background: var(--bg-card2); }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } .field-full { grid-column: span 1; } }

/* ─────────────────────────────────────────────
   20. STATS BANNER (about page)
───────────────────────────────────────────── */
.stats-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border-accent); border-radius: var(--radius-xl);
  padding: 40px 32px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; text-align: center; position: relative; overflow: hidden;
}
.stats-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,143,255,0.08) 0%, rgba(255,77,109,0.05) 60%, transparent 80%);
  pointer-events: none;
}
.stat-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  background: var(--grad-br-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; line-height: 1;
}
.stat-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 6px; display: block; }
@media (max-width: 768px) { .stats-banner { grid-template-columns: 1fr; } }

.value-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.value-row:last-child { border-bottom: none; }
.value-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; background: var(--grad-br-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; min-width: 40px; line-height: 1; }
.value-text h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.value-text p { font-size: 0.8rem; color: var(--text-sub); line-height: 1.55; }
[dir="rtl"] .value-row { flex-direction: row-reverse; }

/* ─────────────────────────────────────────────
   21. FOOTER
───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px; margin-top: auto;
  background: var(--bg-card); position: relative; z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-disclaimers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; padding-bottom: 28px;
}
.disc-block h4 { font-size: 10px; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.disc-block p { font-size: 11px; color: var(--text-dim); line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; width: 100%;
}
.footer-disclaimers + .footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-copy { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 10px; color: var(--text-sub); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
@media (max-width: 640px) {
  .footer-disclaimers { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  [dir="rtl"] .footer-bottom { align-items: flex-end; }
}

/* ─────────────────────────────────────────────
   22. GENERAL RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-stats { gap: 20px; }
  .content-panel { padding: 24px 20px; }
  .extended-inner { padding: 24px 20px; }
  .hero-section { padding: 48px 20px 36px; }
}

/* ─────────────────────────────────────────────
   23. PAGE HERO (all static pages)
───────────────────────────────────────────── */
.page-hero {
  position: relative; z-index: 1;
  padding: 48px 20px 40px;
  text-align: center;
  max-width: 1200px; margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 14px; color: var(--text-main);
}
.page-hero h1 span {
  background: var(--grad-br-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p {
  font-size: 15px; color: var(--text-sub); line-height: 1.75; max-width: 600px; margin: 0 auto;
}
.page-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  color: var(--accent); padding: 5px 16px; border-radius: 100px; margin-bottom: 18px;
}
.page-meta {
  font-size: 11px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.08em; margin-top: 10px;
}

/* ─────────────────────────────────────────────
   24. PAGE WRAP LAYOUTS
───────────────────────────────────────────── */
/* Two-column layout: left sidebar | right main content (help, terms, cookie, contact) */
.page-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  position: relative; z-index: 1;
  align-items: start;
}
@media (max-width: 1024px) {
  .page-wrap { grid-template-columns: 300px 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
}

/* Wide centered layout (about, privacy) */
.page-wrap-about {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px 60px;
  position: relative; z-index: 1;
}

/* ─────────────────────────────────────────────
   25. UTILITY SPACING
───────────────────────────────────────────── */
.mb-5 { margin-bottom: 20px; }
.mb-8 { margin-bottom: 32px; }
.mt-5 { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }

/* ─────────────────────────────────────────────
   26. CARD VARIANTS (static pages)
───────────────────────────────────────────── */
.card-icon-wrap {
  font-size: 1.6rem; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  border-radius: 12px;
}
.card-num {
  display: inline-block; font-size: 10px; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  border-radius: 6px; padding: 2px 8px; margin-bottom: 10px;
}
.card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px;
}
.card p, .card ul { font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.card ul { padding-left: 18px; }
.card li { margin-bottom: 6px; }
.card strong { color: var(--text-main); }

/* Contact-call-out card variant */
.card--contact {
  background: linear-gradient(135deg, var(--bg-card2), var(--surface));
  border-color: var(--border-accent);
}
html.light .card--contact { background: var(--bg-card2); }

/* ─────────────────────────────────────────────
   27. TWO-COLUMN GRID (about / privacy)
───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────
   28. GUIDE CARDS (help page)
───────────────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: relative; overflow: hidden;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.guide-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h); opacity: 0; transition: opacity 0.22s;
}
.guide-card:hover {
  border-color: var(--border-accent); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(155,93,229,0.12);
}
.guide-card:hover::before { opacity: 1; }
.guide-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.guide-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.guide-card p  { font-size: 12px; color: var(--text-sub); line-height: 1.6; }
.guide-card ul { padding-left: 16px; margin: 8px 0 0; }
.guide-card li { font-size: 12px; color: var(--text-sub); margin-bottom: 5px; }
.guide-card a  { font-size: 12px; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; }
.guide-card a:hover { color: var(--accent2); }

/* ─────────────────────────────────────────────
   29. FAQ (help page)
───────────────────────────────────────────── */
.faq-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--text-main); margin-bottom: 16px;
}
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden;
  cursor: pointer; transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-item.open { border-color: var(--border-accent); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 0.9rem; font-weight: 700;
  color: var(--text-main); text-align: left; gap: 12px; font-family: var(--font-body);
}
.faq-q:hover { color: var(--accent); }
.chevron {
  font-size: 12px; color: var(--text-dim); flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 20px 18px; font-size: 13px;
  color: var(--text-sub); line-height: 1.75;
}

/* ─────────────────────────────────────────────
   30. PRO TIPS BOX (help page)
───────────────────────────────────────────── */
.pro-box {
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl); padding: 24px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.pro-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h);
}
.pro-box h3 {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}
.pro-tip {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.pro-tip:last-child { border-bottom: none; padding-bottom: 0; }
.pi { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.pro-tip h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.pro-tip p  { font-size: 12px; color: var(--text-sub); line-height: 1.6; }

/* ─────────────────────────────────────────────
   31. SIDEBAR & SIDE CARDS
───────────────────────────────────────────── */
.sidebar {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 2px; }
@media (max-width: 900px) { .sidebar { position: static; max-height: none; } }

.side-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; overflow: hidden; position: relative;
}
.side-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h); opacity: 0.7;
}
.side-card h3 {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 14px;
}

/* Quick calculator links in sidebar */
.calc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text-sub);
  font-size: 12px; font-weight: 600; transition: color 0.2s;
}
.calc-link:last-child { border-bottom: none; }
.calc-link:hover { color: var(--accent); }
.ci { font-size: 1.1rem; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   32. QUICK BOX (terms sidebar summary)
───────────────────────────────────────────── */
.quick-box {
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg); padding: 20px; position: relative; overflow: hidden;
}
.quick-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-br-h);
}
.quick-box h3 {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 14px;
}
.quick-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-sub); line-height: 1.5;
}
.quick-item:last-child { border-bottom: none; }
.qi-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

html.light .quick-box { background: var(--bg-card2); }

/* ─────────────────────────────────────────────
   33. TERMS SECTIONS
───────────────────────────────────────────── */
.terms-sections { display: flex; flex-direction: column; gap: 16px; }

/* ─────────────────────────────────────────────
   34. COOKIE CARDS
───────────────────────────────────────────── */
.cookie-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 16px;
}
.cc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.cc-title-wrap { display: flex; align-items: center; gap: 10px; }
.cc-status {
  font-size: 1.2rem;
}
.cookie-card h3, .cc-title-wrap h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0;
}
.cookie-card p.small, .cc-body p {
  font-size: 13px; color: var(--text-sub); line-height: 1.7;
}
.cc-body { padding: 20px 24px; }
.cc-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 100px;
  background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-dim);
}
.cc-badge.active-badge {
  background: rgba(77,143,255,0.12); border-color: rgba(77,143,255,0.3); color: var(--accent);
}

/* Storage visualisation rows */
.storage-vis { margin-top: 12px; }
.storage-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--bg-card2); border-radius: var(--radius);
  margin-bottom: 6px; font-size: 11px; color: var(--text-sub);
}
.storage-row:last-child { margin-bottom: 0; }
.storage-row strong { color: var(--text-main); font-size: 11px; }

/* Danger action button */
.action-btn {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 8px; cursor: pointer; border: none;
  font-family: var(--font-body); transition: opacity 0.2s;
}
.btn-danger {
  background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.3);
  color: var(--accent3);
}
.btn-danger:hover { opacity: 0.8; }

/* Toast notification */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--grad-br); color: #fff;
  padding: 10px 24px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; pointer-events: auto; }

/* ─────────────────────────────────────────────
   NOTE: For full JS-driven animated data points
   (canvas with moving nodes + connecting lines),
   add this to your page:
   <script src="data-points.js"></script>
   The CSS ::after fallback above gives a static
   approximation matching the blue→red scatter
   pattern shown in the design reference.
───────────────────────────────────────────── */
