/* ============================================
   ERITREAN INFO — STYLESHEET
   Flag Colors: Green #007A3D | Blue #4189DD | Red #CE1126
   ============================================ */

:root {
  --green: #007A3D;
  --green-dark: #005a2d;
  --green-light: #e6f4ed;
  --blue: #4189DD;
  --blue-dark: #2d6abf;
  --blue-light: #eaf1fc;
  --red: #CE1126;
  --red-dark: #a80e1f;
  --red-light: #fce8ea;
  --gold: #D4A017;
  --gold-light: #fdf5e0;
  --dark: #1a1a2e;
  --text: #2d2d2d;
  --text-muted: #666;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-ethiopic: 'Noto Serif Ethiopic', serif;
  --transition: 0.25s ease;
}

/* ── DARK MODE ────────────────────────────── */
html.dark {
  --bg:         #0f1117;
  --bg-alt:     #171b26;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     rgba(255,255,255,0.09);
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.55);
}
html.dark #navbar {
  background: rgba(15,17,23,0.97);
}
html.dark .nav-links a { color: #94a3b8; }
html.dark .nav-links a:hover, html.dark .nav-links a.active {
  color: #4ade80; background: rgba(0,122,61,0.15);
}
html.dark .timeline-card,
html.dark .geo-card,
html.dark .ethnic-card,
html.dark .culture-card,
html.dark .economy-card,
html.dark .gov-card,
html.dark .lang-card,
html.dark .religion-card,
html.dark .tourism-card,
html.dark .asmara-content,
html.dark .geo-borders {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}
html.dark .timeline-card h3,
html.dark .geo-card h3,
html.dark .culture-card h3,
html.dark .economy-card h3,
html.dark .gov-card h3,
html.dark .lang-card h3,
html.dark .religion-card h4,
html.dark .tourism-card h3,
html.dark .asmara-text h3,
html.dark .asmara-text h4,
html.dark .geo-borders h3,
html.dark .section-header h2,
html.dark .religion-section h3 { color: #e2e8f0; }
html.dark .timeline-card p,
html.dark .geo-card p,
html.dark .culture-card p,
html.dark .economy-card p,
html.dark .gov-card p,
html.dark .lang-card p,
html.dark .religion-card p,
html.dark .tourism-card p,
html.dark .asmara-text p,
html.dark .overview-text p { color: #94a3b8; }
html.dark .tab-btn { background: #1a1e2e; color: #94a3b8; border-color: rgba(255,255,255,0.1); }
html.dark .filter-btn { background: #1a1e2e; color: #94a3b8; }
html.dark .section-header p { color: #94a3b8; }
html.dark .section-tag { background: rgba(0,122,61,0.2); color: #4ade80; }
html.dark .overview-text blockquote { background: rgba(0,122,61,0.15); }
html.dark .lang-family { background: rgba(255,255,255,0.08); }
html.dark .border-item { background: #1a1e2e; color: #e2e8f0; }
html.dark .famous-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
html.dark .famous-info p { color: #94a3b8; }
html.dark .famous-name { color: #e2e8f0; }

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
textarea, select { font-family: inherit; }
h1,h2,h3,h4 { line-height: 1.25; }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, var(--green), var(--blue), var(--red)) 1;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}
.nav-logo strong { color: var(--green); }
.logo-flag { font-size: 1.5rem; }
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; display: block; }
.footer-logo-img { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; }
.sfb-logo-img { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
/* Nav right cluster */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Menu button */
.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.nav-menu-btn:hover { background: var(--green-dark); }
.nav-menu-btn.active { background: var(--green-dark); }
.nav-menu-icon { font-size: 1.1rem; line-height: 1; }
/* Slide-down dropdown */
.nav-dropdown {
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
html.dark .nav-dropdown {
  background: rgba(15,17,23,0.98);
  border-top-color: rgba(255,255,255,0.07);
}
.nav-dropdown.open { max-height: 70vh; overflow-y: auto; }
.nav-dropdown-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.nav-dd-item:hover, .nav-dd-item.active {
  background: var(--green-light);
  color: var(--green);
}
html.dark .nav-dd-item { color: #94a3b8; }
html.dark .nav-dd-item:hover, html.dark .nav-dd-item.active {
  background: rgba(0,122,61,0.15);
  color: #4ade80;
}
.nav-dd-tools {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 24px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-dd-tools:empty { display: none; }
.nav-dd-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
}
.nav-dd-app-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.nav-dd-app-btn:hover { background: #2f6db5; }
/* Share Story floating button */
.share-story-float {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #007A3D, #4189DD);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,122,61,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.share-story-float:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,122,61,0.45); }
@media (max-width: 500px) { .share-story-float span { display: none; } .share-story-float { padding: 10px 14px; } }

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,122,61,0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(65,137,221,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(206,17,38,0.4) 0%, transparent 60%);
  animation: heroAnim 8s ease-in-out infinite alternate;
}
@keyframes heroAnim {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}
.hero-flag-stripe {
  position: absolute;
  left: 0;
  width: 3px;
  height: 33.33%;
  opacity: 0.35;
}
.hero-flag-stripe.green { top: 0;      background: linear-gradient(to bottom, transparent, var(--green), transparent); }
.hero-flag-stripe.blue  { top: 33.33%; background: var(--blue); }
.hero-flag-stripe.red   { top: 66.66%; background: linear-gradient(to bottom, var(--red), transparent); }
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 96px 40px 80px 60px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
  width: 100%;
}
.hero-text { flex: 1; min-width: 0; }

/* Flag accent + clock */
.hero-flag-accent {
  width: 44px;
  height: 3px;
  background: linear-gradient(to right, var(--green) 33.33%, var(--blue) 33.33% 66.66%, var(--red) 66.66%);
  border-radius: 2px;
  margin-bottom: 10px;
}
.hero-clock {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}

/* Hero entrance animations — staggered slide-up */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-flag-accent { animation: heroSlideUp 0.5s ease both 0.05s; }
.hero-clock       { animation: heroSlideUp 0.5s ease both 0.12s; }
.hero-eyebrow     { animation: heroSlideUp 0.5s ease both 0.22s; }
.hero-map-viz h1  { animation: heroSlideUp 0.6s ease both 0.36s, h1ShineSlide 3.5s ease-in-out 0.36s infinite; }
.hero-subtitle    { animation: heroSlideUp 0.5s ease both 0.52s; }
.hero-tagline     { animation: heroSlideUp 0.5s ease both 0.62s; }
.hero-stamp       { animation: heroSlideUp 0.5s ease both 0.70s; }
.hero-motto       { animation: heroSlideUp 0.5s ease both 0.78s; }
.hero-badges      { animation: heroSlideUp 0.5s ease both 0.88s; }
.hero-stats       { /* animation set in .hero-stats block */ }
.hero-btn-group   { animation: heroSlideUp 0.5s ease both 1.08s; }
.hero-jumps       { animation: heroSlideUp 0.5s ease both 1.18s; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-bottom: 10px;
}
.hero-map-viz h1 {
  position: absolute;
  top: 52%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 20cqi;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #ffffff   0%,
    #ffe680  30%,
    #ffd04a  50%,
    #fff8c0  58%,
    #ffc93c  70%,
    #ffffff  85%,
    #ffd04a 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(255,210,80,0.7))
          drop-shadow(0 0 40px rgba(255,200,60,0.4))
          drop-shadow(0 4px 28px rgba(0,0,0,0.7));
  letter-spacing: -1px;
  z-index: 5;
  pointer-events: none;
  animation: heroSlideUp 0.6s ease both 0.36s, h1ShineSlide 3.5s ease-in-out 0.36s infinite;
}
@keyframes h1ShineSlide {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-map-viz h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.55) 47%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0.55) 53%,
    transparent 70%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: h1Gloss 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes h1Gloss {
  0%   { background-position: 140% 0; }
  60%  { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
.h1-dot {
  color: rgba(0,200,90,0.9);
  -webkit-text-fill-color: rgba(0,200,90,0.9);
  font-weight: 300;
  margin: 0 2px;
  letter-spacing: 0;
}
.hero-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ethiopic);
  margin-bottom: 14px;
  letter-spacing: 4px;
}
.hero-tagline {
  font-size: 1.2rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: rgba(255,255,255,0.6);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.hero-stamp {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin: 0 0 14px;
}
.hero-motto {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}
.hero-motto-ti {
  font-family: var(--font-ethiopic);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}
.hero-motto-en {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.hero-desc {
  max-width: 520px;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  font-family: var(--font-serif);
  font-style: italic;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 40px;
}
.hero-badges span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.hero-badges span:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(80,210,255,0.65);
  box-shadow: 0 0 12px rgba(80,210,255,0.25);
}
.hero-btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,122,61,0.4);
}
.hero-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,122,61,0.5);
}
.hero-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.hero-install-btn {
  display: inline-block;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}
.hero-install-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
}

/* Word of the Day */
.hero-wotd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
}
.wotd-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
}
.wotd-ti  { font-family: var(--font-ethiopic); font-size: 1rem; color: rgba(220,245,255,0.92); }
.wotd-rom { font-size: 0.78rem; font-style: italic; color: rgba(255,255,255,0.52); }
.wotd-en  { font-size: 0.7rem; color: rgba(255,255,255,0.38); }
.wotd-speak {
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; opacity: 0.55; transition: opacity 0.2s; margin-left: auto; padding: 0;
}
.wotd-speak:hover { opacity: 1; }

/* Did You Know */
.hero-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 26px;
}
.fact-icon { font-size: 0.8rem; flex-shrink: 0; }
.fact-text {
  font-size: 0.76rem;
  font-style: italic;
  color: rgba(255,255,255,0.48);
  flex: 1;
  transition: opacity 0.4s;
}
.fact-dots { display: flex; gap: 5px; flex-shrink: 0; }
.fact-dot  { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: background 0.3s; }
.fact-dot.active { background: rgba(80,210,255,0.65); }

/* Site stats */
.hero-sitestats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hero-sitestats span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.32);
  font-weight: 500;
}

/* Continue reading */
.hero-continue {
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.hero-continue span { font-size: 0.7rem; color: rgba(255,255,255,0.32); }
.hero-continue a    { font-size: 0.7rem; font-weight: 600; color: rgba(100,210,255,0.65); transition: color 0.2s; }
.hero-continue a:hover { color: rgba(100,210,255,1); }
.hero-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.hero-jump:hover {
  color: white;
  border-color: rgba(80,210,255,0.5);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
/* ── GREETING BUTTON ───────────────────── */
.hero-greet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-ethiopic);
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  animation: heroSlideUp 0.5s ease both 0.58s;
}
.hero-greet:hover { background: rgba(255,255,255,0.18); transform: scale(1.04); }
.hero-greet:active { transform: scale(0.97); }

/* ── TRIVIA WIDGET ─────────────────────── */
.hero-trivia {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  animation: heroSlideUp 0.5s ease both 1.28s;
}
.trivia-q {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  line-height: 1.4;
}
.trivia-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.trivia-opt {
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.trivia-opt:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.28); }
.trivia-opt.correct { background: rgba(0,180,80,0.25); border-color: rgba(0,220,100,0.5); color: #5ef5a0; }
.trivia-opt.wrong   { background: rgba(200,30,50,0.2);  border-color: rgba(220,60,80,0.45); color: #f87171; }
.trivia-result {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  min-height: 18px;
  margin-bottom: 4px;
}
.trivia-next {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(100,210,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.trivia-next:hover { color: rgba(100,210,255,1); }

/* ── NOW READING BAR ───────────────────── */
#nowReadingBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: rgba(15,17,23,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
#nowReadingBar.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.nrb-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.62rem; opacity: 0.5; }
.nrb-section { color: rgba(255,255,255,0.85); font-weight: 700; }
.nrb-sep { opacity: 0.3; }
.nrb-progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  max-width: 160px;
}
.nrb-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--green), var(--blue));
  border-radius: 2px;
  transition: width 0.2s linear;
}
.nrb-back {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  margin-left: auto;
}
.nrb-back:hover { background: rgba(255,255,255,0.16); }

/* ── LIGHT MODE HERO ADAPTATION ────────── */
html:not(.dark) #nowReadingBar {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.5);
}
html:not(.dark) .nrb-section { color: rgba(0,0,0,0.85); }

/* ══ HERO LOWER FILL ═══════════════════════════════════════════════ */
.hero-lower {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: heroSlideUp 0.7s ease both 1.5s;
}

/* Row 1 — population · on this day · flag */
.hero-lower-top {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

/* Live Population Counter */
.hero-popcount {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
}
.popc-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(80,210,255,0.65);
}
.popc-num {
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.5px;
  font-family: 'Montserrat', monospace;
  line-height: 1;
}
.popc-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* On This Day */
.hero-otd {
  flex: 2;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(255,215,80,0.05);
  border: 1px solid rgba(255,215,80,0.15);
  border-radius: 14px;
}
.otd-chip {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,215,80,0.7);
}
.otd-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,215,80,0.85);
}
.otd-text2 {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}

/* Animated Flag (lower row - hidden) */
.hero-flag-wave { display: none; }

/* Old absolute cluster — keep hidden */
.hero-tr-cluster { display: none !important; }

/* Inline tr panel — flex item, right of center panel */
.hero-tr-inline {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-start;
  padding-top: 8px;
  order: 4;
}
.hero-flag-tr2 {
  display: flex;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
}
@media (max-width: 1100px) { .hero-tr-inline { display: none; } }
.hero-flag-tr {
  display: flex;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
}
/* Override widths inside cluster */
.hero-tr-cluster .hero-popcount,
.hero-tr-cluster .hero-otd {
  width: 100%;
}
.hero-tr-cluster .hero-mission {
  width: 100%;
  border-radius: 10px;
}
.hero-tr-cluster .mc-item { flex: 1; min-width: 0; }
.hero-tr-cluster .hero-regions { width: 100%; }
.hero-tr-cluster .regions-grid { grid-template-columns: repeat(3, 1fr); }
.hero-tr-cluster .region-card { padding: 10px 6px; }
.hero-tr-cluster .rc-name { font-size: 0.62rem; }
.hero-tr-cluster .rc-fact { font-size: 0.52rem; }
.fwave-pole {
  width: 3px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
  border-radius: 2px;
}
.fwave-cloth { display: block; }
@media (max-width: 900px) {
  .hero-tr-cluster { display: none; }
}

/* Mission Control Strip */
.hero-mission {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(80,210,255,0.14);
  border-radius: 14px;
  overflow: hidden;
}
.mc-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 8px;
  border-right: 1px solid rgba(80,210,255,0.08);
  position: relative;
}
.mc-item:last-child { border-right: none; }
.mc-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(80,210,255,0.35), transparent);
}
.mc-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(80,225,255,0.92);
  font-family: 'Montserrat', monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mc-unit {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.65;
}
.mc-key {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Region Cards */
.hero-regions { display: flex; flex-direction: column; gap: 10px; }
.regions-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0;
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  background: rgba(var(--rc-rgb, 255,255,255), 0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 2px solid var(--rc, rgba(255,255,255,0.3));
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}
.region-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 1px var(--rc, rgba(255,255,255,0.2));
}
.rc-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.02em;
}
.rc-fact {
  font-size: 0.57rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.3;
}

