/* ═══════════════════════════════════════════════════════
   UPDATED v3 — Design System
   Aligned to brand: Deep Navy · Electric Cyan · Purple Glow
   Logo palette: #0d1b3e bg · #00c8ff cyan · #7b5ea7 purple
═══════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────── */
:root {
  --bg:          #0b1120;
  --surface:     #111827;
  --card:        #1a2235;
  --card-hover:  #1e2940;
  --border:      #1e3a5f;
  --border-sub:  #162035;

  --text-primary:   #e8f0fe;
  --text-secondary: #7b9bbf;
  --text-muted:     #3d5a80;

  --cyan:    #00c8ff;
  --green:   #00e5a0;
  --red:     #ff4757;
  --gold:    #ffc107;
  --purple:  #a78bfa;
  --amber:   #ff8c42;
  --blue:    #60a5fa;
  --teal:    #2dd4bf;
  --indigo:  #818cf8;

  --brand-navy:   #0d1b3e;
  --brand-cyan:   #00c8ff;
  --brand-purple: #7b5ea7;
  --brand-glow:   rgba(0, 200, 255, 0.15);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --sidebar-w: 210px;
  --ads-w:     260px;
  --topbar-h:  56px;
  --ticker-h:  36px;

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --font-mono:  "JetBrains Mono", "Fira Code", monospace;
}

[data-theme="light"] {
  --bg:          #f0f4ff;
  --surface:     #ffffff;
  --card:        #ffffff;
  --card-hover:  #f0f7ff;
  --border:      #c5d8f0;
  --border-sub:  #e0ecf8;
  --text-primary:   #0d1b3e;
  --text-secondary: #3d5a80;
  --text-muted:     #7b9bbf;
  --cyan:   #0070f3;
  --green:  #00a86b;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--ads-w);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "topbar  topbar  topbar"
    "ticker  ticker  ticker"
    "sidebar main    ads";
  min-height: 100vh;
}

/* ── Top Bar ────────────────────────────────────────── */
.topbar {
  grid-area: topbar;
  height: var(--topbar-h);
  background: var(--brand-navy);
  border-bottom: 1px solid rgba(0, 200, 255, 0.15);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.topbar-logo img.logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.topbar-logo .logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #00c8ff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar-logo .logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: livepulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--cyan);
}

.topbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.topbar-search input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 99px;
  padding: 6px 16px 6px 36px;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus {
  border-color: var(--cyan);
  background: rgba(0, 200, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}
.topbar-search .search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.btn-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
}
.btn-icon:hover {
  background: rgba(0, 200, 255, 0.1);
  color: var(--cyan);
}
.topbar-stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Auth buttons (in topbar) ───────────────────────── */
.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #0070f3 0%, #00c8ff 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 200, 255, 0.3);
}
.btn-signin:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--cyan);
  white-space: nowrap;
}
.user-pill img {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.user-pill .user-avatar-placeholder {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070f3, #00c8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-admin:hover {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  text-decoration: none;
}
.btn-signout {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  background: transparent;
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-signout:hover {
  border-color: rgba(255, 71, 87, 0.4);
  color: var(--red);
  text-decoration: none;
}

/* ── Breaking Ticker ────────────────────────────────── */
.breaking-ticker {
  grid-area: ticker;
  height: var(--ticker-h);
  background: linear-gradient(90deg, #1a0008 0%, #260510 100%);
  border-bottom: 1px solid rgba(255, 71, 87, 0.3);
  display: none;
  align-items: center;
  overflow: hidden;
}
.breaking-ticker.visible { display: flex; }
.ticker-label {
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
  border-right: 1px solid rgba(255,71,87,.3);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 40s linear infinite;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ticker-item { display: inline; margin-right: 60px; }
.ticker-item a { color: var(--text-primary); }
.ticker-item a:hover { color: var(--cyan); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sidebar ────────────────────────────────────────── */
.sidebar {
  grid-area: sidebar;
  background: var(--brand-navy);
  border-right: 1px solid rgba(0, 200, 255, 0.1);
  padding: 12px 0 16px;
  overflow-y: auto;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
}
.nav-section-label {
  padding: 6px 14px 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
  cursor: pointer;
  border-left: 3px solid transparent;
  white-space: nowrap;
}
.nav-item:hover {
  background: rgba(0, 200, 255, 0.06);
  color: var(--text-primary);
}
.nav-item.active { color: var(--text-primary); font-weight: 600; }
.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }
.nav-icon svg { width: 16px; height: 16px; stroke: currentColor; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}
.nav-badge.new { background: var(--cyan); color: var(--bg); }

.nav-item[data-section="pulse"].active        { border-left-color: var(--cyan);   color: var(--cyan); }
.nav-item[data-section="deep_tech"].active    { border-left-color: var(--blue);   color: var(--blue); }
.nav-item[data-section="build_deploy"].active { border-left-color: var(--green);  color: var(--green); }
.nav-item[data-section="moves_money"].active  { border-left-color: var(--gold);   color: var(--gold); }
.nav-item[data-section="boardroom"].active    { border-left-color: var(--teal);   color: var(--teal); }
.nav-item[data-section="world_view"].active   { border-left-color: var(--blue);   color: var(--blue); }
.nav-item[data-section="breach_watch"].active { border-left-color: var(--red);    color: var(--red); }
.nav-item[data-section="gossip"].active       { border-left-color: var(--purple); color: var(--purple); }
.nav-item[data-section="careers"].active      { border-left-color: var(--cyan);   color: var(--cyan); }
.nav-item[data-section="humor"].active        { border-left-color: var(--amber);  color: var(--amber); }
.nav-item[data-section="trending"].active     { border-left-color: var(--red);    color: var(--red); }

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 200, 255, 0.1);
  margin-top: auto;
}
.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: livepulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}
.live-dot.connecting { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.live-dot.offline { background: var(--text-muted); animation: none; box-shadow: none; }
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(.85); }
}

