@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@300;400;500;600;700;800&family=Tiro+Bangla:ital@0;1&display=swap');

:root {
  --emerald-950: #02241f;
  --emerald-900: #044038;
  --emerald-800: #065c52;
  --emerald-700: #087a6c;
  --emerald-600: #0b9e8d;
  --emerald-100: #c9f2ea;
  --emerald-50: #eafaf6;
  --gold: #dfa32a;
  --gold-2: #f5d170;
  --gold-soft: #fff8e6;
  --ink: #112420;
  --muted: #5a706b;
  --line: #d8e5e2;
  --surface: #ffffff;
  --danger: #d93d3d;
  --shadow-sm: 0 4px 12px rgba(4, 64, 56, 0.04);
  --shadow: 0 16px 40px rgba(4, 64, 56, 0.06), 0 6px 16px rgba(4, 64, 56, 0.04);
  --shadow-hover: 0 24px 48px rgba(4, 64, 56, 0.1), 0 8px 24px rgba(4, 64, 56, 0.06);
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #f2f7f5;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: 
    radial-gradient(circle at 15% 0%, rgba(11, 158, 141, 0.06), transparent 35rem),
    radial-gradient(circle at 85% 20%, rgba(223, 163, 42, 0.06), transparent 30rem),
    linear-gradient(180deg, #fdfefe 0%, #f2f7f5 40%, #e9f2ef 100%);
  font-family: 'Anek Bangla', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mosque-title {
  font-family: 'Tiro Bangla', serif;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--emerald-950);
  font-weight: 700;
  letter-spacing: 0.2px;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; border: 0 !important; }

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); }
.ambient-one { width: 380px; height: 380px; left: -140px; top: 120px; background: rgba(8, 122, 108, 0.05); }
.ambient-two { width: 360px; height: 360px; right: -120px; top: 460px; background: rgba(223, 163, 42, 0.05); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(8, 122, 108, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.topbar-inner {
  width: min(1120px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img {
  display: block;
  width: min(220px, 46vw);
  max-height: 48px;
  object-fit: contain;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dcece8;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 14px;
  color: var(--emerald-900);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-btn:hover {
  border-color: var(--emerald-600);
  background: #fff;
  color: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 158, 141, 0.12);
}
.nav-btn.danger { color: var(--danger); border-color: #fae1e1; background: #fffafb; }
.nav-btn.danger:hover { background: #fff0f0; border-color: var(--danger); }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 32px 0 64px;
  min-height: calc(100vh - 120px);
}
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boot-shell {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.boot-logo-wrap { width: min(240px, 68vw); padding: 14px; }
.boot-logo-wrap img { width: 100%; height: auto; }
.boot-line {
  width: 90px;
  height: 3px;
  border-radius: 3px;
  margin: 6px 0 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.boot-shell p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.skeleton-row { display: flex; gap: 8px; }
.skeleton-row span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-700);
  animation: pulse 1s infinite alternate;
}
.skeleton-row span:nth-child(2) { animation-delay: 0.16s; }
.skeleton-row span:nth-child(3) { animation-delay: 0.32s; }
@keyframes pulse { to { opacity: 0.2; transform: translateY(-4px); } }

.login-home {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-hero-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 34px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #054c43 0%, #076d61 60%, #055c51 100%);
  box-shadow: 0 20px 48px rgba(5, 76, 67, 0.22);
  color: #fff;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-a { width: 240px; height: 240px; right: -70px; top: -90px; background: rgba(243, 203, 98, 0.15); filter: blur(30px); }
.hero-orb-b { width: 280px; height: 280px; left: -100px; bottom: -160px; background: rgba(255, 255, 255, 0.08); filter: blur(40px); }

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #faefd6;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4cb63;
  box-shadow: 0 0 0 4px rgba(244, 203, 99, 0.25);
}
.hero-logo {
  width: min(210px, 64vw);
  margin: 18px auto 12px;
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(1, 48, 42, 0.14);
}
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-kicker { margin: 0 0 6px; color: #d6f5ec; font-size: 13px; font-weight: 600; }
.login-hero-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.login-hero-card h1 span { color: #f8d77a; }
.hero-subtitle {
  max-width: 600px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.feature-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.feature-pills svg { color: #f5cf6a; }

.hero-stats-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(3, 46, 40, 0.12);
  color: var(--ink);
}
.stats-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stats-heading h2 { margin: 0; font-size: 17px; font-weight: 800; }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #d4ece5;
  border-radius: 999px;
  background: #f0faf7;
  color: var(--emerald-700);
  font-size: 11px;
  font-weight: 800;
}
.live-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a876;
  box-shadow: 0 0 0 3px rgba(32, 168, 118, 0.2);
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.live-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e3edea;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f7faf8);
}
.stat-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.service-stat .stat-icon { background: var(--gold-soft); color: #a47514; }
.stat-number {
  display: block;
  color: var(--emerald-950);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.login-card { padding: 28px; }
.login-top-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.login-top-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 95, 85, 0.2);
}
.login-top-row h2 { margin: 0; font-size: 22px; font-weight: 900; }

.instruction-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid #dbe8e4;
  border-radius: 15px;
  background: #f6fbf9;
}
.instruction-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--emerald-700);
  box-shadow: 0 3px 8px rgba(7, 95, 85, 0.05);
}
.instruction-box strong { font-size: 13px; color: var(--emerald-950); }
.instruction-box p { margin: 3px 0 0; color: #586e6a; font-size: 12px; line-height: 1.5; }

.email-login-form { display: grid; gap: 9px; }
.field-label { color: #29403b; font-size: 12px; font-weight: 700; margin-bottom: 4px; display: inline-block; }
.password-title-row { display: flex; justify-content: space-between; align-items: center; }
.text-link {
  border: 0;
  background: transparent;
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}
.text-link:hover { text-decoration: underline; }

.input-shell {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid #dce8e4;
  border-radius: 13px;
  background: #fff;
  transition: all 0.2s ease;
}
.input-shell:focus-within {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 4px rgba(13, 150, 133, 0.12);
}
.input-shell > svg { color: #6f8883; }
.input-shell input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.password-toggle {
  border: 0;
  background: transparent;
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 6px;
}

.email-login-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(7, 95, 85, 0.22);
  transition: all 0.2s ease;
}
.email-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(7, 95, 85, 0.28);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #8c9e9a;
  font-size: 12px;
  font-weight: 600;
}
.login-divider::before, .login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2ece9;
}

.google-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid #dce5e2;
  border-radius: 13px;
  background: #fff;
  color: #273d38;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.google-btn:hover {
  border-color: #b7cdc6;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.google-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f6f4;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
}
.google-btn .arrow { margin-left: auto; color: #839692; }

.login-security-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.login-security-row span { display: inline-flex; align-items: center; gap: 5px; }

.account-hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #077465, #045a4f);
  color: #fff;
  box-shadow: 0 16px 40px rgba(4, 90, 79, 0.22);
}
.account-hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.account-hero-shape.one { width: 190px; height: 190px; right: -70px; top: -90px; background: rgba(244, 207, 110, 0.14); }
.account-hero-shape.two { width: 210px; height: 210px; left: -80px; bottom: -130px; background: rgba(255, 255, 255, 0.06); }

.dashboard-profile { display: flex; align-items: center; gap: 14px; }
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.avatar.fallback {
  display: grid;
  place-items: center;
  background: #f4d166;
  color: #4f3b0e;
  font-weight: 900;
  font-size: 20px;
}
.online-dot {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border: 2.5px solid #077465;
  border-radius: 50%;
  background: #5cebb0;
}
.hero-profile-meta { flex: 1; min-width: 0; }
.profile-kicker { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.76); }
.hero-profile-meta h2 {
  margin: 2px 0 0;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-profile-meta p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-role-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 204, 99, 0.18);
  border: 1px solid rgba(244, 213, 128, 0.4);
  color: #ffe8ab;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-account-title { margin: 18px 0 10px; font-size: 20px; font-weight: 900; }
