/* ╔════════════════════════════════════════════════════════════╗
   ║  Al-Qirad PWA — Design Tokens (matches admin v2)            ║
   ╚════════════════════════════════════════════════════════════╝ */
:root {
  /* Primary: refined emerald */
  --aq-green: #0c803c;
  --aq-green-dark: #08653a;
  --aq-green-darker: #022c1a;
  --aq-green-light: #10a049;
  --aq-green-50: #f0fdf5;
  --aq-green-100: #dcfce8;
  --aq-green-200: #bbf7d1;

  /* Accent: warm gold */
  --aq-gold: #f2bb4a;
  --aq-gold-light: #f7d57e;
  --aq-gold-dark: #d18d1d;
  --aq-gold-50: #fefbf3;
  --aq-gold-100: #fdf5d8;

  /* Neutrals: warm stone (less corporate) */
  --aq-cream: #fefbf3;
  --aq-bg: #fafaf9;
  --aq-bg-2: #f4f4f1;
  --aq-text: #1c1b18;
  --aq-text-soft: #2c2a26;
  --aq-muted: #5a5852;
  --aq-muted-light: #a8a59b;
  --aq-border: #e7e6e1;
  --aq-border-soft: #f4f4f1;

  /* Status — refined */
  --status-green: #10a049;
  --status-orange: #ecaa28;
  --status-red: #dc2626;
  --status-grey: #a8a59b;

  /* Premium shadows */
  --shadow-soft: 0 1px 2px rgba(28, 27, 24, 0.04), 0 1px 3px rgba(28, 27, 24, 0.06);
  --shadow-lift: 0 10px 28px -10px rgba(10, 79, 47, 0.18), 0 2px 4px rgba(28, 27, 24, 0.04);
  --shadow-glow: 0 0 0 1px rgba(16, 160, 73, 0.08), 0 8px 24px -8px rgba(10, 79, 47, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--aq-text);
  background: var(--aq-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(16, 160, 73, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(236, 170, 40, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--aq-bg) 0%, var(--aq-bg-2) 100%);
  background-attachment: fixed;
}

/* Editorial serif for hero text */
.aq-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  HEADER (glass with gold mark)
   ╚════════════════════════════════════════════════════════════╝ */
.aq-header {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: linear-gradient(135deg, var(--aq-green-dark) 0%, var(--aq-green-darker) 100%);
  color: #fff;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0));
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(2, 44, 26, 0.18);
  overflow: hidden;
}
.aq-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2bb4a' fill-opacity='0.06'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.aq-header > * { position: relative; z-index: 1; }

.aq-header__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

/* Sub-page header — make room for floating back button on left */
.aq-header--sub .aq-header__brand { padding-left: 52px; }

.aq-header__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--aq-gold-light), var(--aq-gold));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 44, 26, 0.35);
}
.aq-header__mark svg { width: 18px; height: 18px; color: var(--aq-green-darker); }

.aq-header__logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.005em;
}

.aq-header__sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: rgba(247, 213, 126, 0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1;
}

.aq-header__location {
  display: none; /* moved to status strip */
}

.aq-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.aq-header__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color .15s, transform .1s;
}
.aq-header__btn:hover { background: rgba(255,255,255,.16); }
.aq-header__btn:active { transform: scale(.94); }
.aq-header__btn svg { width: 17px; height: 17px; stroke-width: 1.75; }

.aq-header__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--aq-gold);
  color: var(--aq-green-darker);
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  border: 2px solid var(--aq-green-dark);
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  STATUS STRIP — live stat tiles
   ╚════════════════════════════════════════════════════════════╝ */
.aq-status-bar {
  background: linear-gradient(180deg, var(--aq-cream) 0%, var(--aq-bg) 100%);
  border-bottom: 1px solid var(--aq-border-soft);
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.aq-status-bar::-webkit-scrollbar { display: none; }

.aq-status-tile {
  flex: 1;
  min-width: 86px;
  background: #fff;
  border-radius: 12px;
  padding: 9px 11px;
  border: 1px solid var(--aq-border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.aq-status-tile__lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--aq-muted);
}
.aq-status-tile__num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  margin-top: 4px;
  color: var(--aq-text);
}
.aq-status-tile__sub {
  font-size: 10px;
  color: var(--aq-muted);
  margin-top: 2px;
  font-weight: 500;
}
.aq-status-tile--accent {
  background: linear-gradient(135deg, var(--aq-green-50) 0%, #fff 100%);
  border-color: var(--aq-green-200);
}
.aq-status-tile--accent .aq-status-tile__num { color: var(--aq-green-dark); }
.aq-status-tile--accent::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 4px rgba(16, 160, 73, 0.2);
  animation: aq-stat-pulse 1.6s ease-in-out infinite;
}
@keyframes aq-stat-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,160,73,0.20); }
  50%      { box-shadow: 0 0 0 7px rgba(16,160,73,0.05); }
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  BOTTOM NAV — floating glass bar
   ╚════════════════════════════════════════════════════════════╝ */
.aq-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent 0%, rgba(250, 250, 249, 0.4) 30%, rgba(250, 250, 249, 0.95) 100%);
  pointer-events: none;
}
.aq-bottom-nav__inner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(231, 230, 225, 0.7);
  border-radius: 20px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: var(--shadow-lift);
}
.aq-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--aq-muted);
  font-size: 10px;
  font-weight: 600;
  gap: 2px;
  border: none;
  background: none;
  border-radius: 14px;
  transition: color .15s, background-color .15s, transform .1s;
  position: relative;
}
.aq-bottom-nav a:active { transform: scale(.95); }

