/* ═══════════════════════════════════════════
   CYBERAXE LIFE WIKI — SHARED COMPONENTS
   Topbar, sidebar, cards, tables, stat bars,
   tags, testimonials, timeline, TTS bar
   ═══════════════════════════════════════════ */

/* ─── TOPBAR ─── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 16px;
}

.topbar-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-fire);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-back {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-fire);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--accent-fire);
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.topbar-back:hover { background: var(--accent-fire); color: #000; }

.topbar-branch {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}
.topbar-branch-icon { font-size: 18px; }

.topbar-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.topbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--accent-electric); }

.topbar-search {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}
.topbar-search input {
  width: 100%;
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.topbar-search input:focus { border-color: var(--accent); }
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.topbar-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.15s;
}
.topbar-btn:hover { border-color: var(--accent); color: var(--accent); }
.topbar-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Theme selector dropdown */
.theme-select {
  padding: 4px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.theme-select:focus { border-color: var(--accent); }

/* View mode toggle */
.view-toggle {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 2px;
}
.vt-btn {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}
.vt-btn:hover { color: var(--accent-electric); border-color: var(--accent-electric); }
.vt-btn.active { background: var(--accent-fire); color: #000; border-color: var(--accent-fire); }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px 0;
  z-index: 50;
}

.sidebar-section { padding: 0 14px; margin-bottom: 6px; }

.sidebar-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}
.sidebar-title:hover { color: var(--accent-fire); }
.sidebar-title .collapse-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.sidebar-section.collapsed .collapse-arrow { transform: rotate(-90deg); }
.sidebar-section.collapsed .sidebar-item { display: none; }

.sidebar-item {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.sidebar-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  border-left-color: var(--accent);
}
.sidebar-item.active {
  color: var(--accent);
  background: rgba(var(--accent-electric-rgb), 0.08);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar-badge {
  float: right;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0 6px;
  border-radius: 3px;
  color: var(--text-muted);
}

.sidebar-scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0%;
  background: var(--accent);
  transition: height 0.1s;
  border-radius: 0 2px 2px 0;
}

/* ─── WIKI SECTION HEADERS ─── */
.wiki-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.wiki-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.wiki-section-icon { font-size: 22px; }
.wiki-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.wiki-section-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ─── WHAT TO EXPECT WIDGET ─── */
.expect-widget {
  background: linear-gradient(135deg, rgba(var(--accent-electric-rgb), 0.06), rgba(var(--accent-fire-rgb), 0.04));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.expect-status { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.expect-badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.expect-badge.active { background: var(--accent-lime); color: #000; }
.expect-badge.wip { background: var(--accent-gold); color: #000; }
.expect-badge.coming { background: var(--accent-violet); color: #000; }
.expect-updated {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.expect-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.expect-text strong { color: var(--text-primary); }

/* ─── DATA TABLES ─── */
.wiki-table-wrap { overflow-x: auto; margin: 16px 0; }
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wiki-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-secondary);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}
.wiki-table th:hover { color: var(--accent-fire); }
.wiki-table th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}
.wiki-table th.sorted .sort-arrow { opacity: 1; }
.wiki-table th.sorted { color: var(--accent-fire); }
.wiki-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(26, 37, 80, 0.5);
  vertical-align: top;
}
.wiki-table tr:hover td { background: rgba(var(--accent-electric-rgb), 0.03); }
.wiki-table .year-col { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; font-weight: 600; }
.wiki-table .role-col { font-weight: 600; color: var(--text-primary); }
.wiki-table .company-col { color: var(--accent-gold); font-weight: 600; }
.wiki-table .desc-col { color: var(--text-secondary); font-size: 12px; }

/* ─── STAT BARS ─── */
.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.stat-bar-label {
  min-width: 160px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.stat-bar-track {
  flex: 1;
  height: 10px;
  background: var(--bg-card);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
  background: var(--accent);
}
.stat-bar-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  min-width: 60px;
  text-align: right;
}

/* ─── TAG BADGES ─── */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  margin: 2px 2px;
}
.tag-blue { background: rgba(var(--accent-electric-rgb), 0.15); color: var(--accent-electric); border: 1px solid rgba(var(--accent-electric-rgb), 0.3); }
.tag-gold { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); border: 1px solid rgba(251, 191, 36, 0.3); }
.tag-green { background: rgba(74, 222, 128, 0.15); color: var(--accent-lime); border: 1px solid rgba(74, 222, 128, 0.3); }
.tag-rose { background: rgba(244, 114, 182, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 114, 182, 0.3); }
.tag-fire { background: rgba(var(--accent-fire-rgb), 0.15); color: var(--accent-fire); border: 1px solid rgba(var(--accent-fire-rgb), 0.3); }
.tag-violet { background: rgba(167, 139, 250, 0.15); color: var(--accent-violet); border: 1px solid rgba(167, 139, 250, 0.3); }
.tag-teal { background: rgba(45, 212, 191, 0.15); color: var(--accent-teal); border: 1px solid rgba(45, 212, 191, 0.3); }

