/* ============================================================
   Folk-Sahitto — Main Stylesheet
   Color: Blue, Sky, Whitish | Font: Playfair Display + Noto Serif Bengali
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Noto+Serif+Bengali:wght@400;500;600;700&display=swap');

:root {
  --sky-50:  #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --ink:     #1e293b;
  --ink-mid: #475569;
  --ink-soft:#94a3b8;
  --white:   #ffffff;
  --paper:   #f8fafc;
  --border:  #e2e8f0;

  --primary:   var(--sky-600);
  --primary-h: var(--sky-700);
  --accent:    var(--blue-500);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(14,165,233,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(14,165,233,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(14,165,233,0.14), 0 4px 12px rgba(0,0,0,0.08);

  --ff-display: 'Playfair Display', 'Noto Serif Bengali', Georgia, serif;
  --ff-body:    'Lora', 'Noto Serif Bengali', Georgia, serif;
  --ff-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--sky-50); }
::-webkit-scrollbar-thumb { background: var(--sky-300); border-radius: 99px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--ff-display); font-weight: 700; line-height: 1.25; color: var(--sky-900); }
p { margin-bottom: 0.5rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-h); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(14,165,233,0.06);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700;
  color: var(--sky-800);
}
.nav-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-ui); font-size: 0.875rem; font-weight: 500;
  color: var(--ink-mid); padding: 0.45rem 0.85rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--sky-700); background: var(--sky-50);
}

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.lang-btn {
  font-family: var(--ff-ui); font-size: 0.8rem; font-weight: 600;
  background: var(--sky-50); border: 1.5px solid var(--sky-200);
  color: var(--sky-700); padding: 0.3rem 0.7rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.lang-btn:hover { background: var(--sky-100); border-color: var(--sky-300); }

.btn-nav-login {
  font-family: var(--ff-ui); font-size: 0.875rem; font-weight: 600;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  color: white; padding: 0.45rem 1.1rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}
.btn-nav-login:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,165,233,0.35); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink-mid); border-radius: 2px; transition: all var(--transition); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--ff-ui); font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.5rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  color: white; box-shadow: 0 2px 10px rgba(14,165,233,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,0.4); color: white; }
.btn-outline {
  background: transparent; color: var(--sky-700);
  border: 2px solid var(--sky-300);
}
.btn-outline:hover { background: var(--sky-50); border-color: var(--sky-400); color: var(--sky-800); }
.btn-ghost { background: var(--sky-50); color: var(--sky-700); }
.btn-ghost:hover { background: var(--sky-100); }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #fecaca; }
.btn-success { background: #d1fae5; color: #065f46; }
.btn-success:hover { background: #a7f3d0; }
.btn-sm { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.btn-lg { font-size: 1rem; padding: 0.85rem 2rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--sky-50); }

/* ── Form Controls ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--ff-ui); font-size: 0.85rem; font-weight: 600;
  color: var(--sky-800);
}
.form-control {
  width: 100%; padding: 0.65rem 1rem;
  font-family: var(--ff-body); font-size: 0.95rem; color: var(--ink);
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--sky-400); box-shadow: 0 0 0 3px rgba(14,165,233,0.12); }
.form-control::placeholder { color: var(--ink-soft); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ── Badges ── */
.badge {
  display: inline-block; font-family: var(--ff-ui); font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 99px; letter-spacing: 0.02em; text-transform: uppercase;
}
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-approved  { background: #d1fae5; color: #065f46; }
.badge-rejected  { background: #fee2e2; color: #991b1b; }
.badge-user      { background: var(--sky-100); color: var(--sky-800); }
.badge-volunteer { background: #ede9fe; color: #5b21b6; }
.badge-admin     { background: linear-gradient(135deg,#fde68a,#fbbf24); color: #78350f; }

/* ── Hero Section ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--sky-900) 0%, var(--sky-700) 40%, var(--sky-500) 75%, var(--sky-300) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.10)'/%3E%3C/svg%3E");
  animation: floatBg 30s linear infinite;
}
@keyframes floatBg { from { transform: translateY(0); } to { transform: translateY(-80px); } }

.hero-tagline {
  font-family: var(--ff-ui); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sky-200);
  background: rgba(255,255,255,0.1); padding: 0.35rem 1rem; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block; margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero h1 {
  color: white; font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.1;
  margin-bottom: 0.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero .hero-bn {
  font-family: 'Noto Serif Bengali', serif; font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--sky-100); margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero p {
  max-width: 620px; margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.85); font-size: 1.1rem; line-height: 1.75;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }
.hero-btns .btn-hero-primary {
  background: white; color: var(--sky-800); font-size: 1rem;
  padding: 0.8rem 2rem; border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); border: none; cursor: pointer;
  transition: all var(--transition); font-family: var(--ff-ui); font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-btns .btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.hero-btns .btn-hero-outline {
  background: rgba(255,255,255,0.15); color: white;
  border: 2px solid rgba(255,255,255,0.5); font-size: 1rem;
  padding: 0.8rem 2rem; border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); font-family: var(--ff-ui); font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  backdrop-filter: blur(8px);
}
.hero-btns .btn-hero-outline:hover { background: rgba(255,255,255,0.25); color: white; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700; color: white; }
.hero-stat .lbl { font-family: var(--ff-ui); font-size: 0.75rem; color: var(--sky-200); letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Scroll floating orbs decoration ── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.3; pointer-events: none;
}
.orb-1 { width: 350px; height: 350px; background: var(--blue-400); top: -80px; right: -80px; animation: orb1 12s ease-in-out infinite alternate; }
.orb-2 { width: 250px; height: 250px; background: var(--sky-300); bottom: 0; left: -60px; animation: orb2 15s ease-in-out infinite alternate; }
@keyframes orb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 40px) scale(1.1); } }
@keyframes orb2 { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,-30px) scale(0.9); } }

/* ── Section ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--sky-50); }
.container { max-width: 1140px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.section-title p { color: var(--ink-mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky-400), var(--blue-500));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--sky-100), var(--sky-200));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--sky-800); }
.feature-card p { color: var(--ink-mid); font-size: 0.9rem; margin: 0; }

/* ── Map ── */
#map { width: 100%; height: calc(100vh - 64px); position: relative; z-index: 1; }
.map-controls {
  position: absolute; top: 1rem; right: 1rem; z-index: 1000;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.map-filter-panel {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1rem; box-shadow: var(--shadow); min-width: 220px;
}
.map-filter-panel h4 { font-family: var(--ff-ui); font-size: 0.85rem; color: var(--sky-800); margin-bottom: 0.75rem; font-weight: 700; }

/* Leaflet popup custom */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important; border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important; padding: 0 !important; overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; }
.popup-inner { padding: 1.25rem; min-width: 220px; max-width: 280px; }
.popup-inner h4 { font-family: var(--ff-display); font-size: 1rem; color: var(--sky-900); margin-bottom: 0.4rem; }
.popup-inner p { font-size: 0.82rem; color: var(--ink-mid); margin-bottom: 0.6rem; }
.popup-inner .popup-meta { font-family: var(--ff-ui); font-size: 0.75rem; color: var(--ink-soft); }

/* ── Page Layout ── */
.page-wrapper { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: white; border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 0.2rem; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--ff-ui); font-size: 0.875rem; font-weight: 500;
  color: var(--ink-mid); padding: 0.55rem 0.85rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.sidebar-menu a:hover { color: var(--sky-700); background: var(--sky-50); }
.sidebar-menu a.active { color: var(--sky-700); background: var(--sky-100); font-weight: 600; }
.sidebar-menu .icon { font-size: 1rem; opacity: 0.7; }
.main-content { flex: 1; padding: 2rem; overflow-y: auto; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--ff-ui); font-size: 0.875rem; }
th { background: var(--sky-50); color: var(--sky-800); font-weight: 700; text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--ink); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--sky-50); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--sky-900), var(--sky-700) 60%, var(--sky-400));
  padding: 2rem 1rem;
}
.auth-card {
  background: white; border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeUp 0.5s ease;
}
.auth-card h2 { text-align: center; margin-bottom: 0.4rem; color: var(--sky-900); }
.auth-card .auth-sub { text-align: center; color: var(--ink-mid); font-size: 0.9rem; margin-bottom: 2rem; }
.auth-divider { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin: 1.25rem 0; position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 2rem);
  height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Toast ── */