/* ── Main Content ───────────────────────────────────── */
.main-content { grid-area: main; overflow-y: auto; min-width: 0; }
.section-view { display: none; }
.section-view.active { display: block; }

.section-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title svg { width: 20px; height: 20px; }

/* ── Region Bar ─────────────────────────────────────── */
.region-bar {
  display: flex;
  gap: 5px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-sub);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(0,0,0,.2);
}
.region-bar::-webkit-scrollbar { display: none; }
.region-pill {
  flex-shrink: 0;
  padding: 3px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.region-pill:hover, .region-pill.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
  font-weight: 600;
}
.region-pill.archive-pill {
  margin-left: 8px;
  border-color: var(--gold);
  color: var(--gold);
  border-style: dashed;
}
.region-pill.archive-pill:hover, .region-pill.archive-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

/* ── Filter Pills ───────────────────────────────────── */
.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: 0.73rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
}
.pill:hover, .pill.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}

/* ── Feed ───────────────────────────────────────────── */
.feed {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-new-banner {
  margin: 0 20px;
  text-align: center;
  padding: 8px;
  background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--cyan);
  cursor: pointer;
  display: none;
  animation: slidedown .3s ease;
}
.feed-new-banner.visible { display: block; }
@keyframes slidedown {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Article Card ───────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: background .15s, border-color .15s, transform .12s;
  animation: cardfadein .22s ease;
  position: relative;
}
.card:hover {
  background: var(--card-hover);
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-1px);
}
@keyframes cardfadein {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card.new-arrival { border-left: 3px solid var(--cyan); }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.source-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tier-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}
.tier-dot.t2 { background: var(--cyan); }
.tier-dot.t3 { background: var(--gold); }
.tier-dot.t4, .tier-dot.t5 { background: var(--text-muted); }
.time-ago { font-size: 0.68rem; color: var(--text-muted); }
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.card-title a:hover { color: var(--cyan); }
.card-summary {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 9px;
}
.card-image {
  width: 84px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.card-body { flex: 1; min-width: 0; }
.card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.btn-read {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,200,255,.3);
  transition: all .15s;
}
.btn-read:hover { background: rgba(0,200,255,.1); }
.tag-chip {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--border-sub);
  color: var(--text-muted);
}