/* Mobile hero-lower */
@media (max-width: 900px) {
  .hero-lower { padding: 0 24px 40px; }
  .regions-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-mission { flex-wrap: wrap; }
  .mc-item { min-width: 30%; border-right: none; border-bottom: 1px solid rgba(80,210,255,0.08); }
}
@media (max-width: 480px) {
  .regions-grid { grid-template-columns: repeat(2, 1fr); }
  .mc-item { min-width: 45%; }
}

/* ══ HERO CENTER PANEL ════════════════════════════════════════ */
.hero-center-panel {
  flex: 0 0 300px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: flex-start;
  padding-top: 8px;
  order: 3;
}
.hcp-independence {
  grid-column: 1 / -1;
}
.hcp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.hcp-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(80,210,255,0.65);
  margin-bottom: 8px;
}
.hcp-sub {
  display: block;
  font-size: 0.57rem;
  color: rgba(255,255,255,0.28);
  margin-top: 5px;
}
/* Independence counter */
.ind-counter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}
.ind-unit { display: flex; flex-direction: column; align-items: center; }
.ind-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: 'Montserrat', monospace;
  line-height: 1;
}
.ind-key {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ind-dot { font-size: 0.9rem; color: rgba(255,255,255,0.22); padding-bottom: 2px; }
/* City weather */
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wx-city {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wx-nm { font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.65); }
.wx-ic { font-size: 0.95rem; line-height: 1.2; }
.wx-tmp { font-size: 0.75rem; font-weight: 700; color: rgba(80,225,255,0.85); }
/* Proverb */
.prov-ti {
  font-family: var(--font-ethiopic);
  font-size: 0.78rem;
  color: rgba(255,215,80,0.85);
  margin: 0 0 4px;
  line-height: 1.45;
}
.prov-rom {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.38);
  font-style: italic;
  margin: 0 0 3px;
}
.prov-en { font-size: 0.63rem; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.4; }
/* Locator compass */
.loc-compass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  font-size: 0.6rem;
}
.loc-row { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.loc-center {
  text-align: center;
  background: rgba(0,122,61,0.2);
  border: 1px solid rgba(0,200,100,0.28);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.63rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.loc-center small { font-size: 0.52rem; opacity: 0.6; }
.loc-n, .loc-s { color: rgba(80,210,255,0.6); font-size: 0.58rem; }
.loc-w, .loc-e { font-size: 0.58rem; color: rgba(255,255,255,0.42); white-space: nowrap; }
/* Diaspora bars */
.diasp-bars { display: flex; flex-direction: column; gap: 5px; }
.db-row { display: flex; align-items: center; gap: 6px; }
.db-c { font-size: 0.57rem; color: rgba(255,255,255,0.5); width: 48px; flex-shrink: 0; }
.db-b { flex: 1; height: 4px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.db-f { height: 100%; border-radius: 3px; }
.db-n { font-size: 0.54rem; color: rgba(255,255,255,0.3); width: 36px; text-align: right; flex-shrink: 0; }
@media (max-width: 900px) { .hero-center-panel { display: none; } }

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: bounce 2s infinite;
  user-select: none;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

/* ============================================
   QUICK FACTS
   ============================================ */
#quick-facts {
  background: var(--dark);
  padding: 0 0 60px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: white;
  transition: var(--transition);
}
.fact-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.fact-icon { font-size: 2rem; margin-bottom: 8px; }
.fact-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.fact-value { font-weight: 700; font-size: 1rem; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-serif);
}

/* ============================================
   SECTION PADDING
   ============================================ */
#overview, #geography, #people, #government,
#languages, #tourism, #economy, #culture {
  padding: 96px 0;
}
#history, #gallery, #translator {
  padding: 96px 0;
}
#overview { background: var(--bg); }
#history  { background: var(--bg-alt); }
#geography { background: var(--bg); }
#people   { background: var(--bg-alt); }
#culture  { background: var(--bg); }
#economy  { background: var(--bg-alt); }
#government { background: var(--bg); }
#languages  { background: var(--bg-alt); }
#gallery    { background: var(--bg); }
#translator { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
#tourism    { background: var(--bg-alt); }

/* ============================================
   OVERVIEW
   ============================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.overview-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.overview-text blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 24px;
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-top: 24px;
}
.overview-map img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: contain;
  background: var(--bg-alt);
  padding: 16px;
}
.map-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* ============================================
   HISTORY TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green), var(--blue), var(--red));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 18px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--green);
  z-index: 1;
}
.timeline-item:nth-child(3n+2) .timeline-dot { background: var(--blue); box-shadow: 0 0 0 3px var(--blue); }
.timeline-item:nth-child(3n+3) .timeline-dot { background: var(--red); box-shadow: 0 0 0 3px var(--red); }
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 8px;
}
.timeline-item:nth-child(3n+2) .timeline-date { color: var(--blue); }
.timeline-item:nth-child(3n+3) .timeline-date { color: var(--red); }
.timeline-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
  transition: var(--transition);
}
.timeline-item:nth-child(3n+2) .timeline-card { border-left-color: var(--blue); }
.timeline-item:nth-child(3n+3) .timeline-card { border-left-color: var(--red); }
.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}
.timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.timeline-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.timeline-card strong { color: var(--text); }

/* ============================================
   GEOGRAPHY
   ============================================ */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.geo-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: var(--transition);
}
.geo-card:nth-child(3n+2) { border-top-color: var(--blue); }
.geo-card:nth-child(3n+3) { border-top-color: var(--red); }
.geo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.geo-icon { font-size: 2.5rem; margin-bottom: 16px; }
.geo-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.geo-card p { font-size: 0.93rem; line-height: 1.7; color: var(--text-muted); }
.geo-borders {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.geo-borders h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.borders-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.border-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
}
.dir {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================
   PEOPLE / DEMOGRAPHICS
   ============================================ */
.ethnic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.ethnic-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ethnic-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green), var(--blue));
}
.ethnic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ethnic-pct {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ethnic-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.ethnic-card p { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); }
.religion-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; color: var(--dark); }
.religion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.religion-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rel-icon { font-size: 2rem; flex-shrink: 0; }
.religion-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.religion-card p { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); }

/* ============================================
   CULTURE TABS
   ============================================ */
.culture-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  background: var(--bg-alt);
  border: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.tab-btn:hover { border-color: var(--green); color: var(--green); }
.tab-btn.active { background: var(--green); color: white; border-color: var(--green); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.culture-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.culture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.culture-img {
  font-size: 3rem;
  margin-bottom: 16px;
}
.culture-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.culture-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

/* ASMARA TAB */
.asmara-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.asmara-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.asmara-text p { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); }
.asmara-text h4 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 10px; color: var(--dark); }
.asmara-text ul { padding-left: 20px; list-style: disc; }
.asmara-text ul li { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 6px; }
.asmara-img-box img {
  border-radius: var(--radius);
  width: 100%;
  height: 300px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.asmara-img-box p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ============================================
   ECONOMY
   ============================================ */
.economy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.economy-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid var(--green);
}
.economy-card:nth-child(3n+2) { border-bottom-color: var(--blue); }
.economy-card:nth-child(3n+3) { border-bottom-color: var(--red); }
.economy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eco-icon { font-size: 2.5rem; margin-bottom: 16px; }
.economy-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.economy-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

/* ============================================
   GOVERNMENT
   ============================================ */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gov-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gov-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.gov-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

/* ============================================
   LANGUAGES
   ============================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lang-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.lang-card.featured { border: 2px solid var(--green); }
.lang-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lang-script {
  font-family: var(--font-ethiopic);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-script.arabic { font-family: 'Arabic', 'Noto Sans Arabic', serif; font-size: 2.5rem; color: var(--blue); }
.lang-script.english { font-size: 2rem; font-weight: 800; color: var(--red); }
.lang-script.tigre { font-family: var(--font-ethiopic); color: var(--blue); }
.lang-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.lang-card p { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 12px; }
.lang-family {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  background: var(--bg-alt);
  border: 2px solid transparent;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 3/4;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); z-index: 2; }
.gallery-item.hidden { display: none; }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.gallery-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.gallery-empty h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.gallery-empty p { font-size: 0.95rem; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.gallery-caption p { font-size: 0.75rem; color: rgba(255,255,255,0.75); }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transition: opacity .25s ease;
}
#lightboxCaption {
  color: white;
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ============================================
   TRANSLATOR
   ============================================ */
#translator .section-header h2 { color: white; }
#translator .section-header p { color: rgba(255,255,255,0.65); }
#translator .section-tag { background: rgba(255,255,255,0.15); color: white; }

.translator-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.translator-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.translator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lang-selector select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  min-width: 200px;
}
.lang-selector select option { background: #1a1a2e; color: white; }
.swap-btn {
  background: var(--green);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.swap-btn:hover { background: var(--green-dark); transform: rotate(180deg); }
.translator-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.panel {
  position: relative;
}
.panel + .panel { border-left: 1px solid rgba(255,255,255,0.1); }
#sourceText {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  padding: 24px;
  font-size: 1rem;
  resize: none;
  outline: none;
  line-height: 1.7;
  min-height: 220px;
}
#sourceText::placeholder { color: rgba(255,255,255,0.3); }
.tigrinya-text { font-family: var(--font-ethiopic); font-size: 1.05rem !important; }
.translation-output {
  min-height: 220px;
  padding: 24px;
  color: white;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.output-placeholder { color: rgba(255,255,255,0.3); font-style: italic; }
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#charCount, #translationStatus {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
#translationStatus.translating { color: var(--gold); }
#translationStatus.done { color: #4ade80; }
#translationStatus.error { color: var(--red); }
.clear-btn, .copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: var(--transition);
}
.clear-btn:hover, .copy-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}
.translator-actions {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
}
.translate-btn {
  background: linear-gradient(135deg, var(--green), var(--blue));
  border: none;
  color: white;
  padding: 14px 48px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,122,61,0.4);
}
.translate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,122,61,0.5);
}
.translate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-icon { font-size: 1.2rem; }
.translator-info {
  padding: 12px 24px 20px;
  text-align: center;
}
.translator-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* PHRASEBOOK */
.phrasebook {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.phrasebook h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.phrasebook-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.phrase-item {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phrase-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--green);
  transform: translateX(4px);
}
.phrase-item .ti {
  font-family: var(--font-ethiopic);
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
}
.phrase-item .en {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   TOURISM
   ============================================ */
.tourism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tourism-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.tourism-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tourism-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.tourism-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.tourism-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  color: white;
  padding-top: 64px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
}
.footer-links h4, .footer-facts h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links ul li, .footer-facts ul li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-links ul li a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.footer-slogan {
  font-family: var(--font-ethiopic);
  font-size: 1rem !important;
  color: rgba(255,255,255,0.5) !important;
}
.footer-signature {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  letter-spacing: 0.3px;
}
.footer-signature span {
  color: var(--gold);
  font-weight: 700;
  font-style: normal;
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
.install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: var(--dark);
  border-top: 3px solid var(--green);
  padding: 14px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.install-banner-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.install-icon { font-size: 2rem; flex-shrink: 0; }
.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.install-text strong { color: white; font-size: 0.95rem; }
.install-text span { color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.install-confirm-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.install-confirm-btn:hover { background: var(--green-dark); }
.install-dismiss-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.install-dismiss-btn:hover { background: rgba(255,255,255,0.15); color: white; }

/* Offline indicator */
.offline-toast {
  position: fixed;
  top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1a1a2e;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9000;
}
.offline-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 104px;
  right: 32px;
  background: var(--green);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,122,61,0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-4px); }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-map { max-width: 500px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .translator-wrapper { grid-template-columns: 1fr; }
  .asmara-content { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .ethnic-grid { grid-template-columns: repeat(2, 1fr); }
  .religion-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .economy-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .tourism-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-menu-label { display: none; }
  .nav-dropdown-grid { grid-template-columns: repeat(3, 1fr); padding: 12px 14px; gap: 4px; }
  .nav-dd-item { padding: 10px 10px; font-size: 0.82rem; }
  .nav-dd-footer { padding: 0 16px 16px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .borders-list { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .translator-panels { grid-template-columns: 1fr; }
  .panel + .panel { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .translator-header { flex-wrap: wrap; justify-content: center; }
  .lang-selector select { min-width: 160px; }
}
@media (max-width: 540px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .ethnic-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: 1fr; }
  .economy-grid { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
  .tourism-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 3rem; }
}

/* ============================================
   AI CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
}
.chat-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 4px 24px rgba(65,137,221,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.chat-toggle:hover { background: #2f6db5; transform: scale(1.1); }
.chat-toggle.open  { background: #333b55; }

.chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  background: #1a1e30;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  border: 1px solid rgba(255,255,255,0.07);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, var(--green) 0%, #005228 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-name  { color: white; font-weight: 700; font-size: 0.95rem; }
.chat-status { color: rgba(255,255,255,0.65); font-size: 0.72rem; }
.chat-header-actions { display: flex; gap: 6px; }
.chat-header-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 0.95rem;
  padding: 4px 6px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.chat-header-btn:hover { color: white; background: rgba(255,255,255,0.12); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  min-height: 200px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }

.chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-message.bot  .chat-bubble { background: #272d45; color: rgba(255,255,255,0.88); border-bottom-left-radius: 4px; }
.chat-message.user .chat-bubble { background: var(--blue); color: white; border-bottom-right-radius: 4px; }
.chat-message.error .chat-bubble { background: rgba(248,113,113,0.15); color: #f87171; border-bottom-left-radius: 4px; }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #272d45;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  animation: typingBounce 1.3s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-7px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: #13162400;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 22px;
  padding: 9px 15px;
  color: white;
  font-size: 0.865rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.chat-input::placeholder { color: rgba(255,255,255,0.28); }
.chat-input:focus { border-color: var(--blue); }

.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: white; border: none; cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send:hover:not(:disabled) { background: #2f6db5; transform: scale(1.08); }
.chat-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* Notification pulse dot */
.chat-notif {
  position: absolute;
  top: 1px; right: 1px;
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

/* API Key Modal */
.api-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.api-modal.open { display: flex; }
.api-modal-box {
  background: #1a1e30;
  border-radius: 18px;
  padding: 28px 26px 22px;
  width: 380px;
  max-width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.api-modal-box h3 { color: white; font-size: 1.1rem; margin-bottom: 10px; }
.api-modal-box p  { color: rgba(255,255,255,0.6); font-size: 0.84rem; line-height: 1.6; margin-bottom: 14px; }
.api-modal-box a  { color: var(--blue); }
.api-modal-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 10px 14px;
  color: white; font-size: 0.875rem;
  font-family: monospace;
  outline: none;
  margin-bottom: 14px;
}
.api-modal-input:focus { border-color: var(--blue); }
.api-modal-btns { display: flex; gap: 10px; margin-bottom: 12px; }
.api-modal-btns button {
  flex: 1; padding: 10px;
  border: none; border-radius: 8px;
  cursor: pointer; font-size: 0.875rem; font-weight: 600;
  transition: var(--transition);
}
.api-btn-save { background: var(--blue); color: white; }
.api-btn-save:hover { background: #2f6db5; }
.api-btn-cancel { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); }
.api-btn-cancel:hover { background: rgba(255,255,255,0.14); }
.api-note { font-size: 0.74rem !important; color: rgba(255,255,255,0.3) !important; margin: 0 !important; }

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 24px); right: -8px; }
  .chat-widget { bottom: 20px; right: 16px; }
  .back-to-top { bottom: 92px; right: 16px; }
}

/* ============================================
   NATIONAL ANTHEM PLAYER  (bottom-left)
   ============================================ */
.anthem-player {
  position: fixed;
  bottom: 16px;
  left: 16px;
  top: auto;
  width: 252px;
  z-index: 8500;
  font-family: var(--font-sans);
  user-select: none;
}

/* Collapsed bar */
.anthem-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(14, 16, 28, 0.96);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: none;
  border-top: 3px solid var(--green);
  border-radius: 0 12px 0 0;
  padding: 7px 10px 7px 14px;
  backdrop-filter: blur(14px);
}
.anthem-bar-left {
  display: flex; align-items: center; gap: 7px;
  min-width: 0; flex: 1;
}
.anthem-bar-icon { font-size: 0.9rem; flex-shrink: 0; }
.anthem-bar-title {
  color: rgba(255,255,255,0.8); font-size: 0.76rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.anthem-bar-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.anthem-bar-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer; font-size: 0.72rem;
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.anthem-bar-btn:hover { color: white; background: rgba(255,255,255,0.1); }

/* Expanded panel */
.anthem-panel {
  background: rgba(14, 16, 28, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: none; border-top: none;
  border-radius: 0 0 16px 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(14px);
}
.anthem-panel.open { max-height: 500px; }

/* Army photo */
.anthem-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.anthem-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.anthem-img-wrap:hover img { transform: scale(1.04); }
.anthem-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* Song meta */
.anthem-meta { padding: 10px 14px 4px; }
.anthem-tigrinya {
  color: white; font-weight: 700; font-size: 0.95rem;
  font-family: var(--font-ethiopic, serif);
}
.anthem-subtitle {
  color: rgba(255,255,255,0.4); font-size: 0.72rem; margin-top: 2px;
}

/* Progress */
.anthem-progress-row {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 14px 2px;
}
.anthem-time { color: rgba(255,255,255,0.35); font-size: 0.68rem; min-width: 26px; }
.anthem-track {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; cursor: pointer; position: relative;
}
.anthem-fill {
  height: 100%; width: 0%; background: var(--green);
  border-radius: 2px; pointer-events: none;
  transition: width 0.4s linear;
}
.anthem-track:hover .anthem-fill { background: white; }

/* Controls */
.anthem-controls-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 12px;
}
.anthem-play-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: white; border: none; cursor: pointer;
  font-size: 0.95rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,122,61,0.45);
}
.anthem-play-btn:hover { background: var(--green-dark); transform: scale(1.08); }
.anthem-credit {
  color: rgba(255,255,255,0.25); font-size: 0.65rem; line-height: 1.4;
}