.toast-container { position: fixed; top: 80px; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
  background: white; border-radius: var(--radius-sm); padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary);
  font-family: var(--ff-ui); font-size: 0.875rem; min-width: 260px; max-width: 360px;
  animation: slideIn 0.3s ease;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.toast.success { border-color: #10b981; }
.toast.error   { border-color: #ef4444; }
.toast.info    { border-color: var(--sky-500); }
.toast-close { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: 1rem; padding: 0; line-height: 1; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Leaderboard ── */
.lb-grid { display: grid; gap: 1rem; }
.lb-row {
  display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 1rem;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; transition: all var(--transition);
}
.lb-row:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.lb-rank {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem;
}
.lb-rank.gold   { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; }
.lb-rank.silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; }
.lb-rank.bronze { background: linear-gradient(135deg, #fed7aa, #f97316); color: #7c2d12; }
.lb-rank.normal { background: var(--sky-100); color: var(--sky-700); }
.lb-name { font-family: var(--ff-display); font-weight: 600; font-size: 1rem; }
.lb-meta { font-family: var(--ff-ui); font-size: 0.8rem; color: var(--ink-soft); }
.lb-count { font-family: var(--ff-ui); font-weight: 700; font-size: 1.2rem; color: var(--sky-700); text-align: right; }
.lb-reads { font-family: var(--ff-ui); font-size: 0.8rem; color: var(--ink-soft); text-align: right; }

/* ── Submit form special ── */
.variant-item {
  background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: 0.75rem; position: relative;
}
.variant-remove {
  position: absolute; top: 0.6rem; right: 0.75rem;
  background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem;
}
.variant-remove:hover { color: #ef4444; }
.location-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--sky-100); color: var(--sky-700); padding: 0.35rem 0.85rem;
  border-radius: 99px; font-family: var(--ff-ui); font-size: 0.8rem; font-weight: 500;
}

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
}
.stat-card .stat-val { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--sky-700); }
.stat-card .stat-lbl { font-family: var(--ff-ui); font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(12,74,110,0.5);
  backdrop-filter: blur(4px); z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: white; border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.25rem; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.55s 0.2s ease both; }

/* ── Loader ── */
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--sky-200);
  border-top-color: var(--sky-500); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}