.aq-bottom-nav a.active {
  color: var(--aq-green-dark);
}
.aq-bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--aq-green), var(--aq-gold));
  border-radius: 0 0 3px 3px;
}

.aq-bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  margin-bottom: 1px;
}
.aq-bottom-nav a span:not(.aq-bottom-nav__lbl) { display: none; }
.aq-bottom-nav__lbl { letter-spacing: 0.02em; }

/* ╔════════════════════════════════════════════════════════════╗
   ║  BUTTONS (premium gradients + lift)
   ╚════════════════════════════════════════════════════════════╝ */
.aq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .15s, background-color .15s;
  font-family: inherit;
  letter-spacing: 0.005em;
}
.aq-btn:active { transform: scale(0.97); }

.aq-btn--primary {
  background: linear-gradient(135deg, var(--aq-green) 0%, var(--aq-green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 101, 58, 0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}
.aq-btn--primary:hover {
  box-shadow: 0 6px 18px rgba(8, 101, 58, 0.38), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.aq-btn--gold {
  background: linear-gradient(135deg, var(--aq-gold-light) 0%, var(--aq-gold) 100%);
  color: var(--aq-green-darker);
  box-shadow: 0 4px 12px rgba(242, 187, 74, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.aq-btn--gold:hover {
  box-shadow: 0 6px 18px rgba(242, 187, 74, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.aq-btn--ghost {
  background: rgba(255,255,255,0.7);
  color: var(--aq-text-soft);
  border: 1px solid var(--aq-border);
  backdrop-filter: blur(8px);
}
.aq-btn--ghost:hover {
  background: #fff;
  border-color: var(--aq-muted-light);
}

.aq-btn--block { width: 100%; }
.aq-btn--lg { padding: 14px 24px; font-size: 15px; }

/* ╔════════════════════════════════════════════════════════════╗
   ║  FORMS (refined inputs)
   ╚════════════════════════════════════════════════════════════╝ */
.aq-form { display: flex; flex-direction: column; gap: 14px; }
.aq-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--aq-muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.aq-field input, .aq-field select, .aq-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--aq-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  color: var(--aq-text);
  transition: border-color .18s, box-shadow .18s;
}
.aq-field input::placeholder, .aq-field textarea::placeholder { color: var(--aq-muted-light); }
.aq-field input:focus, .aq-field select:focus, .aq-field textarea:focus {
  border-color: var(--aq-green-light);
  box-shadow: 0 0 0 4px rgba(16,160,73,.12);
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  LAYOUT & CARDS
   ╚════════════════════════════════════════════════════════════╝ */
.aq-page {
  padding: 16px;
  padding-bottom: 92px;
}

.aq-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--aq-border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.aq-card--glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  SPLASH SCREEN — cinematic intro
   ╚════════════════════════════════════════════════════════════╝ */
.aq-splash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(242, 187, 74, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom, rgba(16, 160, 73, 0.20) 0%, transparent 55%),
    linear-gradient(135deg, var(--aq-green-darker) 0%, var(--aq-green-dark) 50%, var(--aq-green) 100%);
  display: grid;
  place-items: center;
  z-index: 9999;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.aq-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2bb4a' fill-opacity='0.05'%3E%3Cpath d='M40 0l10 30h30L55 50l10 30L40 60 15 80l10-30L0 30h30z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}
.aq-splash::after {
  content: 'ﷲ';
  position: absolute;
  font-family: 'Amiri', serif;
  font-size: 38vh;
  line-height: 1;
  color: var(--aq-gold);
  opacity: 0.05;
  pointer-events: none;
  animation: aq-splash-glow 3s ease-in-out infinite;
}
@keyframes aq-splash-glow {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50%      { opacity: 0.07; transform: scale(1.04); }
}

.aq-splash > * {
  position: relative;
  z-index: 1;
  animation: aq-splash-fade .8s ease-out;
}
@keyframes aq-splash-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aq-splash__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--aq-gold-light), var(--aq-gold));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(2, 44, 26, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
}
.aq-splash__mark svg {
  width: 32px;
  height: 32px;
  color: var(--aq-green-darker);
  stroke-width: 2.5;
}

.aq-splash__logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
  line-height: 1;
}

.aq-splash__tag {
  font-size: 11px;
  color: rgba(247, 213, 126, 0.85);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
}

.aq-splash__loader {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.aq-splash__loader span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aq-gold);
  opacity: 0.4;
  animation: aq-loader-pulse 1.2s ease-in-out infinite;
}
.aq-splash__loader span:nth-child(2) { animation-delay: 0.15s; }
.aq-splash__loader span:nth-child(3) { animation-delay: 0.30s; }
@keyframes aq-loader-pulse {
  0%, 80%, 100% { opacity: 0.4; transform: scale(1); }
  40%           { opacity: 1; transform: scale(1.4); }
}

/* ==== Utilities ==== */
.aq-text-muted { color: var(--aq-muted); }
.aq-text-center { text-align: center; }
.aq-mt-2 { margin-top: 8px; }
.aq-mt-4 { margin-top: 16px; }
.aq-mb-4 { margin-bottom: 16px; }

.aq-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.aq-alert--error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.aq-alert--success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.aq-alert--info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ╔════════════════════════════════════════════════════════════╗
   ║  LIST TOOLBAR — search + filter, glass
   ╚════════════════════════════════════════════════════════════╝ */
.aq-list-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(254, 251, 243, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--aq-border-soft);
  position: sticky;
  top: 0;
  z-index: 999;
}
.aq-list-toolbar input,
.aq-list-toolbar select {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--aq-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
  color: var(--aq-text);
  transition: border-color .15s, box-shadow .15s;
}
.aq-list-toolbar input:focus,
.aq-list-toolbar select:focus {
  border-color: var(--aq-green-light);
  box-shadow: 0 0 0 4px rgba(16,160,73,.12);
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  MOSQUE CARDS — premium with status dot + chevron
   ╚════════════════════════════════════════════════════════════╝ */
.aq-mosque-card {
  background: #fff;
  border: 1px solid var(--aq-border-soft);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform .12s, box-shadow .18s, border-color .15s;
  box-shadow: var(--shadow-soft);
}
.aq-mosque-card:hover {
  border-color: var(--aq-green-200);
  box-shadow: var(--shadow-lift);
}
.aq-mosque-card:active { transform: scale(0.99); }

.aq-mosque-card__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
}
.aq-mosque-card__dot--green { background: var(--status-green); box-shadow: 0 0 0 4px rgba(16,160,73,0.12); }
.aq-mosque-card__dot--orange { background: var(--status-orange); animation: aq-pulse-dot 2s ease-in-out infinite; }
.aq-mosque-card__dot--red { background: var(--status-red); animation: aq-pulse-dot 0.9s ease-in-out infinite; }
.aq-mosque-card__dot--grey { background: var(--status-grey); box-shadow: 0 0 0 4px rgba(168,165,155,0.10); }

@keyframes aq-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 8px transparent; opacity: .65; }
}

