/* ========================================================
   MASJIDCONNECT — NEIGHBORHOOD MASJID IQAMAH & NOTICEBOARD
   STYLESHEET: Modern Islamic Aesthetics, Dual-View & TV Kiosk
   ======================================================== */

:root {
  /* Core Emerald & Midnight Palette */
  --bg-app: #08120e;
  --bg-card: #0e1e18;
  --bg-card-hover: #142a22;
  --bg-card-secondary: #13241d;
  --bg-elevated: #1a332a;
  --bg-surface: #0a1712;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.25);
  --border-emerald-glow: rgba(16, 185, 129, 0.6);
  --border-gold: rgba(245, 158, 11, 0.3);

  /* Brand Accents */
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.2);
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-blue: #38bdf8;
  --danger-red: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  
  /* Text & Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Transitions & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
  --shadow-gold-glow: 0 0 30px rgba(245, 158, 11, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --trans-fast: 0.18s ease;
  --trans-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Mode */
body.theme-light {
  --bg-app: #f1f5f3;
  --bg-card: #ffffff;
  --bg-card-hover: #f8faf9;
  --bg-card-secondary: #f3f7f5;
  --bg-elevated: #e6ede9;
  --bg-surface: #e2e8e5;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.35);
  --border-emerald-glow: rgba(16, 185, 129, 0.4);
  --border-gold: rgba(217, 119, 6, 0.35);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-app);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-app);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Subtle Geometric Pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Utility Helpers */
.hidden { display: none !important; }
.svg-icon, .mini-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.mini-icon {
  width: 1rem;
  height: 1rem;
}

/* ========================================================
   PORTAL HEADER
   ======================================================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(8, 18, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

body.theme-light .portal-header {
  background-color: rgba(241, 245, 243, 0.92);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Brand */
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
.brand-icon svg {
  width: 26px;
  height: 26px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(120deg, #ffffff 40%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-light .brand-title {
  color: #064e3b;
  background: none;
  -webkit-text-fill-color: initial;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mosque Selector */
.masjid-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-card);
  padding: 0.35rem 0.75rem 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-emerald);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.select-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  white-space: nowrap;
}

.custom-select-box {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-icon-left {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--primary);
  margin-right: 0.4rem;
}

.custom-select-box select {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding-right: 1.8rem;
  cursor: pointer;
  outline: none;
}

.custom-select-box select option {
  background-color: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.5rem;
}

.dropdown-chevron {
  position: absolute;
  right: 0;
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--text-muted);
  pointer-events: none;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--trans-fast);
}

.tv-mode-trigger {
  background: linear-gradient(135deg, #047857, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.tv-mode-trigger:hover {
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}
.btn-tag {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.admin-trigger-btn {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.admin-trigger-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary-light);
}

.icon-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.icon-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
}

/* Urgent Alert Bar */
.urgent-bar {
  background: linear-gradient(90deg, #7f1d1d, #991b1b, #b91c1c);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.urgent-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.urgent-badge-pulse {
  background-color: #ffffff;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.urgent-message {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}
.urgent-link-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans-fast);
}
.urgent-link-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ========================================================
   PORTAL MAIN CONTENT & HERO
   ======================================================== */
