/* ================================================
   YADUWANSHI.COM — SHARED STYLESHEET
   Hamari Pehchaan, Hamara Manch
   ================================================ */

/* ── Google Fonts are loaded per-page via <link> ── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: #FEFDF8;
  color: #1A1A1A;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CSS Variables ── */
:root {
  --maroon: #7B1D1D;
  --maroon-light: #9B2D2D;
  --maroon-dark: #5B0D0D;
  --gold: #C8970A;
  --gold-light: #E8B020;
  --gold-dark: #A87800;
  --ivory: #FEFDF8;
  --text: #1A1A1A;
  --muted: #6B7280;
  --border: rgba(200, 151, 10, 0.2);
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(123,29,29,0.1);
  --shadow-lg: 0 12px 40px rgba(123,29,29,0.15);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --transition: 0.3s ease;
}

/* ── Hindi / Devanagari Language Mode ── */
/* Applied when lang-hi class is on <html> via i18n.js */
.lang-hi body,
.lang-hi {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}
.lang-hi h1, .lang-hi h2, .lang-hi h3, .lang-hi h4, .lang-hi h5 {
  font-family: 'Noto Sans Devanagari', 'Playfair Display', serif;
  line-height: 1.5; /* Devanagari needs more line height */
}
.lang-hi .navbar-logo-sub,
.lang-hi .hero-eyebrow,
.lang-hi .hero-subtitle,
.lang-hi .section-badge,
.lang-hi .card-body,
.lang-hi p,
.lang-hi label,
.lang-hi button,
.lang-hi input,
.lang-hi select,
.lang-hi textarea,
.lang-hi a {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}
/* Larger line-height for Devanagari readability */
.lang-hi body { line-height: 1.8; }

/* ── Dark Mode ── */
body.dark-mode {
  --ivory: #0F0F0F;
  --text: #F0EFE8;
  --muted: #9CA3AF;
  --border: rgba(200, 151, 10, 0.3);
  --card-bg: #1E1E1E;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  background-color: #0F0F0F;
  color: #F0EFE8;
}
body.dark-mode .glass-card-light,
body.dark-mode .profile-card,
body.dark-mode .post-card,
body.dark-mode .event-card,
body.dark-mode .member-card,
body.dark-mode .vendor-card,
body.dark-mode .forum-item,
body.dark-mode .filter-sidebar {
  background: #1E1E1E !important;
  border-color: rgba(200, 151, 10, 0.2) !important;
  color: #F0EFE8;
}
body.dark-mode .login-card { background: #1E1E1E !important; color: #F0EFE8; }
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #2A2A2A !important;
  color: #F0EFE8 !important;
  border-color: #444 !important;
}