.aq-mosque-card__body { flex: 1; min-width: 0; }
.aq-mosque-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--aq-text);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.aq-mosque-card__meta {
  font-size: 11.5px;
  color: var(--aq-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.5;
}
.aq-mosque-card__meta strong {
  color: var(--aq-green-dark);
  font-weight: 700;
  background: var(--aq-green-50);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
}
.aq-mosque-card__chevron {
  color: var(--aq-muted-light);
  font-size: 18px;
  align-self: center;
  flex-shrink: 0;
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  PAGE TITLE BAR (notifications, mosque detail)
   ╚════════════════════════════════════════════════════════════╝ */
.aq-page-title {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: linear-gradient(135deg, var(--aq-green-dark) 0%, var(--aq-green-darker) 100%);
  color: #fff;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0));
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(2, 44, 26, 0.18);
  overflow: hidden;
}
.aq-page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2bb4a' fill-opacity='0.06'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.aq-page-title > * { position: relative; z-index: 1; }
.aq-page-title h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  flex: 1;
  letter-spacing: -0.005em;
}
.aq-back-btn {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .15s, transform .1s;
  flex-shrink: 0;
  padding: 0;
}
.aq-back-btn:hover { background: rgba(255,255,255,.18); }
.aq-back-btn:active { transform: scale(.94); }
.aq-back-btn svg { width: 18px; height: 18px; stroke-width: 2.5; }

/* Right-side actions inside .aq-page-title */
.aq-page-title__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.aq-page-title__action {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .15s, transform .1s;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
}
.aq-page-title__action:hover { background: rgba(255,255,255,.18); }
.aq-page-title__action:active { transform: scale(.94); }
.aq-page-title__action svg { width: 18px; height: 18px; stroke-width: 2; }
.aq-page-title__action--wide {
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}

/* ==== Detail page ==== */
.aq-detail-hero {
  background: linear-gradient(135deg, var(--aq-green) 0%, var(--aq-green-dark) 100%);
  color: #fff;
  padding: 16px;
}
.aq-detail-hero h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.aq-detail-hero .addr { opacity: .9; font-size: 13px; line-height: 1.4; }
.aq-detail-photo {
  display: block;
  width: calc(100% + 32px);
  margin: -16px -16px 14px;
  height: 200px;
  object-fit: cover;
  background: rgba(0, 0, 0, .15);
}

.aq-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  background: rgba(255,255,255,.15);
}

.aq-detail-status .dot { width: 10px; height: 10px; border-radius: 50%; }

.aq-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--aq-border);
}