.portal-main {
  max-width: 1320px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Mosque Spotlight Hero */
.masjid-hero-section {
  margin-bottom: 1.5rem;
}
.hero-card {
  position: relative;
  background: linear-gradient(135deg, #091a14 0%, #10261f 60%, #0d211a 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}
body.theme-light .hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #edf7f2 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.hero-pattern-overlay {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: center;
}

.bismillah-calligraphy {
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}
body.theme-light .hero-title {
  color: #064e3b;
}

.hero-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
body.theme-light .meta-pill {
  background-color: #f1f5f3;
}

/* Next Iqamah Card inside Hero */
.next-iqamah-card {
  background: linear-gradient(145deg, #122b22, #0a1c15);
  border: 1px solid var(--border-emerald-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.12);
  position: relative;
  overflow: hidden;
}

body.theme-light .next-iqamah-card {
  background: linear-gradient(145deg, #ffffff, #e8f5ed);
  border-color: rgba(16, 185, 129, 0.5);
}

.next-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-ring-glow 1.6s infinite;
}

@keyframes pulse-ring-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.next-prayer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.next-countdown-timer {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.1;
  margin: 0.35rem 0 0.5rem;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}
body.theme-light .next-countdown-timer {
  color: #064e3b;
  text-shadow: none;
}

.next-details-row {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.next-details-row strong {
  color: var(--text-main);
}

/* Silence reminder banner inside hero */
.silence-warning-banner {
  margin-top: 0.85rem;
  background-color: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  animation: pulse-glow 1.8s infinite;
}

/* Quick Toolbar */
.quick-toolbar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.toolbar-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}
.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}
.stat-val {
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}
.badge-highlight {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.stat-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border-subtle);
}

.toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background-color: var(--bg-card-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.tool-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary-light);
}

.donate-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border-color: var(--border-gold);
  color: var(--accent-gold-light);
}
.donate-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.4));
  border-color: var(--accent-gold);
  color: #fff;
}

/* ========================================================
   PORTAL GRID: 2 COLUMNS (SCHEDULES & NOTICEBOARD)
   ======================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: start;
}

.schedule-column, .notices-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Base Card Container */
.card-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: border-color var(--trans-smooth);
}
.card-container:hover {
  border-color: var(--border-emerald);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.card-header-title h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-icon {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}
.gold-icon {
  fill: var(--accent-gold);
}
.gold-text {
  color: var(--accent-gold-light);
}
.arabic-sub {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-left: 0.35rem;
}

.table-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Prayer Times List (Portal) */
.prayer-times-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prayer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--trans-fast);
  position: relative;
}

.prayer-row:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Active / Next Prayer Glow Row */
.prayer-row.active-prayer-row {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.18);
}
.prayer-row.active-prayer-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-light), var(--accent-gold));
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.prayer-name-cell {
  display: flex;
  flex-direction: column;
}
.p-name-en {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}
.p-name-ar {
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.p-time-cell {
  display: flex;
  flex-direction: column;
}
.p-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
}
.p-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}
.p-iqamah-val {
  color: var(--accent-gold-light);
  font-weight: 800;
}

.p-status-cell {
  text-align: right;
}
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.status-pill.next {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
  border: 1px solid var(--primary);
  animation: pulse-glow 2s infinite;
}
.status-pill.passed {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}
.status-pill.upcoming {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.status-pill.sunrise {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
}

.schedule-footer-note {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.info-icon {
  width: 1rem;
  height: 1rem;
  fill: var(--text-dim);
  flex-shrink: 0;
}

/* Friday Jumu'ah Card */
.jumuah-badge {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.jumuah-shifts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.jumuah-shift-item {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.shift-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.shift-times-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}
.shift-time-block {
  display: flex;
  flex-direction: column;
}
.shift-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.shift-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
body.theme-light .shift-val {
  color: #0f172a;
}

.shift-khatib-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.shift-topic {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Facilities Tags */
.facilities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.facility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
}
.facility-pill svg {
  width: 1rem;
  height: 1rem;
  fill: var(--primary);
}

/* ========================================================
   RIGHT COLUMN: NOTICEBOARD & ANNOUNCEMENTS
   ======================================================== */
.notice-header {
  margin-bottom: 1rem;
}
.notice-counter {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  color: var(--text-muted);
}

/* Filters */
.notice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-chip {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--trans-fast);
}
.filter-chip:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--primary);
}
.filter-chip.active {
  background-color: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chip-dot.red { background-color: var(--danger-red); }
.chip-dot.green { background-color: var(--primary); }
.chip-dot.blue { background-color: var(--accent-blue); }
.chip-dot.amber { background-color: var(--accent-gold); }

/* Announcements Feed */
.announcements-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 650px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Custom Scrollbar */
.announcements-feed::-webkit-scrollbar {
  width: 6px;
}
.announcements-feed::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}