/* ── Badges ─────────────────────────────────────────── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(255,71,87,.15);
  color: var(--red);
  border: 1px solid rgba(255,71,87,.3);
}
.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: livepulse 1.5s ease-in-out infinite;
}
.severity-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 99px;
}
.severity-badge.critical { background: rgba(255,71,87,.15); color: var(--red); border: 1px solid rgba(255,71,87,.3); }
.severity-badge.high     { background: rgba(255,112,67,.15); color: #ff7043; border: 1px solid rgba(255,112,67,.3); }
.severity-badge.medium   { background: rgba(255,193,7,.15); color: var(--gold); border: 1px solid rgba(255,193,7,.3); }
.severity-badge.low      { background: var(--border-sub); color: var(--text-muted); border: 1px solid var(--border); }
.gossip-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(167,139,250,.15);
  color: var(--purple);
  border: 1px solid rgba(167,139,250,.3);
}
.subsection-badge {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255,193,7,.12);
  color: var(--gold);
  border: 1px solid rgba(255,193,7,.25);
}
.subsection-badge.funding  { background: rgba(0,229,160,.1); color: var(--green); border-color: rgba(0,229,160,.25); }
.subsection-badge.m-a      { background: rgba(255,193,7,.12); color: var(--gold); border-color: rgba(255,193,7,.25); }
.subsection-badge.ipo      { background: rgba(0,200,255,.1); color: var(--cyan); border-color: rgba(0,200,255,.25); }
.subsection-badge.layoffs  { background: rgba(255,71,87,.1); color: var(--red); border-color: rgba(255,71,87,.25); }

/* ── Breach card borders ────────────────────────────── */
.card.breach-critical { border-left: 4px solid var(--red); }
.card.breach-high     { border-left: 4px solid #ff7043; }
.card.breach-medium   { border-left: 4px solid var(--gold); }
.card.breach-low      { border-left: 4px solid var(--text-muted); }
.card.gossip-card     { border-left: 3px solid var(--purple); }

/* ── Stats Bar ──────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-sub);
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color .15s, transform .12s, background .15s;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,200,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.stat-card:hover {
  border-color: var(--cyan);
  background: var(--card-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.1);
}
.stat-card .s-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}
.stat-card .s-label { font-size: 0.68rem; color: var(--text-muted); }

/* ── Breach Watch ───────────────────────────────────── */
.breach-header {
  background: linear-gradient(135deg, #130008 0%, #1e000d 100%);
  border-bottom: 1px solid rgba(255,71,87,.2);
  padding: 18px 20px;
}
.breach-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.breach-stat {
  background: rgba(255,71,87,.07);
  border: 1px solid rgba(255,71,87,.15);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}
.breach-stat .num  { font-size: 1.5rem; font-weight: 700; color: var(--red); }
.breach-stat .label { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ── Hall of Infamy ─────────────────────────────────── */
.breach-historical-panel {
  margin: 0 20px 16px;
  border: 1px solid rgba(255,71,87,.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.breach-historical-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,71,87,.06);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,71,87,.15);
}
.breach-historical-header:hover { background: rgba(255,71,87,.1); }
.breach-historical-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breach-historical-toggle { font-size: 0.72rem; color: var(--text-muted); transition: transform .2s; }
.breach-historical-toggle.open { transform: rotate(180deg); }
.breach-historical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.breach-historical-list.collapsed { display: none; }

.infamy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.infamy-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.infamy-card-header:hover { background: var(--card); }
.infamy-card-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.infamy-company { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.infamy-year { font-size: 0.7rem; color: var(--text-muted); }
.infamy-records { font-size: 0.68rem; color: var(--text-secondary); margin-top: 1px; }
.infamy-expand { color: var(--text-muted); font-size: 0.75rem; transition: transform .2s; flex-shrink: 0; }
.infamy-expand.open { transform: rotate(180deg); }
.infamy-body { display: none; padding: 14px; border-top: 1px solid var(--border-sub); background: rgba(0,0,0,.2); }
.infamy-body.open { display: block; }
.infamy-headline { font-family: var(--font-serif); font-size: 0.88rem; color: var(--text-primary); margin-bottom: 14px; line-height: 1.5; font-style: italic; }
.infamy-grid { display: flex; flex-direction: column; gap: 10px; }
.infamy-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.infamy-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.infamy-value { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; }
.infamy-fix { background: rgba(0,229,160,.05); border: 1px solid rgba(0,229,160,.15); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.infamy-fix-label { font-size: 0.68rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.infamy-fix-value { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; }
.infamy-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.infamy-tag { font-size: 0.62rem; padding: 2px 7px; border-radius: 99px; background: rgba(255,71,87,.1); color: var(--red); border: 1px solid rgba(255,71,87,.2); }

/* ── World View Region Tabs ─────────────────────────── */
.region-tabs { display: flex; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--border-sub); overflow-x: auto; scrollbar-width: none; }
.region-tabs::-webkit-scrollbar { display: none; }
.region-tab { flex-shrink: 0; display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; transition: all .15s; }
.region-tab:hover, .region-tab.active { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.region-tab .flag { font-size: 0.95rem; }

/* ── Byte's Corner ──────────────────────────────────── */
.byte-panel { max-width: 540px; margin: 20px auto; padding: 0 20px; }
.byte-card {
  background: var(--card);
  border: 1px solid rgba(255,140,66,.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.byte-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,140,66,.04) 0%, transparent 70%);
  pointer-events: none;
}
.byte-mascot { width: 76px; height: 76px; margin: 0 auto 14px; }
.byte-joke { font-family: var(--font-serif); font-size: 1rem; line-height: 1.8; color: var(--text-primary); white-space: pre-line; }
.byte-punchline { color: var(--amber); font-weight: 600; }
.byte-headline-ref { margin-top: 10px; font-size: 0.7rem; color: var(--text-muted); }
.byte-date { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }
.byte-archive-btn { margin-top: 14px; font-size: 0.76rem; color: var(--amber); border: 1px solid rgba(255,140,66,.3); padding: 5px 12px; border-radius: var(--radius-sm); transition: all .15s; }
.byte-archive-btn:hover { background: rgba(255,140,66,.1); }

/* ── Loading / Empty States ─────────────────────────── */
.loading-spinner { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.spinner-ring {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 12px;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 10px; opacity: .4; }

/* ── Load More ──────────────────────────────────────── */
.load-more-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 6px 20px 20px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.83rem;
  text-align: center;
  transition: all .15s;
}
.load-more-btn:hover { background: var(--card-hover); border-color: var(--cyan); color: var(--cyan); }

/* ── Search ─────────────────────────────────────────── */
.search-header { padding: 14px 20px; border-bottom: 1px solid var(--border-sub); font-size: 0.83rem; color: var(--text-muted); }
.search-header strong { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════
   ADS PANEL
═══════════════════════════════════════════════════════ */
.ads-panel {
  grid-area: ads;
  background: var(--brand-navy);
  border-left: 1px solid rgba(0, 200, 255, 0.1);
  padding: 16px 12px;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  scrollbar-width: none;
}
.ads-panel::-webkit-scrollbar { display: none; }
.ads-section-label { font-size: 0.58rem; font-weight: 700; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; padding: 0 2px; }
.ad-slot { margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; }
.ad-placeholder { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em; gap: 4px; }
.ad-placeholder.large { height: 250px; }
.ad-placeholder.medium { height: 120px; }
.ad-placeholder.small { height: 80px; }
.ad-size { font-size: 0.6rem; opacity: 0.5; }
.ad-leaderboard { min-height: 90px; width: 100%; margin: 0 0 4px 0; }
.ad-sidebar { min-height: 100px; margin: 8px 10px; }
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; }

.partner-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.partner-card:hover { border-color: var(--cyan); background: var(--card-hover); }
.partner-card-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: 5px; }
.partner-card-title { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.partner-card-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }

.newsletter-box {
  background: linear-gradient(135deg, rgba(0,200,255,.06), rgba(167,139,250,.06));
  border: 1px solid rgba(0,200,255,.2);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 16px;
}
.newsletter-box h4 { font-size: 0.78rem; font-weight: 700; color: var(--cyan); margin-bottom: 5px; }
.newsletter-box p { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 8px; }
.newsletter-input { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 9px; color: var(--text-primary); font-size: 0.75rem; outline: none; margin-bottom: 6px; }
.newsletter-input:focus { border-color: var(--cyan); }
.newsletter-btn { width: 100%; background: linear-gradient(135deg, #0070f3, #00c8ff); color: #fff; font-size: 0.73rem; font-weight: 700; padding: 6px; border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: opacity .15s; }
.newsletter-btn:hover { opacity: 0.85; }

/* ── Mobile Bottom Nav ──────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--brand-navy);
  border-top: 1px solid rgba(0, 200, 255, 0.15);
  padding: 5px 0 env(safe-area-inset-bottom);
  z-index: 200;
  justify-content: space-around;
}
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; font-size: 0.58rem; color: var(--text-muted); cursor: pointer; transition: color .15s; min-width: 52px; }
.mobile-nav-item .mn-icon { font-size: 1.15rem; }
.mobile-nav-item.active { color: var(--cyan); }

/* ── v1.8.5 -- Mobile "More" Drawer ──────────────────── */
.more-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 250; }
.more-drawer {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--brand-navy);
  border-top: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 16px 16px 0 0;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  z-index: 260;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.more-drawer.open { transform: translateY(0); }
.more-drawer-handle { width: 36px; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; margin: 0 auto 12px; }
.more-drawer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 4px; }
.more-drawer .mobile-nav-item { min-width: 0; font-size: 0.65rem; }
.more-drawer .mn-icon { font-size: 1.3rem; }

/* ── Toast ──────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 80px; right: 16px; display: flex; flex-direction: column-reverse; gap: 8px; z-index: 9999; }
.toast { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: var(--radius); padding: 10px 13px; font-size: 0.78rem; max-width: 290px; box-shadow: 0 4px 20px rgba(0,0,0,.5); animation: toastin .3s ease; cursor: pointer; }
.toast.breach { border-left-color: var(--red); }
@keyframes toastin { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1280px) { :root { --ads-w: 220px; } }

@media (max-width: 1100px) {
  .app-layout { grid-template-columns: var(--sidebar-w) 1fr; grid-template-areas: "topbar topbar" "ticker ticker" "sidebar main"; }
  .ads-panel { display: none; }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 52px; }
  .nav-item span.nav-label { display: none; }
  .nav-badge { display: none; }
  .nav-section-label { display: none; }
  .sidebar-footer .live-status span { display: none; }
  .topbar-stats { display: none; }
  .breach-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; grid-template-areas: "topbar" "ticker" "main"; padding-bottom: 60px; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-search { max-width: none; }
  .feed { padding: 10px 12px; }
  .section-header { padding: 12px 12px 10px; }
  .card-image { width: 68px; height: 50px; }
  .breach-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 10px 12px; }
  .byte-panel { padding: 0 12px; }
  .region-bar { padding: 7px 12px; }
  .feed-new-banner { margin: 0 12px; }
  .breach-historical-panel { margin: 0 12px 14px; }
  .infamy-row { grid-template-columns: 110px 1fr; }
  .auth-area .user-pill span { display: none; }
}

@media (max-width: 480px) {
  .card-image { display: none; }
  .topbar-logo .logo-text { display: none; }
  .topbar-logo img.logo-img { height: 28px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .infamy-row { grid-template-columns: 1fr; }
  .infamy-label { padding-bottom: 0; }
}


/* ═══════════════════════════════════════════════════════
   v1.3.1 — Ad-free Pro bundle
   Pro users get body.no-ads — all ad slots hidden.
   Partner cards and newsletter box are NOT hidden
   (editorial content, not advertising).
   AdSense script still loads — containers just don't render.
═══════════════════════════════════════════════════════ */

/* Hide all Google AdSense insertion points */
body.no-ads .ad-slot { display: none !important; }

/* Hide the leaderboard ad in Pulse section */
body.no-ads .ad-leaderboard { display: none !important; }

/* Hide the sidebar ad slot (inside nav) */
body.no-ads .ad-sidebar { display: none !important; }

/* Hide the entire right ads panel for Pro users
   (pro users don't need the sponsored/partner sidebar at all)
   Newsletter box and partner cards are excluded via :not() — kept visible */
body.no-ads .ads-panel .ad-slot,
body.no-ads .ads-panel .ads-section-label:first-child,
body.no-ads .ads-panel .ad-placeholder { display: none !important; }

/* Compact the ads panel for Pro — remove empty top space */
body.no-ads .ads-panel { padding-top: 8px; }


/* ═══════════════════════════════════════════════════════
   v1.5.0 — In-App Article Reader Panel
   Slides in from right over main content area.
   Mobile: full screen.
═══════════════════════════════════════════════════════ */

/* ── Reader Overlay (backdrop) ──────────────────────── */
.reader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 400;
  backdrop-filter: blur(2px);
  animation: reader-fade-in 0.2s ease;
}
.reader-overlay.open { display: block; }
@keyframes reader-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Reader Panel ───────────────────────────────────── */
.reader-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(680px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}
.reader-panel.open { transform: translateX(0); }

/* ── Reader Header ──────────────────────────────────── */
.reader-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--brand-navy);
  flex-shrink: 0;
  min-height: 52px;
}
.reader-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  background: transparent;
}
.reader-back-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.06);
}
.reader-source-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.reader-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  flex-shrink: 0;
}
.reader-action-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.06);
}
.reader-action-btn.bookmarked {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.08);
}

