/* ================================================================
   ERITREAN INFO — Features CSS v1.0
   Styles for: auth, bookmarks, news, notifications, comments,
               learning widget, share cards, section links, events
================================================================ */

/* ── Toast notifications ─────────────────────────────────────── */
.feat-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.feat-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.feat-toast-info    { background: #1e3a5f; }
.feat-toast-success { background: #007A3D; }
.feat-toast-error   { background: #9b1c1c; }

/* ── Auth nav button ─────────────────────────────────────────── */
.auth-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  padding: 0;
  flex-shrink: 0;
}
.auth-nav-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.auth-nav-icon { font-size: 16px; line-height: 1; }
.auth-nav-icon.auth-nav-signed {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: #007A3D;
}
.auth-nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* Auth panel */
.auth-panel {
  position: fixed;
  top: 60px;
  right: 12px;
  width: 280px;
  background: #0e1c14;
  border: 1px solid rgba(0,122,61,.35);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  z-index: 1200;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.auth-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.ap-inner { padding: 20px; }
.ap-logo { font-size: 32px; text-align: center; margin-bottom: 8px; }
.ap-title { font-size: 17px; font-weight: 700; text-align: center; color: #fff; margin: 0 0 4px; }
.ap-sub { font-size: 12px; color: rgba(255,255,255,.5); text-align: center; margin: 0 0 16px; }
.ap-google-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.ap-google-btn:hover { background: rgba(255,255,255,.12); }
.ap-note { font-size: 11px; color: rgba(255,255,255,.35); text-align: center; margin: 10px 0 0; }
.ap-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #007A3D;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.ap-user-name { font-size: 15px; font-weight: 700; text-align: center; color: #fff; margin: 0 0 2px; }
.ap-user-email { font-size: 12px; color: rgba(255,255,255,.45); text-align: center; margin: 0 0 14px; }
.ap-bm-link, .ap-signout {
  display: block;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background .2s;
}
.ap-bm-link { background: rgba(0,122,61,.25); color: #4dbd7e; }
.ap-bm-link:hover { background: rgba(0,122,61,.4); }
.ap-signout { background: rgba(180,30,30,.2); color: #f87171; }
.ap-signout:hover { background: rgba(180,30,30,.35); }

/* ── Bookmark buttons ────────────────────────────────────────── */
.bm-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  transition: background .2s, transform .15s;
  z-index: 5;
  opacity: .7;
}
.bm-btn:hover { opacity: 1; background: rgba(0,0,0,.7); transform: scale(1.1); }
.bm-btn.active { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,210,0,.8)); }

/* Bookmarks panel (slide-up) */
.bm-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.bm-panel.open { opacity: 1; pointer-events: all; }
.bmp-inner {
  background: #0e1c14;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0,122,61,.4);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.bm-panel.open .bmp-inner { transform: translateY(0); }
.bmp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.bmp-head button {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 18px; cursor: pointer; padding: 4px;
}
.bmp-list { overflow-y: auto; padding: 12px 16px; flex: 1; }
.bmp-empty {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 14px;
  padding: 32px 0;
  line-height: 1.6;
}
.bmp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bmp-emoji { font-size: 22px; flex-shrink: 0; }
.bmp-info { flex: 1; min-width: 0; }
.bmp-title { font-size: 14px; color: #fff; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmp-type { font-size: 11px; color: rgba(255,255,255,.4); margin: 2px 0 0; text-transform: capitalize; }
.bmp-remove {
  background: none; border: none;
  color: rgba(255,255,255,.3);
  font-size: 16px; cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.bmp-remove:hover { color: #f87171; background: rgba(180,30,30,.15); }

/* ── News feed ───────────────────────────────────────────────── */
.news-loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 20px 0;
}
.news-loading-bar > div {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #007A3D, #4dbd7e, #007A3D);
  background-size: 200% 100%;
  animation: newsScan 1.4s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes newsScan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
.news-source-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  padding: 0 4px;
}
.news-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.news-card:hover { border-color: rgba(0,122,61,.4); }
.news-img-wrap { width: 100%; max-height: 180px; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-body { padding: 14px 16px; }
.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #4dbd7e;
  background: rgba(0,122,61,.18);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
}
.news-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #2d2d2d);
  margin: 0 0 6px;
  line-height: 1.4;
}
.news-excerpt {
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 10px;
  line-height: 1.55;
}
.news-meta { display: flex; gap: 10px; margin-bottom: 8px; }
.news-date { font-size: 12px; color: var(--text-muted, #666); }
.news-read-more {
  font-size: 13px;
  font-weight: 600;
  color: #4dbd7e;
  text-decoration: none;
}
.news-read-more:hover { text-decoration: underline; }

/* ── Notification button ─────────────────────────────────────── */
.notif-nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: .55;
  transition: opacity .2s, transform .15s;
  line-height: 1;
}
.notif-nav-btn:hover { opacity: 1; transform: scale(1.1); }
.notif-nav-btn.active { opacity: 1; }

/* ── Blog comments ───────────────────────────────────────────── */
.blog-comments-wrap {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bc-header {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.bc-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.bc-input, .bc-textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  padding: 10px 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.bc-input::placeholder, .bc-textarea::placeholder { color: rgba(255,255,255,.3); }
.bc-input:focus, .bc-textarea:focus { border-color: rgba(0,122,61,.6); }
.bc-form-row { display: flex; align-items: center; justify-content: space-between; }
.bc-char { font-size: 12px; color: rgba(255,255,255,.35); }
.bc-submit {
  background: #007A3D;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.bc-submit:hover { background: #005f2f; }
.bc-submit:disabled { opacity: .5; cursor: default; }
.bc-list { display: flex; flex-direction: column; gap: 16px; }
.bc-loading, .bc-empty { font-size: 14px; color: rgba(255,255,255,.4); text-align: center; padding: 24px 0; }
.bc-comment { display: flex; gap: 12px; }
.bc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007A3D, #4dbd7e);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bc-comment-body {
  flex: 1;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.07);
}
.bc-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 13px;
  color: #fff;
}
.bc-comment-meta span { font-size: 11px; color: rgba(255,255,255,.35); }
.bc-comment-body > p { font-size: 14px; color: rgba(255,255,255,.75); margin: 0; line-height: 1.55; }

/* ── Learning streak widget ──────────────────────────────────── */
.learn-widget {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 240px;
  background: #0e1c14;
  border: 1px solid rgba(0,122,61,.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 900;
  overflow: hidden;
  transition: box-shadow .2s;
}
.learn-widget:hover { box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.lw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: default;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.lw-flame { font-size: 22px; flex-shrink: 0; }
.lw-info { flex: 1; min-width: 0; }
.lw-streak { font-size: 13px; font-weight: 700; color: #fff; margin: 0; }
.lw-sub { font-size: 11px; color: rgba(255,255,255,.4); margin: 0; }
.lw-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}
.lw-toggle:hover { color: #fff; }
.lw-body { padding: 12px 14px; }
.lw-body.closed { display: none; }
.lw-stat-row { display: flex; gap: 6px; margin-bottom: 12px; }
.lw-stat { flex: 1; text-align: center; background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 4px; }
.lw-stat-val { font-size: 18px; font-weight: 800; color: #4dbd7e; line-height: 1; }
.lw-stat-label { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 3px; }
.lw-progress-bar {
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.lw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007A3D, #4dbd7e);
  border-radius: 3px;
  transition: width .4s;
}
.lw-goal { font-size: 11px; color: rgba(255,255,255,.4); margin: 0 0 10px; text-align: center; }
.lw-quick-links { display: flex; flex-wrap: wrap; gap: 5px; }
.lw-link {
  font-size: 11px;
  color: #4dbd7e;
  background: rgba(0,122,61,.15);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}
.lw-link:hover { background: rgba(0,122,61,.3); }

/* ── Share buttons ───────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, color .2s;
}
.share-btn:hover { background: rgba(0,122,61,.2); color: #4dbd7e; border-color: rgba(0,122,61,.4); }
.share-btn.wod-share { margin-top: 12px; }

/* ── Section share links ─────────────────────────────────────── */
.section-share-link {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity .2s, background .2s;
  vertical-align: middle;
  margin-left: 6px;
}
section:hover .section-share-link,
.section-header:hover .section-share-link { opacity: 1; }
.section-share-link:hover { background: rgba(255,255,255,.1); opacity: 1; }

/* ── Event cards ─────────────────────────────────────────────── */
.event-card {
  display: flex;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.event-card:hover { border-color: rgba(0,122,61,.35); }
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  background: rgba(0,122,61,.18);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4dbd7e;
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0;
}
.event-body { flex: 1; min-width: 0; }
.event-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
}
.event-location {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin: 0 0 5px;
}
.event-desc {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin: 0 0 6px;
  line-height: 1.5;
}
.event-link {
  font-size: 13px;
  font-weight: 600;
  color: #4dbd7e;
  text-decoration: none;
}
.event-link:hover { text-decoration: underline; }

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 480px) {
  .learn-widget { width: 200px; bottom: 72px; right: 10px; }
  .auth-panel { right: 8px; width: 260px; }
}

/* ══════════════════════════════════════════════════════════
   TWEAKS v2.0 — 13 new features
══════════════════════════════════════════════════════════ */

/* T1: Reading progress bar */
.reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #007A3D, #4dbd7e, #4189DD);
  z-index: 9999; transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* T2: Word of the Day strip */
.wod-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: linear-gradient(90deg, #005a2d, #007A3D);
  color: #fff; font-size: .82rem; padding: 7px 18px;
  position: relative; z-index: 90;
}
.wod-bar[hidden] { display: none; }
.wod-label { font-weight: 700; opacity: .85; white-space: nowrap; }
.wod-ti { font-weight: 800; font-size: .9rem; font-family: var(--font-ethiopic, serif); }
.wod-sep { opacity: .5; }
.wod-en { font-style: italic; opacity: .9; }
.wod-ex { font-size: .74rem; opacity: .65; }
.wod-close {
  margin-left: auto; background: rgba(255,255,255,.15); border: none;
  color: #fff; border-radius: 50%; width: 20px; height: 20px;
  cursor: pointer; font-size: .7rem; display: flex; align-items: center; justify-content: center;
}

/* T3: Navbar icon buttons (reading mode + search) */
.nav-icon-btn {
  background: none; border: none; cursor: pointer;
  font-size: .78rem; font-weight: 700; padding: 5px 8px;
  border-radius: 8px; color: var(--text-muted, #555);
  transition: background .2s, color .2s;
}
.nav-icon-btn:hover { background: rgba(0,122,61,.1); color: #007A3D; }
.nav-icon-btn.active { background: #007A3D; color: #fff; }
html.dark .nav-icon-btn { color: rgba(255,255,255,.6); }
html.dark .nav-icon-btn:hover { background: rgba(77,189,126,.15); color: #4dbd7e; }
html.dark .nav-icon-btn.active { background: #007A3D; color: #fff; }

/* T9: Reading mode */
body.reading-mode section { max-width: 740px; margin-left: auto; margin-right: auto; }
body.reading-mode p, body.reading-mode li, body.reading-mode blockquote { font-size: 1.08rem !important; line-height: 1.85 !important; }
body.reading-mode h2 { font-size: 1.7rem !important; }
body.reading-mode h3 { font-size: 1.25rem !important; }
body.reading-mode .container { max-width: 780px; }

/* T1: Offline badge */
.offline-ready-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: #10b981; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px; margin-left: 10px; vertical-align: middle;
}

/* T5: Streak banner on lessons page */
.lessons-streak-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0e1c14, #1a2e1f);
  border: 1px solid rgba(77,189,126,.25); border-radius: 14px;
  padding: 14px 20px; margin-bottom: 22px;
}
.lsb-flame { font-size: 1.8rem; }
.lsb-info { flex: 1; min-width: 0; }
.lsb-streak { font-size: 1.1rem; font-weight: 800; color: #4dbd7e; margin: 0 0 2px; }
.lsb-sub { font-size: .78rem; color: rgba(255,255,255,.45); margin: 0; }
.lsb-xp { text-align: right; }
.lsb-xp-num { font-size: 1.4rem; font-weight: 800; color: #fbbf24; }
.lsb-xp-lbl { font-size: .68rem; color: rgba(255,255,255,.4); }

/* T7: Quiz leaderboard */
.quiz-leaderboard { margin-top: 18px; text-align: left; }
.qlb-title { font-weight: 700; margin-bottom: 10px; font-size: .9rem; opacity: .7; }
.qlb-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 9px; margin-bottom: 5px; background: rgba(255,255,255,.04);
  font-size: .82rem;
}
.qlb-row.me { background: rgba(0,122,61,.15); border: 1px solid rgba(77,189,126,.3); }
.qlb-rank { font-weight: 800; min-width: 20px; }
.qlb-name { flex: 1; }
.qlb-score { font-weight: 700; color: #4dbd7e; }

/* T8: Related sections */
.related-sections {
  margin-top: 40px; padding: 20px; border-radius: 14px;
  background: rgba(0,122,61,.06); border: 1px solid rgba(0,122,61,.15);
}
.related-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted, #888); margin-bottom: 12px; }
.related-links { display: flex; gap: 10px; flex-wrap: wrap; }
.related-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,122,61,.1); border: 1px solid rgba(0,122,61,.2);
  color: #007A3D; text-decoration: none; padding: 7px 14px;
  border-radius: 99px; font-size: .82rem; font-weight: 600;
  transition: background .2s, transform .15s;
}
.related-link:hover { background: #007A3D; color: #fff; transform: translateY(-1px); }
html.dark .related-link { color: #4dbd7e; background: rgba(77,189,126,.1); }
html.dark .related-link:hover { background: #007A3D; color: #fff; }

/* T11: In-page search */
.ips-overlay {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 8000; width: 94%; max-width: 560px;
}
.ips-overlay[hidden] { display: none; }
.ips-box {
  display: flex; align-items: center; gap: 6px;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.ips-icon { font-size: 1rem; flex-shrink: 0; }
.ips-input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: .9rem; min-width: 0;
}
.ips-input::placeholder { color: rgba(255,255,255,.35); }
.ips-count { font-size: .72rem; color: rgba(255,255,255,.4); min-width: 36px; text-align: center; }
.ips-nav {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: .8rem;
  transition: background .15s;
}
.ips-nav:hover { background: rgba(255,255,255,.18); }
.ips-close { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: .85rem; padding: 2px 6px; }
.ips-highlight { background: #fbbf24; color: #000; border-radius: 2px; }
.ips-highlight.current { background: #007A3D; color: #fff; }

/* T13: Visitor counter */
.visitor-counter {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; color: var(--text-muted, #888);
  margin-top: 6px;
}
.visitor-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; display: inline-block; animation: vdPulse 2s ease infinite; }
@keyframes vdPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

/* T10: Prayer times locate button */
.pct-locate { background: rgba(65,137,221,.15) !important; color: #4189DD !important; border-color: rgba(65,137,221,.3) !important; }
.pct-locate.loading { opacity: .6; pointer-events: none; }

/* T12: Events ICS download button */
.events-ics-btn {
  padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(65,137,221,.3);
  background: rgba(65,137,221,.1); color: #4189DD; font-size: .8rem;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
.events-ics-btn:hover { background: #4189DD; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   POWER UPGRADE — Live Ticker, Clocks, Weather, Daily Card, etc.
═══════════════════════════════════════════════════════════════════ */

/* ── NEWS TICKER ─────────────────────────────────────────────────── */
.news-ticker {
  position: sticky; top: 64px; z-index: 90;
  display: flex; align-items: center; gap: 0;
  background: linear-gradient(90deg, #005a2d, #007A3D);
  color: #fff; height: 36px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ticker-label {
  flex-shrink: 0; padding: 0 12px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  background: rgba(0,0,0,.25); height: 100%; display: flex; align-items: center;
  white-space: nowrap; border-right: 1px solid rgba(255,255,255,.2);
}
.ticker-overflow { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-track {
  display: flex; gap: 0; align-items: center;
  white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: .78rem; font-weight: 500; padding: 0 32px; }
.ticker-source {
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 3px;
  margin-right: 8px;
}
.ticker-sep { color: rgba(255,255,255,.4); padding: 0 8px; font-size: .6rem; }
.ticker-pause {
  flex-shrink: 0; background: none; border: none; color: rgba(255,255,255,.8);
  cursor: pointer; padding: 0 12px; font-size: .9rem; height: 100%;
  transition: color .2s;
}
.ticker-pause:hover { color: #fff; }
@keyframes tickerScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── CITIES WEATHER STRIP ─────────────────────────────────────────── */
.cities-weather-strip {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-alt, #f7f8fa);
  border-bottom: 1px solid var(--border, #e0e0e0);
  padding: 0 16px; overflow-x: auto; scrollbar-width: none;
}
.cities-weather-strip::-webkit-scrollbar { display: none; }
.cws-city {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; white-space: nowrap;
  border-right: 1px solid var(--border, #e0e0e0);
  transition: background .2s;
}
.cws-city:hover { background: var(--bg, #fff); }
.cws-place-icon { font-size: 1rem; }
.cws-name { font-size: .75rem; font-weight: 700; color: var(--text, #2d2d2d); }
.cws-icon { font-size: .9rem; }
.cws-temp { font-size: .85rem; font-weight: 700; color: var(--green, #007A3D); }
.cws-update { margin-left: auto; font-size: .68rem; color: var(--text-muted, #888); white-space: nowrap; padding: 0 12px; }

/* ── LIVE DASHBOARD SECTION ──────────────────────────────────────── */
.live-dashboard-section {
  background: linear-gradient(135deg, #0f1117 0%, #1a1a2e 50%, #0f1117 100%);
  padding: 48px 0;
}
.ld-header {
  text-align: center; margin-bottom: 32px;
}
.ld-live-badge {
  display: inline-block; background: #10b981; color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
  animation: ldPulse 2s ease infinite;
}
@keyframes ldPulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.ld-title { color: #fff; font-size: 1.8rem; font-weight: 800; margin: 0 0 4px; }
.ld-sub { color: rgba(255,255,255,.5); font-size: .9rem; }
.ld-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
@media (max-width: 768px) { .ld-grid { grid-template-columns: 1fr; } }
.ld-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 20px;
  transition: border-color .2s, transform .2s;
}
.ld-card:hover { border-color: rgba(0,122,61,.4); transform: translateY(-2px); }
.ld-card-head {
  font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.ld-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  display: inline-block; animation: ldPulse 2s ease infinite;
}
.ld-date-tag {
  font-size: .7rem; font-weight: 600;
  background: rgba(0,122,61,.25); color: #4ade80;
  padding: 2px 8px; border-radius: 10px; text-transform: none; letter-spacing: 0;
}

/* ── DIASPORA CLOCKS ─────────────────────────────────────────────── */
.clocks-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 600px) { .clocks-grid { grid-template-columns: repeat(2, 1fr); } }
.clock-city {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 10px 6px;
  text-align: center;
}
.clock-flag { font-size: 1.3rem; margin-bottom: 4px; }
.clock-time {
  font-size: 1.1rem; font-weight: 800;
  color: #4ade80; font-variant-numeric: tabular-nums;
  letter-spacing: .05em; font-family: 'Courier New', monospace;
}
.clock-name { font-size: .62rem; color: rgba(255,255,255,.5); margin-top: 3px; }

/* ── ERI TODAY CARD ──────────────────────────────────────────────── */
.etc-moon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#etcMoon { font-size: 1.8rem; }
#etcDateBox { display: flex; flex-direction: column; }
.etc-geez-month { font-size: .95rem; font-weight: 700; color: #fff; }
.etc-geez-year { font-size: .72rem; color: rgba(255,255,255,.5); }
.etc-proverb-block {
  font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.5;
  margin-bottom: 10px; font-style: italic;
  border-left: 3px solid rgba(0,122,61,.6); padding-left: 10px;
}
.etc-prov-ti { font-size: .85rem; font-weight: 600; color: #4ade80; margin-bottom: 2px; }
.etc-prov-en { font-size: .78rem; color: rgba(255,255,255,.65); }
.etc-otd-block { font-size: .75rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.etc-countdown-block {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  background: rgba(0,122,61,.2); border-radius: 8px; padding: 8px 12px;
}
.etc-hol-days {
  font-size: 1.4rem; font-weight: 900; color: #4ade80;
  font-variant-numeric: tabular-nums;
}
.etc-hol-info { font-size: .75rem; }
.etc-hol-label { color: rgba(255,255,255,.5); }
.etc-hol-name { color: #fff; font-weight: 600; }

/* ── LIVE RATES ──────────────────────────────────────────────────── */
.live-rates-list { display: flex; flex-direction: column; gap: 6px; }
.lr-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; background: rgba(255,255,255,.04); border-radius: 8px;
}
.lr-cur { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.6); width: 36px; }
.lr-flag { font-size: .85rem; }
.lr-eq { font-size: .85rem; font-weight: 700; color: #fff; }
.lr-change { font-size: .7rem; color: #10b981; }
.ld-rates-note { font-size: .65rem; color: rgba(255,255,255,.3); margin-top: 10px; }

/* ── COUNTRY SPOTLIGHT ───────────────────────────────────────────── */
#countrySpotlight {
  display: flex; flex-direction: column; gap: 10px;
}
.cs-flag-big { font-size: 2.5rem; text-align: center; margin-bottom: 4px; }
.cs-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.cs-facts-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.cs-fact {
  font-size: .72rem; background: rgba(255,255,255,.08);
  border-radius: 6px; padding: 3px 8px; color: rgba(255,255,255,.7);
}
.cs-note { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.5; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; margin-top: 4px; }
.cs-vs-row {
  display: flex; align-items: center; gap: 10px; font-size: .75rem;
  background: rgba(0,122,61,.15); border-radius: 8px; padding: 8px 12px;
}
.cs-vs-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.cs-vs-val { font-size: .85rem; font-weight: 700; color: #fff; }
.cs-vs-lbl { font-size: .65rem; color: rgba(255,255,255,.45); }
.cs-vs-sep { font-size: .7rem; color: rgba(255,255,255,.3); }

/* ── NEWS TABS ───────────────────────────────────────────────────── */
.news-tabs-row {
  display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap;
}
.news-tab {
  padding: 8px 16px; border-radius: 99px;
  border: 1.5px solid var(--border, #e0e0e0);
  background: transparent; color: var(--text-muted, #666);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.news-tab:hover { border-color: var(--green, #007A3D); color: var(--green, #007A3D); }
.news-tab.active {
  background: var(--green, #007A3D); color: #fff;
  border-color: var(--green, #007A3D);
}

/* ── COPY BUTTON ─────────────────────────────────────────────────── */
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.06); border: none; border-radius: 6px;
  padding: 4px 8px; font-size: .8rem; cursor: pointer; opacity: 0;
  transition: opacity .2s, background .2s;
}
.proverb-card:hover .copy-btn,
.fact-card:hover .copy-btn,
.proverb-item:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(0,122,61,.15); }
html.dark .copy-btn { background: rgba(255,255,255,.08); }

/* ── EXPLORE SCORE FLOATING WIDGET ──────────────────────────────── */
.explore-score-widget {
  position: fixed; bottom: 80px; left: 16px; z-index: 95;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg, #fff); border: 2px solid var(--green, #007A3D);
  border-radius: 14px; padding: 8px 10px; gap: 2px;
  box-shadow: 0 4px 20px rgba(0,122,61,.2);
  cursor: pointer; transition: transform .2s;
  width: 64px;
}
.explore-score-widget:hover { transform: scale(1.06); }
.es-svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.es-bg { fill: none; stroke: var(--border, #e0e0e0); stroke-width: 3; }
.es-fill { fill: none; stroke: var(--green, #007A3D); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.es-pct { font-size: .75rem; font-weight: 800; color: var(--green, #007A3D); margin-top: -4px; }
.es-label { font-size: .55rem; color: var(--text-muted, #888); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 480px) { .explore-score-widget { display: none; } }

/* ── DARK MODE FIXES FOR NEW COMPONENTS ─────────────────────────── */
html.dark .cities-weather-strip { background: #171b26; border-color: rgba(255,255,255,.08); }
html.dark .cws-city { border-color: rgba(255,255,255,.07); }
html.dark .cws-city:hover { background: rgba(255,255,255,.04); }
html.dark .cws-name { color: #e2e8f0; }
html.dark .news-tab { border-color: rgba(255,255,255,.12); color: #94a3b8; }
html.dark .news-tab:hover { border-color: #4ade80; color: #4ade80; }
html.dark .explore-score-widget { background: #171b26; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
html.dark .es-bg { stroke: rgba(255,255,255,.1); }