/* ─── TESTIMONIAL CARDS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}
.testimonial-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}
.testimonial-quote {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}
.testimonial-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── TIMELINE — VERTICAL ─── */
.timeline-vertical {
  position: relative;
  padding-left: 32px;
  margin-top: 16px;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding: 12px 0 24px 24px;
  cursor: pointer;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  z-index: 2;
  transition: all 0.2s;
}
.tl-item:hover::before {
  background: var(--accent);
  box-shadow: var(--glow);
}
.tl-year {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.tl-event {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tl-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── TIME-SHIFTING BIOGRAPHY ───
   Visual design shifts as you scroll through timeline eras.
   Each era class changes the timeline section's look. */

/* 1980s — Terminal / BBS era */
body.era-80s .tl-item[data-era="era-80s"] {
  background: #001a00;
  border: 1px solid #0a3a0a;
  border-radius: 0;
  padding-left: 28px;
  font-family: 'JetBrains Mono', monospace;
}
body.era-80s .tl-item[data-era="era-80s"] .tl-year { color: #33ff33; font-family: 'JetBrains Mono', monospace; }
body.era-80s .tl-item[data-era="era-80s"] .tl-event { color: #33ff33; }
body.era-80s .tl-item[data-era="era-80s"] .tl-detail { color: #1a9a1a; }
body.era-80s .tl-item[data-era="era-80s"]::before { background: #33ff33; border-color: #33ff33; box-shadow: 0 0 8px #33ff33; }

/* 1990s — GeoCities / early web */
body.era-90s .tl-item[data-era="era-90s"] {
  background: #000080;
  border: 2px dashed #ff0;
  border-radius: 0;
  padding-left: 28px;
  font-family: 'Comic Sans MS', 'Rajdhani', cursive;
}
body.era-90s .tl-item[data-era="era-90s"] .tl-year { color: #ff0; font-family: 'Comic Sans MS', cursive; font-weight: 900; }
body.era-90s .tl-item[data-era="era-90s"] .tl-event { color: #0ff; }
body.era-90s .tl-item[data-era="era-90s"] .tl-detail { color: #ccc; }
body.era-90s .tl-item[data-era="era-90s"]::before { background: #ff0; border-color: #ff0; border-radius: 0; }

/* 2000s — Early Web 2.0, gradient era */
body.era-2000s .tl-item[data-era="era-2000s"] {
  background: linear-gradient(135deg, #1a2a4a, #0a1a3a);
  border: 1px solid #3a5a8a;
  border-radius: 8px;
  padding-left: 28px;
}
body.era-2000s .tl-item[data-era="era-2000s"] .tl-year { color: #70b0ff; }
body.era-2000s .tl-item[data-era="era-2000s"] .tl-event { color: #d0e0f0; }
body.era-2000s .tl-item[data-era="era-2000s"]::before { background: #4090e0; border-color: #70b0ff; }

/* 2010s — Flat design, modern clean */
body.era-2010s .tl-item[data-era="era-2010s"] {
  background: #1a1a2e;
  border: 1px solid #2a2a4e;
  border-left: 3px solid #a78bfa;
  border-radius: 6px;
  padding-left: 28px;
}
body.era-2010s .tl-item[data-era="era-2010s"] .tl-year { color: #a78bfa; }
body.era-2010s .tl-item[data-era="era-2010s"] .tl-event { color: #e0e0f0; }
body.era-2010s .tl-item[data-era="era-2010s"]::before { background: #a78bfa; border-color: #a78bfa; }

/* 2020s — Current dark modern, fire accent */
body.era-2020s .tl-item[data-era="era-2020s"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-fire);
  border-radius: 8px;
  padding-left: 28px;
}
body.era-2020s .tl-item[data-era="era-2020s"] .tl-year { color: var(--accent-fire); }
body.era-2020s .tl-item[data-era="era-2020s"] .tl-event { color: var(--text-primary); }
body.era-2020s .tl-item[data-era="era-2020s"]::before { background: var(--accent-fire); border-color: var(--accent-fire); box-shadow: 0 0 8px rgba(240, 133, 45, 0.5); }

/* Smooth transition for all era shifts */
.tl-item {
  transition: background 0.6s, border 0.6s, font-family 0.3s;
}

/* ─── CERT CARDS ─── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(var(--accent-electric-rgb), 0.1);
  border: 1px solid rgba(var(--accent-electric-rgb), 0.2);
}
.cert-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.cert-issuer { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cert-year { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }

/* ─── MINI DASHBOARD ─── */
.mini-dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mini-stat:hover { border-color: var(--accent-fire); transform: translateY(-2px); }
.mini-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.mini-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 600;
}

/* ─── PARAGRAPH ─── */
.wiki-p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 780px;
}
.wiki-p strong { color: var(--text-primary); }

/* ─── TTS READ BUTTON (topbar) ─── */
.tts-read-btn {
  font-size: 15px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px;
  transition: all 0.2s;
}
.tts-read-btn:hover {
  background: var(--accent-fire) !important;
  color: #000 !important;
  border-color: var(--accent-fire) !important;
  box-shadow: 0 0 12px rgba(240, 133, 45, 0.3);
}

/* ─── TTS BAR ─── */
.tts-bar {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  width: calc(100% - 240px);
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: none; /* hidden until toggled */
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}
.tts-bar.visible { display: flex; }
.tts-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}
.tts-btn:hover { border-color: var(--accent); color: var(--accent); }
.tts-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.tts-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tts-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: all var(--transition-fast);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover {
  border-color: var(--accent-fire);
  color: var(--accent-fire);
  transform: translateY(-2px);
}

/* ─── PROJECT STATUS BADGES ─── */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-active { background: rgba(74, 222, 128, 0.15); color: var(--accent-lime); border: 1px solid rgba(74, 222, 128, 0.3); }
.status-in-progress { background: rgba(77, 166, 255, 0.15); color: var(--accent-electric); border: 1px solid rgba(77, 166, 255, 0.3); }
.status-paused { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); border: 1px solid rgba(251, 191, 36, 0.3); }
.status-archived { background: rgba(104, 104, 160, 0.15); color: var(--text-muted); border: 1px solid rgba(104, 104, 160, 0.3); }
.status-doa { background: rgba(248, 113, 113, 0.15); color: var(--accent-red); border: 1px solid rgba(248, 113, 113, 0.3); }
.status-concept { background: rgba(167, 139, 250, 0.15); color: var(--accent-violet); border: 1px solid rgba(167, 139, 250, 0.3); }

/* ─── MODAL POPUP SYSTEM ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.visible { display: flex; }
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 32px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
  animation: fadeSlideUp 0.3s ease;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--accent-fire); background: rgba(var(--accent-fire-rgb), 0.1); }
.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-right: 32px;
}
.modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modal-body strong { color: var(--text-primary); }
.modal-body .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.modal-body .detail-label { color: var(--text-muted); font-size: 12px; }
.modal-body .detail-value { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ─── READING TIME ─── */
.reading-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-left: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .tts-bar { width: calc(100% - 32px); max-width: none; }
  .topbar-search { max-width: 200px; }
  .modal-content { padding: 20px; max-width: 95%; }
  .topbar-nav { display: none; }
  .view-toggle { top: auto; bottom: 8px; right: 8px; }
  .expect-widget { flex-direction: column; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .mini-dash { grid-template-columns: repeat(2, 1fr); }
}