.aq-action-btn {
  background: none;
  border: 1px solid var(--aq-border);
  border-radius: 10px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--aq-text);
  cursor: pointer;
  transition: background .15s;
}
.aq-action-btn span:first-child { font-size: 18px; }
.aq-action-btn:active { background: var(--aq-cream); }
.aq-action-btn.active { background: var(--aq-green); color: #fff; border-color: var(--aq-green); }

.aq-section {
  padding: 14px 16px;
}
.aq-section h2 { font-size: 14px; color: var(--aq-muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

.aq-announcement-card {
  background: #fff;
  border: 1px solid var(--aq-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.aq-announcement-card .title { font-weight: 600; }
.aq-announcement-card .meta { font-size: 12px; color: var(--aq-muted); margin-top: 2px; }

.aq-empty {
  text-align: center;
  color: var(--aq-muted);
  padding: 24px;
  font-size: 13px;
}

/* ==== Check-in CTA ==== */
.aq-checkin-cta {
  background: linear-gradient(135deg, var(--aq-gold) 0%, #B8941A 100%);
  color: #1f1f1f;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.aq-checkin-cta__text { flex: 1; font-size: 13px; line-height: 1.3; }
.aq-checkin-cta__text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.aq-checkin-cta__btn {
  background: var(--aq-green);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.aq-checkin-cta__btn:disabled { opacity: .6; cursor: not-allowed; }
.aq-checkin-cta__btn:active { transform: scale(0.97); }

.aq-checkin-done {
  background: #D1FAE5;
  color: #065F46;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #A7F3D0;
}

/* ==== Pahala tracker ==== */
.aq-pahala-hero {
  background: linear-gradient(135deg, var(--aq-green) 0%, var(--aq-green-dark) 100%);
  color: #fff;
  padding: 30px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aq-pahala-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top right, rgba(212,175,55,.15) 0%, transparent 60%);
  pointer-events: none;
}
.aq-pahala-counter {
  font-family: Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--aq-gold);
  line-height: 1;
  letter-spacing: -1px;
  position: relative;
}
.aq-pahala-counter sub { font-size: 20px; color: #fff; opacity: .85; font-weight: 500; margin-left: 6px; vertical-align: baseline; font-family: inherit; }
.aq-pahala-tag {
  font-size: 13px;
  opacity: .9;
  margin-top: 6px;
  position: relative;
}
.aq-pahala-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #fff;
}
.aq-pahala-stat {
  background: var(--aq-cream);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.aq-pahala-stat .num { font-size: 22px; font-weight: 700; color: var(--aq-green); line-height: 1; display: inline-flex; align-items: center; gap: 4px; }
.aq-pahala-stat .lbl { font-size: 10px; color: var(--aq-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

.aq-pahala-stat--streak {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  border: 1px solid #fdba74;
}
.aq-pahala-stat--streak .num { color: #c2410c; }
.aq-streak-flame {
  font-size: 18px;
  animation: aq-flame-pulse 1.6s ease-in-out infinite;
}
@keyframes aq-flame-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* === Milestone card === */
.aq-milestone-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  margin: 0 12px;
}
.aq-milestone-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.aq-milestone-title { font-size: 14px; color: var(--aq-text); }
.aq-milestone-title b { color: var(--aq-green-dark, #0E3F12); font-size: 16px; }
.aq-milestone-sub {
  font-size: 12px;
  color: var(--aq-green);
  font-weight: 600;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 999px;
}
.aq-milestone-bar {
  height: 10px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.aq-milestone-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aq-green) 0%, var(--aq-gold, #D4AF37) 100%);
  border-radius: 6px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.aq-milestone-pct {
  text-align: right;
  font-size: 11px;
  color: var(--aq-muted);
  margin-top: 6px;
}
.aq-milestone-badge {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 10px;
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aq-milestone-hint {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,255,255,.6);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--aq-muted);
  font-style: italic;
}

.aq-history-card {
  background: #fff;
  border: 1px solid var(--aq-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aq-history-card__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #D1FAE5;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.aq-history-card__body { flex: 1; min-width: 0; }
.aq-history-card__name { font-weight: 600; font-size: 14px; }
.aq-history-card__meta { font-size: 12px; color: var(--aq-muted); margin-top: 2px; }
.aq-history-card__qirat { color: var(--aq-gold); font-weight: 700; font-size: 12px; }

/* ==== Kaifiat ==== */
.aq-step-nav {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--aq-border);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 60px;
  z-index: 999;
}
.aq-step-nav::-webkit-scrollbar { display: none; }

.aq-step-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--aq-cream);
  color: var(--aq-text);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--aq-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.aq-step-pill.active {
  background: var(--aq-green);
  color: #fff;
  border-color: var(--aq-green);
}

.aq-kaifiat-card {
  background: #fff;
  margin: 12px 14px;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--aq-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.aq-kaifiat-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--aq-green);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--aq-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.aq-kaifiat-card__order {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--aq-gold);
  color: #1f1f1f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.aq-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--aq-cream);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.aq-tab {
  background: transparent;
  border: none;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aq-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all .15s;
}
.aq-tab.active {
  background: #fff;
  color: var(--aq-green);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.aq-arabic {
  font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 24px;
  line-height: 2.2;
  text-align: right;
  direction: rtl;
  color: var(--aq-text);
  white-space: pre-wrap;
  letter-spacing: 0;
}

.aq-rumi {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--aq-green-dark);
  white-space: pre-wrap;
}

.aq-translation {
  font-size: 14px;
  line-height: 1.65;
  color: var(--aq-text);
  white-space: pre-wrap;
}

.aq-tab-content {
  min-height: 100px;
}

.aq-empty-content {
  text-align: center;
  color: var(--aq-muted);
  font-size: 13px;
  padding: 18px;
  background: var(--aq-cream);
  border-radius: 8px;
  font-style: italic;
}

.aq-step-progress {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--aq-border);
}

.aq-step-progress button {
  flex: 1;
  padding: 12px;
  background: var(--aq-cream);
  border: 1px solid var(--aq-border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--aq-text);
  cursor: pointer;
}
.aq-step-progress button:disabled { opacity: .4; cursor: not-allowed; }
.aq-step-progress button.primary {
  background: var(--aq-green);
  color: #fff;
  border-color: var(--aq-green);
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  NOTIFICATION list — pill tabs
   ╚════════════════════════════════════════════════════════════╝ */
.aq-notif-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: var(--aq-bg);
  border-bottom: 1px solid var(--aq-border-soft);
}
.aq-notif-tab {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--aq-border);
  border-radius: 999px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aq-muted);
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.aq-notif-tab:hover { border-color: var(--aq-muted-light); }
.aq-notif-tab.active {
  background: linear-gradient(135deg, var(--aq-green) 0%, var(--aq-green-dark) 100%);
  color: #fff;
  border-color: var(--aq-green-dark);
  box-shadow: 0 4px 12px rgba(8, 101, 58, 0.22);
}

.aq-notif-actions {
  padding: 10px 14px 4px;
  text-align: right;
}
.aq-notif-actions button {
  background: none;
  border: none;
  color: var(--aq-green-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}
.aq-notif-actions button:disabled { color: var(--aq-muted-light); cursor: default; }

.aq-notif {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--aq-border);
  cursor: pointer;
  transition: background .15s;
}
.aq-notif:active { background: var(--aq-cream); }
.aq-notif--unread { background: linear-gradient(90deg, rgba(27,94,32,.04) 0%, transparent 60%); }

.aq-notif__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  background: transparent;
}
.aq-notif--unread .aq-notif__dot { background: var(--aq-green); }

.aq-notif__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--aq-cream);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.aq-notif__body { flex: 1; min-width: 0; }
.aq-notif__title { font-weight: 600; font-size: 14px; line-height: 1.3; margin-bottom: 2px; }
.aq-notif--unread .aq-notif__title { color: var(--aq-green-dark); }
.aq-notif__msg { font-size: 13px; color: var(--aq-text); line-height: 1.4; }
.aq-notif__time { font-size: 11px; color: var(--aq-muted); margin-top: 4px; }

/* ==== Profile ==== */
.aq-profile-hero {
  background: linear-gradient(135deg, var(--aq-green) 0%, var(--aq-green-dark) 100%);
  color: #fff;
  padding: 28px 20px 24px;
  text-align: center;
}
.aq-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--aq-gold);
  color: #1f1f1f;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  font-family: Georgia, serif;
  margin: 0 auto 10px;
  border: 3px solid rgba(255,255,255,.4);
}
.aq-profile-hero__name { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.aq-profile-hero__email { font-size: 13px; opacity: .9; margin: 0; }
.aq-profile-hero__role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212,175,55,.25);
  color: var(--aq-gold);
  margin-top: 8px;
}

.aq-section-title {
  padding: 16px 16px 8px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--aq-muted);
  letter-spacing: .5px;
}

.aq-radius-display {
  background: var(--aq-cream);
  border: 1px solid var(--aq-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aq-radius-display strong { color: var(--aq-green); font-weight: 700; font-size: 16px; }

input[type=range].aq-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 8px 0;
}
input[type=range].aq-range::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--aq-border);
  border-radius: 3px;
}
input[type=range].aq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aq-green);
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  cursor: pointer;
}
input[type=range].aq-range::-moz-range-track { height: 6px; background: var(--aq-border); border-radius: 3px; }
input[type=range].aq-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--aq-green); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer; }

