@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --primary: #087f68;
  --primary-dark: #055b50;
  --primary-light: #dff4ed;
  --gold: #d6a845;
  --ink: #17332e;
  --muted: #6d7f7a;
  --surface: #ffffff;
  --surface-soft: #f2f7f4;
  --line: rgba(13, 78, 65, .11);
  --shadow: 0 18px 60px rgba(7, 57, 48, .12);
  --glass: rgba(255, 255, 255, .76);
  --radius: 24px;
}

[data-theme="dark"] {
  --ink: #edf8f5;
  --muted: #a4b9b3;
  --surface: #102823;
  --surface-soft: #0b201c;
  --line: rgba(218, 244, 236, .1);
  --glass: rgba(12, 40, 34, .76);
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.ambient { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .22; pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: #43d9ad; top: 30%; right: -250px; }
.ambient-two { width: 350px; height: 350px; background: #efca75; top: 60%; left: -220px; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, calc(100% - 32px));
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  transition: .3s ease;
}
.topbar.scrolled { top: 8px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 15px 15px 18px 18px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(145deg, #0ba98b, #056050);
  box-shadow: 0 9px 24px rgba(8, 127, 104, .28);
}
.brand strong, .brand small { display: block; line-height: 1.45; }
.brand strong { font-size: 14px; }
.brand small { color: var(--muted); font-size: 10px; }
.desktop-nav { display: flex; align-items: center; gap: 7px; }
.desktop-nav a { padding: 8px 11px; border-radius: 12px; color: var(--muted); font-size: 13px; font-weight: 600; transition: .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); background: var(--primary-light); }
.top-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  width: 39px;
  height: 39px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  position: relative;
}
.admin-link, .primary-btn {
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 10px 17px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(8, 127, 104, .22);
}

.hero { min-height: 800px; height: 100svh; position: relative; color: white; display: flex; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 32, 27, .25), rgba(1, 35, 30, .84)),
    linear-gradient(0deg, rgba(3, 51, 43, .72), transparent 60%);
}
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .85fr; gap: 70px; align-items: center; padding-top: 70px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d6efe8; font-size: 13px; font-weight: 500; }
.eyebrow span { width: 27px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(48px, 6vw, 82px); line-height: 1.25; letter-spacing: -3px; margin: 17px 0 21px; }
.hero h1 em { color: #efcf83; font-style: normal; }
.hero-copy > p { max-width: 570px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; }
.hero .primary-btn { background: linear-gradient(135deg, #e3b74f, #b88a2b); color: #24372f; box-shadow: 0 12px 28px rgba(191, 142, 37, .3); padding: 13px 21px; }
.play-btn { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.play-btn span { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .4); font-size: 11px; }
.prayer-card { color: white; padding: 23px; border-radius: 27px; background: rgba(7, 54, 46, .57); border-color: rgba(255, 255, 255, .18); }
.prayer-head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .13); padding-bottom: 15px; }
.prayer-head small, .prayer-head strong { display: block; }
.prayer-head small { color: rgba(255, 255, 255, .66); }
.prayer-head strong { font-size: 18px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #60e6a8; box-shadow: 0 0 0 5px rgba(96, 230, 168, .12); }
.date-chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 4px 9px; font-size: 11px; }
.next-prayer { text-align: center; padding: 18px 0 13px; }
.next-prayer small { color: rgba(255, 255, 255, .65); display: block; }
.next-prayer strong { font-size: 35px; letter-spacing: 2px; font-weight: 400; direction: ltr; }
.prayer-times { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.prayer-times div { padding: 9px 4px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .065); }
.prayer-times div.highlight { background: #e7bf66; color: #25443b; }
.prayer-times span, .prayer-times b { display: block; font-size: 10px; }
.prayer-times b { font-size: 13px; direction: ltr; }
.prayer-note { color: rgba(255,255,255,.58); font-size: 9px; margin: 12px 0 0; text-align: center; }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; width: 35px; height: 50px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; display: grid; place-items: center; animation: float 2s infinite; }
@keyframes float { 50% { transform: translate(-50%, 6px); } }

.section { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading.centered { text-align: center; justify-content: center; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(29px, 4vw, 42px); line-height: 1.35; }
.section-heading p { margin: 10px auto 0; color: var(--muted); max-width: 630px; }
.section-kicker { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: -.2px; }
.section-kicker.light { color: #e8ca7b; }
.text-link { color: var(--primary); font-weight: 700; white-space: nowrap; }
.text-link span { margin-right: 6px; }
.announcement-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 24px; }
.announcements-list { display: grid; gap: 12px; }
.announcement-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 17px;
  align-items: center;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: .25s;
}
.announcement-item:hover { transform: translateX(-4px); box-shadow: var(--shadow); }
.announcement-date { background: var(--surface-soft); border-radius: 15px; text-align: center; padding: 8px; color: var(--primary); }
.announcement-date strong, .announcement-date span { display: block; line-height: 1.35; }
.announcement-date strong { font-size: 25px; }
.announcement-date span { font-size: 10px; }
.announcement-item h3 { margin: 0 0 2px; font-size: 16px; }
.announcement-item p { margin: 0; color: var(--muted); font-size: 12px; }
.announcement-item > span { color: var(--primary); font-size: 22px; }
.badge { padding: 2px 8px; border-radius: 8px; background: var(--primary-light); color: var(--primary); font-size: 9px; margin-right: 8px; }
.special-banner { position: relative; border-radius: 26px; overflow: hidden; min-height: 320px; color: white; }
.special-banner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.special-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,58,49,.95), rgba(5,58,49,.17)); }
.special-banner-content { position: absolute; z-index: 2; inset: auto 27px 25px; }
.special-banner-content span { color: #eecf7e; font-size: 11px; }
.special-banner h3 { font-size: 25px; margin: 3px 0; }
.special-banner p { color: rgba(255,255,255,.73); font-size: 12px; margin: 0 0 16px; }
.light-btn { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; padding: 7px 14px; }
.soft-section { background: var(--surface-soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { padding: 26px 21px; border-radius: 23px; background: var(--surface); box-shadow: none; border-color: var(--line); transition: .25s; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-icon, .stat-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.teal { background: #daf4ec !important; color: #087f68 !important; }
.gold { background: #faf0d4 !important; color: #b48119 !important; }
.blue { background: #e1effb !important; color: #3179b4 !important; }
.rose { background: #f9e3e7 !important; color: #b94f62 !important; }
.service-card h3 { font-size: 18px; margin: 0 0 6px; }
.service-card p { color: var(--muted); font-size: 12px; min-height: 66px; margin: 0 0 15px; }
.service-card a { color: var(--primary); font-weight: 700; font-size: 11px; }
.martyrs-shell { position: relative; border-radius: 32px; overflow: hidden; background: linear-gradient(135deg, #083c34, #096652); color: white; padding: 53px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.martyr-pattern { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle at 25px 25px, #fff 2px, transparent 2px); background-size: 50px 50px; }
.martyrs-copy, .martyr-cards { position: relative; z-index: 2; }
.martyrs-copy h2 { margin: 7px 0 12px; font-size: 38px; }
.martyrs-copy p { color: rgba(255,255,255,.68); }
.outline-light-btn { display: inline-block; border: 1px solid rgba(255,255,255,.25); padding: 8px 15px; border-radius: 12px; margin-top: 8px; }
.martyr-cards { display: grid; gap: 11px; align-content: center; }
.martyr-cards article { display: flex; gap: 13px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.martyr-avatar { width: 51px; height: 51px; border-radius: 50%; display: grid; place-items: center; color: #e8c570; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.martyr-cards strong, .martyr-cards small { display: block; }
.martyr-cards small { color: rgba(255,255,255,.53); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: .25s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card-image { height: 205px; overflow: hidden; position: relative; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.blog-card:hover img { transform: scale(1.04); }
.blog-category { position: absolute; top: 12px; right: 12px; color: white; background: rgba(7,72,59,.74); backdrop-filter: blur(8px); padding: 3px 10px; border-radius: 9px; font-size: 9px; }
.blog-content { padding: 18px; }
.blog-content h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.6; }
.blog-content p { color: var(--muted); margin: 0 0 15px; font-size: 12px; }
.blog-meta { border-top: 1px solid var(--line); padding-top: 11px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.gallery-section { background: #082f29; color: white; }
.light-link { color: #e9cc81; }
.gallery-grid { display: grid; height: 480px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery-grid button { border: 0; padding: 0; border-radius: 15px; overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-grid button:hover img { transform: scale(1.05); }
.gallery-main { grid-row: 1 / 3; }
.gallery-main span { position: unset; right: 20px; bottom: 18px; padding: 6px 12px; background: rgba(5,47,40,.66); color: white; border-radius: 10px; backdrop-filter: blur(7px); }
.social-shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 30px; padding: 40px; }
.social-shell h2 { font-size: 28px; margin: 5px 0; }
.social-shell p { color: var(--muted); max-width: 480px; margin: 0; }
.social-links { display: flex; gap: 10px; }
.social-links a { min-width: 155px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.social-links > a > span { width: 36px; height: 36px; background: var(--primary-light); color: var(--primary); border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.social-links strong, .social-links small { display: block; line-height: 1.5; }
.social-links small { color: var(--muted); font-size: 8px; direction: ltr; }
.footer { background: #061d19; color: white; padding: 65px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.footer h3 { margin: 13px 0 7px; }
.footer h4 { color: #e8c978; margin: 0 0 14px; }
.footer p, .footer a { display: block; color: rgba(255,255,255,.57); font-size: 12px; margin: 5px 0; }
.newsletter { display: flex; padding: 4px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.newsletter input { width: 100%; min-width: 0; background: transparent; color: white; border: 0; outline: 0; padding: 7px; }
.newsletter button { border: 0; border-radius: 9px; background: var(--primary); color: white; padding: 5px 11px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; color: rgba(255,255,255,.35); font-size: 10px; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: 50%; transform: translate(-50%, 120px); opacity: 0; background: #082f29; color: white; border-radius: 13px; padding: 10px 18px; box-shadow: var(--shadow); transition: .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.image-modal, .modal { position: fixed; z-index: 90; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,22,18,.72); backdrop-filter: blur(10px); }
.image-modal.open, .modal.open { display: flex; }
.image-modal img { max-width: min(1000px, 90vw); max-height: 85vh; border-radius: 20px; }
.image-modal button { position: fixed; left: 25px; top: 20px; border: 0; background: white; width: 42px; height: 42px; border-radius: 50%; font-size: 25px; }

/* Admin */
.admin-body { min-height: 100vh; background: var(--surface-soft); }
.admin-sidebar { position: fixed; right: 0; top: 0; bottom: 0; width: 255px; z-index: 40; background: #082f29; color: white; padding: 22px 16px; display: flex; flex-direction: column; }
.admin-brand { padding: 5px 4px 25px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand small { color: rgba(255,255,255,.5); }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 20px; }
.admin-sidebar nav button { border: 0; background: transparent; color: rgba(255,255,255,.62); text-align: right; padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { background: rgba(255,255,255,.1); color: white; }
.admin-sidebar nav button span { width: 23px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom > a { display: block; font-size: 12px; color: #e7c977; margin: 0 10px 16px; }
.admin-profile { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; display: flex; gap: 10px; align-items: center; }
.admin-profile > span { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.11); }
.admin-profile strong, .admin-profile small { display: block; line-height: 1.5; }
.admin-profile small { color: rgba(255,255,255,.45); font-size: 10px; }
.admin-main { margin-right: 255px; min-height: 100vh; padding: 0 32px 45px; }
.admin-topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar > div { display: flex; align-items: center; gap: 10px; }
.admin-topbar h1 { font-size: 22px; margin: 0; }
.admin-menu-btn { display: none; }
.admin-header-actions { display: flex; gap: 8px; }
.admin-header-actions i { width: 6px; height: 6px; border-radius: 50%; background: #d85563; position: absolute; top: 7px; right: 7px; }
.admin-view { display: none; }
.admin-view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } }
.welcome-card { background: linear-gradient(130deg, #096e5d, #07443b); color: white; padding: 27px 30px; border-radius: 23px; display: flex; justify-content: space-between; align-items: center; overflow: hidden; position: relative; }
.welcome-card::after { content: "و"; position: absolute; left: 60px; top: -60px; font-size: 220px; font-weight: 900; color: rgba(255,255,255,.04); }
.welcome-card span { color: #e7c97b; font-size: 11px; }
.welcome-card h2 { margin: 3px 0; font-size: 24px; }
.welcome-card p { margin: 0; color: rgba(255,255,255,.63); }
.welcome-card .primary-btn { z-index: 2; background: #e5bd60; color: #183d34; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 20px 0; }
.stats-grid article { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: 18px; }
.stats-grid .stat-icon { flex: 0 0 46px; margin: 0; }
.stats-grid small, .stats-grid strong, .stats-grid em { display: block; line-height: 1.5; }
.stats-grid small { color: var(--muted); font-size: 10px; }
.stats-grid strong { font-size: 24px; }
.stats-grid em { color: #35a077; font-size: 9px; font-style: normal; }
.admin-panels { display: grid; grid-template-columns: 1.5fr .7fr; gap: 18px; }
.admin-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.panel-title h3 { margin: 0; font-size: 16px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 10px; }
.panel-title button { border: 0; color: var(--primary); background: transparent; }
.content-row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.content-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.content-row strong, .content-row small { display: block; }
.content-row strong { font-size: 12px; }
.content-row small { color: var(--muted); font-size: 9px; }
.content-row .row-status { padding: 3px 8px; background: var(--primary-light); color: var(--primary); border-radius: 8px; font-size: 9px; }
.row-actions { display: flex; gap: 4px; }
.row-actions button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }
.quick-actions { display: flex; flex-direction: column; }
.quick-actions > button { border: 0; background: transparent; display: flex; align-items: center; gap: 11px; text-align: right; padding: 10px 0; border-top: 1px solid var(--line); }
.quick-actions > button > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { color: var(--ink); font-size: 12px; }
.quick-actions small { color: var(--muted); font-size: 9px; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.view-toolbar h2 { margin: 0; font-size: 23px; }
.view-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.filter-row { display: flex; gap: 10px; margin-bottom: 10px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); color: var(--ink); background: var(--surface-soft); border-radius: 11px; padding: 10px 12px; outline: none; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,127,104,.1); }
.filter-row input { flex: 1; }
.filter-row select { width: 200px; }
.full-table .content-row { grid-template-columns: 52px 1fr 120px 100px 80px; }
.file-label { cursor: pointer; }
.file-label input { display: none; }
.media-library { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.media-library figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.media-library img { height: 140px; width: 100%; object-fit: cover; }
.media-library figcaption { padding: 8px 11px; font-size: 11px; }
.admins-list { display: grid; gap: 9px; }
.admin-person { display: grid; grid-template-columns: 45px 1fr 150px 100px; align-items: center; gap: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; }
.admin-person > span { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-weight: 800; }
.admin-person strong, .admin-person small { display: block; }
.admin-person small { color: var(--muted); font-size: 9px; }
.admin-person em { font-style: normal; color: var(--primary); font-size: 10px; }
.admin-person button { border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); border-radius: 10px; padding: 6px; }
.notification-composer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.notification-preview { display: flex; gap: 11px; border-radius: 18px; padding: 17px; background: #e7ecea; color: #1c332e; box-shadow: 0 14px 35px rgba(0,0,0,.12); }
.notification-preview small, .notification-preview strong { display: block; }
.notification-preview small { font-size: 9px; color: #6a7773; }
.notification-preview p { margin: 3px 0; font-size: 11px; }
.notification-composer form, .settings-form { display: grid; gap: 14px; }
label { color: var(--ink); font-size: 11px; font-weight: 700; }
label input, label select, label textarea { margin-top: 5px; font-weight: 400; }
.form-note { color: var(--muted); font-size: 9px; margin: 0; }
.settings-form { max-width: 750px; }
.modal-card { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 23px; padding: 22px; box-shadow: var(--shadow); }
.modal-card.wide { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head p { color: var(--muted); margin: 0; font-size: 10px; }
.modal-head button { border: 0; background: var(--surface-soft); color: var(--ink); width: 34px; height: 34px; border-radius: 10px; font-size: 20px; }
.editor-form { display: grid; grid-template-columns: 1fr 250px; gap: 20px; }
.form-main, .form-side, .stack-form { display: grid; gap: 12px; align-content: start; }
.dropzone { display: grid; text-align: center; place-items: center; border: 1px dashed #81a69d; background: var(--surface-soft); border-radius: 15px; padding: 20px; cursor: pointer; }
.dropzone input { display: none; }
.dropzone small { color: var(--muted); font-weight: 400; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-label { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.check-label input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 13px; display: flex; flex-wrap: wrap; gap: 15px; }
legend { color: var(--muted); font-size: 10px; }

/* PHP production additions */
.svg-icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.text-brand { max-width: 360px; white-space: normal; }
.text-brand strong { font-size: 13px; }
.text-brand small { max-width: 320px; font-size: 8.5px; }
.desktop-nav a { display: flex; align-items: center; gap: 5px; }
.admin-link, .primary-btn, .outline-light-btn, .text-link { gap: 7px; align-items: center; }
.empty-state { padding: 38px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; background: var(--surface-soft); color: var(--muted); }
.announcement-date { display: grid; place-items: center; }
.martyr-link-only { grid-template-columns: 1fr auto; align-items: center; }
.martyr-link-only h2 { font-size: 38px; margin: 6px 0; }
.martyr-link-only p { color: rgba(255,255,255,.65); max-width: 650px; }
.outline-light-btn { display: inline-flex; white-space: nowrap; }
.map-shell { overflow: hidden; height: 440px; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-shell iframe { border: 0; width: 100%; height: 100%; }
.ltr-link { direction: ltr; text-align: right; display: flex !important; justify-content: flex-end; gap: 6px; }
.developer-credit { direction: ltr; font-family: Arial, sans-serif; letter-spacing: .2px; }
.developer-credit strong { color: #e8c978; }
.inner-page { min-height: 70vh; padding-top: 90px; }
.page-hero { background: linear-gradient(135deg,#073f35,#087b66); color: white; padding: 90px 0 70px; }
.page-hero h1 { font-size: clamp(32px,5vw,52px); margin: 7px 0; }
.page-hero p { color: rgba(255,255,255,.65); }
.blog-search { display: flex; gap: 10px; max-width: 760px; margin: 0 auto 24px; }
.blog-search label { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; padding: 0 13px; }
.blog-search label input { border: 0; margin: 0; background: transparent; box-shadow: none; }
.category-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 35px; }
.category-chips a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); }
.category-chips a.active { color: white; background: var(--primary); }
.category-chips small { margin-right: 5px; opacity: .7; }
.blog-page-grid h2 { font-size: 17px; margin: 0 0 8px; }
.single-post { padding-top: 52px; padding-bottom: 100px; max-width: 1050px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 25px; }
.post-header { max-width: 850px; margin: auto; text-align: center; }
.post-header h1 { font-size: clamp(34px,5vw,58px); line-height: 1.35; margin: 18px 0; }
.post-header > p { color: var(--muted); font-size: 17px; }
.blog-category.static { position: static; display: inline-block; }
.post-meta { display: flex; justify-content: center; gap: 22px; color: var(--muted); font-size: 11px; }
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-cover { width: 100%; max-height: 580px; object-fit: cover; border-radius: 28px; margin: 40px 0; }
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 45px; align-items: start; }
.post-content { font-size: 17px; line-height: 2.2; white-space: normal; }
.post-aside { position: sticky; top: 95px; border: 1px solid var(--line); background: var(--surface-soft); padding: 20px; border-radius: 18px; }
.post-aside strong { display: block; margin-bottom: 6px; }
.post-aside p { color: var(--muted); font-size: 12px; }
.post-aside .primary-btn { margin-top: 18px; width: 100%; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 5px; }
.keyword-list span { padding: 3px 8px; border-radius: 8px; background: var(--primary-light); color: var(--primary); font-size: 9px; }
.post-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 35px; }
.post-gallery figure { margin: 0; }
.post-gallery img { border-radius: 17px; aspect-ratio: 4/3; object-fit: cover; }
.post-gallery figcaption { color: var(--muted); font-size: 10px; }
.gallery-page-grid { columns: 3 280px; column-gap: 16px; }
.gallery-page-grid figure { break-inside: avoid; margin: 0 0 16px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-page-grid button { display: block; padding: 0; border: 0; width: 100%; }
.gallery-page-grid img { width: 100%; height: auto; }
.gallery-page-grid figcaption { padding: 10px 13px; font-size: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top right,#d8f2e9,transparent 40%),var(--surface-soft); }
.login-card { width: min(440px,100%); padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); text-align: center; }
.login-heading { margin: auto; width: 58px; height: 58px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); border-radius: 18px; font-size: 25px; font-weight: 900; }
.login-card h1 { margin: 18px 0 4px; }
.login-card > p { color: var(--muted); margin: 0 0 22px; }
.login-card .stack-form { text-align: right; }
.login-card .primary-btn { width: 100%; margin-top: 5px; }
.back-link { display: inline-block; color: var(--muted); margin-top: 20px; font-size: 11px; }
.input-with-icon { display: flex; align-items: center; gap: 7px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; padding: 0 11px; margin-top: 5px; }
.input-with-icon input { border: 0; margin: 0; box-shadow: none; background: transparent; }
.form-error, .success-alert { padding: 10px 13px; border-radius: 11px; margin: 12px 0; font-size: 11px; }
.form-error { color: #a52e43; background: #fde9ed; border: 1px solid #f5c7cf; }
.success-alert { color: #087057; background: #e1f6ef; border: 1px solid #bce8da; }
.admin-sidebar nav a { color: rgba(255,255,255,.62); padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.1); color: white; }
.logout-link { margin-top: 12px !important; color: #f0b4bd !important; display: flex !important; align-items: center; gap: 6px; }
.table-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: var(--primary-light); }
.content-row.compact { grid-template-columns: 44px 1fr auto 35px; }
.table-action, .row-actions a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-soft); }
.row-actions form { margin: 0; }
.admin-two-column { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.simple-list-item { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.simple-list-item strong,.simple-list-item small { display: block; }
.simple-list-item small { color: var(--muted); font-size: 10px; }
.simple-list-item button { border: 0; color: #b34558; background: #fde9ed; border-radius: 9px; width: 32px; height: 32px; }
.gallery-upload { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.admin-gallery figcaption { display: flex; justify-content: space-between; align-items: center; }
.admin-gallery form { display: inline; }
.admin-gallery button { border: 0; background: #fde9ed; color: #b34558; border-radius: 8px; padding: 5px; }
.editor-preview { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero-content { gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .social-shell { align-items: flex-start; flex-direction: column; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-right: 220px; padding-inline: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .media-library { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 74px; }
  .container { width: min(100% - 28px, 1180px); }
  .topbar { top: 8px; height: 62px; border-radius: 19px; width: calc(100% - 18px); padding: 0 10px; }
  .brand strong { font-size: 11px; }
  .brand small, .admin-link, #notificationBtn { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .top-actions { gap: 5px; }
  .icon-btn { width: 37px; height: 37px; }
  .hero { min-height: 900px; height: auto; padding: 125px 0 85px; align-items: start; }
  .hero-image { height: 100%; }
  .hero-overlay { background: linear-gradient(0deg, rgba(1,35,30,.94), rgba(1,35,30,.4)); }
  .hero-content { grid-template-columns: 1fr; gap: 38px; padding-top: 0; }
  .hero h1 { font-size: 49px; letter-spacing: -2px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .play-btn { justify-content: center; }
  .prayer-card { padding: 18px; }
  .prayer-times { grid-template-columns: repeat(5, minmax(55px, 1fr)); overflow-x: auto; }
  .section { padding: 68px 0; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 30px; }
  .announcement-layout { grid-template-columns: 1fr; }
  .announcement-item { grid-template-columns: 62px 1fr auto; gap: 10px; padding: 11px; }
  .announcement-item h3 { font-size: 13px; }
  .announcement-item p { font-size: 10px; }
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .martyrs-shell { padding: 30px 23px; grid-template-columns: 1fr; gap: 25px; }
  .martyrs-copy h2 { font-size: 29px; }
  .gallery-grid { height: 600px; grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; }
  .gallery-main { grid-column: 1 / 3; grid-row: auto; }
  .social-shell { padding: 25px 20px; }
  .social-links { width: 100%; display: grid; }
  .social-links a { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .mobile-nav { position: fixed; z-index: 45; bottom: 8px; left: 50%; transform: translateX(-50%); width: calc(100% - 16px); height: 65px; display: flex; justify-content: space-around; align-items: center; border-radius: 22px; padding: 4px 8px max(4px, env(safe-area-inset-bottom)); }
  .mobile-nav a { color: var(--muted); display: grid; justify-items: center; font-size: 9px; flex: 1; }
  .mobile-nav a span { display: block; }
  .mobile-nav a > span { font-size: 19px; line-height: 1.3; }
  .mobile-nav a.active { color: var(--primary); }
  .mobile-nav .mobile-main-action { align-self: flex-end; }
  .mobile-main-action > span { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 18px; box-shadow: 0 8px 20px rgba(8,127,104,.3); font-size: 25px !important; }
  .toast { bottom: 90px; width: max-content; max-width: calc(100% - 30px); text-align: center; }

  .admin-body { padding-bottom: 0; }
  .admin-sidebar { transform: translateX(110%); width: 255px; transition: .3s; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin: 0; padding: 0 13px 30px; }
  .admin-topbar { height: 70px; }
  .admin-menu-btn { display: grid; place-items: center; border: 0; color: var(--ink); background: var(--surface); width: 38px; height: 38px; border-radius: 11px; }
  .welcome-card { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-grid article { padding: 12px; gap: 8px; }
  .stats-grid .stat-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .admin-panels, .notification-composer { grid-template-columns: 1fr; }
  .content-row { grid-template-columns: 45px 1fr auto; }
  .content-row > .row-status { display: none; }
  .full-table .content-row { grid-template-columns: 45px 1fr auto; }
  .full-table .content-row > small, .full-table .content-row > .row-status { display: none; }
  .view-toolbar { align-items: flex-start; gap: 15px; }
  .view-toolbar .primary-btn { padding: 9px 12px; font-size: 10px; }
  .media-library { grid-template-columns: repeat(2, 1fr); }
  .admin-person { grid-template-columns: 42px 1fr auto; }
  .admin-person em { display: none; }
  .editor-form { grid-template-columns: 1fr; }
  .text-brand { max-width: 210px; }
  .text-brand strong { font-size: 10px; }
  .text-brand small { font-size: 6.5px; }
  .martyr-link-only { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .post-gallery { grid-template-columns: 1fr; }
  .admin-two-column { grid-template-columns: 1fr; }
  .gallery-upload { grid-template-columns: 1fr; }
  .blog-search { flex-direction: column; }
  .map-shell { height: 360px; }
  .modal { padding: 8px; }
  .modal-card { max-height: 96vh; border-radius: 19px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