@media (max-width: 600px) {
  .anthem-player { width: 100%; }
  .anthem-bar { border-radius: 0; }
  .anthem-panel { border-radius: 0; }
}

/* ============================================
   INSTALL APP MODAL
   ============================================ */
.install-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 11000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.install-modal.open { display: flex; }

.install-modal-box {
  background: var(--dark);
  border-radius: 20px;
  width: 480px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 26px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.09);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.install-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.08); border: none;
  color: rgba(255,255,255,0.6); width: 32px; height: 32px;
  border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.install-modal-close:hover { background: rgba(255,255,255,0.15); color: white; }

.install-modal-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.install-modal-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,122,61,0.35);
}
.install-modal-name {
  color: white; font-size: 1.25rem; font-weight: 800;
}
.install-modal-meta {
  color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-top: 4px;
}

/* One-click install button */
.install-now-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green), #00a84d);
  color: white; border: none; border-radius: 12px;
  padding: 16px; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 6px 24px rgba(0,122,61,0.45);
  letter-spacing: 0.3px;
}
.install-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,122,61,0.55);
}
.install-now-sub {
  text-align: center; color: rgba(255,255,255,0.4);
  font-size: 0.78rem; margin: 8px 0 16px;
}
.install-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; color: rgba(255,255,255,0.25); font-size: 0.75rem;
}
.install-divider::before,
.install-divider::after {
  content: ''; flex: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.install-modal-intro {
  color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-bottom: 14px;
}

/* Platform steps */
.install-platforms { display: flex; flex-direction: column; gap: 12px; }
.install-platform {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 14px;
}
.install-platform-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.install-platform-name {
  color: white; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px;
}
.install-steps {
  margin: 0; padding-left: 18px;
  color: rgba(255,255,255,0.55); font-size: 0.8rem; line-height: 1.8;
}
.install-steps strong { color: rgba(255,255,255,0.85); }
.install-inline-icon {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* Feature badges */
.install-features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.07);
}
.install-feature {
  background: rgba(255,255,255,0.06);
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 6px;
}

/* ============================================
   NAV EXTRAS (Dark Toggle + Language Picker)
   ============================================ */
.nav-extras {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  line-height: 1;
  color: var(--text);
  transition: var(--transition);
}
.dark-toggle:hover { background: var(--bg-alt); transform: scale(1.1); }