/* ── Reader Body (scrollable) ───────────────────────── */
.reader-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.reader-body::-webkit-scrollbar { width: 4px; }
.reader-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Reader Meta ────────────────────────────────────── */
.reader-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.reader-section-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 200, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, 0.2);
}
.reader-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.reader-region {
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--border-sub);
  border: 1px solid var(--border);
}

/* ── Reader Title ───────────────────────────────────── */
.reader-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ── Reader Byline ──────────────────────────────────── */
.reader-byline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.reader-byline strong { color: var(--text-secondary); }

/* ── Reader Image ───────────────────────────────────── */
.reader-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

/* ── AI Summary Box ─────────────────────────────────── */
.reader-summary-box {
  background: linear-gradient(135deg,
    rgba(0, 200, 255, 0.05) 0%,
    rgba(167, 139, 250, 0.05) 100%);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  position: relative;
}
.reader-summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.reader-summary-text {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.reader-no-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Reader Tags ────────────────────────────────────── */
.reader-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.reader-tag {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--border-sub);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Reader Divider ─────────────────────────────────── */
.reader-divider {
  height: 1px;
  background: var(--border-sub);
  margin: 20px 0;
}

/* ── Read Full Article CTA ──────────────────────────── */
.reader-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.reader-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0070f3, #00c8ff);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.25);
}
.reader-cta-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.reader-cta-secondary {
  display: flex;
  gap: 8px;
}
.reader-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--card);
}
.reader-share-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.06);
}
.reader-share-btn.linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.06);
}
.reader-share-btn.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.06);
}
.reader-share-btn.twitter:hover {
  border-color: #1d9bf0;
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.08);
}
.reader-share-btn.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.06);
}

