/* ============================================
   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: #1a1e2e;
  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: #1a1e2e; }
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 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: 480px; }
.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-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;
  align-items: center;
  justify-content: center;
  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: 6px;
  height: 33.33%;
  opacity: 0.8;
}
.hero-flag-stripe.green { top: 0; background: var(--green); }
.hero-flag-stripe.blue  { top: 33.33%; background: var(--blue); }
.hero-flag-stripe.red   { top: 66.66%; background: var(--red); }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-text h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  color: white;
  letter-spacing: -2px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ethiopic);
  margin-bottom: 24px;
  letter-spacing: 4px;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 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: center;
  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: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}
.hero-btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 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;
}
.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);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   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(auto-fill, minmax(130px, 1fr)); padding: 14px 16px; }
  .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  (top-left)
   ============================================ */
.anthem-player {
  position: fixed;
  top: 68px;
  left: 0;
  width: 272px;
  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; }

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: 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; }
.blog-card:hover { transform: translateY(-4px); }
.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; font-size: .78rem; color: var(--text-muted); }
.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: var(--green);
  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(0,122,61,0.45);
  transition: background 0.2s;
  user-select: none;
}
.music-phone-tab:hover { background: var(--green-dark,#005a2d); }
.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: 555px;
  background: #12141e;
  border-radius: 38px;
  border: 3px solid #252840;
  box-shadow: -4px 4px 48px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mpf-notch {
  width: 80px;
  height: 18px;
  background: #0a0b12;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}
.mpf-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: -2px;
}
.mpf-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 16px 0;
  font-size: 0.6rem;
  color: #6b7280;
  font-family: var(--font-sans);
}
.mpf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mpf-app-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f0f0f5;
  letter-spacing: 0.3px;
  font-family: var(--font-sans);
}
.mpf-close-btn {
  color: #6b7280;
  cursor: pointer;
  font-size: 0.78rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  transition: all 0.2s;
  line-height: 1;
}
.mpf-close-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.mpf-logo { font-size: 1rem; line-height: 1; }

