:root {
  --navy: #0b4f86;
  --navy-dark: #08395f;
  --navy-deep: #072c48;
  --navy-soft: #edf5fb;
  --gold: #cda24a;
  --gold-bright: #e4bc67;
  --gold-soft: #f8efdd;
  --green: #6e8f63;
  --green-soft: #eff4ed;
  --ink: #193247;
  --muted: #6a7d8d;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #e5ecf2;
  --shadow: 0 18px 48px rgba(7, 44, 72, 0.08);
  --shadow-soft: 0 10px 30px rgba(7, 44, 72, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbfd 0%, var(--paper) 220px, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
input, textarea { min-width: 0; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, 100%); }

.topstrip {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-dark));
  color: #eef6fb;
  font-size: 12px;
}
.topstrip-inside {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topstrip-left, .topstrip-right { display: flex; align-items: center; gap: 12px; }
.topstrip-right { color: #bfd4e5; }
.topstrip-right b { color: #fff; }
.light-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(228, 188, 103, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,79,134,0.08);
}
.header-inside {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(11,79,134,0.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; gap: 4px; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy-deep);
  letter-spacing: -0.4px;
}
.brand-text small {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.nav-main {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--navy-soft);
  color: var(--navy-dark);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #98a8b8;
}
.lang-select a { color: inherit; font-weight: 800; }
.lang-select a.chosen { color: var(--navy-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { font-size: 16px; line-height: 1; }
.btn-small { min-height: 40px; padding-inline: 16px; }
.btn-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11,79,134,0.18);
}
.btn-dark:hover { box-shadow: 0 18px 34px rgba(11,79,134,0.24); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--navy-deep);
  box-shadow: 0 14px 26px rgba(205,162,74,0.22);
}
.btn-gold:hover { box-shadow: 0 18px 30px rgba(205,162,74,0.28); }
.btn-outline {
  background: #fff;
  color: var(--navy-dark);
  border-color: rgba(11,79,134,0.18);
}
.btn-outline:hover { background: var(--navy-soft); }
.btn-glass {
  color: #fff;
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
}
.btn-glass:hover { background: rgba(255,255,255,0.14); }
.btn.full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(228,188,103,0.16), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(110,143,99,0.16), transparent 26%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 48%, var(--navy) 100%);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 35%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
}
.hero-content { padding: 84px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .22em;
  color: #dfeefe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow-line {
  width: 34px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 99px;
}
.hero h1, .subhero h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -1.2px;
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  max-width: 700px;
}
.hero-lead {
  max-width: 610px;
  font-size: 16px;
  line-height: 1.9;
  color: #d8e6f2;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-location {
  margin-top: 34px;
  color: #bfd4e5;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.location-mark { color: var(--gold-bright); font-size: 15px; margin-inline-end: 8px; }
.hero-art {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
}
.art-outer {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(228,188,103,0.28);
}
.art-outer:before, .art-outer:after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.14);
}
.art-outer:after { inset: 44px; }
.art-arch {
  width: 320px;
  height: 428px;
  border-radius: 170px 170px 0 0;
  border: 1px solid rgba(228,188,103,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  padding: 14px;
  overflow: hidden;
}
.art-arch-inner {
  height: 100%;
  border-radius: 158px 158px 0 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(228,188,103,0.26), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.art-moon {
  font-family: var(--serif);
  font-size: 120px;
  color: var(--gold-soft);
  line-height: 1;
  transform: rotate(-18deg);
}
.art-line { width: 68px; height: 1px; background: rgba(255,255,255,0.24); }
.art-arabic { font-size: 28px; color: #fff; }
.art-caption {
  color: #d8e6f2;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.art-spark { position: absolute; color: var(--gold-bright); }
.s1 { left: 24px; top: 86px; font-size: 26px; }
.s2 { right: 18px; top: 245px; font-size: 18px; }
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 20%, black 70%);
}

.prayer-section, .features-section, .news-section, .inner-section, .auth-section {
  padding: 88px 0;
}
.section-heading, .month-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}
.section-kicker {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-heading h2, .welcome-text h2, .month-top h2, .inner-section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.7px;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.section-heading p, .large-copy, .welcome-text p, .feature p, .news-card p, .prayer-source, .contact-card p {
  color: var(--muted);
}
.section-heading p { margin: 0; max-width: 560px; font-size: 14px; }
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.inline-link span { font-size: 18px; }

.next-row {
  background: linear-gradient(90deg, var(--navy-soft), #f9fcff);
  border: 1px solid rgba(11,79,134,0.1);
  border-radius: var(--radius) var(--radius) 0 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: var(--navy-dark);
  font-size: 14px;
}
.next-row .grow { flex: 1; }
.next-prayer-icon { font-size: 24px; color: var(--gold); }
.next-row strong { font-weight: 900; }
.countdown {
  min-width: 96px;
  text-align: center;
  color: var(--navy-deep);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
}
.countdown-label { color: var(--muted); font-size: 12px; }

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.prayer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 188px;
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.prayer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prayer-card-next {
  border-color: rgba(205,162,74,0.45);
  background: linear-gradient(180deg, #fffefb, var(--gold-soft));
}
.prayer-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.prayer-symbol { color: var(--gold); font-size: 24px; }
.prayer-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(110,143,99,0.16);
}
.prayer-name { margin-top: 16px; color: var(--muted); font-size: 14px; }
.prayer-time {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.35;
  color: var(--navy-dark);
}
.prayer-card small {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #95a4b0;
}
.prayer-source { margin-top: 18px; font-size: 13px; }

.welcome-section {
  background: linear-gradient(180deg, #f4f8fb 0%, #f9fbfd 100%);
  border-top: 1px solid rgba(11,79,134,0.06);
  border-bottom: 1px solid rgba(11,79,134,0.06);
}
.welcome-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.welcome-graphic {
  min-height: 360px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-dark));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.welcome-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(228,188,103,0.18), transparent 45%), radial-gradient(circle at 18% 20%, rgba(255,255,255,0.12), transparent 18%);
}
.welcome-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(228,188,103,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 118px;
  background: rgba(255,255,255,0.03);
  z-index: 1;
}
.welcome-small {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: #d9e7f4;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.welcome-text h2 { margin: 0 0 18px; }
.welcome-text p { margin: 0 0 24px; font-size: 15px; line-height: 1.95; max-width: 580px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-soft), #fff);
  border: 1px solid rgba(11,79,134,0.12);
  color: var(--gold);
  font-size: 26px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy-deep);
  margin: 18px 0 10px;
}
.feature p { font-size: 14px; line-height: 1.9; margin: 0; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card {
  background: linear-gradient(180deg, #fff, #fcfdff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}
.news-card-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.news-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  color: var(--navy-deep);
  margin: 18px 0 12px;
}
.news-card p { margin: 0; font-size: 14px; line-height: 1.85; }
.empty-state, .notice, .form-warning {
  background: linear-gradient(180deg, #fff, #fafcfe);
  border: 1px dashed rgba(11,79,134,0.18);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.empty-state {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.notice { margin-bottom: 20px; }

.subhero {
  padding: 84px 0 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 56%, var(--navy) 100%);
}
.subhero h1 {
  margin: 18px 0 10px;
  font-size: clamp(38px, 4vw, 56px);
}
.subhero p {
  max-width: 780px;
  color: #d7e7f3;
  font-size: 16px;
  margin: 0;
}

.table-scroller {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
}
.times-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 14px;
}
.times-table th {
  background: linear-gradient(180deg, #f7fbff, #eef6fb);
  color: var(--navy-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
}
.times-table td {
  padding: 14px;
  border-bottom: 1px solid #edf2f6;
  color: var(--ink);
}
.times-table tbody tr:hover { background: #fbfdff; }
.times-table tbody tr.is-today { background: linear-gradient(90deg, var(--gold-soft), #fff); }
.times-table a { color: var(--navy); font-weight: 700; }
.download-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.month-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 8px 12px;
}
.month-nav a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-soft);
  color: var(--navy-dark);
  font-size: 24px;
  line-height: 1;
}
.month-nav strong { color: var(--navy-deep); font-size: 14px; }
.chosen-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.date-picker input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
}

.auth-card, .contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.auth-section .container { display: flex; justify-content: center; }
.auth-card { width: min(520px, 100%); }
.registration-card { width: min(680px, 100%); }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.registration-grid > div { min-width: 0; }
.registration-card > form > .btn { margin-top: 20px; }
.registration-card > .inline-link { margin-top: 16px; }
.auth-icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--navy-soft), #fff);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 1px solid rgba(11,79,134,0.12);
  margin-bottom: 18px;
}
.auth-card h2, .contact-card h2 { margin: 0 0 12px; color: var(--navy-deep); }
.auth-card p, .contact-card p { margin: 0 0 18px; }
.auth-card label, .admin-card label {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.auth-card input, .admin-card input, .admin-card textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
}
.admin-card textarea { min-height: 120px; resize: vertical; }
.auth-card input:focus, .admin-card input:focus, .admin-card textarea:focus, .date-picker input:focus {
  outline: none;
  border-color: rgba(11,79,134,0.42);
  box-shadow: 0 0 0 4px rgba(11,79,134,0.09);
}
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form-warning { margin-top: 16px; }
.change-phone, .logout-form { margin-top: 14px; }
.change-phone button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  padding: 0;
}
.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.account-details div {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.account-details span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.account-details strong { color: var(--navy-deep); }
.admin-subtitle { margin-top: 36px !important; }
.admin-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.danger-button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  border: 0;
  background: #8b1f28;
  color: #fff;
  font-weight: 800;
}
.contact-card { max-width: 720px; margin-inline: auto; }
.large-copy { font-size: 16px; line-height: 1.95; }
.standalone-features { margin-top: 28px; }
.inner-prayers { padding-top: 54px; }

.footer {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-dark));
  color: #e7f1f8;
  padding: 64px 0 24px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: #fff;
}
.footer-brand small {
  color: #c1d7e7;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}
.footer p { color: #c9ddeb; max-width: 620px; }
.footer-links {
  display: grid;
  gap: 10px;
  justify-content: end;
}
.footer-links a {
  color: #fff;
  font-weight: 700;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #bdd4e6;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .hero-layout, .welcome-layout, .footer-top, .features-grid, .news-grid { grid-template-columns: 1fr; }
  .prayer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-art { order: -1; padding-top: 24px; }
  .footer-links { justify-content: start; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inside { flex-wrap: wrap; padding: 14px 0; }
  .nav-main { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .header-actions { margin-left: auto; }
  .hero-content { padding: 64px 0 48px; }
  .hero h1 { font-size: 38px; }
  .hero-layout { min-height: auto; gap: 28px; }
  .prayer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-heading, .month-top, .chosen-date-header, .footer-bottom, .topstrip-inside { flex-direction: column; align-items: flex-start; }
  .download-actions, .hero-buttons { width: 100%; }
  .btn { width: 100%; }
  .account-details { grid-template-columns: 1fr; }
  .auth-card, .contact-card, .feature, .news-card { padding: 24px; }
  .welcome-circle { width: 180px; height: 180px; font-size: 94px; }
  .art-outer { width: 320px; height: 320px; }
  .art-arch { width: 260px; height: 360px; }
}

@media (max-width: 520px) {
  .brand-text strong { font-size: 20px; }
  .brand-icon { width: 56px; height: 56px; }
  .prayer-grid { grid-template-columns: 1fr; }
  .times-table { min-width: 700px; }
  .subhero { padding: 70px 0 42px; }
}

/* Mosque & Cultural Association edition · navy, gold and sage from the association emblem */
:root {
  --navy: #0a4775;
  --navy-dark: #073b60;
  --navy-deep: #062c49;
  --gold: #c59b46;
  --gold-bright: #e3bf72;
  --green: #638461;
  --paper: #fffcf6;
  --gold-soft: #f9f0df;
  --radius: 16px;
}
body { background: var(--paper); }
.topstrip { border-bottom: 1px solid rgba(227,191,114,.2); }
.site-header { border-bottom: 2px solid #e7d4ad; }
.nav-link.active { background: #fff6e6; color: var(--navy-dark); }
.nav-link.active:after { content: ''; width: 19px; height: 2px; display: block; margin: 2px auto -4px; background: var(--gold); }
.hero {
  background:
    radial-gradient(circle at 79% 45%, rgba(203,166,91,.17), transparent 37%),
    repeating-linear-gradient(120deg, transparent 0 62px, rgba(255,255,255,.018) 63px 64px),
    linear-gradient(120deg, #052b47, #0a456d 70%, #0a3859);
}
.hero-layout { min-height: 590px; gap: 44px; }
.hero-content { padding-block: 85px; }
.hero h1 { font-size: clamp(42px, 4.7vw, 66px); }
.hero-location-dot { padding: 0 8px; color: var(--gold-bright); }
.hero-art { min-height: 510px; isolation: isolate; }
.mosque-glow {
  position: absolute; width: 460px; height: 460px; border: 1px solid #edd09a48;
  border-radius: 50%; box-shadow: 0 0 0 28px #e4bc670e, 0 0 0 58px #e4bc6708;
  background: radial-gradient(circle, #c79d4645, #c79d4610 49%, transparent 70%);
}
.mosque-stars { position: absolute; top: 36px; inset-inline-end: 16%; color: #e9d2a3; letter-spacing: 2em; font-size: 16px; }
.mosque-scene { width: min(480px,100%); height: 350px; position: relative; align-self: center; z-index: 1; margin-top: 26px; }
.mosque-crescent { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font-size: 47px; line-height: 1; color: #f1d7a2; text-shadow: 0 0 40px #d6a74f80; }
.mosque-building { position: absolute; width: 254px; height: 255px; bottom: 20px; left: 50%; transform: translateX(-50%); }
.mosque-dome { position: absolute; height: 127px; width: 215px; left: 19px; top: 0; border-radius: 115px 115px 6px 6px; background: linear-gradient(105deg,#e1bc70,#b78036 48%,#e6c888); border: 3px solid #f7dfb0; box-shadow: 0 0 48px #e6bb5c24; }
.mosque-dome:before { content: '☾'; position: absolute; top: -48px; left: 93px; font-size: 41px; color: #eed6a2; }
.mosque-dome-neck { position: absolute; left: 9px; top: 119px; width: 234px; height: 20px; background: #edd3a3; border: 3px solid #f9e7c5; }
.mosque-body { display: flex; position: absolute; left: 0; top: 136px; width: 254px; height: 119px; align-items: end; gap: 12px; padding: 18px 23px 0; background: linear-gradient(115deg,#dab574,#f1d6a2 55%,#c99d59); border: 4px solid #f9dfb1; border-radius: 5px 5px 0 0; }
.mosque-body span { flex: 1; height: 82px; border-radius: 44px 44px 0 0; background: linear-gradient(125deg,#103e5b,#0a3450); border: 4px solid #f7e2bc; border-bottom: 0; }
.mosque-body span:nth-child(2) { height: 100px; background: linear-gradient(#0b4775,#082d46); }
.mosque-minaret { position: absolute; width: 55px; height: 249px; bottom: 20px; background: linear-gradient(95deg,#d7b47c,#f3d7a6 45%,#b7894d); border: 3px solid #f3deb7; border-bottom: 0; }
.mosque-minaret:before { content: ''; position: absolute; width: 71px; height: 16px; left: -11px; top: 39px; background: #efd29f; border: 2px solid #f9e6c3; }
.mosque-minaret:after { content: ''; position: absolute; left: 7px; top: -53px; width: 33px; height: 53px; border-radius: 30px 30px 0 0; background: linear-gradient(100deg,#c4964e,#f2d8a7); border: 2px solid #f5ddb1; }
.mosque-minaret i { position: absolute; left: 19px; top: -74px; height: 21px; width: 5px; background: #e9c884; }
.mosque-minaret-left { left: 22px; }
.mosque-minaret-right { right: 22px; }
.mosque-plaque { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); z-index: 2; border: 1px solid #eed4a08a; border-radius: 13px; background: rgba(5,41,66,.92); min-width: 225px; text-align: center; padding: 7px 18px; box-shadow: 0 12px 30px #041d3299; }
.mosque-plaque span { display: block; color: #fff5dd; font-size: 21px; line-height: 1.3; }
.mosque-plaque small { display: block; font-size: 9px; color: #e6cc97; letter-spacing: .13em; }
.prayer-section { position: relative; background: linear-gradient(180deg,#fffdf8,#f8f6f0); }
.prayer-section:before, .features-section:before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; opacity: .75; background: repeating-linear-gradient(90deg,var(--gold) 0 22px,transparent 22px 36px,var(--green) 36px 48px, transparent 48px 64px); }
.prayer-card { border-top: 3px solid #dac08d; }
.prayer-card-next { border-top-color: var(--green); }
.prayer-underbar { margin-top: 19px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.prayer-source { margin: 0; }
.prayer-pdf-action { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; color: var(--navy-dark); border: 1px solid #e3cfa5; background: #fff6e4; border-radius: 12px; font-weight: 800; font-size: 13px; }
.prayer-pdf-action:hover { background: #f7e7c7; }
.welcome-section { background: #f8f4eb; }
.welcome-graphic { border-radius: 170px 170px 20px 20px; background: radial-gradient(circle at 50% 25%,#135377,#062f4e 74%); border: 3px solid #d2b077; min-height: 415px; }
.welcome-pattern { opacity: .62; background: repeating-radial-gradient(circle at 50% 50%,transparent 0 28px,#d0ac7150 29px 30px); }
.welcome-emblem { position: relative; z-index: 1; width: min(260px,70%); padding: 15px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 9px #e4bc6736,0 25px 65px #061d3090; }
.welcome-emblem img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.features-section { position: relative; }
.feature { border-top: 3px solid #d9bf8b; }
.feature:nth-child(2) { border-top-color: var(--green); }
.feature-icon { background: #fff6e6; color: var(--navy); }
.subhero { border-bottom: 5px solid #d4af69; }
.footer { border-top: 5px solid #d8b877; }
[dir='rtl'] .times-table th { text-align: right; }
[dir='rtl'] .hero-art { direction: ltr; }
@media (max-width: 1100px) { .hero-art { min-height: 490px; } }
@media (max-width: 760px) {
 .hero-layout { gap: 8px; }
 .hero-art { order: 0; min-height: 395px; padding-top: 0; }
 .mosque-scene { transform: scale(.75); }
 .mosque-glow { width: 310px; height: 310px; }
 .welcome-graphic { min-height: 330px; }
 .welcome-emblem { width: 205px; }
}
@media (prefers-reduced-motion: reduce) {
 * { scroll-behavior: auto !important; transition: none !important; }
}


/* Member accounts, payment records and compact prayer-time presentation */
.next-row {
  min-height: 50px;
  padding: 10px 15px;
  gap: 9px;
  border-radius: 13px 13px 0 0;
  font-size: 13px;
}
.next-prayer-icon { font-size: 18px; }
.countdown { min-width: 82px; font-size: 15px; }
.prayer-grid { gap: 9px; }
.prayer-card {
  min-height: 128px;
  padding: 13px 14px 12px;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(4,42,69,.05);
}
.prayer-card:hover { transform: translateY(-2px); }
.prayer-card-top { min-height: 20px; }
.prayer-symbol { font-size: 18px; }
.prayer-pulse { width: 7px; height: 7px; box-shadow: 0 0 0 5px rgba(110,143,99,.13); }
.prayer-name { margin-top: 7px; font-size: 12px; font-weight: 700; }
.prayer-time { margin-top: 1px; font-size: 27px; line-height: 1.22; }
.prayer-card small { margin-top: 3px; font-size: 8px; letter-spacing: .12em; }
.prayer-underbar { margin-top: 14px; }
.prayer-source { font-size: 12px; }
.prayer-pdf-action { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.inner-prayers { padding-top: 28px; }

.account-section .container { display: block; }
.account-layout { width: min(1120px,100%); margin: 0 auto; display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 22px; align-items: start; }
.profile-swish-card{display:flex;align-items:center;gap:22px;margin-bottom:18px;padding:16px 20px;border:1px solid rgba(205,162,74,.48);border-radius:20px;background:linear-gradient(135deg,#fff 0%,#fffdf8 100%);box-shadow:var(--shadow-soft)}.profile-swish-image-wrap{flex:0 0 158px;line-height:0}.profile-swish-image{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:15px}.profile-swish-copy{min-width:0}.profile-swish-copy h2{margin:4px 0 6px;color:var(--navy-deep);font-family:var(--serif);font-size:23px;line-height:1.2}.profile-swish-copy p{margin:0 0 11px;color:var(--muted);font-size:13px;line-height:1.55}.profile-swish-number{display:block;margin:0 0 12px;color:var(--navy-deep);font-size:17px;letter-spacing:.04em}.profile-swish-link{min-height:42px;padding:0 16px}.account-layout .auth-card { width: 100%; }
.admin-account-link { display: inline-flex; margin-top: 18px; }
.payment-summary-grid, .admin-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px 18px; box-shadow: var(--shadow-soft); }
.summary-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.summary-card strong { color: var(--navy-deep); font-size: 21px; line-height: 1.2; }
.payment-history-card, .admin-section-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); padding: 22px; }
.card-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.card-heading h2 { margin: 4px 0 0; color: var(--navy-deep); }
.records-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
.records-table th { padding: 10px 11px; text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.records-table td { padding: 12px 11px; border-bottom: 1px solid #eef2f4; vertical-align: middle; }
.records-table tbody tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #fbf9f4; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); }
.compact-empty { margin: 8px 0 0; padding: 22px; }

.admin-dashboard > .container { width: min(100% - 36px, 1220px); }
.admin-two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; align-items: start; }
.admin-two-column .auth-card { width: 100%; }
.admin-card select { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 10px 14px; color: var(--ink); }
.admin-card select:focus { outline: none; border-color: rgba(11,79,134,.42); box-shadow: 0 0 0 4px rgba(11,79,134,.09); }
.form-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.admin-section-card { margin-top: 20px; }
.admin-badge { display: inline-flex; align-items: center; margin-inline-start: 6px; padding: 3px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--navy-deep); font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.small-danger { min-height: 32px; padding: 0 11px; font-size: 11px; }
.inline-email-form { display: flex; align-items: center; gap: 6px; min-width: 270px; }
.inline-email-form input { min-width: 0; width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; color: var(--ink); background: #fff; }
.inline-email-form .btn { min-height: 38px; padding: 0 10px; white-space: nowrap; }

@media (max-width: 900px) {
  .account-layout, .admin-two-column { grid-template-columns: 1fr; }
  .profile-card { max-width: none; }
}
@media (max-width: 760px) {
  .payment-summary-grid, .admin-stat-grid { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .registration-grid { grid-template-columns: 1fr; }
  .admin-dashboard > .container { width: min(100% - 24px, 1220px); }
  .payment-history-card, .admin-section-card { padding: 16px; }
}
@media (max-width: 520px) {
  .profile-swish-card{flex-direction:column;align-items:center;gap:14px;padding:15px;text-align:center}.profile-swish-image-wrap{flex:0 0 auto;width:155px}.profile-swish-copy{width:100%}.profile-swish-copy h2{font-size:20px}.profile-swish-copy p{font-size:12px}.prayer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .prayer-card { min-height: 116px; padding: 11px 12px 10px; }
  .prayer-time { font-size: 24px; }
  .prayer-name { font-size: 11px; }
  .next-row .grow, .countdown-label { display: none; }
}
[dir='rtl'] .records-table th { text-align: right; }


/* Hide the site header while the visitor scrolls down; reveal it on upward scroll. */
.site-header {
  transition: transform 280ms ease;
  will-change: transform;
}
.site-header.is-hidden {
  transform: translateY(-110%);
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition-duration: 1ms;
  }
}

/* Keep the header in normal document flow so it scrolls away on desktop and mobile. */
.site-header {
  position: static !important;
  top: auto !important;
}