/* -- Card Share Buttons */
.card-share-group {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 6px;
  border-left: 1px solid rgba(255,255,255,0.07);
  margin-left: 4px;
}
.card-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color .15s, background .15s;
  padding: 0;
  opacity: 0.6;
}
.card-share-btn:hover { opacity: 1; background: rgba(255,255,255,0.05); }
.card-share-btn.card-share-wa:hover { color: #25d366; }
.card-share-btn.card-share-li:hover { color: #0a66c2; }
.card-share-btn.card-share-x:hover  { color: #e7e9ea; }
.card-share-btn.card-share-fb:hover { color: #1877f2; }
.card-share-btn.card-share-cp:hover { color: var(--cyan); }

/* ── Related Articles ───────────────────────────────── */
.reader-related-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.reader-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reader-related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.reader-related-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  background: var(--card-hover);
  transform: translateY(-1px);
}
.reader-related-source {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.reader-related-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.reader-related-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Reader Loading State ───────────────────────────── */
.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Mobile Reader ──────────────────────────────────── */
@media (max-width: 768px) {
  .reader-panel {
    width: 100vw;
    border-left: none;
  }
  .reader-body {
    padding: 18px 16px 100px;
  }
  .reader-title { font-size: 1.15rem; }
  .reader-cta-secondary { flex-direction: column; }
}