.account-summary-bar {
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(2, 43, 38, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.summary-row + .summary-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.summary-row span { display: inline-flex; align-items: center; gap: 6px; }
.summary-row svg { color: #f4ce69; }
.summary-row strong { font-weight: 700; color: #fff; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.dash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1px solid #e1ece9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(5, 55, 49, 0.04);
}
.dash-stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.dash-stat strong { margin-top: 6px; font-size: 19px; color: var(--emerald-950); }
.dash-stat span { margin-top: 2px; color: var(--muted); font-size: 11px; }

.plan-panel, .coupon-section { padding: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.role-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0;
  padding: 5px;
  border-radius: 14px;
  background: #f1f6f4;
  border: 1px solid #e2ece9;
}
.role-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
}
.role-tab.active {
  background: #fff;
  color: var(--emerald-800);
  box-shadow: 0 3px 10px rgba(5, 55, 49, 0.08);
}

/* Plan Cards */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  padding: 20px;
  border: 1.5px solid #d8e5e2;
  border-radius: 20px;
  background: #ffffff;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.plan-card:hover {
  border-color: var(--emerald-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.plan-card.selected {
  border-color: var(--emerald-600);
  background: linear-gradient(150deg, #ffffff 0%, #eafaf6 100%);
  box-shadow: 0 12px 32px rgba(8, 122, 108, 0.15);
  transform: translateY(-4px);
}
.plan-topline { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: wrap; }
.plan-label { font-size: 16px; font-weight: 700; color: var(--emerald-950); }
.tiny-badge, .popular {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.tiny-badge { background: var(--emerald-100); color: var(--emerald-900); }
.popular {
  position: absolute;
  right: 12px;
  top: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(223, 163, 42, 0.3);
}
.plan-card strong {
  margin: 14px 0 4px;
  font-size: 32px;
  color: var(--emerald-950);
  font-weight: 800;
  line-height: 1.1;
  font-family: 'Anek Bangla', sans-serif;
}
.plan-card small { color: var(--muted); font-size: 13px; font-weight: 500; }
.plan-rule { width: 100%; height: 1.5px; background: #e5efe9; margin: 12px 0; }
.benefit { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.select-cta {
  margin-top: auto;
  padding-top: 14px;
  color: #8fa6a1;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.plan-card:hover .select-cta { color: var(--emerald-600); }
.plan-card.selected .select-cta { color: var(--emerald-700); }
.plan-select-check {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f0ed;
  color: #9ab0aa;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.3s ease;
}
.plan-card.selected .plan-select-check {
  background: var(--emerald-700);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 122, 108, 0.4);
  transform: scale(1.1);
}

.selected-plan-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f7f5;
  border: 1px solid #dbe8e4;
  font-size: 12px;
  color: #556c67;
}
.selected-plan-summary strong { color: var(--emerald-950); font-size: 13px; }

/* Pay Button */
.pay-selected-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(8, 122, 108, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pay-selected-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(8, 122, 108, 0.35);
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
}
.pay-selected-btn:disabled {
  background: #d4e2df;
  color: #8ca39e;
  box-shadow: none;
  cursor: not-allowed;
}
.pay-selected-btn .pay-arrow { margin-left: auto; font-size: 17px; }
.secure-payment-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}
.secure-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a876;
}

/* EPS Official Banners Styling */
.eps-checkout-banner-wrap {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.eps-checkout-banner-wrap img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(4, 64, 56, 0.12);
  box-shadow: 0 4px 14px rgba(4, 64, 56, 0.05);
  object-fit: contain;
  background: #ffffff;
}

.eps-footer-banner-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.eps-footer-banner-wrap picture,
.eps-footer-banner-wrap img {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.quick-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  border: 1px solid #d8e5e2;
  border-radius: 16px;
  background: #fff;
  color: var(--emerald-900);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-actions button:hover {
  border-color: var(--emerald-600);
  background: #f7fdfb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 122, 108, 0.1);
}
.quick-actions svg { width: 18px; height: 18px; color: var(--emerald-700); }
.quick-actions .app-open-action {
  position: relative;
  background: linear-gradient(145deg, #f6fdfa, #ecf7f3);
  border-color: #9cd1c4;
  color: var(--emerald-800);
}
.quick-actions .app-open-action small {
  position: absolute;
  top: 5px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #946910;
  font-size: 8px;
  font-weight: 900;
}

.coupon-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.coupon-item {
  padding: 14px;
  border: 1px solid #e1ede9;
  border-radius: 15px;
  background: #fbfdfc;
}
.coupon-top { display: flex; justify-content: space-between; align-items: center; }
.coupon-top strong { font-size: 12px; }
.coupon-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--emerald-800);
  font-size: 10px;
  font-weight: 800;
}
.coupon-pin {
  margin: 8px 0 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--emerald-950);
}
.coupon-meta { color: var(--muted); font-size: 11px; }
.copy-btn {
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid #dce8e4;
  border-radius: 9px;
  background: #fff;
  color: var(--emerald-800);
  font-size: 11px;
  font-weight: 800;
}
.copy-btn:hover { background: #f0faf6; border-color: var(--emerald-600); }

/* Status Page */
.status-wrap { min-height: 64vh; display: grid; place-items: center; }
.status-card { width: min(540px, 100%); padding: 34px 24px; text-align: center; }
.status-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  padding: 8px;
  border-radius: 24px;
  background: var(--emerald-50);
}
.status-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--emerald-700);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}
.status-card.error .status-ring { background: #feebeb; }
.status-card.error .status-icon { background: var(--danger); }
.status-card.pending .status-icon { background: #c2931a; }
.status-card h1 { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.status-card > p { margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.6; }
.payment-result {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  background: #fbfdfc;
  text-align: left;
  font-size: 13px;
}
.result-row { display: flex; justify-content: space-between; padding: 6px 0; }
.result-row + .result-row { border-top: 1px solid #edf4f1; }

.status-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
}
.status-actions button {
  width: min(320px, 100%);
  min-height: 48px;
}
.app-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(7, 95, 85, 0.25);
  font-size: 14px;
}
.app-launch-btn svg { color: #f4d372; }

.primary-btn, .secondary-btn {
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.primary-btn { border: 0; background: var(--emerald-700); color: #fff; }
.primary-btn:hover { background: var(--emerald-800); transform: translateY(-1px); }
.secondary-btn { border: 1px solid #d8e5e1; background: #fff; color: var(--emerald-800); }
.secondary-btn:hover { background: #f4fbf8; border-color: var(--emerald-600); }

.overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 35, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Modal Scroll & Top-Cut Fix */
.modal-scroll-overlay {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: 30px 14px !important;
  -webkit-overflow-scrolling: touch;
}

.modal-responsive-card {
  max-width: 560px;
  width: 100%;
  margin: auto !important;
  padding: 24px 20px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
  border-radius: 22px;
  position: relative;
  background: #ffffff;
}

/* High-Contrast Color Coded Tabs for Admin Modal (গ্রাম বনাম শহর) */
.tab-rural-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1 !important;
}

.tab-rural-btn.active {
  background: linear-gradient(135deg, #065f46, #059669) !important;
  color: #ffffff !important;
  border: 1px solid #047857 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}

.tab-urban-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1 !important;
}

.tab-urban-btn.active {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* High-Contrast Color Coded Tabs for Member Modal */
.tab-member-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1 !important;
}

.tab-member-btn.active {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.tab-musolli-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1 !important;
}

.tab-musolli-btn.active {
  background: linear-gradient(135deg, #065f46, #059669) !important;
  color: #ffffff !important;
  border: 1px solid #047857 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}

/* Draft Found Notice Badge */
.draft-badge-box {
  background: #edf7f4;
  border: 1px solid #a3d9cb;
  color: var(--emerald-950);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Search Dropdown Box & Badges */
.search-results-box {
  max-height: 190px;
  overflow-y: auto;
  border: 1.5px solid #dce8e4;
  border-radius: 13px;
  background: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.search-item {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.search-item:hover {
  background: #f0faf6;
}
.selected-mosque-preview {
  padding: 9px 12px;
  background: #e8f6f2;
  border: 1px solid #84cfbd;
  border-radius: 11px;
  color: var(--emerald-950);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.loader-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(340px, 92vw);
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d8ede7;
  border-top-color: var(--emerald-700);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.loader-card strong { display: block; font-size: 14px; }
.loader-card span { display: block; color: var(--muted); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(440px, 90vw);
  padding: 10px 18px;
  border-radius: 12px;
  background: #14352f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.toast.error { background: #a62828; }

footer {
  padding: 20px clamp(14px, 4vw, 36px) 28px;
  color: var(--muted);
}
.footer-inner {
  width: min(1120px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(7, 95, 85, 0.08);
  font-size: 12px;
  gap: 6px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--emerald-700);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Super Admin Pro Console Styles */
.super-admin-hero {
  background: linear-gradient(135deg, #02241f 0%, #065c52 50%, #087a6c 100%) !important;
  border: 1px solid rgba(245, 209, 112, 0.35);
  box-shadow: 0 16px 40px rgba(2, 36, 31, 0.3) !important;
}
.sa-badge {
  background: linear-gradient(135deg, #f5d170, #dfa32a) !important;
  color: #02241f !important;
}
.sa-role {
  background: rgba(245, 209, 112, 0.2) !important;
  border: 1px solid #f5d170 !important;
  color: #f5d170 !important;
}

.sa-module-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  margin-top: 14px;
  -webkit-overflow-scrolling: touch;
}
.sa-module-tabs::-webkit-scrollbar { height: 4px; }
.sa-module-tabs::-webkit-scrollbar-thumb {
  background: #dcece8;
  border-radius: 4px;
}
.sa-tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #dcece8;
  background: #fff;
  color: var(--emerald-900);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.sa-tab-btn:hover {
  border-color: var(--emerald-600);
  transform: translateY(-1px);
}
.sa-tab-btn.active {
  background: var(--emerald-800);
  color: #fff;
  border-color: var(--emerald-800);
  box-shadow: 0 6px 18px rgba(6, 92, 82, 0.28);
}

.sa-card {
  padding: 24px;
  margin-top: 8px;
}
.sa-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.sa-select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #dce8e4;
  border-radius: 13px;
  background: #ffffff;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  outline: 0;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sa-select:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 4px rgba(13, 150, 133, 0.12);
}
.sa-select:disabled {
  background: #f4f8f7;
  color: #8fa6a1;
  border-color: #e4ebe9;
  cursor: not-allowed;
}

.sa-submit-btn {
  min-height: 48px;
  margin-top: 10px;
  border-radius: 14px;
}

.sa-color-picker {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sa-color-picker label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.sa-color-picker input[type="radio"] { display: none; }
.sa-color-picker span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #d8e5e2;
  transition: all 0.2s ease;
}
.sa-color-picker input[type="radio"]:checked + span {
  box-shadow: 0 0 0 2.5px var(--emerald-700);
  transform: scale(1.15);
}

.sa-file-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px dashed #dce8e4;
  border-radius: 13px;
  background: #fafdfc;
  font-size: 13px;
}

.sa-dynamic-box {
  padding: 14px;
  border: 1px solid #e1ece9;
  border-radius: 14px;
  background: #f8fbfa;
  margin-top: 8px;
}

.sa-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid #e1ece9;
}
.sa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.sa-table th {
  background: #f1f7f5;
  color: var(--emerald-950);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid #e1ece9;
  white-space: nowrap;
}
.sa-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf4f1;
  white-space: nowrap;
}
.sa-table tr:hover td {
  background: #fafdfc;
}

.sa-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.sa-update-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2eee9;
  border-radius: 14px;
  background: #fafdfc;
  gap: 12px;
}

@media (min-width: 769px) {
  .login-home {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    gap: 20px;
    align-items: stretch;
  }
  .login-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 36px;
  }
  .premium-badge { align-self: flex-start; }
  .hero-logo { margin: 18px 0 12px; }
  .feature-pills { justify-content: flex-start; }
  .dashboard-view {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    grid-template-areas: 
      "hero plan"
      "stats plan"
      "actions actions"
      "coupons coupons";
    gap: 14px 18px;
    align-items: start;
  }
  .account-hero-card { grid-area: hero; }
  .dashboard-stats { grid-area: stats; }
  .screenshot-plan-panel { grid-area: plan; height: 100%; }
  .quick-actions { grid-area: actions; }
  .coupon-section { grid-area: coupons; }
}

@media (max-width: 768px) {
  .page-shell { width: calc(100% - 24px); padding: 20px 0 40px; }
  .topbar { padding: 12px 16px; }
  .nav-btn span { display: none; }
  .nav-btn { padding: 8px 12px; border-radius: 12px; }
  .brand img { width: min(180px, 52vw); }
  .login-hero-card { padding: 22px 16px; border-radius: 20px; }
  .login-hero-card h1 { font-size: 26px; }
  .hero-subtitle { font-size: 13px; }
  .live-stats { gap: 6px; }
  .live-stat {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    text-align: center;
  }
  .stat-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .stat-number { font-size: 17px; }
  .stat-label { font-size: 10px; }
  .login-card { padding: 20px 16px; border-radius: 20px; }
  .login-top-row h2 { font-size: 19px; }
  .instruction-box p { font-size: 11px; }

  .plans {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .plan-card {
    padding: 16px 12px;
    min-height: 164px;
    border-radius: 16px;
  }
  .plan-label { font-size: 14px; }
  .plan-card strong { font-size: 26px; margin: 8px 0 2px; }
  .benefit { font-size: 12px; }
  .select-cta { font-size: 12px; padding-top: 10px; }

  .eps-footer-banner-wrap img {
    max-width: 360px;
  }

  .coupon-list { grid-template-columns: 1fr; }
  .dashboard-view { display: block; width: 100%; }

  .sa-update-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .plan-card { padding: 12px 10px; }
  .plan-label { font-size: 13px; }
  .plan-card strong { font-size: 24px; }
  .benefit { font-size: 11px; }
  .popular { right: 8px; top: 8px; font-size: 9px; padding: 3px 6px; }
}