.aq-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

/* ==== Admin section + Key-in form ==== */
.aq-admin-card {
  background: linear-gradient(135deg, var(--aq-gold) 0%, #B8941A 100%);
  color: #1f1f1f;
  margin: 12px 14px 0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.aq-admin-card__icon {
  width: 44px; height: 44px;
  background: var(--aq-green);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.aq-admin-card__body { flex: 1; }
.aq-admin-card__title { font-weight: 700; font-size: 15px; margin: 0; }
.aq-admin-card__subtitle { font-size: 12px; opacity: .8; margin-top: 2px; }
.aq-admin-card__chevron { font-size: 20px; }

/* Radio with icon group */
.aq-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.aq-radio-tile {
  position: relative;
  background: #fff;
  border: 2px solid var(--aq-border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.aq-radio-tile input { position: absolute; opacity: 0; }
.aq-radio-tile:has(input:checked) {
  border-color: var(--aq-green);
  background: rgba(27,94,32,.06);
}
.aq-radio-tile__icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.aq-radio-tile__label { font-size: 12px; font-weight: 600; color: var(--aq-text); }
.aq-radio-tile:has(input:checked) .aq-radio-tile__label { color: var(--aq-green); }

/* Modal */
.aq-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.aq-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
}
.aq-modal__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--aq-green);
}
.aq-modal__body { font-size: 14px; color: var(--aq-text); line-height: 1.5; margin-bottom: 16px; }
.aq-modal__highlight {
  background: var(--aq-cream);
  border-left: 3px solid var(--aq-gold);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 13px;
}
.aq-modal__highlight strong { color: var(--aq-green); font-size: 22px; display: block; }
.aq-modal__actions { display: flex; gap: 8px; }
.aq-modal__actions .aq-btn { flex: 1; }

/* Pengumuman list (admin) */
.aq-admin-ann {
  background: #fff;
  border: 1px solid var(--aq-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.aq-admin-ann__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.aq-admin-ann__title { font-weight: 600; font-size: 14px; }
.aq-admin-ann__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.aq-admin-ann__badge--active { background: #FEE2E2; color: #991B1B; }
.aq-admin-ann__badge--completed { background: #D1FAE5; color: #065F46; }
.aq-admin-ann__badge--cancelled { background: #F3F4F6; color: #374151; }
.aq-admin-ann__meta { font-size: 12px; color: var(--aq-muted); }
.aq-admin-ann__actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.aq-admin-ann__actions button {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--aq-border);
  background: #fff;
}
.aq-admin-ann__actions button.danger { color: #B91C1C; border-color: #FCA5A5; }
.aq-admin-ann__actions button.success { color: #047857; border-color: #6EE7B7; }
.aq-admin-ann__actions button:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   Notification preferences section (profile.html)
   ============================================================ */
.aq-pref-section {
  margin: 18px 0 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}
.aq-pref-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.aq-pref-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--aq-green-dark, #0E3F12);
}
.aq-pref-icon { font-size: 18px; }

.aq-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}
.aq-pref-row__label {
  font-size: 14px;
  color: var(--aq-text);
  font-weight: 500;
  flex: 1;
}
.aq-pref-row__hint {
  display: block;
  font-size: 11px;
  color: var(--aq-muted, #6B7280);
  margin-top: 2px;
  font-weight: 400;
}

/* iOS-style toggle */
.aq-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background-color .2s;
  flex-shrink: 0;
  margin: 0;
}
.aq-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}
.aq-toggle:checked {
  background: var(--aq-green, #1B5E20);
}
.aq-toggle:checked::before {
  transform: translateX(20px);
}

.aq-pref-quiet-head {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  margin-bottom: 6px;
  padding-left: 4px;
}
.aq-pref-quiet-head span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--aq-text);
}
.aq-pref-quiet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.aq-pref-quiet > div {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.aq-pref-quiet label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--aq-muted, #6B7280);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.aq-pref-quiet input[type=time] {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--aq-text);
  font-family: inherit;
  padding: 2px 0;
}
.aq-pref-quiet input[type=time]:focus { outline: none; }

/* ╔════════════════════════════════════════════════════════════╗
   ║  HOME PAGE — hero + cards + sections
   ╚════════════════════════════════════════════════════════════╝ */
.aq-home {
  padding: 14px 14px 100px;
  max-width: 600px;
  margin: 0 auto;
}

.aq-home__hero {
  position: relative;
  border-radius: 22px;
  padding: 24px 22px 22px;
  margin-bottom: 14px;
  color: #fff;
  background:
    radial-gradient(ellipse at top right, rgba(242, 187, 74, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(16, 160, 73, 0.30) 0%, transparent 55%),
    linear-gradient(135deg, var(--aq-green-darker) 0%, var(--aq-green-dark) 60%, var(--aq-green) 100%);
  overflow: hidden;
  box-shadow: 0 12px 32px -10px rgba(2, 44, 26, 0.35);
}
.aq-home__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2bb4a' fill-opacity='0.06'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.aq-home__hero::after {
  content: 'ﷲ';
  position: absolute;
  font-family: 'Amiri', serif;
  font-size: 180px;
  line-height: 1;
  color: var(--aq-gold);
  opacity: 0.06;
  right: -10px;
  bottom: -40px;
  pointer-events: none;
}
.aq-home__hero > * { position: relative; z-index: 1; }

.aq-home__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(247, 213, 126, 0.85);
  margin: 0 0 6px;
}
.aq-home__greet {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 4px;
}
.aq-home__date {
  font-size: 12px;
  color: rgba(220, 252, 232, 0.78);
  margin: 0 0 16px;
}

.aq-home__next-prayer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 213, 126, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.aq-home__next-prayer__lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247, 213, 126, 0.75);
  margin-bottom: 3px;
}
.aq-home__next-prayer__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.aq-home__next-prayer__time {
  text-align: right;
}
.aq-home__next-prayer__time strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}
.aq-home__next-prayer__time small {
  display: block;
  font-size: 11px;
  color: rgba(220, 252, 232, 0.7);
  margin-top: 4px;
}