/* Language picker */
.lang-picker-wrap { position: relative; }
.lang-picker-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: var(--transition);
}
.lang-picker-btn:hover { background: var(--bg-alt); border-color: var(--green); color: var(--green); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-dropdown[hidden] { display: none; }
.lang-dropdown-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.lang-opt {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: var(--text);
  text-align: left;
  width: 100%;
  transition: var(--transition);
}
.lang-opt:hover { background: var(--green-light); color: var(--green); }
.lang-opt.active { background: var(--green-light); color: var(--green); font-weight: 700; }

html.dark .lang-dropdown { background: #1a1e2e; border-color: rgba(255,255,255,0.1); }
html.dark .lang-dropdown-header { color: #64748b; border-color: rgba(255,255,255,0.08); }
html.dark .lang-opt { color: #e2e8f0; }
html.dark .lang-opt:hover,
html.dark .lang-opt.active { background: rgba(0,122,61,0.2); color: #4ade80; }
html.dark .lang-picker-btn { color: #94a3b8; border-color: rgba(255,255,255,0.15); }
html.dark .lang-picker-btn:hover { color: #4ade80; border-color: #4ade80; background: none; }
html.dark .dark-toggle { color: #94a3b8; border-color: rgba(255,255,255,0.15); }
html.dark .dark-toggle:hover { background: #1a1e2e; }

/* ============================================
   WORLD SEARCH SECTION
   ============================================ */
#world-search {
  background: linear-gradient(135deg, #0a0e1a 0%, #0f1a2e 50%, #0a1a12 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
#world-search::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(65,137,221,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(0,122,61,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.ws-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.ws-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0 16px;
}
.ws-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.ws-search-bar {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 6px;
  max-width: 760px;
  margin: 0 auto 32px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ws-search-bar:focus-within {
  border-color: rgba(65,137,221,0.6);
  box-shadow: 0 0 0 3px rgba(65,137,221,0.12);
}
.ws-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-sans);
  min-width: 0;
}
.ws-input::placeholder { color: rgba(255,255,255,0.35); }
.ws-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.ws-btn:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.ws-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.ws-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 40px;
}
.ws-topic {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.ws-topic:hover {
  background: rgba(65,137,221,0.25);
  border-color: rgba(65,137,221,0.4);
  color: #fff;
  transform: translateY(-2px);
}
.ws-result { max-width: 800px; margin: 0 auto; }
.ws-result[hidden] { display: none; }
.ws-result-inner {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 32px;
  backdrop-filter: blur(12px);
}
.ws-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ws-result-q { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.9); flex: 1; }
.ws-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  width: 32px; height: 32px;
  font-size: 1rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.ws-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.ws-result-body {
  color: rgba(255,255,255,0.85);
  font-size: 0.975rem;
  line-height: 1.75;
  min-height: 60px;
}
.ws-result-body p { margin-bottom: 12px; }
.ws-result-body p:last-child { margin-bottom: 0; }
.ws-loading {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ws-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ws-powered { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.ws-new-search {
  background: rgba(65,137,221,0.2);
  border: 1px solid rgba(65,137,221,0.35);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.ws-new-search:hover { background: rgba(65,137,221,0.35); color: #fff; }

/* ============================================
   FAMOUS ERITREANS SECTION
   ============================================ */
#famous { background: var(--bg-alt); padding: 100px 0; }
.famous-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.famous-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.famous-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.famous-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.famous-info { display: flex; flex-direction: column; gap: 4px; }
.famous-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.famous-title { font-size: 0.875rem; color: var(--green); font-weight: 600; }
.famous-years { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.famous-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.famous-music-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 6px 14px;
  background: rgba(0,122,61,0.12); color: var(--green);
  border: 1px solid rgba(0,122,61,0.3); border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.famous-music-btn:hover { background: rgba(0,122,61,0.22); transform: scale(1.04); }
html.dark .famous-music-btn { background: rgba(74,222,128,0.1); color: #4ade80; border-color: rgba(74,222,128,0.25); }

html.dark .famous-name { color: #e2e8f0; }
html.dark .famous-title { color: #4ade80; }

/* ── RESPONSIVE (new elements) ───────────────── */
@media (max-width: 768px) {
  .nav-extras { gap: 4px; }
  .lang-picker-btn { padding: 5px 8px; font-size: 0.8rem; }
  .dark-toggle { padding: 5px 8px; font-size: 0.9rem; }
  .lang-dropdown { right: -40px; min-width: 190px; }
  .ws-search-bar { flex-direction: column; border-radius: 12px; }
  .ws-btn { width: 100%; justify-content: center; border-radius: 8px; }
  #world-search { padding: 70px 0; }
  .ws-result-inner { padding: 20px; }
  .ws-result-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .famous-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .famous-card { padding: 20px 16px; }
}
@media (max-width: 480px) {
  .ws-topics { gap: 8px; }
  .ws-topic { font-size: 0.8rem; padding: 6px 14px; }
  .famous-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .famous-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
}
.install-feature span { font-size: 0.9rem; }

/* ── COMMUNITY SECTION ─────────────────────── */
#community { background: var(--bg-alt, #f7f7f3); }
.dark #community { background: #1a1a2e; }

.community-loading,
.community-empty {
  text-align: center;
  color: var(--text-muted, #888);
  padding: 40px 0;
  font-size: 1rem;
}

.community-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.community-post-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dark .community-post-card { background: #232339; border-color: #333; }
.community-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.cp-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cp-body { padding: 20px; }
.cp-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text, #1a202c);
  line-height: 1.3;
}
.dark .cp-title { color: #e2e8f0; }

.cp-text {
  font-size: 0.92rem;
  color: var(--text-muted, #555);
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark .cp-text { color: #aaa; }

.cp-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cp-author { font-weight: 600; }

.cp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-tag {
  background: rgba(0,122,61,0.12);
  color: #007A3D;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.dark .cp-tag { background: rgba(0,122,61,0.25); color: #4ade80; }

.community-submit-wrap {
  text-align: center;
  margin-top: 40px;
}
.community-submit-btn {
  background: linear-gradient(135deg, #007A3D, #4189DD);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.community-submit-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Community Modal */
.community-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.community-modal-overlay[hidden] { display: none; }

.community-modal-box {
  background: var(--card-bg, #fff);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.dark .community-modal-box { background: #1e1e30; color: #e2e8f0; }

.community-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted, #888);
  line-height: 1;
}

.community-modal-box h3 { margin: 0 0 4px; font-size: 1.4rem; }
.community-modal-sub { color: var(--text-muted, #888); font-size: 0.9rem; margin: 0 0 20px; }

.community-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--text, #333);
}
.dark .community-form label { color: #ccc; }
.community-form .req { color: #e53e3e; }
.community-form .opt { color: #888; font-weight: 400; font-size: 0.8rem; }

.community-form input,
.community-form textarea {
  width: 100%;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.93rem;
  font-family: inherit;
  background: var(--bg, #fff);
  color: var(--text, #1a202c);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.dark .community-form input,
.dark .community-form textarea { background: #2a2a40; border-color: #444; color: #e2e8f0; }
.community-form input:focus,
.community-form textarea:focus { outline: none; border-color: #007A3D; }
.community-form textarea { resize: vertical; }

.community-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.community-cancel-btn {
  background: none;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text, #333);
}
.dark .community-cancel-btn { color: #ccc; border-color: #555; }
.community-submit-form-btn {
  background: #007A3D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.community-submit-form-btn:hover { opacity: 0.88; }
.community-submit-form-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.cm-status {
  margin-top: 10px;
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
}

@media (max-width: 600px) {
  .community-posts-grid { grid-template-columns: 1fr; }
  .community-modal-box { padding: 24px 18px; }
}

/* ── COMMUNITY TABS ─────────────────────────── */
.comm-tabs {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--border, #e2e8f0);
}
.comm-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 0;
}
.comm-tab.active { color: #007A3D; border-bottom-color: #007A3D; }
.comm-tab:hover:not(.active) { color: var(--text, #333); }
.dark .comm-tab { color: #666; }
.dark .comm-tab.active { color: #4ade80; border-bottom-color: #4ade80; }

.comm-panel { display: none; padding-top: 24px; }
.comm-panel.active { display: block; }

/* ── TRAVEL GUIDE ───────────────────────────── */
.travel-intro {
  font-size: 0.95rem;
  color: var(--text-muted, #666);
  margin-bottom: 24px;
  text-align: center;
}
.dark .travel-intro { color: #aaa; }

.travel-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.travel-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dark .travel-card { background: #1e1e30; border-color: #333; }
.travel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.travel-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.travel-flag { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.travel-card-info { flex: 1; min-width: 0; }
.travel-country { font-weight: 700; font-size: 1rem; color: var(--text, #1a202c); }
.dark .travel-country { color: #e2e8f0; }
.travel-duration { font-size: 0.8rem; color: #007A3D; font-weight: 600; margin-top: 2px; }
.dark .travel-duration { color: #4ade80; }
.travel-chevron {
  font-size: 0.75rem;
  color: var(--text-muted, #aaa);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.travel-card.open .travel-chevron { transform: rotate(180deg); }

.travel-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  border-top: 1px solid transparent;
}
.travel-card.open .travel-card-body {
  max-height: 260px;
  padding: 14px 16px 16px;
  border-top-color: var(--border, #e2e8f0);
}
.dark .travel-card.open .travel-card-body { border-top-color: #333; }

.travel-detail { font-size: 0.85rem; color: var(--text-muted, #555); margin-bottom: 8px; line-height: 1.5; }
.dark .travel-detail { color: #aaa; }
.travel-detail strong { color: var(--text, #222); }
.dark .travel-detail strong { color: #ddd; }
.travel-hubs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.travel-hub {
  background: rgba(65,137,221,0.1);
  color: #4189DD;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}
.dark .travel-hub { background: rgba(65,137,221,0.2); }

@media (max-width: 600px) {
  .travel-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .travel-guide-grid { grid-template-columns: 1fr; }
}

/* ── ABOUT US / FOOTER ──────────────────────────────────── */
.about-footer-section {
  background: linear-gradient(135deg, #0d1a12 0%, #0a1520 100%);
  color: #e2e8f0; padding: 60px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dark .about-footer-section { background: linear-gradient(135deg, #0d1a12 0%, #0a1520 100%); }

.about-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; align-items: flex-start;
  padding-bottom: 48px;
}

.about-footer-logo {
  font-size: 2.8rem; margin-bottom: 16px;
  line-height: 1;
}
.about-footer-name {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 12px; color: #fff;
}
.about-footer-desc {
  font-size: .9rem; color: rgba(255,255,255,0.55);
  line-height: 1.7; max-width: 360px;
}

.about-footer-col-title {
  font-size: .75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.about-footer-link {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: rgba(255,255,255,0.65);
  text-decoration: none; margin-bottom: 10px;
  transition: color 0.15s;
}
.about-footer-link:hover { color: #6ee7b7; }

.about-footer-social-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.about-footer-social-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  font-size: .82rem; color: rgba(255,255,255,0.75);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.about-footer-social-btn:hover { background: rgba(0,122,61,0.4); color: #fff; }

.about-footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center;
  font-size: .78rem; color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .about-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-footer-desc  { max-width: 100%; }
}

/* ── READING PROGRESS BAR ───────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #007A3D, #4fc878);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── COPY TOAST ─────────────────────────────────────────── */
.eri-copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(10,20,16,0.92); color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.4); border-radius: 99px;
  padding: 9px 22px; font-size: .85rem; font-weight: 500;
  z-index: 9999; opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; white-space: nowrap;
}
.eri-copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SECTION SHARE BUTTON ───────────────────────────────── */
.section-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; margin-left: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4); font-size: .85rem; cursor: pointer;
  vertical-align: middle; transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.section-share-btn:hover { background: rgba(0,122,61,0.3); color: #6ee7b7; }
.dark .section-share-btn { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.3); }
.dark .section-share-btn:hover { background: rgba(0,122,61,0.15); color: #007A3D; }

/* ── MONETIZE (sponsor strip, donate bar, bio links) ─────── */
.eri-sponsor-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 16px 20px; margin: 24px 0;
  background: rgba(0,122,61,.06); border: 1px solid rgba(0,122,61,.2);
  border-radius: 12px;
}
.eri-sponsor-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: #007A3D; white-space: nowrap;
}
.eri-sponsor-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06);
  text-decoration: none; color: #1a1a1a; font-size: .82rem; font-weight: 600;
  transition: background .15s;
}
.eri-sponsor-item:hover { background: #fff; }
.eri-sp-logo { width: 24px; height: 24px; border-radius: 5px; object-fit: contain; }
.eri-sp-name { font-size: .8rem; font-weight: 600; color: #1a1a1a; }

.eri-donate-bar {
  text-align: center; padding: 24px 20px; margin: 16px 0;
  background: linear-gradient(135deg, rgba(0,122,61,.08), rgba(0,80,40,.04));
  border: 1px solid rgba(0,122,61,.2); border-radius: 16px;
}
.eri-donate-msg { font-size: .9rem; color: var(--text-secondary, #444); margin-bottom: 14px; line-height: 1.5; }
.eri-donate-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.eri-donate-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px; border-radius: 99px;
  background: #007A3D; color: #fff; font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: background .15s, transform .1s;
}
.eri-donate-btn:hover { background: #005a2d; transform: translateY(-1px); }

.eri-bio-links { display: flex; flex-direction: column; gap: 6px; }
.eri-bio-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .82rem;
  transition: background .15s;
}
.eri-bio-link:hover { background: rgba(255,255,255,.12); }
.about-footer-links-col { display: flex; flex-direction: column; gap: 8px; }

.dark .eri-sponsor-item { background: rgba(0,0,0,.12); color: #eee; }
.dark .eri-sp-name { color: #eee; }
.dark .eri-donate-bar { background: rgba(0,80,40,.15); }
.dark .eri-donate-msg { color: rgba(255,255,255,.75); }

/* ============================================
   NEW FEATURES — 10 ADDITIONS
   ============================================ */

/* NEWS FEED */
#news { background: var(--bg-alt); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.5rem; }
.news-card { background: var(--card-bg); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.news-img-wrap { height: 180px; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-tag { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 20px; margin-bottom: .6rem; }
.news-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; color: var(--text); line-height: 1.4; }
.news-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: .75rem; }
.news-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.news-source { margin-left: .4rem; }
.news-read-more { font-size: .85rem; font-weight: 600; color: var(--green); text-decoration: none; }
.news-read-more:hover { text-decoration: underline; }
.news-empty { text-align: center; color: var(--text-muted); padding: 2rem; font-size: .95rem; }
.news-skeleton { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.news-skel-card { height: 260px; border-radius: 14px; background: linear-gradient(90deg, var(--border, #e2e8f0) 25%, rgba(0,0,0,.04) 50%, var(--border, #e2e8f0) 75%); background-size: 200% 100%; animation: skelShimmer 1.4s infinite; }
@keyframes skelShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* REGIONS MAP */
#regions { background: var(--bg); }
.regions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.region-card { background: var(--card-bg); border-radius: 12px; padding: 1.25rem; border: 2px solid transparent; border-top: 4px solid var(--rc, var(--green)); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.region-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); border-color: var(--rc, var(--green)); }
.region-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.region-emoji { font-size: 2rem; }
.region-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.region-sub { font-size: .78rem; color: var(--text-muted); }
.region-capital { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.region-tap-hint { font-size: .75rem; color: var(--green); font-weight: 600; }
.region-detail { background: var(--card-bg); border-radius: 14px; padding: 2rem; border: 1px solid var(--border); position: relative; }
.region-detail-close { position: absolute; top: 1rem; right: 1rem; background: var(--border); border: none; cursor: pointer; font-size: .85rem; padding: .4rem .8rem; border-radius: 20px; color: var(--text-muted); }
.rd-header { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 10px; margin-bottom: 1.25rem; }
.rd-emoji { font-size: 2.5rem; }
.rd-name { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.rd-sub { font-size: .85rem; color: var(--text-muted); }
.rd-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.rd-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.rd-stat { background: var(--bg-alt); border-radius: 8px; padding: .6rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.rd-stat strong { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.rd-stat span { font-size: .9rem; font-weight: 600; color: var(--text); }
.rd-highlights ul { padding-left: 1.2rem; margin: .5rem 0 0; }
.rd-highlights li { color: var(--text-muted); margin-bottom: .3rem; line-height: 1.5; }
@media(max-width:768px){ .regions-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .regions-grid { grid-template-columns: 1fr; } }

/* RECIPES */
#recipes { background: var(--bg-alt); }
.recipe-grid { display: flex; flex-direction: column; gap: 1rem; }
.recipe-card { background: var(--card-bg); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.recipe-card-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; }
.recipe-emoji { font-size: 2.2rem; flex-shrink: 0; }
.recipe-info { flex: 1; }
.recipe-name { font-size: 1.05rem; font-weight: 700; margin: 0 0 .3rem; color: var(--text); }
.recipe-meta-row { font-size: .8rem; color: var(--text-muted); display: flex; gap: 1rem; }
.recipe-toggle { background: var(--border); border: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; color: var(--text-muted); flex-shrink: 0; transition: background .2s; }
.recipe-toggle:hover { background: var(--green); color: #fff; }
.recipe-body { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.recipe-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; margin-bottom: 1rem; }
.recipe-ingredients h4, .recipe-steps h4 { font-size: .9rem; font-weight: 700; margin: 0 0 .6rem; color: var(--text); }
.recipe-ingredients ul { padding-left: 1.2rem; margin: 0; }
.recipe-ingredients li { font-size: .875rem; color: var(--text-muted); margin-bottom: .3rem; }
.recipe-steps ol { padding-left: 1.2rem; margin: 0; }
.recipe-steps li { font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; line-height: 1.6; }
.recipe-tip { background: #f0fdf4; border-left: 3px solid var(--green); padding: .75rem 1rem; border-radius: 0 8px 8px 0; font-size: .875rem; color: var(--text-muted); }
.dark .recipe-tip { background: rgba(0,122,61,.12); }
@media(max-width:600px){ .recipe-cols { grid-template-columns: 1fr; } }

/* ARTISTS */
#artists { background: var(--bg); }
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; }
.artist-card { background: var(--card-bg); border-radius: 14px; padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s; }
.artist-card:hover { transform: translateY(-3px); }
.artist-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.artist-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.artist-role { font-size: .8rem; color: var(--green); font-weight: 600; margin-bottom: .15rem; }
.artist-years { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.artist-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* HOLIDAYS */
#holidays { background: var(--bg-alt); }
.holidays-filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hol-filt { background: var(--card-bg); border: 1px solid var(--border); padding: .5rem 1.1rem; border-radius: 30px; font-size: .875rem; cursor: pointer; color: var(--text-muted); transition: all .2s; }
.hol-filt.active, .hol-filt:hover { background: var(--green); color: #fff; border-color: var(--green); }
.holidays-list { display: flex; flex-direction: column; gap: .75rem; }
.holiday-item { display: grid; grid-template-columns: 48px 72px 1fr; gap: 1rem; align-items: center; background: var(--card-bg); border-radius: 12px; padding: 1.1rem 1.25rem; border-left: 4px solid var(--border); transition: box-shadow .2s; }
.holiday-item.national { border-left-color: var(--green); }
.holiday-item.religious { border-left-color: var(--blue); }
.holiday-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.holiday-icon { font-size: 1.8rem; text-align: center; }
.holiday-date { text-align: center; }
.hol-month { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.hol-day { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.hol-var { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.holiday-name { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.holiday-desc { font-size: .825rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 .4rem; }
.holiday-type-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 10px; }
.holiday-type-badge.national { background: #dcfce7; color: #166534; }
.holiday-type-badge.religious { background: #dbeafe; color: #1e40af; }
.dark .holiday-type-badge.national { background: rgba(0,122,61,.2); color: #6ee7b7; }
.dark .holiday-type-badge.religious { background: rgba(65,137,221,.2); color: #93c5fd; }
@media(max-width:600px){ .holiday-item { grid-template-columns: 40px 60px 1fr; gap: .75rem; } }

/* BLOG */
#blog { background: var(--bg); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.blog-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit; cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,122,61,.3);
  box-shadow: 0 16px 40px rgba(0,122,61,.15), inset 0 1px 0 rgba(255,255,255,.9);
}
html.dark .blog-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
}
html.dark .blog-card:hover {
  border-color: rgba(74,222,128,.25);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.09);
}
.blog-img { height: 180px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat { display: inline-block; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 20px; margin-bottom: .6rem; }
.blog-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; color: var(--text); line-height: 1.4; }
.blog-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: .75rem; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-muted); margin-top: auto; }
.blog-read-more { font-size: .82rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.blog-loading, .blog-empty { text-align: center; color: var(--text-muted); padding: 2rem; }

/* QUIZ */
#quiz { background: var(--bg-alt); }
.quiz-container { max-width: 680px; margin: 0 auto; }
.quiz-intro { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }
.quiz-start-btn { display: block; margin: 0 auto; background: var(--green); color: #fff; border: none; padding: .9rem 2.5rem; border-radius: 40px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; }
.quiz-start-btn:hover { background: var(--green-dark, #005a2d); transform: scale(1.04); }
.quiz-topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.quiz-prog-wrap { flex: 1; }
.quiz-prog-bar { background: var(--border); border-radius: 10px; height: 8px; overflow: hidden; }
.quiz-prog-fill { height: 100%; background: var(--green); border-radius: 10px; transition: width .4s ease; width: 0; }
.quiz-counter { font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.quiz-score-live { font-size: .85rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.quiz-card { background: var(--card-bg); border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.quiz-q { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; line-height: 1.5; }
.quiz-opts { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.quiz-opt { background: var(--bg-alt); border: 2px solid var(--border); border-radius: 10px; padding: .9rem 1.25rem; font-size: .95rem; color: var(--text); text-align: left; cursor: pointer; transition: all .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--green); background: #f0fdf4; }
.quiz-opt.correct { border-color: #10b981; background: #ecfdf5; color: #065f46; font-weight: 700; }
.quiz-opt.wrong { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.dark .quiz-opt.correct { background: rgba(16,185,129,.15); color: #6ee7b7; }
.dark .quiz-opt.wrong { background: rgba(239,68,68,.15); color: #fca5a5; }
.quiz-fact-box { background: var(--bg-alt); border-left: 4px solid var(--green); padding: .9rem 1rem; border-radius: 0 8px 8px 0; font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.quiz-next-btn { background: var(--blue); color: #fff; border: none; padding: .7rem 1.8rem; border-radius: 30px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.quiz-next-btn:hover { background: #2563eb; }
.quiz-result-inner { text-align: center; padding: 2rem; background: var(--card-bg); border-radius: 16px; }
.quiz-trophy { font-size: 3rem; margin-bottom: 1rem; display: block; }
.quiz-final-score { font-size: 2.5rem; font-weight: 800; color: var(--green); margin-bottom: .5rem; }
.quiz-final-msg { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.quiz-result-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.quiz-share-btn { background: transparent; border: 2px solid var(--green); color: var(--green); padding: .7rem 1.6rem; border-radius: 30px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.quiz-share-btn:hover { background: var(--green); color: #fff; }

/* NEWSLETTER */
.footer-newsletter { flex: 1; min-width: 200px; }
.footer-newsletter h4 { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.9); margin: 0 0 .4rem; }
.footer-newsletter p { font-size: .825rem; color: rgba(255,255,255,.5); margin: 0 0 .9rem; }
.nl-form { display: flex; gap: .5rem; }
.nl-input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: .55rem .85rem; font-size: .875rem; color: #fff; outline: none; }
.nl-input::placeholder { color: rgba(255,255,255,.35); }
.nl-input:focus { border-color: var(--green); }
.nl-btn { background: var(--green); color: #fff; border: none; padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s; }
.nl-btn:hover { background: #005a2d; }
.nl-msg { font-size: .8rem; margin: .4rem 0 0; min-height: 1rem; }

/* PHRASEBOOK CATEGORIES */
.phrase-filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.phrase-filt { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: .45rem 1rem; border-radius: 24px; font-size: .825rem; cursor: pointer; color: rgba(255,255,255,.6); transition: all .2s; }
.phrase-filt.active, .phrase-filt:hover { background: var(--green); color: #fff; border-color: var(--green); }
.phrase-cat { display: block; }

/* ══════════════════════════════════════════════
   MUSIC PHONE WIDGET v2 — Complete Upgrade
══════════════════════════════════════════════ */
#musicPhoneWidget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9100;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}
.music-phone-tab {
  background: #1e2240;
  color: #fff;
  border: none;
  border-radius: 12px 0 0 12px;
  padding: 16px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: -3px 0 20px rgba(74,125,255,0.35);
  transition: background 0.2s;
  user-select: none;
}
.music-phone-tab:hover { background: #262c50; }
.mpt-icon { font-size: 1.25rem; line-height: 1; }
.mpt-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Phone frame */
.music-phone-frame { animation: slideInPhone 0.3s ease; }
@keyframes slideInPhone {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mpf-shell {
  width: 272px; height: 580px;
  background: #161827;
  border-radius: 38px;
  border: 3px solid #252840;
  box-shadow: -4px 4px 54px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: flex; flex-direction: column; overflow: hidden;
  /* subtle bg wave lines */
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 1px, transparent 40px);
}
.mpf-notch {
  width: 80px; height: 16px; background: #0d0e18;
  border-radius: 0 0 14px 14px; margin: 0 auto; flex-shrink: 0;
}
.mpf-screen {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; margin-top: -1px;
}
.mpf-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 18px 0; color: #8890b0; flex-shrink: 0;
}
.mpf-time { font-size: .6rem; font-weight: 700; font-family: var(--font-sans); }
.mpf-status-icons { display: flex; align-items: center; gap: 4px; }

/* ── Views ── */
.mpf-view { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.mpf-view--hidden { display: none !important; }

/* ── Shared header ── */
.mpf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 8px; flex-shrink: 0;
}
.mpf-app-title {
  font-size: .76rem; font-weight: 700; color: #e8eaf5;
  letter-spacing: .3px; font-family: var(--font-sans);
}
.mpf-hdr-btn {
  background: rgba(255,255,255,.07); border: none; border-radius: 50%;
  width: 26px; height: 26px; cursor: pointer; color: #8890b0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.mpf-hdr-btn:hover { background: rgba(255,255,255,.14); color: #e8eaf5; }

/* ── Now Playing ── */
.mpf-now-playing {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 4px 16px 10px; gap: 8px;
  overflow: hidden;
}

/* Art row with flanking times */
.mpf-art-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.mpf-art-time {
  font-size: .64rem; color: #6b7280; font-family: var(--font-sans);
  font-variant-numeric: tabular-nums; min-width: 28px; text-align: center;
}
.mpf-art-wrap { flex: 1; display: flex; justify-content: center; }
.mpf-disc {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #1e2440, #0a0b18);
  border: 3px solid rgba(74,125,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 20px rgba(74,125,255,.2);
  transition: border-color .4s, box-shadow .4s;
  flex-shrink: 0;
}
.mpf-disc.playing {
  border-color: rgba(74,125,255,0.8);
  box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 28px rgba(74,125,255,.45);
}

/* Arc progress */
.mpf-arc-wrap { width: 100%; cursor: pointer; margin-top: -6px; }

/* Track info */
.mpf-track-info-row {
  display: flex; align-items: center; width: 100%; gap: 6px;
}
.mpf-track-info { flex: 1; min-width: 0; text-align: center; }
.mpf-track-title {
  font-size: .85rem; font-weight: 700; color: #e8eaf5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-sans);
}
.mpf-track-artist { font-size: .68rem; color: #6b7280; margin-top: 2px; font-family: var(--font-sans); }
.mpf-like-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: #3d4462; transition: color .2s, transform .15s;
  flex-shrink: 0; padding: 3px; width: 26px; text-align: center;
}
.mpf-like-btn:hover { transform: scale(1.2); }
.mpf-like-btn.liked { color: #ef4444; }

/* Controls */
.mpf-controls-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.mpf-ctrl-btn {
  background: rgba(255,255,255,.07); border: none; border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; color: #c8cce8;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .1s;
}
.mpf-ctrl-btn:hover { background: rgba(255,255,255,.14); }
.mpf-ctrl-btn:active { transform: scale(.88); }
.mpf-play-btn {
  width: 54px !important; height: 54px !important;
  background: #4A7DFF !important;
  box-shadow: 0 4px 22px rgba(74,125,255,.55);
}
.mpf-play-btn:hover { background: #3a6dee !important; }
.mpf-mode-btn {
  background: none; border: none; cursor: pointer;
  color: #3d4462; padding: 6px; border-radius: 8px;
  transition: color .2s, background .2s; display: flex; align-items: center;
}
.mpf-mode-btn:hover { color: #8890b0; background: rgba(255,255,255,.05); }
.mpf-mode-btn.active { color: #4A7DFF; }

/* Volume */
.mpf-volume-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.mpf-volume-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; outline: none; cursor: pointer;
}
.mpf-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #4A7DFF; cursor: pointer; box-shadow: 0 0 6px rgba(74,125,255,.6);
}
.mpf-volume-slider::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #4A7DFF; cursor: pointer; border: none;
}

/* Visualizer */
.mpf-viz {
  display: flex; align-items: flex-end; gap: 2.5px;
  height: 16px; opacity: 0; transition: opacity .3s; justify-content: center;
}
.mpf-viz.active { opacity: 1; }
.mpf-viz span { width: 3px; background: linear-gradient(to top,#4A7DFF,#7fa8ff); border-radius: 2px; height: 3px; display: block; }
.mpf-viz.active span:nth-child(1) { animation: mpfBar1 .75s ease-in-out infinite; }
.mpf-viz.active span:nth-child(2) { animation: mpfBar2 .5s  ease-in-out infinite .1s; }
.mpf-viz.active span:nth-child(3) { animation: mpfBar3 .9s  ease-in-out infinite .05s; }
.mpf-viz.active span:nth-child(4) { animation: mpfBar1 .65s ease-in-out infinite .15s; }
.mpf-viz.active span:nth-child(5) { animation: mpfBar2 .8s  ease-in-out infinite .08s; }
.mpf-viz.active span:nth-child(6) { animation: mpfBar3 .6s  ease-in-out infinite .2s; }
.mpf-viz.active span:nth-child(7) { animation: mpfBar1 .7s  ease-in-out infinite .12s; }
@keyframes mpfBar1 { 0%,100%{height:3px} 50%{height:14px} }
@keyframes mpfBar2 { 0%,100%{height:3px} 50%{height:10px} }
@keyframes mpfBar3 { 0%,100%{height:3px} 50%{height:18px} }

/* ── Playlist view ── */
.mpf-plist-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.mpf-plist-art {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#1e2440,#252a50);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.mpf-plist-details { min-width: 0; }
.mpf-plist-name {
  font-size: .82rem; font-weight: 700; color: #e8eaf5;
  font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mpf-plist-sub { font-size: .65rem; color: #6b7280; margin-top: 1px; font-family: var(--font-sans); }
.mpf-plist-count { font-size: .62rem; color: #6b7280; margin-top: 2px; font-family: var(--font-sans); }

.mpf-plist-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; border-bottom: 1px solid rgba(255,255,255,.04); flex-shrink: 0;
}
.mpf-shuffle-all {
  display: flex; align-items: center; gap: 5px;
  background: rgba(74,125,255,.12); border: 1px solid rgba(74,125,255,.25);
  border-radius: 20px; padding: 4px 12px;
  font-size: .65rem; font-weight: 600; color: #7fa8ff;
  cursor: pointer; transition: background .2s;
}
.mpf-shuffle-all:hover { background: rgba(74,125,255,.22); }
.mpf-filter-row { display: flex; gap: 5px; }
.mpf-filter-btn {
  font-size: .62rem; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: #6b7280; cursor: pointer; transition: all .2s;
}
.mpf-filter-btn.active { background: rgba(74,125,255,.2); color: #7fa8ff; border-color: rgba(74,125,255,.4); }
.mpf-filter-btn:hover:not(.active) { border-color: rgba(255,255,255,.2); color: #9ca3af; }

.mpf-search {
  width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 5px 10px; color: #e5e7eb; font-size: .68rem;
  font-family: var(--font-sans); outline: none; box-sizing: border-box; transition: border-color .2s;
}
.mpf-search::placeholder { color: #4b5563; }
.mpf-search:focus { border-color: rgba(74,125,255,.5); }

/* Playlist rows */
.mpf-playlist {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(74,125,255,.3) transparent;
}
.mpf-playlist::-webkit-scrollbar { width: 3px; }
.mpf-playlist::-webkit-scrollbar-thumb { background: rgba(74,125,255,.3); border-radius: 2px; }
.mpf-loading {
  text-align: center; color: #4b5563; font-size: .72rem;
  padding: 20px 14px; font-family: var(--font-sans);
}
.mpf-track-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.025);
  transition: background .15s;
}
.mpf-track-row:hover { background: rgba(255,255,255,.04); }
.mpf-track-row.active { background: rgba(74,125,255,.12); }
.mpf-track-playing-icon {
  display: flex; align-items: flex-end; gap: 1.5px; height: 14px;
  flex-shrink: 0; width: 20px; display: none;
}
.mpf-track-row.active .mpf-track-playing-icon { display: flex; }
.mpf-track-playing-icon span {
  width: 2.5px; background: #4A7DFF; border-radius: 2px; height: 3px; display: block;
}
.mpf-track-row.active .mpf-track-playing-icon span:nth-child(1) { animation: mpfBar1 .7s ease-in-out infinite; }
.mpf-track-row.active .mpf-track-playing-icon span:nth-child(2) { animation: mpfBar3 .5s ease-in-out infinite .1s; }
.mpf-track-row.active .mpf-track-playing-icon span:nth-child(3) { animation: mpfBar2 .8s ease-in-out infinite .05s; }
.mpf-track-num {
  font-size: .64rem; color: #4b5563; min-width: 20px; text-align: center;
  font-family: var(--font-sans); font-variant-numeric: tabular-nums;
}
.mpf-track-row.active .mpf-track-num { display: none; }
.mpf-track-row-info { flex: 1; min-width: 0; }
.mpf-track-row-title {
  font-size: .74rem; color: #d1d5e8; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-sans);
}
.mpf-track-row.active .mpf-track-row-title { color: #7fa8ff; }
.mpf-track-row-artist {
  font-size: .62rem; color: #4b5563;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-sans);
}
.mpf-track-row-like {
  background: none; border: none; cursor: pointer;
  font-size: .85rem; color: #2d3050; padding: 2px 4px; flex-shrink: 0; transition: color .2s;
}
.mpf-track-row-like.liked { color: #ef4444; }

/* Mini player bar (bottom of playlist view) */
.mpf-mini-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: #1a1d2e;
  border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.mpf-mini-bar-art {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#1e2440,#252a50);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.07);
}
.mpf-mini-bar-body { flex: 1; min-width: 0; }
.mpf-mini-bar-title {
  font-size: .7rem; font-weight: 600; color: #d1d5e8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-sans);
}
.mpf-mini-bar-prog { height: 2px; background: rgba(255,255,255,.1); border-radius: 1px; margin-top: 4px; }
.mpf-mini-bar-fill { height: 100%; background: #4A7DFF; border-radius: 1px; width: 0%; transition: width .4s linear; }
.mpf-mini-bar-btn {
  background: rgba(255,255,255,.07); border: none; border-radius: 50%;
  width: 26px; height: 26px; cursor: pointer; color: #8890b0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.mpf-mini-bar-btn:hover { background: rgba(255,255,255,.14); }
.mpf-mini-bar-play { background: #4A7DFF !important; color: #fff !important; }
.mpf-mini-bar-play:hover { background: #3a6dee !important; }

/* Home bar */
.mpf-home-bar {
  height: 18px; display: flex; align-items: center;
  justify-content: center; background: #0d0e18; flex-shrink: 0;
}
.mpf-home-bar::after {
  content: ''; width: 70px; height: 3px;
  background: rgba(255,255,255,.1); border-radius: 2px;
}

/* ── Mini pill (floating, shows when frame closed) ── */
.mpf-mini-pill {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  align-items: center; gap: 8px;
  background: #161827; border: 1px solid rgba(74,125,255,.35);
  border-radius: 99px; padding: 6px 14px 6px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.6); z-index: 9050;
  animation: mpfPillIn .3s ease; min-width: 260px;
}
.mpf-mini-pill:not([hidden]) { display: flex; }
@keyframes mpfPillIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.mpf-mini-disc {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(74,125,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
  border: 2px solid rgba(74,125,255,.45);
}
.mpf-mini-info { flex: 1; min-width: 0; }
.mpf-mini-title {
  display: block; font-size: .73rem; font-weight: 700;
  color: #e8eaf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mpf-mini-artist { display: block; font-size: .6rem; color: #6b7280; }
.mpf-mini-viz { display: flex; align-items: flex-end; gap: 2px; height: 14px; opacity: 0; }
.mpf-mini-viz.active { opacity: 1; }
.mpf-mini-viz span { width: 2.5px; background: #4A7DFF; border-radius: 1px; height: 3px; }
.mpf-mini-viz.active span:nth-child(1) { animation: mpfBar1 .7s ease-in-out infinite; }
.mpf-mini-viz.active span:nth-child(2) { animation: mpfBar3 .5s ease-in-out infinite .1s; }
.mpf-mini-viz.active span:nth-child(3) { animation: mpfBar2 .8s ease-in-out infinite .05s; }
.mpf-mini-ctrl {
  background: rgba(255,255,255,.07); border: none; border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; color: #e5e7eb;
  font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mpf-mini-play { background: #4A7DFF !important; }
.mpf-mini-expand {
  background: none; border: none; cursor: pointer;
  color: #6b7280; font-size: .85rem; padding: 4px; flex-shrink: 0; transition: color .2s;
}
.mpf-mini-expand:hover { color: #7fa8ff; }

/* Responsive */
@media (max-width: 380px) { #musicPhoneWidget > button, #musicPhoneWidget > .music-phone-frame { display: none; } }
@media (max-width: 600px) { .mpf-shell { width: 260px; height: 550px; } }

/* ══════════════════════════════════════════════════════════════
   ERITREAN INFO — NEW FEATURES CSS
   ══════════════════════════════════════════════════════════════ */

/* ── ON THIS DAY BAR ── */
.on-this-day-bar {
  background: linear-gradient(135deg, #007A3D, #4189DD);
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,122,61,.3);
}
.otd-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.otd-icon { font-size: 1.3rem; flex-shrink: 0; }
.otd-text { flex: 1; min-width: 0; }
.otd-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; opacity: .8; display: block; margin-bottom: 2px; }
.otd-event { font-size: .88rem; line-height: 1.4; }
.otd-close { background: rgba(255,255,255,.2); border: none; color: #fff; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: .8rem; flex-shrink: 0; }
.otd-close:hover { background: rgba(255,255,255,.35); }

/* ── INTERACTIVE MAP ── */
.eritrea-map-wrap {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  background: #d4e9d4;
}
@media (max-width: 640px) { .eritrea-map-wrap { height: 280px; } }

/* ── PHRASEBOOK SPEAK BUTTON ── */
.speak-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: .7;
  transition: opacity .15s;
  vertical-align: middle;
}
.speak-btn:hover { opacity: 1; background: rgba(0,122,61,.12); }

/* ── QUIZ LEADERBOARD ── */
.quiz-leaderboard {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
}
.ql-title { font-size: .88rem; font-weight: 700; margin-bottom: 12px; text-align: center; }
.ql-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .82rem;
}
.ql-row:last-child { border-bottom: none; }
.ql-medal { font-size: 1.1rem; width: 28px; text-align: center; }
.ql-score { flex: 1; font-weight: 600; }
.ql-pct { color: #10b981; font-weight: 700; min-width: 40px; text-align: right; }
.ql-date { color: rgba(255,255,255,.4); font-size: .72rem; min-width: 70px; text-align: right; }

/* ── BOOKMARKS ── */
.bookmark-fab {
  position: fixed;
  bottom: 96px;
  right: 20px;
  z-index: 200;
  background: #007A3D;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,122,61,.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform .2s;
}
.bookmark-fab:hover { transform: scale(1.06); }
.bookmark-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #CE1126;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
}
.bookmark-panel {
  position: fixed;
  bottom: 152px;
  right: 20px;
  z-index: 201;
  width: 280px;
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.bkp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bkp-header h3 { font-size: .9rem; margin: 0; }
.bkp-close { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 1.1rem; }
.bkp-list { max-height: 300px; overflow-y: auto; padding: 8px 0; }
.bkp-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.bkp-link { flex: 1; color: rgba(255,255,255,.85); text-decoration: none; font-size: .83rem; }
.bkp-link:hover { color: #fff; }
.bkp-remove { background: none; border: none; color: rgba(255,255,255,.3); cursor: pointer; font-size: .75rem; }
.bkp-remove:hover { color: #ef4444; }
.bkp-empty, .bkp-hint { font-size: .75rem; color: rgba(255,255,255,.35); padding: 10px 16px; text-align: center; }

.section-bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: .5;
  transition: opacity .15s;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.section-bookmark-btn:hover, .section-bookmark-btn.active { opacity: 1; }
.section-bookmark-btn.active { filter: drop-shadow(0 0 4px #007A3D); }

/* ── RECIPE DETAIL MODAL ── */
.recipe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.recipe-modal-overlay[hidden] { display: none; }
.recipe-modal-box {
  background: #1a1f2e;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
}
.recipe-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.recipe-modal-hd h3 { font-size: 1.1rem; margin: 0; flex: 1; }
.recipe-print-btn {
  background: rgba(99,102,241,.2);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .78rem;
  cursor: pointer;
}
.recipe-modal-close {
  background: rgba(255,255,255,.08);
  border: none;
  color: rgba(255,255,255,.6);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}
.rm-meta { display: flex; gap: 16px; margin-bottom: 20px; font-size: .82rem; color: rgba(255,255,255,.5); }
.rm-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-bottom: 16px; }
@media (max-width: 500px) { .rm-cols { grid-template-columns: 1fr; } }
.rm-ingredients h4, .rm-steps h4 { font-size: .85rem; margin: 0 0 10px; }
.rm-ing-list { list-style: none; padding: 0; }
.rm-ing-item { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; cursor: pointer; font-size: .82rem; }
.rm-cb { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; accent-color: #007A3D; cursor: pointer; }
.rm-cb:checked + span { text-decoration: line-through; opacity: .45; }
.rm-steps ol { padding-left: 18px; }
.rm-steps li { font-size: .82rem; margin-bottom: 8px; line-height: 1.5; }
.rm-tip { background: rgba(0,122,61,.12); border-left: 3px solid #007A3D; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .8rem; color: rgba(255,255,255,.75); }
.rm-open-btn {
  font-size: .72rem !important;
  padding: 4px 10px !important;
  background: rgba(0,122,61,.2) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(0,122,61,.35) !important;
  border-radius: 6px !important;
  cursor: pointer;
  margin-left: 6px;
}
.rm-open-btn:hover { background: rgba(0,122,61,.35) !important; }

/* ── COMMUNITY VOTING ── */
.vote-btn {
  background: rgba(206,17,38,.1);
  border: 1px solid rgba(206,17,38,.25);
  color: rgba(255,255,255,.6);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .78rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vote-btn:hover { background: rgba(206,17,38,.22); color: #fff; }
.vote-btn.voted { background: rgba(206,17,38,.22); color: #f87171; cursor: default; }
.vote-count { font-weight: 700; }

/* ── RELATED SECTIONS ── */
.related-sections-block {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.rs-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}
.rs-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .8rem;
  transition: all .15s;
}
.rs-link:hover { background: rgba(0,122,61,.2); border-color: rgba(0,122,61,.4); color: #fff; }

/* ════════════════════════════════════════════════
   ERITREAN INFO — BATCH 3 STYLES
   ════════════════════════════════════════════════ */

/* ── HERO WIDGETS ROW (weather + word-of-day + currency) ── */
.hero-widgets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* ── WEATHER WIDGET ── */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: 12px;
  min-width: 120px;
}
.ww-icon { font-size: 1.8rem; }
.ww-temp { font-size: 1.2rem; font-weight: 700; font-family: 'Montserrat', sans-serif; }
.ww-city { font-size: .72rem; color: rgba(255,255,255,.5); }

/* ── WORD OF THE DAY ── */
.word-of-day-widget {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: rgba(0,122,61,.12);
  border: 1px solid rgba(0,122,61,.25);
  border-radius: 12px;
  position: relative;
}
.wod-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.wod-tag {
  background: rgba(0,122,61,.3);
  color: #4ade80;
  font-size: .66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.wod-label {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.wod-word {
  font-family: 'Noto Serif Ethiopic', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.wod-roman { font-size: .8rem; color: #4ade80; font-style: italic; margin-top: 2px; }
.wod-meaning { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 4px; }
.wod-speak {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,122,61,.3);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.wod-speak:hover { background: rgba(0,122,61,.5); }

/* ── CURRENCY CONVERTER ── */
.currency-widget {
  min-width: 220px;
  padding: 12px 16px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 12px;
}
.cw-header {
  font-size: .78rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cw-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cw-input {
  width: 80px;
  padding: 5px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  font-size: .85rem;
}
.cw-select {
  padding: 5px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  font-size: .8rem;
  cursor: pointer;
}
.cw-result {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
}

/* ── FEATURE 15: EMOJI REACTIONS ── */
.reaction-bar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.react-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.react-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.react-btn.reacted {
  background: rgba(0,122,61,.25);
  border-color: rgba(0,122,61,.4);
  color: #4ade80;
}
.react-count { font-weight: 700; font-size: .75rem; }

/* ── FEATURE 16: DEMOGRAPHICS CHART ── */
.demographics-chart-wrap {
  margin: 32px 0;
  padding: 24px;
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
}
.demo-chart-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: rgba(255,255,255,.8);
}
.demo-chart-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.demo-legend {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
}
.demo-leg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-leg-label { flex: 1; }
.demo-leg-pct { font-weight: 700; color: rgba(255,255,255,.6); }

/* ── FEATURE 17: CULTURAL CALENDAR ── */
#cultural-calendar { background: rgba(0,0,0,.15); }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.cal-nav-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: rgba(255,255,255,.16); }
.cal-month-label {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 200px;
  text-align: center;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cal-wday {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.35);
  padding: 6px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: default;
  position: relative;
  background: rgba(255,255,255,.03);
  font-size: .85rem;
  transition: background .12s;
  gap: 2px;
}
.cal-day-empty { background: transparent; }
.cal-today { background: rgba(0,122,61,.2) !important; border: 1px solid rgba(0,122,61,.4); font-weight: 700; }
.cal-has-event { cursor: pointer; }
.cal-has-event:hover { background: rgba(255,255,255,.09); }
.cal-ev-national { background: rgba(0,122,61,.15); }
.cal-ev-religious { background: rgba(65,137,221,.12); }
.cal-day-num { font-size: .82rem; line-height: 1; }
.cal-ev-dot { font-size: .75rem; line-height: 1; }
.cal-event-panel {
  margin-top: 16px;
  padding: 20px;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  text-align: center;
}
.cal-ep-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none;
  color: rgba(255,255,255,.4); font-size: .9rem;
  cursor: pointer;
}
.cal-ep-close:hover { color: #fff; }
.cal-ev-icon { font-size: 2rem; margin-bottom: 8px; }
.cal-ev-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cal-ev-date { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.cal-ev-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cal-ev-type.national { background: rgba(0,122,61,.3); color: #4ade80; }
.cal-ev-type.religious { background: rgba(65,137,221,.25); color: #93c5fd; }

/* ── FEATURE 18: SHARE SECTION BUTTON ── */
.share-section-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .75rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.share-section-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── FEATURE 19: OFFLINE READING ── */
.save-offline-btn {
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.2);
  color: rgba(255,255,255,.6);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: .75rem;
  cursor: pointer;
  transition: all .15s;
}
.save-offline-btn:hover { background: rgba(99,102,241,.25); color: #fff; }
.save-offline-btn.is-saved { color: #4ade80; border-color: rgba(74,222,128,.3); }

.offline-fab {
  position: fixed;
  bottom: 90px; left: 20px;
  z-index: 800;
  background: #3730a3;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(55,48,163,.5);
  transition: background .15s;
  display: flex; align-items: center; gap: 6px;
}
.offline-fab:hover { background: #4338ca; }
.offline-fab-badge {
  background: #f59e0b;
  color: #000;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 900;
}

.offline-panel {
  position: fixed;
  bottom: 150px; left: 20px;
  z-index: 850;
  width: min(320px, 90vw);
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  overflow: hidden;
}
.op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.op-title { font-size: .85rem; font-weight: 700; }
.op-close {
  background: none; border: none;
  color: rgba(255,255,255,.4); font-size: .9rem; cursor: pointer;
}
.op-list { max-height: 240px; overflow-y: auto; padding: 8px; }
.op-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
}
.op-link { flex: 1; color: rgba(255,255,255,.75); text-decoration: none; }
.op-link:hover { color: #fff; }
.op-date { font-size: .7rem; color: rgba(255,255,255,.35); flex-shrink: 0; }
.op-del {
  background: none; border: none;
  color: rgba(255,255,255,.3); cursor: pointer; font-size: .8rem;
}
.op-del:hover { color: #ef4444; }
.op-empty { padding: 16px; text-align: center; color: rgba(255,255,255,.35); font-size: .82rem; }

/* ── FEATURE 20: PHOTO STORY VIEWER ── */
.story-viewer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.story-viewer[hidden] { display: none; }
.sv-progress-row {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.sv-prog-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 4px;
  overflow: hidden;
}
.sv-prog-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 4px;
  transition: width .1s linear;
}
.sv-prog-done .sv-prog-fill { width: 100%; }
.sv-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
}
.sv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.sv-nav:hover { background: rgba(255,255,255,.25); }
.sv-prev { left: 12px; }
.sv-next { right: 12px; }
.sv-slide {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sv-img {
  max-width: 100%; max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .25s ease;
}
.sv-caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  padding: 0 60px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.story-launch-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.story-launch-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── GLOBAL SEARCH OVERLAY ──────────────────────────────── */
.global-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.global-search-overlay[hidden] { display: none; }
.gso-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.gso-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  overflow: hidden;
  animation: gsoIn .18s ease;
}
@keyframes gsoIn {
  from { opacity:0; transform: translateY(-12px) scale(.97); }
  to   { opacity:1; transform: none; }
}
.gso-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.gso-icon { font-size: 1.1rem; flex-shrink: 0; }
.gso-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
}
.gso-input::placeholder { color: var(--text-muted); }
.gso-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.gso-close:hover { background: var(--border); }
.gso-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.gso-quick-label {
  font-size: .72rem;
  color: var(--text-muted);
  align-self: center;
  white-space: nowrap;
}
.gso-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
}
.gso-chip:hover { background: var(--green-light); color: var(--green); border-color: var(--green); }
.gso-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}
.gso-results-hint {
  padding: 20px 20px;
  font-size: .88rem;
  color: var(--text-muted);
  text-align: center;
}
.gso-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
  color: inherit;
}
.gso-result-item:hover, .gso-result-item:focus {
  background: var(--bg-alt);
  outline: none;
}
.gso-result-icon { font-size: 1.2rem; flex-shrink: 0; }
.gso-result-text { display: flex; flex-direction: column; gap: 1px; }
.gso-result-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.gso-result-desc  { font-size: .75rem; color: var(--text-muted); }
.gso-result-item mark {
  background: rgba(0,122,61,.18);
  color: var(--green);
  border-radius: 2px;
  padding: 0 1px;
}
.gso-no-results {
  padding: 20px;
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
}

/* ── FIDEL WORDS TAB ───────────────────────────────────── */
.fidel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fidel-tab-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
}
.fidel-tab-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.fidel-tab-content { display: none; }
.fidel-tab-content.active { display: block; }
.fidel-words-search {
  width: 100%;
  max-width: 340px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.fidel-words-search:focus { outline: none; border-color: var(--green); }
.fidel-category-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 18px 0 8px;
}
.fidel-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.fidel-word-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fidel-word-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(0,122,61,.1); }
.fwc-tigrinya {
  font-family: var(--font-ethiopic);
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.3;
}
.fwc-roman  { font-size: .8rem; color: var(--green); font-weight: 600; }
.fwc-meaning{ font-size: .8rem; color: var(--text-muted); }
.fwc-example{ font-size: .75rem; color: var(--text-muted); font-style: italic; margin-top: 2px; }
.fwc-speak  {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: .95rem;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s;
  padding: 0;
  margin-top: 2px;
}
.fwc-speak:hover { opacity: 1; }

/* ── Site Footer Bar ─────────────────────────────────────── */
.site-footer-bar {
  background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 24px;
}
.sfb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.sfb-brand {
  font-weight: 700;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.sfb-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex: 1;
  text-align: center;
}
.sfb-about-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green, #4ade80);
  text-decoration: none;
  white-space: nowrap;
}
.sfb-about-link:hover { text-decoration: underline; }
@media (max-width: 500px) {
  .sfb-copy { order: 3; width: 100%; text-align: left; }
}

/* ── Fidel Alphabet Grid ─────────────────────────────────── */
.fidel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fidel-search {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  width: 220px;
}
.fidel-search:focus { outline: none; border-color: var(--green); }
.fidel-hint { font-size: .78rem; color: var(--text-muted); }
.fidel-table-wrap { overflow-x: auto; }

/* 7 equal columns — header and rows both use this */
.fidel-header-row,
.fidel-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.fidel-header-row { margin-bottom: 4px; }
.fidel-hcell {
  font-size: .68rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 2px;
}
.fidel-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 360px;
}
.fidel-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.fidel-cell:hover  { border-color: var(--green); background: rgba(0,122,61,.08); }
.fidel-cell.active { border-color: var(--green); background: rgba(0,122,61,.18); }
/* First cell in each row = base (ä) form — highlighted */
.fidel-cell:first-child {
  border-color: rgba(0,122,61,.4);
  background: rgba(0,122,61,.07);
}
.fidel-char {
  font-family: 'Noto Serif Ethiopic', 'Noto Sans Ethiopic', serif;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--text);
}
.fidel-sound {
  font-size: .58rem;
  color: var(--text-muted);
  letter-spacing: .02em;
  line-height: 1;
}
@media (max-width: 600px) {
  .fidel-char  { font-size: 1.1rem; }
  .fidel-sound { display: none; }
  .fidel-cell  { padding: 6px 2px; }
  .fidel-grid  { min-width: 280px; }
}

/* ── Fidel Tweaks (10 enhancements) ───────── */

/* Tweak 1: Explored progress bar */
.fidel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.fidel-progress-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.fidel-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), #4ade80);
  transition: width .5s ease;
  width: 0%;
}
.fidel-progress-label {
  font-size: .73rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-sans);
}
/* Explored dot on cell */
.fidel-cell.explored::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  margin: 1px auto 0;
}

/* Tweak 2: Romanization toggle */
.fidel-roman-toggle {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color .15s, color .15s;
}
.fidel-roman-toggle:hover { border-color: var(--green); color: var(--green); }
.fidel-grid.hide-roman .fidel-sound { opacity: 0; pointer-events: none; }

/* Tweak 3: Column header highlight */
.fidel-hcell { cursor: pointer; border-radius: 6px; transition: background .15s, color .15s; }
.fidel-hcell:hover    { background: rgba(0,122,61,.1); }
.fidel-hcell.col-active { background: var(--gold-light, #fdf5e0); color: var(--gold, #D4A017); }
.fidel-cell.col-active  { outline: 2px solid var(--gold, #D4A017); outline-offset: -2px; background: rgba(212,160,23,.08); }

/* Tweak 4+8: Toast */
.fidel-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(20,20,20,.9);
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: .83rem;
  font-family: var(--font-sans);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.fidel-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Tweak 5: Category filter chips */
.fidel-words-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.fidel-words-search { margin-bottom: 0; flex: 1; min-width: 180px; }
.fidel-cat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fidel-chip {
  padding: 5px 13px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all .15s;
}
.fidel-chip:hover  { border-color: var(--green); color: var(--green); }
.fidel-chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* Tweak 6: Quiz button */
.fidel-quiz-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--green);
  background: none;
  color: var(--green);
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all .15s;
  white-space: nowrap;
}
.fidel-quiz-btn:hover { background: var(--green); color: #fff; }
/* Quiz overlay */
.fidel-quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  gap: 18px;
  padding: 24px;
}
.fidel-quiz-card {
  background: var(--bg);
  border-radius: 22px;
  padding: 36px 28px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,.35);
  transition: transform .2s;
}
.fidel-quiz-card.flipped { transform: scale(1.02); }
.fidel-quiz-tigrinya {
  font-family: var(--font-ethiopic);
  font-size: 3.8rem;
  line-height: 1.2;
  color: var(--text);
}
.fidel-quiz-roman   { font-size: 1.1rem; font-weight: 700; color: var(--green); }
.fidel-quiz-meaning { font-size: .88rem; color: var(--text-muted); margin-top: 2px; }
.fidel-quiz-flip {
  margin-top: 10px;
  padding: 10px 26px;
  border-radius: 10px;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s;
}
.fidel-quiz-flip:hover { background: var(--green-dark); }
.fidel-quiz-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fidel-quiz-prev, .fidel-quiz-next {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s;
}
.fidel-quiz-prev:hover, .fidel-quiz-next:hover { background: rgba(255,255,255,.18); }
.fidel-quiz-counter { color: rgba(255,255,255,.6); font-size: .83rem; font-family: var(--font-sans); min-width: 60px; text-align: center; }
.fidel-quiz-close {
  padding: 7px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: none;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color .15s;
}
.fidel-quiz-close:hover { color: #fff; }

/* Tweak 7: Letter of the Day */
.fidel-lotd { margin-bottom: 18px; }
.fidel-lotd-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(0,122,61,.07), rgba(65,137,221,.07));
  border: 1px solid rgba(0,122,61,.18);
  border-radius: 14px;
  padding: 14px 20px;
  position: relative;
}
.fidel-lotd-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--bg);
  padding: 0 6px;
  font-family: var(--font-sans);
}
.fidel-lotd-char {
  font-family: var(--font-ethiopic);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--text);
}
.fidel-lotd-info { flex: 1; }
.fidel-lotd-sound {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .03em;
}
.fidel-lotd-meta {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-sans);
}
.fidel-lotd-speak {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--green);
  background: none;
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all .15s;
  white-space: nowrap;
}
.fidel-lotd-speak:hover { background: var(--green); color: #fff; }

/* Tweak 8: Audio pulse animation */
@keyframes fidel-pulse {
  0%, 100% { transform: scale(1);    border-color: var(--green); }
  50%       { transform: scale(1.14); border-color: var(--green-dark, #005a2d); background: rgba(0,122,61,.28); }
}
.fidel-cell.speaking {
  animation: fidel-pulse .45s ease 2;
  z-index: 1;
  position: relative;
}

/* Tweak 9: Sticky column headers */
.fidel-header-row {
  position: sticky;
  top: 64px;
  background: var(--bg);
  z-index: 6;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
html.dark .fidel-header-row { background: var(--bg); }

/* Tweak 10: Learned word cards */
.fwc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.fwc-learn {
  background: none;
  border: none;
  font-size: .9rem;
  cursor: pointer;
  opacity: .4;
  padding: 0;
  line-height: 1;
  transition: opacity .15s, color .15s;
  color: var(--text-muted);
}
.fwc-learn:hover { opacity: 1; color: var(--green); }
.fidel-word-card.learned {
  border-color: rgba(0,122,61,.4);
  background: rgba(0,122,61,.06);
}
.fidel-word-card.learned .fwc-learn { opacity: 1; color: var(--green); }

/* ============================================
   TWEAK 1 — GLASS CARDS (all section cards)
   ============================================ */
.timeline-card, .geo-card, .ethnic-card, .culture-card, .economy-card,
.gov-card, .lang-card, .religion-card, .tourism-card, .famous-card,
.geo-borders, .asmara-content {
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
}
html.dark .timeline-card, html.dark .geo-card, html.dark .ethnic-card,
html.dark .culture-card, html.dark .economy-card, html.dark .gov-card,
html.dark .lang-card, html.dark .religion-card, html.dark .tourism-card,
html.dark .famous-card, html.dark .geo-borders, html.dark .asmara-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   TWEAK 2 — SKELETON SHIMMER LOADERS
   ============================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel {
  background: linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.13) 50%,rgba(0,0,0,.06) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  display: block;
}
html.dark .skel {
  background: linear-gradient(90deg,rgba(255,255,255,.05) 25%,rgba(255,255,255,.13) 50%,rgba(255,255,255,.05) 75%);
  background-size: 600px 100%;
}
.gallery-skel-wrap {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-top: 8px;
}
.gallery-skel-item {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
@media(max-width:768px) { .gallery-skel-wrap { grid-template-columns: repeat(2,1fr); } }

/* ============================================
   TWEAK 3 — HERO STATS BAR
   ============================================ */
.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 0 40px;
  animation: heroSlideUp 0.5s ease both 0.98s;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  min-width: 80px;
  flex: 1;
  transition: var(--transition);
}
.hero-stat:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.hs-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hs-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ============================================
   TWEAK 4 — MAP LOAD SPINNER
   ============================================ */
.eritrea-map-wrap { position: relative; }
.map-spinner-wrap {
  position: absolute; inset: 0; z-index: 500;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: rgba(212,233,212,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  font-size: 0.85rem; color: #555;
  transition: opacity 0.5s ease;
}
html.dark .map-spinner-wrap { background: rgba(15,17,23,0.75); color: #94a3b8; }
.map-spinner-wrap.gone { opacity: 0; pointer-events: none; }
.map-spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(0,122,61,0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: mapSpin 0.85s linear infinite;
}
@keyframes mapSpin { to { transform: rotate(360deg); } }

/* ============================================
   TWEAK 5 — SECTION FADE-IN REVEAL
   ============================================ */
.section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   HERO MAP VISUALIZATION
   ============================================ */
.hero-map-viz {
  flex-shrink: 0;
  width: min(340px, 36vw);
  align-self: flex-start;
  margin-top: -20px;
  overflow: visible;
  padding-right: 12px;
  container-type: inline-size;
}
.eri-map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(80,180,255,0.4)) drop-shadow(0 0 8px rgba(0,122,61,0.3));
}

/* Coordinate grid */
.eri-grid line {
  stroke: rgba(100,200,255,0.1);
  stroke-width: 0.6;
  stroke-dasharray: 4 4;
}
.eri-grid text {
  fill: rgba(100,200,255,0.28);
  font-family: monospace;
  font-size: 5.5px;
}

/* City dot tooltips */
.city-node { cursor: pointer; }
.city-tip  { opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }
.city-node:hover .city-tip,
.city-node:focus-within .city-tip { opacity: 1; }

/* City labels — fade in after border draw */
.eri-labels {
  opacity: 0;
  animation: eriLabelsFade 0.7s ease forwards 3.8s;
}
@keyframes eriLabelsFade { to { opacity: 1; } }

/* Border draw animation */
.eri-border-draw {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: eriBorderDraw 3.5s ease forwards 0.5s;
}
@keyframes eriBorderDraw { to { stroke-dashoffset: 0; } }

/* Connection lines */
.eri-conn {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: eriConnDraw 1.5s ease forwards;
}
.eri-conn:nth-of-type(1)  { animation-delay: 1.2s; }
.eri-conn:nth-of-type(2)  { animation-delay: 1.5s; }
.eri-conn:nth-of-type(3)  { animation-delay: 1.8s; }
.eri-conn:nth-of-type(4)  { animation-delay: 2.0s; }
.eri-conn:nth-of-type(5)  { animation-delay: 2.2s; }
.eri-conn:nth-of-type(6)  { animation-delay: 2.4s; }
.eri-conn:nth-of-type(7)  { animation-delay: 2.6s; }
@keyframes eriConnDraw { to { stroke-dashoffset: 0; } }

/* Scan line */
.eri-scan {
  animation: eriScanMove 5s linear infinite;
}
@keyframes eriScanMove {
  0%   { transform: translateY(-440px); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(880px); opacity: 0; }
}

/* Glowing halo behind map */
.hero-map-viz {
  position: relative;
}
.hero-map-viz::before {
  content: '';
  position: absolute;
  inset: -15% -12%;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(30,80,160,0.22) 0%,
    rgba(20,50,120,0.14) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.eri-map-svg { position: relative; z-index: 1; }

/* Hide read-time and TTS badges in hero — not suited for the showcase area */
.hero-text .read-time-badge,
.hero-text .tts-btn { display: none !important; }

/* Mobile: stack vertically, map on top */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 80px 24px 40px;
    gap: 28px;
  }
  .hero-text { width: 100%; }
  .hero-text h1 { text-align: center; }
  .hero-subtitle, .hero-desc { text-align: center; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-badges, .hero-btn-group { justify-content: center; }
  .hero-stats { padding: 0 20px; }
  .hero-map-viz { width: min(200px, 60vw); order: -1; }
}

/* ══════════════════════════════════════════════════════════════
   LIQUID GLASS REDESIGN — EritreanInfo
   Apple Liquid Glass: immersive background, floating glass UI
   Shape system: fixed (14px) · capsule (999px) · concentric
══════════════════════════════════════════════════════════════ */
:root {
  --lg-blur:    blur(28px) saturate(2.2) brightness(1.04);
  --lg-blur-sm: blur(16px) saturate(1.8);
  --lg-shine:   inset 0 1px 0 rgba(255,255,255,0.48);
  --lg-shine-d: inset 0 1px 0 rgba(255,255,255,0.12);
  --capsule:    999px;
}
/* Immersive background: Eritrean sunrise over Red Sea */
body {
  background:
    radial-gradient(ellipse 130% 70% at 50% -8%, rgba(0,100,45,0.42) 0%, transparent 52%),
    radial-gradient(ellipse 75% 55% at 88% 18%, rgba(65,137,221,0.28) 0%, transparent 48%),
    radial-gradient(ellipse 65% 50% at 8% 72%,  rgba(0,100,45,0.22) 0%, transparent 50%),
    linear-gradient(172deg, #091510 0%, #0d2418 22%, #0e2e1c 45%, #0b1f2e 68%, #071422 100%) !important;
  background-attachment: fixed !important;
  color: rgba(255,255,255,0.90) !important;
}
html.dark body {
  background:
    radial-gradient(ellipse 110% 65% at 50% -5%, rgba(0,65,25,0.55) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 14%, rgba(40,80,160,0.24) 0%, transparent 45%),
    linear-gradient(172deg, #040c07 0%, #050c06 30%, #040810 65%, #030508 100%) !important;
  background-attachment: fixed !important;
}
/* Navbar: deep Eritrean green Liquid Glass */
#navbar {
  background: rgba(0,40,16,0.62) !important;
  backdrop-filter: var(--lg-blur) !important;
  -webkit-backdrop-filter: var(--lg-blur) !important;
  border-bottom: 1.5px solid rgba(0,200,80,0.24) !important;
  box-shadow: var(--lg-shine-d), 0 4px 32px rgba(0,30,10,0.40) !important;
  border-image: none !important;
}
html.dark #navbar { background: rgba(0,18,6,0.82) !important; border-bottom-color: rgba(0,180,70,0.16) !important; }
.nav-logo { color: white !important; }
.nav-logo strong { color: #4ade80 !important; }
.nav-menu-btn { border-radius: var(--capsule) !important; background: rgba(0,180,80,0.22) !important; border: 1.5px solid rgba(0,220,90,0.30) !important; }
.nav-menu-btn:hover { background: rgba(0,200,80,0.32) !important; }
.nav-icon-btn, .dark-toggle, .nav-search-btn, .lang-picker-btn {
  background: rgba(255,255,255,0.14) !important; border: 1.5px solid rgba(255,255,255,0.20) !important;
  border-radius: var(--capsule) !important; color: white !important;
}
.nav-icon-btn:hover, .dark-toggle:hover, .nav-search-btn:hover { background: rgba(255,255,255,0.24) !important; }
/* Nav dropdown */
.nav-dropdown {
  background: rgba(4,22,10,0.92) !important;
  backdrop-filter: var(--lg-blur) !important; -webkit-backdrop-filter: var(--lg-blur) !important;
  border-top: 1.5px solid rgba(0,180,70,0.20) !important;
  box-shadow: 0 18px 60px rgba(0,15,6,0.65) !important;
}
html.dark .nav-dropdown { background: rgba(1,7,3,0.96) !important; }
.nav-dd-item { border-radius: 10px !important; color: rgba(255,255,255,0.70) !important; font-weight: 500 !important; }
.nav-dd-item:hover, .nav-dd-item.active { background: rgba(0,180,70,0.18) !important; color: #4ade80 !important; }
/* Language dropdown */
.lang-dropdown {
  background: rgba(4,22,10,0.94) !important; backdrop-filter: var(--lg-blur) !important; -webkit-backdrop-filter: var(--lg-blur) !important;
  border: 1.5px solid rgba(0,180,70,0.22) !important; border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0,15,6,0.65) !important;
}
.lang-opt { border-radius: 10px !important; color: rgba(255,255,255,0.72) !important; }
.lang-opt.active, .lang-opt:hover { background: rgba(0,180,70,0.18) !important; color: #4ade80 !important; }
/* Word of Day strip */
.wod-bar {
  background: rgba(0,35,14,0.75) !important; backdrop-filter: var(--lg-blur-sm) !important; -webkit-backdrop-filter: var(--lg-blur-sm) !important;
  border-bottom: 1.5px solid rgba(0,180,70,0.20) !important; color: rgba(255,255,255,0.88) !important;
}
/* Hero */
.hero-section { background: transparent !important; }
.hero-text h1, .hero-title { color: white !important; font-weight: 900 !important; }
.hero-subtitle, .hero-desc { color: rgba(255,255,255,0.72) !important; }
/* Section cards: Liquid Glass panels */
.timeline-card,.geo-card,.ethnic-card,.culture-card,.economy-card,.gov-card,
.lang-card,.religion-card,.tourism-card,.famous-card,.asmara-content,.geo-borders,
.overview-text,.translator-card,.live-card,.stat-card,.community-card,.news-card {
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: var(--lg-blur) !important; -webkit-backdrop-filter: var(--lg-blur) !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  box-shadow: var(--lg-shine), 0 8px 40px rgba(0,20,8,0.38) !important;
}
html.dark .timeline-card,html.dark .geo-card,html.dark .ethnic-card,html.dark .culture-card,
html.dark .economy-card,html.dark .gov-card,html.dark .lang-card,html.dark .religion-card,
html.dark .tourism-card,html.dark .famous-card,html.dark .asmara-content,html.dark .geo-borders,
html.dark .overview-text {
  background: rgba(255,255,255,0.055) !important; border-color: rgba(255,255,255,0.10) !important;
  box-shadow: var(--lg-shine-d), 0 8px 32px rgba(0,0,0,0.50) !important;
}
/* Headings bold on dark bg */
.section-header h2,.timeline-card h3,.geo-card h3,.culture-card h3,.economy-card h3,
.gov-card h3,.lang-card h3,.religion-card h4,.tourism-card h3,.asmara-text h3,
.asmara-text h4,.geo-borders h3,.religion-section h3,.famous-name {
  color: rgba(255,255,255,0.95) !important; font-weight: 800 !important;
}
.section-header p,.timeline-card p,.geo-card p,.culture-card p,.economy-card p,
.gov-card p,.lang-card p,.religion-card p,.tourism-card p,.asmara-text p,
.overview-text p,.famous-info p { color: rgba(255,255,255,0.65) !important; }
/* Section tag chip */
.section-tag { background: rgba(0,180,70,0.20) !important; color: #4ade80 !important; border-radius: var(--capsule) !important; border: 1px solid rgba(0,200,80,0.28) !important; }
/* All buttons: capsule shapes */
.btn,.btn-primary,.btn-secondary,.cta-btn,.hero-btn,.hero-cta-btn,.nav-dd-app-btn,
.filter-btn,.tab-btn,.share-story-float,.read-more-btn,.section-cta-btn,
.translator-btn,.wod-close,.install-confirm-btn,.global-search-btn {
  border-radius: var(--capsule) !important;
}
.tab-btn.active { box-shadow: 0 0 16px rgba(0,180,70,0.50), var(--shadow) !important; }
.filter-btn.active { background: var(--green) !important; color: white !important; box-shadow: 0 0 12px rgba(0,180,70,0.44) !important; }
.share-story-float { box-shadow: 0 6px 28px rgba(0,122,61,0.55) !important; }
/* Reading progress */
.reading-progress { background: linear-gradient(to right, #007A3D, #4ade80, #4189DD) !important; height: 3px !important; }
/* Footer */
footer, #footer, .site-footer {
  background: rgba(0,18,7,0.82) !important; backdrop-filter: var(--lg-blur-sm) !important;
  border-top: 1.5px solid rgba(0,180,70,0.16) !important;
}
/* Concentric shapes */
.timeline-card,.overview-text,.asmara-content { border-radius: 20px !important; }
.geo-card,.culture-card,.economy-card,.gov-card,.lang-card,.religion-card,.tourism-card,.famous-card,.stat-card,.live-card { border-radius: 14px !important; }
/* Global search */
#globalSearchModal,.global-search-modal {
  background: rgba(2,12,5,0.88) !important; backdrop-filter: var(--lg-blur) !important; -webkit-backdrop-filter: var(--lg-blur) !important;
}

/* ══════════════════════════════════════════════════════════════
   iOS DARK MODE STYLE — Clean & Soft
   Deep navy base · elevated panels · iOS capsule buttons
   #1c1c2e bg · #252538 cards · #0A84FF blue · #FF3B30 red
══════════════════════════════════════════════════════════════ */
:root {
  --ios-bg:       #1c1c2e;
  --ios-bg2:      #252538;
  --ios-bg3:      #2e2e44;
  --ios-blue:     #0A84FF;
  --ios-red:      #FF3B30;
  --ios-green:    #34C759;
  --ios-text:     rgba(255,255,255,0.96);
  --ios-text2:    rgba(255,255,255,0.55);
  --ios-text3:    rgba(255,255,255,0.32);
  --ios-border:   rgba(255,255,255,0.10);
  --ios-border2:  rgba(255,255,255,0.06);
  --ios-capsule:  999px;
  --ios-r:        18px;
  --ios-r-sm:     12px;
  --ios-shadow:   0 4px 24px rgba(0,0,0,0.35);
  --ios-shadow-lg:0 12px 48px rgba(0,0,0,0.55);
}
/* ── Base ── */
body {
  background: var(--ios-bg) !important;
  background-attachment: initial !important;
  color: var(--ios-text) !important;
}
/* ── Navbar ── */
#navbar {
  background: rgba(28,28,46,0.92) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-bottom: 1px solid var(--ios-border) !important;
  box-shadow: 0 1px 0 var(--ios-border2) !important;
}
html.dark #navbar { background: rgba(20,20,36,0.95) !important; }
.nav-logo { color: var(--ios-text) !important; }
.nav-logo strong { color: #4ade80 !important; }
.nav-menu-btn {
  background: var(--ios-blue) !important;
  border: none !important;
  border-radius: var(--ios-capsule) !important;
  box-shadow: none !important;
}
.nav-menu-btn:hover { background: #0070e0 !important; }
.nav-icon-btn, .dark-toggle, .nav-search-btn, .lang-picker-btn {
  background: var(--ios-bg3) !important;
  border: 1px solid var(--ios-border) !important;
  border-radius: var(--ios-capsule) !important;
  color: var(--ios-text) !important;
}
/* ── Nav dropdown ── */
.nav-dropdown {
  background: var(--ios-bg2) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid var(--ios-border) !important;
  box-shadow: var(--ios-shadow-lg) !important;
}
.nav-dd-item { border-radius: 10px !important; color: var(--ios-text2) !important; font-weight: 500 !important; }
.nav-dd-item:hover, .nav-dd-item.active { background: rgba(10,132,255,0.15) !important; color: var(--ios-blue) !important; }
/* ── Language dropdown ── */
.lang-dropdown {
  background: var(--ios-bg2) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--ios-border) !important; border-radius: 16px !important; box-shadow: var(--ios-shadow-lg) !important;
}
.lang-opt { border-radius: 10px !important; color: var(--ios-text2) !important; }
.lang-opt.active, .lang-opt:hover { background: rgba(10,132,255,0.15) !important; color: var(--ios-blue) !important; }
/* ── Word of Day strip ── */
.wod-bar { background: var(--ios-bg2) !important; border-bottom: 1px solid var(--ios-border) !important; color: var(--ios-text) !important; backdrop-filter: none !important; }
/* ── Hero ── */
.hero-section { background: transparent !important; }
.hero-text h1, .hero-title { color: var(--ios-text) !important; font-weight: 800 !important; }
.hero-subtitle, .hero-desc { color: var(--ios-text2) !important; }
/* ── Section cards: iOS elevated panels ── */
.timeline-card,.geo-card,.ethnic-card,.culture-card,.economy-card,.gov-card,
.lang-card,.religion-card,.tourism-card,.famous-card,.asmara-content,.geo-borders,
.overview-text,.translator-card,.live-card,.stat-card,.community-card,.news-card {
  background: var(--ios-bg2) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid var(--ios-border) !important;
  box-shadow: var(--ios-shadow) !important;
  color: var(--ios-text) !important;
}
/* Card text */
.section-header h2,.timeline-card h3,.geo-card h3,.culture-card h3,.economy-card h3,
.gov-card h3,.lang-card h3,.religion-card h4,.tourism-card h3,.asmara-text h3,
.asmara-text h4,.geo-borders h3,.religion-section h3,.famous-name {
  color: var(--ios-text) !important; font-weight: 700 !important;
}
.section-header p,.timeline-card p,.geo-card p,.culture-card p,.economy-card p,
.gov-card p,.lang-card p,.religion-card p,.tourism-card p,.asmara-text p,
.overview-text p,.famous-info p { color: var(--ios-text2) !important; }
/* Section tag */
.section-tag { background: rgba(10,132,255,0.18) !important; color: var(--ios-blue) !important; border-radius: var(--ios-capsule) !important; border: none !important; }
/* ── Buttons: iOS capsule style ── */
.btn,.btn-primary,.cta-btn,.hero-btn,.hero-cta-btn,.nav-dd-app-btn,
.share-story-float,.read-more-btn,.section-cta-btn,.translator-btn,.install-confirm-btn {
  border-radius: var(--ios-capsule) !important;
  background: var(--ios-blue) !important;
  color: white !important;
  border: none !important;
  box-shadow: none !important;
}
.btn-secondary { border-radius: var(--ios-capsule) !important; background: var(--ios-bg3) !important; color: var(--ios-text) !important; border: 1px solid var(--ios-border) !important; box-shadow: none !important; }
.filter-btn, .tab-btn { border-radius: var(--ios-capsule) !important; background: var(--ios-bg3) !important; color: var(--ios-text2) !important; border: 1px solid var(--ios-border) !important; }
.tab-btn.active,.filter-btn.active { background: var(--ios-blue) !important; color: white !important; border-color: transparent !important; box-shadow: none !important; }
.share-story-float { background: var(--ios-blue) !important; box-shadow: var(--ios-shadow) !important; }
.wod-close { background: var(--ios-bg3) !important; border-radius: var(--ios-capsule) !important; color: var(--ios-text2) !important; }
/* Reading progress */
.reading-progress { background: var(--ios-blue) !important; height: 3px !important; }
/* Footer */
footer,#footer,.site-footer { background: var(--ios-bg2) !important; backdrop-filter: none !important; border-top: 1px solid var(--ios-border) !important; }
/* Shape radii */
.timeline-card,.overview-text,.asmara-content { border-radius: 20px !important; }
.geo-card,.culture-card,.economy-card,.gov-card,.lang-card,.religion-card,.tourism-card,.famous-card,.stat-card,.live-card { border-radius: var(--ios-r) !important; }
/* Search modal */
#globalSearchModal,.global-search-modal { background: rgba(14,14,22,0.90) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; }
/* Install banner */
.install-banner-inner { background: var(--ios-bg2) !important; backdrop-filter: none !important; border: 1px solid var(--ios-border) !important; border-radius: 16px !important; box-shadow: var(--ios-shadow) !important; }

/* ════════════════════════════════════
   iOS COMPONENT SYSTEM — EritreanInfo
════════════════════════════════════ */
/* Segmented tab / filter pill container */
.tabs, .filter-tabs, .tab-group {
  background: rgba(118,118,128,0.16) !important;
  border-radius: 999px !important;
  padding: 3px !important; gap: 1px !important;
}
.tab-btn, .filter-btn {
  background: transparent !important; border: none !important;
  border-radius: 999px !important; transition: background .2s, color .2s !important;
}
.tab-btn.active, .filter-btn.active {
  background: #0A84FF !important; color: white !important;
  box-shadow: 0 1px 6px rgba(10,132,255,.30) !important;
}
html.dark .tabs, html.dark .filter-tabs { background: rgba(118,118,128,0.22) !important; }

/* iOS range sliders */
input[type="range"], .mpf-volume-slider {
  -webkit-appearance: none; appearance: none;
  height: 4px !important; background: rgba(255,255,255,.18) !important;
  border-radius: 4px !important; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb,
.mpf-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 22px; height: 22px; border-radius: 50%;
  background: white !important; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.28) !important;
}

/* ════════════════════════════════════
   POLISH — 2025
════════════════════════════════════ */

/* Offline toast — theme-aware */
.offline-toast {
  background: var(--dark) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
html.dark .offline-toast {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Install modal — lighter backdrop + better box polish */
.install-modal { background: rgba(0,0,0,0.65) !important; }
.install-modal-box {
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.70) !important;
}

/* Hero "install" button is now the only entry point — make it stand out more */
.hero-install-btn {
  border: 1.5px solid rgba(255,255,255,0.45) !important;
  font-weight: 700 !important;
}
.hero-install-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.7) !important;
}

/* Nav download button — cleaner */
#navDownloadBtn {
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 8px;
  padding: 6px 14px;
  color: rgba(255,255,255,0.8);
  transition: background .2s, border-color .2s;
}
#navDownloadBtn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.55);
  color: white;
}

/* Section card hover lift — consistent across all card types */
.geo-card, .culture-card, .economy-card, .gov-card,
.lang-card, .religion-card, .tourism-card, .famous-card,
.ethnic-card, .live-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.geo-card:hover, .culture-card:hover, .economy-card:hover, .gov-card:hover,
.lang-card:hover, .religion-card:hover, .tourism-card:hover, .famous-card:hover,
.ethnic-card:hover, .live-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
}
html.dark .geo-card:hover, html.dark .culture-card:hover, html.dark .economy-card:hover,
html.dark .gov-card:hover, html.dark .lang-card:hover, html.dark .religion-card:hover,
html.dark .tourism-card:hover, html.dark .famous-card:hover, html.dark .ethnic-card:hover,
html.dark .live-card:hover {
  background: rgba(255,255,255,0.09) !important;
}

/* Section headers — stronger hierarchy in dark mode */
html.dark .section-header h2 {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav dropdown item hover in dark mode */
html.dark .nav-dd-item:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* Reading progress bar — flag colors */
.reading-progress {
  background: linear-gradient(to right, var(--green), var(--blue), var(--red)) !important;
}