.notice-card {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all var(--trans-fast);
  cursor: pointer;
  position: relative;
}
.notice-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Urgent / Janazah Card Styling */
.notice-card.urgent-card {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), var(--bg-card-secondary));
}
.notice-card.urgent-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--danger-red);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.notice-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.notice-category-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.badge-janazah {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.badge-halaqah {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-event {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-charity {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
}

.notice-time-stamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.notice-snippet {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.notice-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 600;
}

/* Reflection Card */
.reflection-card {
  background: linear-gradient(135deg, #0d231b, #091712);
  border-color: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
body.theme-light .reflection-card {
  background: linear-gradient(135deg, #fefce8, #fdf4ff);
  border-color: rgba(245, 158, 11, 0.3);
}

.reflection-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}
.reflection-ref {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.reflection-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--accent-gold-light);
  margin: 0.85rem 0 0.5rem;
  line-height: 1.5;
}
.reflection-text {
  font-size: 0.88rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.reflection-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Portal Footer */
.portal-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.footer-sub kbd {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--primary-light);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--trans-fast);
}
.footer-link-btn:hover, .footer-link:hover {
  color: var(--primary-light);
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-dot {
  color: var(--text-dim);
}


/* ========================================================
   2. TV / KIOSK DISPLAY SIGNAGE MODE (1080p / 4K SCREEN)
   ======================================================== */
.tv-display-mode {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: #040907;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.5vw 2.5vw;
  user-select: none;
}

/* Background Ambient Glow on TV */
.tv-display-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* TV Header */
.tv-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2vh;
  border-bottom: 2px solid rgba(16, 185, 129, 0.25);
}

.tv-header-left {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.tv-masjid-logo {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #047857, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}
.tv-icon {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.tv-title {
  font-family: var(--font-display);
  font-size: 2.2vw;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.tv-submeta {
  font-size: 1vw;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.6vw;
  margin-top: 0.3vh;
}
.tv-separator {
  color: var(--accent-gold);
}

.tv-header-center {
  text-align: center;
}
.tv-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.8vw;
  color: var(--accent-gold-light);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  line-height: 1.2;
}
.tv-hijri-date {
  font-family: var(--font-sans);
  font-size: 1.15vw;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.tv-header-right {
  text-align: right;
}
.tv-digital-clock {
  font-family: var(--font-mono);
  font-size: 3vw;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}
.tv-ampm {
  font-size: 1.4vw;
  color: var(--primary-light);
  margin-left: 0.2vw;
}
.tv-gregorian-date {
  font-size: 1vw;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.3vh;
}

/* TV Silence Phones Warning Banner */
.tv-silence-banner {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, #b91c1c, #dc2626, #b91c1c);
  border-radius: var(--radius-md);
  margin: 1vh 0;
  padding: 1vh 2vw;
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.6);
  animation: pulse-glow 1.5s infinite;
}
.silence-pulse-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5vw;
  text-align: center;
}
.silence-big-icon {
  font-size: 2.2vw;
}
.silence-text-block h2 {
  font-family: var(--font-display);
  font-size: 1.4vw;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.silence-text-block p {
  font-size: 0.95vw;
  font-weight: 600;
  color: #fecaca;
}

/* TV Main Body */
.tv-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1.5vh;
  margin: 1.2vh 0;
}

/* Primary 6-Prayer Grid */
.tv-prayer-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2vw;
  width: 100%;
}

.tv-prayer-col {
  background: linear-gradient(180deg, #0b1a14 0%, #06110d 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.6vh 1vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 34vh;
  position: relative;
  transition: all var(--trans-smooth);
}

/* Active Highlight Prayer Card on TV */
.tv-prayer-col.tv-active-prayer {
  background: linear-gradient(180deg, #123326 0%, #0a1f16 100%);
  border-color: var(--primary-light);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.45), inset 0 0 25px rgba(16, 185, 129, 0.2);
  transform: scale(1.03);
  z-index: 5;
}

.tv-active-pill {
  position: absolute;
  top: -12px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #042f1a;
  font-size: 0.72vw;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2vh 0.8vw;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
}

.tv-p-names {
  margin-top: 0.4vh;
}
.tv-p-en {
  font-family: var(--font-display);
  font-size: 1.6vw;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
}
.tv-p-ar {
  font-family: var(--font-arabic);
  font-size: 1.35vw;
  color: var(--accent-gold-light);
  line-height: 1;
}

.tv-adhan-block {
  width: 100%;
  padding: 0.6vh 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tv-label-adhan {
  font-size: 0.7vw;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tv-time-adhan {
  font-family: var(--font-mono);
  font-size: 1.4vw;
  font-weight: 700;
  color: #e2e8f0;
}

.tv-iqamah-block {
  width: 100%;
  padding: 0.8vh 0;
}
.tv-label-iqamah {
  font-size: 0.8vw;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tv-time-iqamah {
  font-family: var(--font-mono);
  font-size: 2.2vw;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.tv-active-prayer .tv-time-iqamah {
  color: var(--accent-gold-light);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.tv-shuruk-sub {
  font-size: 0.85vw;
  color: #94a3b8;
  font-style: italic;
  padding: 1.5vh 0;
}

/* TV Middle Banner (Countdown + Friday Jumu'ah) */
.tv-middle-banner {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 1.5vw;
  height: 22vh;
}

/* Countdown Widget */
.tv-countdown-widget {
  background: linear-gradient(135deg, #0e271c, #071710);
  border: 2px solid var(--border-emerald-glow);
  border-radius: var(--radius-lg);
  padding: 1.8vh 1.8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  position: relative;
}

.tv-widget-badge {
  display: flex;
  align-items: center;
  gap: 0.6vw;
  font-size: 0.85vw;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  text-transform: uppercase;
}
.pulse-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-ring-glow 1.5s infinite;
}

.tv-widget-target {
  font-family: var(--font-display);
  font-size: 1.4vw;
  font-weight: 800;
  color: var(--accent-gold-light);
  margin-top: 0.3vh;
}

.tv-timer-digits {
  font-family: var(--font-mono);
  font-size: 3.2vw;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.05em;
  margin: 0.5vh 0;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.tv-target-stamp {
  font-size: 0.9vw;
  color: #94a3b8;
}
.tv-target-stamp strong {
  color: #fff;
}

/* Jumu'ah Widget on TV */
.tv-jumuah-widget {
  background: linear-gradient(135deg, #16241a, #0d1711);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.6vh 1.8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.tv-jumuah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jumuah-title-row {
  display: flex;
  align-items: center;
  gap: 0.6vw;
}
.jumuah-icon {
  width: 22px;
  height: 22px;
  fill: var(--accent-gold);
}
.jumuah-badge-tv {
  font-size: 0.9vw;
  font-weight: 800;
  color: var(--accent-gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-jumuah-shifts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2vw;
}

.tv-jumuah-card-cell {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1vh 1vw;
}

.tv-shift-tag {
  font-size: 0.72vw;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.tv-shift-times {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin: 0.3vh 0;
}
.tv-khutbah-stamp, .tv-iqamah-stamp {
  font-family: var(--font-mono);
  font-size: 1.1vw;
  font-weight: 700;
  color: #fff;
}
.tv-khutbah-stamp span, .tv-iqamah-stamp span {
  font-size: 0.65vw;
  color: #94a3b8;
  display: block;
}

.tv-khatib-line {
  font-size: 0.9vw;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-topic-line {
  font-size: 0.78vw;
  color: #94a3b8;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TV Footer: Dynamic Rotating News Ticker & Announcement Bar */
.tv-footer {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, #0c1f17, #081510);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 1.2vh 1.5vw;
  display: flex;
  align-items: center;
  gap: 1.2vw;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.tv-ticker-tag {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  background-color: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--primary);
  padding: 0.4vh 0.8vw;
  border-radius: 9999px;
  font-size: 0.8vw;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  white-space: nowrap;
}
.tv-ticker-tag.tag-urgent {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: var(--danger-red);
  color: #fca5a5;
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-light);
  box-shadow: 0 0 8px var(--primary-light);
  animation: pulse-ring-glow 1.5s infinite;
}
.tag-urgent .ticker-pulse {
  background-color: var(--danger-red);
  box-shadow: 0 0 8px var(--danger-red);
}

.tv-ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 3.5vh;
  display: flex;
  align-items: center;
}

.tv-ticker-item {
  font-size: 1.1vw;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
  white-space: nowrap;
  animation: fade-slide-in 0.6s ease;
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tv-ticker-indicator {
  display: flex;
  align-items: center;
  gap: 0.35vw;
}
.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all var(--trans-fast);
}
.ticker-dot.active {
  background-color: var(--primary-light);
  transform: scale(1.3);
}

/* Discreet Floating Controls on TV */
.tv-floating-controls {
  position: fixed;
  bottom: 20px;
  right: 25px;
  z-index: 1000;
  background-color: rgba(14, 30, 24, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.25;
  transition: opacity var(--trans-smooth);
}
.tv-floating-controls:hover {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.tv-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all var(--trans-fast);
}
.tv-ctrl-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--primary-light);
}

.ctrl-sep {
  width: 1px;
  height: 16px;
  background-color: var(--border-subtle);
}

.tv-ctrl-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.tv-ctrl-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}


/* ========================================================
   3. MODAL DIALOGS & OVERLAYS
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(4, 9, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: backdrop-fade 0.25s ease;
}

@keyframes backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.7);
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-header {
  padding: 2rem 2rem 1.25rem;
  text-align: center;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.65rem;
}
body.theme-light .modal-header h3 {
  color: #0f172a;
}
.modal-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.admin-icon-circle, .donation-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-icon-circle {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border-emerald);
}
.donation-icon-circle {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
}

.modal-form, .donation-body {
  padding: 0 2rem 2rem;
}

.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 0.85rem;
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--text-dim);
}
.input-with-icon input {
  padding-left: 2.6rem;
}

input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--trans-fast);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-input-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.passcode-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.link-btn-text {
  background: none;
  border: none;
  color: var(--primary-light);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.error-toast {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--danger-red);
  color: #fca5a5;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-primary, .btn-secondary, .btn-primary-sm, .btn-secondary-sm {
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: translateY(-1px);
}

.btn-secondary {
  flex: 1;
  background-color: var(--bg-card-secondary);
  border-color: var(--border-subtle);
  color: var(--text-muted);
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
}
.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.btn-primary-sm {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}
.btn-primary-sm:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.btn-secondary-sm {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}
.btn-secondary-sm:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

/* ========================================================
   ADMIN FULL DASHBOARD MODAL
   ======================================================== */
.dashboard-box {
  max-width: 860px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.dash-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
body.theme-light .dash-title-group h2 {
  color: #064e3b;
}

.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Tabs */
.dash-tabs {
  display: flex;
  background-color: var(--bg-card-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.5rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.dash-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
}
.dash-tab-btn:hover {
  color: var(--text-main);
}
.dash-tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 170px);
}
.tab-pane.active {
  display: block;
}

.tab-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Times Form Grid */
.times-form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  background-color: var(--bg-card-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.grid-col-head {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.prayer-row-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.muted-cell {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.pane-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Friday Jumu'ah Edit Grid */
.jumuah-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.shift-edit-card {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.shift-edit-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 0.85rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Notice Manager Layout */
.notices-manager-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.post-notice-box, .existing-notices-box {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.post-notice-box h4, .existing-notices-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
body.theme-light .post-notice-box h4, body.theme-light .existing-notices-box h4 {
  color: #0f172a;
}

.form-check-group {
  margin: 0.65rem 0;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-main);
  cursor: pointer;
}
.checkbox-label strong {
  color: #fca5a5;
}

.admin-notices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

.admin-notice-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.admin-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.admin-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-delete-notice {
  background: none;
  border: none;
  color: #f87171;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.btn-delete-notice:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Settings Form Grid */
.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.full-width {
  grid-column: 1 / -1;
}

/* ========================================================
   NOTICE DETAILS MODAL
   ======================================================== */
.notice-modal-box {
  max-width: 600px;
  padding: 2rem;
}

.notice-detail-header {
  margin-bottom: 1.25rem;
}
.notice-detail-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem;
  color: #fff;
}
body.theme-light .notice-detail-header h2 {
  color: #0f172a;
}
.detail-time-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dua-callout-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.dua-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--accent-gold-light);
  line-height: 1.4;
}
.dua-trans {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.3rem;
}

.detail-text-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.detail-location-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.detail-location-card svg {
  fill: var(--primary);
}

.notice-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ========================================================
   DONATION MODAL STYLES
   ======================================================== */
.donation-modal-box {
  max-width: 500px;
}
.fund-progress-card {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.fund-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.fund-percent {
  color: var(--accent-gold-light);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 9999px;
}

.fund-figures {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.fund-figures strong {
  color: #fff;
}
body.theme-light .fund-figures strong {
  color: #0f172a;
}

.preset-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.amount-btn {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.amount-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-card-hover);
}
.amount-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  border-color: var(--accent-gold-light);
  color: #fff;
}

.security-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.85rem;
}

/* ========================================================
   PRINT TIMETABLE MODAL
   ======================================================== */
.print-modal-box {
  max-width: 780px;
  width: 95vw;
}
.print-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.75rem;
  text-align: left;
}
.print-modal-top h3 {
  margin: 0;
}
.print-actions-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.printable-schedule-area {
  padding: 1.5rem 1.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.print-table th, .print-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.print-table th {
  background-color: var(--bg-card-secondary);
  color: var(--primary-light);
  font-weight: 700;
}
.print-header-meta {
  text-align: center;
  margin-bottom: 1rem;
}
.print-header-meta h2 {
  font-size: 1.5rem;
  color: var(--text-main);
}
.print-header-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================================
   GLOBAL TOAST NOTIFICATIONS
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-emerald);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 260px;
}
body.theme-light .toast {
  background-color: #ffffff;
  color: #0f172a;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-success { border-color: var(--primary); }
.toast-success svg { fill: var(--primary); }
.toast-error { border-color: var(--danger-red); }
.toast-error svg { fill: var(--danger-red); }

/* ========================================================
   PRINT STYLES FOR BROWSERS
   ======================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .portal-header, .portal-footer, .quick-toolbar, .tv-display-mode, .modal-backdrop, .toast-container {
    display: none !important;
  }
  .printable-schedule-area {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .print-table th {
    background: #e2e8f0 !important;
    color: #000 !important;
  }
  .print-table td {
    color: #000 !important;
  }
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ======================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .jumuah-shifts-container {
    grid-template-columns: 1fr;
  }
  .tv-prayer-board {
    grid-template-columns: repeat(3, 1fr);
  }
  .tv-prayer-col {
    min-height: 22vh;
  }
  .tv-middle-banner {
    grid-template-columns: 1fr;
    height: auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .masjid-selector-wrapper {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .header-actions {
    justify-content: flex-end;
  }
  .hero-card {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .prayer-row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .p-status-cell {
    display: none;
  }
  .notices-manager-layout {
    grid-template-columns: 1fr;
  }
  .jumuah-edit-grid, .settings-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   CONTENT PAGES, COMPLIANCE & EDUCATIONAL GUIDES
   ======================================================== */
.portal-nav-bar {
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(10, 23, 18, 0.95);
  font-size: 0.9rem;
}
body.theme-light .portal-nav-bar {
  background-color: rgba(226, 232, 229, 0.95);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
  background-color: rgba(16, 185, 129, 0.12);
}
body.theme-light .nav-link:hover, body.theme-light .nav-link.active {
  color: var(--primary-dark);
  background-color: rgba(16, 185, 129, 0.15);
}
.nav-chevron-mini {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform var(--trans-fast);
}
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 330px;
  max-height: 85vh;
  overflow-y: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
  z-index: 100;
  margin-top: 0.25rem;
  backdrop-filter: blur(12px);
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  display: block;
  animation: fadeIn 0.15s ease-out;
}
.nav-item-dropdown:hover .nav-chevron-mini {
  transform: rotate(180deg);
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color var(--trans-fast), color var(--trans-fast);
}
.dropdown-link:hover {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
}
body.theme-light .dropdown-link:hover {
  color: var(--primary-dark);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Multi-Column Footer */
.portal-footer-rich {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 3.5rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}
.portal-footer-container {
  max-width: 1320px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col h4::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--border-emerald), transparent);
}
.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0.8rem 0 1.2rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald);
  color: var(--primary-light);
}
body.theme-light .footer-badge {
  color: var(--primary-dark);
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links-list a, .footer-action-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--trans-fast);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.footer-links-list a:hover, .footer-action-link:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}
body.theme-light .footer-links-list a:hover, body.theme-light .footer-action-link:hover {
  color: var(--primary-dark);
}
.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: var(--primary-light);
}
.footer-disclaimer {
  width: 100%;
  line-height: 1.5;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Content Page Layout & Article Styles */
.content-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.page-hero {
  background: linear-gradient(135deg, rgba(14, 30, 24, 0.95), rgba(10, 23, 18, 0.95));
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
body.theme-light .page-hero {
  background: linear-gradient(135deg, #ffffff, #f3f7f5);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
  pointer-events: none;
}
.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.page-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.page-breadcrumbs a:hover {
  color: var(--primary-light);
}
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-emerald);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
body.theme-light .page-badge {
  color: var(--primary-dark);
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.page-subtitle {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 820px;
}
.page-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article & Content Typography */
.content-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.article-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-main);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2.2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.6rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.article-body strong {
  color: var(--text-main);
}
.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.5rem 1.6rem;
  color: var(--text-muted);
}
.article-body li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

/* Callout Boxes */
.callout-box {
  background-color: var(--bg-card-secondary);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.callout-gold {
  border-left-color: var(--accent-gold);
  background-color: rgba(245, 158, 11, 0.05);
}
.callout-blue {
  border-left-color: var(--accent-blue);
  background-color: rgba(56, 189, 248, 0.05);
}
.callout-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hadith & Arabic Callout Cards */
.arabic-dua-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(245, 158, 11, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0;
  text-align: center;
}
.dua-arabic-large {
  font-family: var(--font-arabic);
  font-size: 1.7rem;
  line-height: 2;
  color: var(--accent-gold-light);
  direction: rtl;
  margin-bottom: 0.75rem;
}
.dua-transliteration {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.dua-translation {
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 500;
}
.dua-reference {
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Step-by-Step Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.step-card {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--trans-fast), border-color var(--trans-fast);
  position: relative;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #040907;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.step-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* FAQ Accordion / Cards */
.faq-category {
  margin-bottom: 2.5rem;
}
.faq-category-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--trans-fast);
}
.faq-item:hover {
  border-color: var(--border-emerald);
}
.faq-question-btn {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--text-dim);
  transition: transform var(--trans-smooth);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  fill: var(--primary-light);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.96rem;
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

/* Forms & Inputs for Contact / Onboarding */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.form-group-block {
  margin-bottom: 1.25rem;
}
.form-group-block label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}
.form-group-block .required-star {
  color: var(--danger-red);
}
.form-input-styled, .form-select-styled, .form-textarea-styled {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--trans-fast);
}
.form-input-styled:focus, .form-select-styled:focus, .form-textarea-styled:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-textarea-styled {
  min-height: 130px;
  resize: vertical;
}
.sidebar-info-card {
  background-color: var(--bg-card-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-info-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.contact-detail-row svg {
  margin-top: 0.2rem;
  color: var(--primary-light);
}

/* Clean Tables for Guide Data */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.guide-table th {
  background-color: var(--bg-elevated);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-emerald);
}
.guide-table td {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.guide-table tr:last-child td {
  border-bottom: none;
}
.guide-table tr:hover td {
  background-color: rgba(16, 185, 129, 0.04);
}

/* Responsive adjustments for content pages */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 1.85rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .page-hero {
    padding: 1.75rem 1.25rem;
  }
  .content-card {
    padding: 1.5rem 1.25rem;
  }
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links {
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }
  .nav-tagline {
    display: none;
  }
}