/* Alert / Empty banner */
.aq-home__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  color: inherit;
  transition: transform .1s, box-shadow .15s;
}
.aq-home__alert:active { transform: scale(.99); }
.aq-home__alert--active {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  color: #78350f;
  box-shadow: 0 2px 8px rgba(252, 211, 77, 0.25);
}
.aq-home__alert--peace {
  background: linear-gradient(135deg, var(--aq-green-50) 0%, #fff 100%);
  border: 1px solid var(--aq-green-200);
  color: var(--aq-green-dark);
}
.aq-home__alert__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}
.aq-home__alert--active .aq-home__alert__icon { background: #fcd34d; color: #78350f; }
.aq-home__alert--peace  .aq-home__alert__icon { background: var(--aq-green-100); color: var(--aq-green-dark); }
.aq-home__alert__body { flex: 1; }
.aq-home__alert__body strong { display: block; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.aq-home__alert__chevron {
  flex-shrink: 0;
  font-size: 18px;
  opacity: 0.5;
}

/* Section heading */
.aq-home__section {
  margin: 22px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.aq-home__section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--aq-muted);
  margin: 0;
}
.aq-home__section__link {
  font-size: 12px;
  color: var(--aq-green-dark);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Pengumuman card */
.aq-home__ann {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--aq-border-soft);
  border-radius: 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform .1s, box-shadow .15s, border-color .15s;
}
.aq-home__ann:hover {
  border-color: var(--aq-green-200);
  box-shadow: var(--shadow-lift);
}
.aq-home__ann:active { transform: scale(.99); }
.aq-home__ann__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aq-green-100), var(--aq-green-50));
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.aq-home__ann__body { flex: 1; min-width: 0; }
.aq-home__ann__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--aq-text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aq-home__ann__meta {
  font-size: 11.5px;
  color: var(--aq-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.aq-home__ann__meta__prayer {
  background: var(--aq-green-50);
  color: var(--aq-green-dark);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10px;
  text-transform: capitalize;
}
.aq-home__ann__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.aq-home__ann__dot--green  { background: var(--status-green); box-shadow: 0 0 0 3px rgba(16,160,73,0.12); }
.aq-home__ann__dot--orange { background: var(--status-orange); animation: aq-pulse-dot 2s ease-in-out infinite; }
.aq-home__ann__dot--red    { background: var(--status-red); animation: aq-pulse-dot 0.9s ease-in-out infinite; }
.aq-home__ann__dot--grey   { background: var(--status-grey); }

/* Stats strip (re-uses status tiles) */
.aq-home__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

/* Pahala / CTA card */
.aq-home__pahala {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(252, 211, 77, 0.20);
  text-decoration: none;
  color: inherit;
}
.aq-home__pahala__streak {
  text-align: center;
  flex-shrink: 0;
}
.aq-home__pahala__streak strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: #c2410c;
}
.aq-home__pahala__streak small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #92400e;
  margin-top: 4px;
}
.aq-home__pahala__body { flex: 1; min-width: 0; }
.aq-home__pahala__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: #78350f;
  margin: 0 0 4px;
}
.aq-home__pahala__sub {
  font-size: 12px;
  color: #92400e;
  margin: 0;
}
.aq-home__pahala__flame { font-size: 24px; }