/* ── Navbar ── */
.navbar {
  background: rgba(123, 29, 29, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.navbar-logo-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--maroon-dark);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(200,151,10,0.4);
}
.navbar-logo-text { color: #fff; font-weight: 700; font-size: 1.125rem; line-height: 1.2; font-family: 'Playfair Display', serif; }
.navbar-logo-sub { color: #FBBF24; font-size: 0.7rem; letter-spacing: 0.05em; }
.navbar-links { display: flex; align-items: center; gap: 0.25rem; }
.navbar-links a {
  color: rgba(255,255,255,0.8);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: #FBBF24;
  background: rgba(255,255,255,0.08);
}
.navbar-links a.active { border-bottom: 2px solid #FBBF24; border-radius: 0.5rem 0.5rem 0 0; }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.bell-btn {
  position: relative;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
}
.bell-btn:hover { color: #FBBF24; background: rgba(255,255,255,0.1); }
.bell-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  background: #FBBF24;
  color: var(--maroon-dark);
  border-radius: 9999px;
  border: 1.5px solid var(--maroon);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  display: none;                    /* hidden until count > 0 */
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  /* Ensure it never disrupts parent flex layout */
  flex-shrink: 0;
}
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  color: var(--maroon-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-btn:hover { border-color: #FBBF24; transform: scale(1.05); }
.dark-toggle {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  font-size: 1rem;
}
.dark-toggle:hover { color: #FBBF24; background: rgba(255,255,255,0.1); }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.25rem; padding: 0.5rem; }
.mobile-menu {
  display: none;
  background: var(--maroon-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.mobile-menu a:hover { color: #FBBF24; background: rgba(255,255,255,0.07); }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #fff;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  max-width: 320px;
  animation: toast-in 0.35s cubic-bezier(0.22,1,0.36,1);
  pointer-events: all;
  cursor: pointer;
}
.toast.success { border-left-color: #16A34A; }
.toast.error   { border-left-color: #DC2626; }
.toast.info    { border-left-color: #2563EB; }
.toast.warning { border-left-color: #F59E0B; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast.success .toast-icon { color: #16A34A; }
.toast.error   .toast-icon { color: #DC2626; }
.toast.info    .toast-icon { color: #2563EB; }
.toast.warning .toast-icon { color: #F59E0B; }
.toast-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in  { from{opacity:0;transform:translateX(120px)} to{opacity:1;transform:translateX(0)} }
@keyframes toast-out { from{opacity:1;transform:translateX(0)}       to{opacity:0;transform:translateX(120px)} }

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, #3A0D0D 0%, #1A0505 100%);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand-logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--maroon-dark);
}
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-brand-tagline { font-size: 0.75rem; color: #FBBF24; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  font-size: 0.9rem;
}
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-weight: 600; color: #FBBF24; margin-bottom: 1rem; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #FBBF24; }
.footer-app-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-app-btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}
.footer-app-btn:hover { background: rgba(200,151,10,0.2); border-color: var(--gold); }
.footer-app-btn i { font-size: 1.5rem; color: rgba(255,255,255,0.7); }
.footer-app-btn span { display: flex; flex-direction: column; }
.footer-app-btn .store-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); }
.footer-app-btn .store-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: #FBBF24; }

/* ── Floating Chat Widget ── */
.chat-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
}
.chat-fab-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer; border: none;
  transition: all 0.3s;
  color: #fff; font-size: 1.5rem;
}
.chat-fab-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.chat-fab-label {
  background: #fff;
  color: #1A1A1A;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  animation: bounce-label 2s ease infinite;
}
@keyframes bounce-label {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-4px); }
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(123,29,29,0.35); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1A1A1A;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,151,10,0.4); }
.btn-outline {
  background: transparent;
  color: var(--maroon);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--maroon);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); }

/* ── Cards ── */
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200,151,10,0.25);
  border-radius: var(--radius-md);
}
.glass-card-light {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.card-hover {
  transition: all var(--transition);
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 0.65rem; font-weight: 600; }
.badge-gold   { background: linear-gradient(135deg, #C8970A, #E8B020); color: #1A1A1A; }
.badge-maroon { background: #7B1D1D; color: #fff; }
.badge-green  { background: #16A34A; color: #fff; }
.badge-blue   { background: #1D4ED8; color: #fff; }
.badge-purple { background: #7C3AED; color: #fff; }
.badge-gray   { background: #E5E7EB; color: #374151; }
.badge-orange { background: #EA580C; color: #fff; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--maroon); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ── Divider ── */
.gold-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.gold-divider span { color: var(--gold); font-size: 1rem; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: modal-in 0.35s cubic-bezier(0.22,1,0.36,1);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  position: sticky; top: 0;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f5f5f5; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6B7280;
  transition: all 0.2s;
}
.modal-close:hover { background: #fef2f2; color: #DC2626; }
.modal-body { padding: 1.5rem; }
@keyframes modal-in { from{opacity:0;transform:scale(0.92) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 0.4rem; }
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: #fff;
  color: #1A1A1A;
  outline: none;
}
.form-input:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(123,29,29,0.08); }
.form-input::placeholder { color: #9CA3AF; }
.form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  background: #fff;
  color: #1A1A1A;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-select:focus { border-color: var(--maroon); }
input[type="range"] { accent-color: var(--maroon); width: 100%; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type="checkbox"] { accent-color: var(--maroon); width: 16px; height: 16px; cursor: pointer; }

/* ── Progress ── */
.progress-bar { background: #E5E7EB; border-radius: 9999px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--maroon), var(--gold));
  border-radius: 9999px;
  transition: width 1s ease;
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Tabs ── */
.tab-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  background: #F3F4F6;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
}
.tab-btn.active { background: var(--maroon); color: #fff; }
.tab-btn:not(.active):hover { background: #E5E7EB; color: #374151; }

/* Tab bar wrapper — flex row so arrows sit beside the scrollable strip */
#tab-bar-inner {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Scroll arrow buttons — part of the flex flow, not absolutely positioned */
#tab-scroll-left,
#tab-scroll-right {
  width: 2.5rem;
  min-width: 2.5rem;
  min-height: 44px;
  display: none;            /* JS turns on via updateTabArrows() */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  color: #7B1D1D;
  font-size: 1rem;
  background: #fff;
  z-index: 2;
  transition: background 0.2s;
}
#tab-scroll-left  { box-shadow:  4px 0 8px rgba(255,255,255,0.9); }
#tab-scroll-right { box-shadow: -4px 0 8px rgba(255,255,255,0.9); }
#tab-scroll-left:hover,
#tab-scroll-right:hover { background: #f9f3e3; }

/* Strip itself — just scrolls, no padding tricks needed */
#tab-nav-strip {
  padding-left:  0.25rem;
  padding-right: 0.25rem;
}
/* On very large screens where all tabs fit, JS hides the arrows automatically */

/* ── Search Bar ── */
.search-bar {
  position: relative;
  display: flex; align-items: center;
}
.search-bar i {
  position: absolute; left: 1rem;
  color: #9CA3AF; font-size: 0.9rem;
  pointer-events: none;
}
.search-bar input {
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 2px solid #E5E7EB;
  border-radius: 9999px;
  width: 100%;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  background: #fff;
}
.search-bar input:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(123,29,29,0.08); }

/* ── Notification Dropdown ── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 340px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 200;
  display: none;
  overflow: hidden;
  animation: modal-in 0.25s ease;
}
.notif-dropdown.open { display: block; }
.notif-header { padding: 1rem 1.25rem; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.notif-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
  cursor: pointer;
}
.notif-item:hover { background: #fafafa; }
.notif-item.unread { background: rgba(123,29,29,0.03); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* ── Scroll-to-top ── */
.scroll-top-btn {
  position: fixed;
  bottom: 6rem; right: 2rem;
  z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(123,29,29,0.3);
  transition: all 0.3s;
  opacity: 0; pointer-events: none;
  font-size: 1rem;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(123,29,29,0.4); }

/* ── Utility ── */
.text-maroon { color: var(--maroon); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-ivory  { color: var(--ivory); }
.bg-maroon   { background: var(--maroon); }
.bg-gold     { background: var(--gold); }
.mt-page     { margin-top: 64px; }

/* ── Responsive: medium ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-actions .dark-toggle { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-box { border-radius: var(--radius-md); }
  #toast-container { left: 1rem; right: 1rem; }
  .toast { max-width: 100%; }
  .chat-fab { bottom: 1.25rem; right: 1.25rem; }
  .scroll-top-btn { bottom: 5rem; right: 1.25rem; }
}

/* ── Print ── */
@media print {
  .navbar, .chat-fab, .scroll-top-btn, #toast-container { display: none !important; }
  body { background: #fff !important; }
}