/* Now playing */
.mpf-now-playing {
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(0,122,61,0.12) 0%, transparent 100%);
}
.mpf-disc {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #1e2035, #0a0b12);
  border: 3px solid rgba(0,122,61,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 22px rgba(0,122,61,0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
/* ── Disc (spinning) ── */
.mpf-disc-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.mpf-disc-ring {
  position: absolute; width: 108px; height: 108px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#12141e,#12141e) padding-box,
              linear-gradient(135deg,#007A3D,#4ade80,#007A3D) border-box;
  opacity: 0; transition: opacity .4s;
  animation: mpfRingPulse 2.5s ease-in-out infinite;
}
.mpf-disc-ring.active { opacity: 1; }
@keyframes mpfRingPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
.mpf-disc {
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #1e2035, #0a0b12);
  border: 3px solid rgba(0,122,61,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; box-shadow: 0 0 24px rgba(0,122,61,0.3);
  transition: border-color .3s, box-shadow .3s; will-change: transform;
}
.mpf-disc.spinning {
  animation: mpfDiscSpin 6s linear infinite;
  border-color: #007A3D; box-shadow: 0 0 36px rgba(0,122,61,0.5);
}
@keyframes mpfDiscSpin { to { transform: rotate(360deg); } }

/* ── Track info row ── */
.mpf-track-info-row {
  display: flex; align-items: center; width: 100%; gap: 8px;
}
.mpf-track-info { flex: 1; min-width: 0; text-align: center; }
.mpf-track-title {
  font-size: .83rem; font-weight: 700; color: #f0f0f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-sans);
}
.mpf-track-artist { font-size: .68rem; color: #9ca3af; margin-top: 2px; font-family: var(--font-sans); }

/* ── Like button ── */
.mpf-like-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: #4b5563; transition: color .2s, transform .15s;
  flex-shrink: 0; padding: 2px;
}
.mpf-like-btn:hover { transform: scale(1.2); }
.mpf-like-btn.liked { color: #ef4444; }

/* ── Progress ── */
.mpf-progress-wrap { width: 100%; }
.mpf-progress-bar {
  height: 5px; background: rgba(255,255,255,.08); border-radius: 3px;
  cursor: pointer; position: relative; transition: height .2s;
}
.mpf-progress-bar:hover { height: 7px; }
.mpf-progress-fill {
  height: 100%; background: linear-gradient(90deg,var(--green),#4ade80);
  border-radius: 3px; width: 0%; transition: width .4s linear;
  pointer-events: none;
}
.mpf-progress-thumb {
  position: absolute; top: 50%; right: auto; width: 12px; height: 12px;
  background: #fff; border-radius: 50%; transform: translate(-50%,-50%);
  box-shadow: 0 0 6px rgba(0,122,61,.6); opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.mpf-progress-bar:hover .mpf-progress-thumb { opacity: 1; }
.mpf-time-row {
  display: flex; justify-content: space-between;
  font-size: .57rem; color: #6b7280; margin-top: 4px;
  font-family: var(--font-sans); font-variant-numeric: tabular-nums;
}

/* ── Controls row ── */
.mpf-controls-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mpf-controls { display: flex; align-items: center; gap: 10px; }
.mpf-ctrl-btn {
  background: rgba(255,255,255,.06); border: none; border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; color: #e5e7eb;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .1s; line-height: 1;
}
.mpf-ctrl-btn:hover { background: rgba(255,255,255,.13); }
.mpf-ctrl-btn:active { transform: scale(.88); }
.mpf-play-btn {
  width: 52px !important; height: 52px !important;
  background: var(--green) !important; font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(0,122,61,.55);
}
.mpf-play-btn:hover { background: #005a2d !important; }
.mpf-mode-btn {
  background: none; border: none; cursor: pointer;
  color: #4b5563; font-size: 1rem; padding: 6px;
  border-radius: 8px; transition: color .2s, background .2s;
}
.mpf-mode-btn:hover { color: #9ca3af; background: rgba(255,255,255,.05); }
.mpf-mode-btn.active { color: #4ade80; }

/* ── Volume ── */
.mpf-volume-row { display: flex; align-items: center; gap: 6px; width: 100%; }
.mpf-vol-icon { font-size: .8rem; }
.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: 12px; height: 12px; border-radius: 50%;
  background: var(--green); cursor: pointer; box-shadow: 0 0 6px rgba(0,122,61,.5);
}
.mpf-volume-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--green);
  cursor: pointer; border: none;
}

/* ── Visualizer ── */
.mpf-viz {
  display: flex; align-items: flex-end; gap: 2.5px;
  height: 18px; opacity: 0; transition: opacity .3s; justify-content: center;
}
.mpf-viz.active { opacity: 1; }
.mpf-viz span { width: 3px; background: linear-gradient(to top,var(--green),#4ade80); 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 header ── */
.mpf-playlist-header {
  padding: 6px 12px 4px; border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 5px;
}
.mpf-plist-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .7rem; color: #9ca3af; font-weight: 600; font-family: var(--font-sans);
}
.mpf-plist-label { display: flex; align-items: center; gap: 4px; }
.mpf-track-count { font-size: .62rem; opacity: .7; }
.mpf-search-wrap { position: relative; }
.mpf-search {
  width: 100%; background: rgba(255,255,255,.06); 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: #6b7280; }
.mpf-search:focus { border-color: rgba(0,122,61,.5); }
.mpf-filter-row { display: flex; gap: 5px; }
.mpf-filter-btn {
  font-size: .62rem; font-weight: 600; padding: 2px 8px;
  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(0,122,61,.25); color: #4ade80; border-color: rgba(0,122,61,.4); }
.mpf-filter-btn:hover:not(.active) { border-color: rgba(255,255,255,.2); color: #9ca3af; }

/* ── Playlist rows ── */
.mpf-playlist {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(0,122,61,.4) transparent;
}
.mpf-playlist::-webkit-scrollbar { width: 3px; }
.mpf-playlist::-webkit-scrollbar-thumb { background: rgba(0,122,61,.4); border-radius: 2px; }
.mpf-loading {
  text-align: center; color: #6b7280; font-size: .72rem;
  padding: 20px 14px; font-family: var(--font-sans);
}
.mpf-track-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .15s;
}
.mpf-track-row:hover { background: rgba(255,255,255,.05); }
.mpf-track-row.active { background: rgba(0,122,61,.2); }
.mpf-track-playing-icon {
  display: flex; align-items: flex-end; gap: 1.5px; height: 14px;
  flex-shrink: 0; width: 18px;
}
.mpf-track-playing-icon span {
  width: 2.5px; background: #4ade80; 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: .62rem; color: #6b7280; min-width: 16px; text-align: right;
  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: .73rem; color: #e5e7eb; 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: #4ade80; }
.mpf-track-row-artist {
  font-size: .62rem; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-sans);
}
.mpf-track-row-dur { font-size: .58rem; color: #4b5563; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.mpf-track-row-like {
  background: none; border: none; cursor: pointer;
  font-size: .85rem; color: #374151; padding: 2px 4px;
  flex-shrink: 0; transition: color .2s;
}
.mpf-track-row-like.liked { color: #ef4444; }

/* ── Home bar ── */
.mpf-home-bar {
  height: 18px; display: flex; align-items: center;
  justify-content: center; background: #0a0b12;
}
.mpf-home-bar::after {
  content: ''; width: 70px; height: 3px;
  background: rgba(255,255,255,.12); border-radius: 2px;
}

/* ── Mini pill ── */
.mpf-mini-pill {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: #12141e; border: 1px solid rgba(0,122,61,.4);
  border-radius: 99px; padding: 6px 14px 6px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5); z-index: 9050;
  animation: mpfPillIn .3s ease;
  min-width: 260px;
}
@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(0,122,61,.3); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
  border: 2px solid rgba(0,122,61,.5);
}
.mpf-mini-disc.spinning { animation: mpfDiscSpin 6s linear infinite; }
.mpf-mini-info { flex: 1; min-width: 0; }
.mpf-mini-title {
  display: block; font-size: .73rem; font-weight: 700;
  color: #f0f0f5; 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: #4ade80; 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: var(--green) !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: #4ade80; }

/* Responsive */
@media (max-width: 380px) { #musicPhoneWidget > button, #musicPhoneWidget > .music-phone-frame { display: none; } }
@media (max-width: 600px) { .mpf-shell { width: 260px; height: 520px; } }

/* ══════════════════════════════════════════════════════════════
   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: #1a1a2e;
}
@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; }

/* ── NAV CENTER ANTHEM MINI PLAYER ─────────────────────── */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
@media (max-width: 860px) { .nav-center { display: none; } }
.nav-anthem-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,122,61,0.08);
  border: 1px solid rgba(0,122,61,0.18);
  border-radius: 30px;
  padding: 5px 12px 5px 6px;
  pointer-events: all;
  transition: background .2s;
}
.nav-anthem-mini:hover { background: rgba(0,122,61,0.14); }
html.dark .nav-anthem-mini {
  background: rgba(0,122,61,0.18);
  border-color: rgba(0,122,61,0.35);
}
.nam-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.nam-play:hover { background: var(--green-dark); transform: scale(1.08); }
.nam-body { display: flex; flex-direction: column; gap: 2px; }
.nam-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  line-height: 1;
}
.nam-track-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nam-track {
  width: 90px;
  height: 3px;
  background: rgba(0,122,61,0.18);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.nam-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 4px;
  transition: width .3s linear;
}
.nam-time {
  font-size: .65rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 28px;
}

/* ── 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; }