.aq-home__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--aq-green-darker) 0%, var(--aq-green-dark) 100%);
  border-radius: 16px;
  margin-bottom: 14px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(2, 44, 26, 0.28);
  position: relative;
  overflow: hidden;
}
.aq-home__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2bb4a' fill-opacity='0.07'%3E%3Cpath d='M20 0l20 20-20 20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
}
.aq-home__cta > * { position: relative; z-index: 1; }
.aq-home__cta__body { flex: 1; min-width: 0; }
.aq-home__cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  margin: 0 0 4px;
}
.aq-home__cta__sub {
  font-size: 12px;
  color: rgba(247, 213, 126, 0.85);
  margin: 0;
}
.aq-home__cta__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aq-gold);
  display: grid;
  place-items: center;
  color: var(--aq-green-darker);
}

/* Hadis card */
.aq-home__hadis {
  background:
    linear-gradient(135deg, rgba(242, 187, 74, 0.05) 0%, rgba(254, 251, 243, 0.6) 100%),
    #fff;
  border: 1px solid var(--aq-border-soft);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.aq-home__hadis::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 130px;
  color: rgba(242, 187, 74, 0.15);
  line-height: 1;
  pointer-events: none;
}
.aq-home__hadis__ar {
  font-family: 'Amiri', serif;
  font-size: 18px;
  line-height: 2;
  color: var(--aq-green-darker);
  text-align: center;
  margin: 0 0 14px;
  direction: rtl;
}
.aq-home__hadis__ms {
  font-size: 13px;
  line-height: 1.6;
  color: var(--aq-text-soft);
  text-align: center;
  font-style: italic;
  margin: 0 0 10px;
}
.aq-home__hadis__cite {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--aq-gold-dark);
  padding-top: 10px;
  border-top: 1px dashed rgba(242, 187, 74, 0.35);
}

/* Quick links grid */
.aq-home__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.aq-home__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--aq-border-soft);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .1s, border-color .15s, box-shadow .15s;
}
.aq-home__link:hover {
  border-color: var(--aq-green-200);
  box-shadow: var(--shadow-soft);
}
.aq-home__link:active { transform: scale(.98); }
.aq-home__link__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.aq-home__link__icon--green { background: var(--aq-green-50); color: var(--aq-green-dark); }
.aq-home__link__icon--gold  { background: var(--aq-gold-50); color: var(--aq-gold-dark); }
.aq-home__link__icon--blue  { background: #dbeafe; color: #1e40af; }
.aq-home__link__icon--ink   { background: #f4f4f1; color: var(--aq-text-soft); }
.aq-home__link__icon svg { width: 18px; height: 18px; stroke-width: 2; }
.aq-home__link__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--aq-text);
}
.aq-home__link__sub {
  font-size: 10.5px;
  color: var(--aq-muted);
  margin-top: 1px;
}

/* Empty state for cards */
.aq-home__empty {
  text-align: center;
  padding: 28px 14px;
  background: var(--aq-cream);
  border: 1px dashed var(--aq-border);
  border-radius: 14px;
  color: var(--aq-muted);
  font-size: 13px;
}
.aq-home__empty__icon {
  font-size: 30px;
  display: block;
  margin-bottom: 8px;
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  FLOATING BACK BUTTON
   ╚════════════════════════════════════════════════════════════╝ */
.aq-fab-back {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0));
  left: 14px;
  z-index: 1020;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--aq-border);
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
  color: var(--aq-green-dark);
  cursor: pointer;
  transition: transform .12s, box-shadow .15s;
  text-decoration: none;
}
.aq-fab-back:hover { box-shadow: 0 10px 28px rgba(2, 44, 26, 0.22); }
.aq-fab-back:active { transform: scale(.94); }
.aq-fab-back svg { width: 20px; height: 20px; stroke-width: 2.25; }

