/* Auto Azan — mission page (/mission/). Uses /css/style.css tokens and /app landing patterns. */
.lp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-footer { padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lp-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.lp-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--primary); }
.lp-faq-wrap { max-width: 820px; }
.lp-faq { display: grid; gap: 10px; }
.lp-faq details { overflow: hidden; }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .ic { color: var(--primary); transition: rotate .2s; }
.lp-faq details[open] summary .ic { rotate: 180deg; }
.lp-faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* hero + live counter */
.ms-hero { position: relative; overflow: hidden; padding: 36px 0 30px; text-align: center; }
.ms-hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: pulse 1.8s infinite; vertical-align: middle; }
.pill .live-dot { background: #e53935; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.ms-arabic { font-size: clamp(30px, 5vw, 46px); color: var(--gold); margin: 18px 0 0; line-height: 1.7; }
.ms-translit { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.ms-hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.ms-hero .lead { max-width: 640px; margin: 0 auto 24px; }

.counter-card { width: 100%; padding: 26px 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-label { font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.cc-total { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 9vw, 84px); color: var(--primary); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cc-live { font-size: 14px; color: var(--muted); }
.cc-progress { width: 100%; height: 12px; border-radius: 12px; background: var(--primary-soft); overflow: hidden; margin-top: 6px; }
.cc-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--gold)); transition: width 1s ease-out; }
.cc-pct { font-size: 14px; font-weight: 600; color: var(--primary); }
.cc-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cc-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cc-stats .ic { color: var(--gold); }
.cc-stats strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.cc-stats span { font-size: 13px; color: var(--muted); }

/* add + invite */
.ms-add-section { padding-top: 10px; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ms-add, .ms-invite { padding: 22px; }
.ms-add h2, .ms-invite h2 { font-size: 22px; font-weight: 800; color: var(--primary); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick .btn { font-size: 18px; font-family: var(--font-display); min-height: 54px; }
.custom { display: flex; gap: 10px; margin-top: 10px; }
.custom input { flex: 1; min-width: 0; min-height: 46px; font-size: 16px; }
.tap-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.tap {
  width: 170px; aspect-ratio: 1; border-radius: 50%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, var(--surface), var(--primary-soft)); box-shadow: var(--shadow), inset 0 0 0 6px var(--primary-soft);
  -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .08s;
}
.tap:active { transform: scale(.96); }
.ms .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.tap-n { font-family: var(--font-display); font-weight: 800; font-size: 46px; color: var(--primary); line-height: 1; }
.tap-l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mine div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; }
.mine span { font-size: 13px; color: var(--muted); }
.mine strong { font-family: var(--font-display); font-size: 24px; color: var(--primary); }
.closed-note { margin: 14px 0 0; padding: 12px; border-radius: 12px; background: var(--gold-soft); text-align: center; }
.ms-add.closed .quick, .ms-add.closed .custom, .ms-add.closed .tap-wrap { opacity: .4; pointer-events: none; }

.share-row { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.share-row .btn { flex: 1; }
.share-row .icon-btn { width: 46px; height: 46px; border-radius: 12px; }
.lb-title { font-size: 17px; color: var(--gold); margin: 24px 0 10px; font-family: var(--font-bn); font-weight: 600; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: lb; }
.leaderboard li { counter-increment: lb; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.leaderboard li::before { content: counter(lb); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; flex: none; }
html[lang="bn"] .leaderboard li::before { content: counter(lb, bengali); }
.leaderboard li:nth-child(1)::before { background: var(--gold); color: #fff; }
.leaderboard .flag { font-size: 20px; line-height: 1; }
.leaderboard .name { flex: 1; font-weight: 500; }
.leaderboard .num { font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.leaderboard .empty { justify-content: center; color: var(--muted); }
.leaderboard .empty::before { display: none; }

/* app band */
.ms-app { padding: 44px 0; }
.ms-app-inner { display: flex; align-items: center; gap: 20px; }
.ms-app-inner img { border-radius: 18px; flex: none; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.ms-app-inner > div { flex: 1; }
.ms-app h2 { color: #fff; font-size: 24px; font-weight: 800; }
.ms-app p { color: #cfe6d9; margin: 6px 0 0; }
.ms-app .btn-light { color: #0b0b0b; }

@media (max-width: 860px) {
  .ms-grid { grid-template-columns: 1fr; }
  .ms-app-inner { flex-direction: column; text-align: center; }
  .ms-app .btn { width: 100%; }
}
@media (max-width: 420px) {
  .cc-stats strong { font-size: 18px; }
  .tap { width: 150px; }
}