/* ── Footer ── */
footer {
  background: var(--sky-900); color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; max-width: 1140px; margin: 0 auto 2rem; }
footer h4 { color: white; font-family: var(--ff-display); font-size: 1.05rem; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.4rem; }
footer ul a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color var(--transition); }
footer ul a:hover { color: white; }
.footer-bottom { max-width: 1140px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; }
.footer-credits { font-size: 0.8rem; }

/* ── Sahitto card (map sidebar / feed) ── */
.sahitto-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; transition: all var(--transition); cursor: pointer;
}
.sahitto-card:hover { box-shadow: var(--shadow); border-color: var(--sky-200); transform: translateY(-2px); }
.sahitto-card h4 { font-family: var(--ff-display); font-size: 1rem; margin-bottom: 0.4rem; color: var(--sky-900); }
.sahitto-card .excerpt { font-size: 0.85rem; color: var(--ink-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.6rem; }
.sahitto-card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.sahitto-card-meta span { font-family: var(--ff-ui); font-size: 0.75rem; color: var(--ink-soft); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 99; }
  .hamburger { display: flex; }
  .sidebar { display: none; }
  .sidebar.open { display: block; position: fixed; inset: 64px 0 0 0; z-index: 200; width: 100%; height: calc(100vh - 64px); overflow-y: auto; }
  .main-content { padding: 1.25rem; }
  .hero-stats { flex-direction: column; gap: 0.75rem; bottom: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lb-row { grid-template-columns: 40px 1fr auto; }
  .lb-reads { display: none; }
}
@media (max-width: 768px) {
  .navbar {
    padding: 0 0.75rem;
    gap: 0.5rem;
    overflow: hidden;
  }
  .nav-brand span {
    display: none;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  .btn-nav-login {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }
  #nav-user-name {
    display: none;
  }
  .hamburger {
    flex-shrink: 0;
    margin-left: 0;
  }
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}