/* ╔════════════════════════════════════════════════════════════╗
   ║  DESKTOP RESPONSIVE (≥ 1024px)
   ║  Mobile layout untouched; desktop gets top-nav + wide grid
   ╚════════════════════════════════════════════════════════════╝ */

/* Default: top-nav hidden on mobile */
.aq-topnav-tabs { display: none; }

@media (min-width: 1024px) {
  /* Hide floating bottom nav on desktop — top-nav takes over */
  .aq-bottom-nav { display: none !important; }

  /* Hide FAB back too — desktop has top-nav for navigation */
  .aq-fab-back { display: none !important; }

  /* Header gets wider + top-nav inline */
  .aq-header {
    padding-left: 24px;
    padding-right: 24px;
    gap: 18px;
  }
  .aq-header__brand { flex: 0 0 auto; }

  /* Top-nav: horizontal tabs in header */
  .aq-topnav-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
  }
  .aq-topnav-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    color: rgba(244, 244, 241, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .15s, color .15s;
    white-space: nowrap;
  }
  .aq-topnav-tabs a:hover { color: #fff; background: rgba(255,255,255,0.06); }
  .aq-topnav-tabs a.is-active {
    color: var(--aq-gold-light, #f7d57e);
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(242, 187, 74, 0.18);
  }
  .aq-topnav-tabs a svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 2; }

  /* Sub-page page-title also gets top-nav slot (when used) */
  .aq-page-title { padding-left: 24px; padding-right: 24px; gap: 18px; }
  .aq-page-title h1 { flex: 0 0 auto; }

  /* Sub-page sticky page-title gets centered too */
  .aq-page-title.aq-topnav-host h1 { font-size: 20px; }

  /* Body content widening */
  body {
    background:
      radial-gradient(ellipse 50% 30% at 50% -5%, rgba(16, 160, 73, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 40% 30% at 100% 100%, rgba(236, 170, 40, 0.05) 0%, transparent 60%),
      linear-gradient(180deg, var(--aq-bg) 0%, var(--aq-bg-2) 100%);
  }

  /* Home: wider, 2-col grid */
  .aq-home {
    max-width: 1200px;
    padding: 24px 32px 48px;
    margin: 0 auto;
  }
  .aq-home__hero {
    padding: 38px 40px;
    border-radius: 28px;
  }
  .aq-home__greet { font-size: 44px; }
  .aq-home__hero::after { font-size: 280px; bottom: -80px; right: -20px; }

  .aq-home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
  }
  .aq-home__main, .aq-home__side {
    display: flex;
    flex-direction: column;
  }
  .aq-home__main > *, .aq-home__side > * { margin-bottom: 0; }

  /* Section headings have more breathing room */
  .aq-home__section { margin: 4px 0 12px; }

  /* Announcement cards — 2 cols on lg, 1 col on xl side panel narrow */
  .aq-home__ann {
    padding: 14px 16px;
  }
  .aq-home__ann__name { font-size: 15px; }

  /* Quick-link grid stays 2-col but card padding wider */
  .aq-home__links { gap: 10px; }
  .aq-home__link { padding: 16px; }

  /* List page — center with comfortable width */
  .aq-list-toolbar {
    padding: 14px 32px;
    max-width: 800px;
    margin: 0 auto;
  }
  .aq-list-toolbar input, .aq-list-toolbar select { padding: 11px 14px; }

  /* aq-page wrapper centered */
  .aq-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 32px 32px;
  }

  /* List of mosque cards — 2 column on lg */
  .aq-page#listContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .aq-page#listContainer > .aq-empty {
    grid-column: 1 / -1;
  }

  /* Detail page (mosque, notifications, sijil-via-content, admin) */
  #content { max-width: 820px; margin: 0 auto; padding: 24px 32px; }

  /* Pahala hero centered */
  .aq-pahala-hero { max-width: 760px; margin-left: auto; margin-right: auto; }
  .aq-pahala-row { max-width: 760px; margin-left: auto; margin-right: auto; }
  .aq-section { max-width: 760px; margin-left: auto; margin-right: auto; }
  .aq-history-card { max-width: 760px; margin-left: auto; margin-right: auto; }
  .aq-milestone-card { max-width: 760px; margin: 0 auto; }

  /* Status strip + filter bar (peta page) centered */
  .aq-status-bar {
    padding: 14px max(20px, calc((100vw - 1200px) / 2 + 20px));
    gap: 12px;
  }
  .aq-status-tile { min-width: 130px; padding: 12px 16px; }
  .aq-status-tile__num { font-size: 28px; }
  .aq-filter-bar {
    padding: 8px max(20px, calc((100vw - 1200px) / 2 + 20px));
  }

  /* Map area cleaner on desktop — keep full width since map is the content */

  /* Hide mobile-only header sub if redundant */
  .aq-header--sub { padding-top: env(safe-area-inset-top, 0); }
  .aq-header--sub .aq-header__brand { padding-left: 0; }
}

/* Extra-wide: just a bit more breathing */
@media (min-width: 1440px) {
  .aq-home { padding-left: 48px; padding-right: 48px; }
}
