:root{
  --deep:#0B2B5A;
  --gold:#D4AF37;
  --ink:#1E293B;
  --muted:#6B7280;
  --line:#F3F4F6;
  --soft:#F9FAFB;
  --white:#fff;
  --shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:8px 0 32px;
  overflow-x:hidden;
}
.top-title{
  text-align:center;
  width:100%;
  max-width:100%;
  padding:20px 16px 12px;
  margin-bottom:4px;
  background:#fff;
}
.brand-line{
  margin:0 auto 14px;
  max-width:56rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  line-height:1;
  padding:10px 8px;
}
.brand-main{
  display:block;
  font-size:clamp(1.15rem,4.2vw,2.35rem);
  font-weight:900;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--deep);
  margin:0;
  padding:0;
}
.brand-am{
  display:block;
  font-size:clamp(1.35rem,5vw,2.7rem);
  font-weight:900;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#fff;
  background:var(--deep);
  padding:6px 18px;
  border-radius:0;
  margin:0;
}
.top-title h1{
  margin:0 0 8px;
  font-size:clamp(2rem,5.5vw,3.25rem);
  font-weight:900;
  color:var(--deep);
  letter-spacing:-.025em;
  line-height:1.1;
}
.verse{
  margin:0 auto;
  max-width:42rem;
  font-size:clamp(.9rem,2.2vw,1.25rem);
  font-weight:700;
  color:var(--deep);
  opacity:.85;
  line-height:1.4;
}

.hero-grid{
  width:100%;
  max-width:72rem;
  margin:16px auto 0;
  padding:0 16px;
  display:grid;
  gap:24px;
}
@media(min-width:1024px){
  .hero-grid{grid-template-columns:1fr 2fr;gap:32px;align-items:start}
}

.pray-side{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-top:8px;
}
@media(min-width:1024px){
  .pray-side{position:sticky;top:32px;padding-top:32px}
}
.click-pray-btn{
  width:140px;height:140px;
  border-radius:50%;
  border:6px solid var(--gold);
  background:radial-gradient(circle at 35% 30%,#1a4f96,#0B2B5A 70%);
  color:#fff;
  box-shadow:0 0 40px rgba(212,175,55,.4),0 12px 30px rgba(11,43,90,.35);
  cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  transition:transform .2s ease,box-shadow .2s ease;
  animation:prayPulse 2.8s ease-in-out infinite;
}
.click-pray-btn:hover{transform:scale(1.04)}
.click-pray-btn:active{transform:scale(.97)}
.click-pray-btn:disabled{opacity:.7;cursor:wait;animation:none}
.click-pray-btn span{
  font-size:1.15rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;line-height:1;
}
.click-pray-btn em{
  font-family:"Libre Baskerville",Georgia,serif;font-style:italic;font-size:.95rem;opacity:.8;margin:.2rem 0;
}
@media(min-width:768px){
  .click-pray-btn{width:168px;height:168px}
  .click-pray-btn span{font-size:1.5rem}
}
@keyframes prayPulse{
  0%,100%{box-shadow:0 0 30px rgba(212,175,55,.28),0 12px 30px rgba(11,43,90,.3)}
  50%{box-shadow:0 0 48px rgba(212,175,55,.55),0 12px 30px rgba(11,43,90,.35)}
}
.pray-prompt{
  margin:16px 0 0;
  max-width:400px;
  font-size:clamp(1.125rem,2vw,1.5rem);
  font-weight:700;
  color:var(--deep);
  line-height:1.2;
  letter-spacing:-.02em;
}
.pray-note{
  margin:8px 0 0;
  max-width:280px;
  font-size:11px;
  line-height:1.3;
  opacity:.5;
}
.country-picker{
  margin-top:18px;
  width:min(100%,280px);
  display:flex;flex-direction:column;gap:6px;text-align:left;
}
.country-picker span{
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}
.country-picker select,
.country-focus,
.daily-head select,
.subscribe-form input{
  width:100%;
  border:1px solid #E5E7EB;
  background:var(--soft);
  border-radius:10px;
  padding:10px 12px;
  color:var(--ink);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.country-picker select:focus,
.country-focus:focus,
.daily-head select:focus,
.subscribe-form input:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 1px var(--gold);
}

.stats-card{
  width:100%;
  background:var(--white);
  border:1px solid var(--line);
  overflow:hidden;
}
@media(min-width:768px){
  .stats-card{border-radius:16px;box-shadow:var(--shadow)}
}
.stats-head{
  display:none;
  background:var(--deep);
  color:#fff;
  padding:12px 20px;
  justify-content:space-between;
  align-items:center;
  border-bottom:4px solid var(--gold);
}
@media(min-width:768px){.stats-head{display:flex}}
.stats-head h2{margin:0;font-size:1.125rem;font-weight:700}
.live-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(0,0,0,.2);padding:4px 12px;border-radius:999px;
  font-size:12px;font-weight:700;letter-spacing:.08em;
}
.live-badge .ping,.live-badge .dot{
  width:8px;height:8px;border-radius:50%;background:#EF4444;
}
.live-badge .ping{
  position:absolute;animation:ping 1s cubic-bezier(0,0,.2,1) infinite;opacity:.75;
}
.live-badge{position:relative}
.live-badge .ping{position:relative;display:inline-flex}
@keyframes ping{75%,to{transform:scale(2);opacity:0}}

.stats-body{
  display:grid;
  gap:0;
  padding:0;
}
@media(min-width:1024px){
  .stats-body{grid-template-columns:1fr 1.2fr;gap:16px;padding:20px}
}
.now-block{
  display:flex;flex-direction:column;align-items:center;
  padding:16px;order:2;
}
@media(min-width:1024px){
  .now-block{align-items:flex-start;order:1;padding:0}
}
.now-label{
  margin:0 0 4px;
  color:#6B7280;
  font-size:10px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
}
@media(min-width:768px){.now-label{font-size:12px}}
.now-count{
  font-size:clamp(2.25rem,6vw,3rem);
  font-weight:900;
  color:var(--gold);
  line-height:1;
}
.active-tags{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px;min-height:32px;width:100%;
}
@media(min-width:1024px){.active-tags{justify-content:flex-start}}
.waiting{font-size:12px;color:#9CA3AF;font-style:italic}
.tag-pill{
  font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;
  background:#FEF3C7;color:#92400E;border:1px solid #FDE68A;
}
.country-focus{display:none;margin-top:16px}
@media(min-width:768px){.country-focus{display:block}}

.map-wrap{order:1;padding:0}
@media(min-width:1024px){.map-wrap{order:2;padding:0}}
.world-canvas{
  width:100%;
  background:linear-gradient(180deg,#E8F1FA,#F8FBFE);
  min-height:220px;
  position:relative;
  overflow:hidden;
  contain:layout paint;
}
@media(min-width:768px){
  .world-canvas{border-radius:12px;min-height:280px;box-shadow:inset 0 2px 4px rgba(0,0,0,.04)}
}
.map-host{width:100%;height:100%;min-height:220px;contain:content}
.map-host svg{
  width:100%;height:auto;display:block;max-height:360px;
}
.map-host svg path,
.map-host svg polygon{
  fill:#C5D5E8;
  stroke:#fff;
  stroke-width:.4;
  transition:fill .25s ease;
}
.map-host svg path.is-active,
.map-host svg polygon.is-active{
  fill:var(--gold);
}
.map-host svg path.is-hot,
.map-host svg polygon.is-hot{
  fill:#F5D76E;
}
.map-host svg path.is-flash,
.map-host svg polygon.is-flash{
  animation:countryFlash .9s ease;
}
@keyframes countryFlash{
  0%{fill:#fff}
  40%{fill:#FFE9A0}
  100%{fill:var(--gold)}
}

.analytics,.howto,.cta-pair{
  width:100%;
  max-width:72rem;
  margin:40px auto 0;
  padding:0 16px;
}
.daily-full{
  width:100%;
  max-width:none;
  margin:48px 0 0;
  padding:28px 0 40px;
  background:linear-gradient(180deg,#F8FAFC 0%,#FFFFFF 40%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.daily-inner{
  width:100%;
  max-width:100%;
  padding:0 12px;
}
@media(min-width:768px){
  .daily-inner{padding:0 24px}
}
@media(min-width:1200px){
  .daily-inner{padding:0 40px}
}
.analytics-head,.daily-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px;
}
.analytics h3,.howto h3,.daily h3{
  margin:0;font-size:1.25rem;font-weight:800;color:var(--deep);
}
.daily-tools{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;justify-content:flex-end;
}
.font-tools{display:inline-flex;align-items:center;gap:6px}
.tool-btn{
  border:1px solid #E5E7EB;
  background:#fff;
  color:var(--deep);
  border-radius:10px;
  padding:8px 12px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  min-height:40px;
}
.tool-btn:hover{border-color:var(--gold);background:#FFFBEB}
.tool-wide{min-width:120px}
.tool-full{
  background:var(--deep);
  color:#fff;
  border-color:var(--deep);
  min-width:52px;
}
.tool-full:hover{background:#0a3a6e;border-color:#0a3a6e;color:#fff}
.tool-full[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:var(--deep)}
.font-label{
  min-width:48px;text-align:center;font-size:12px;font-weight:800;color:var(--muted);
}
.range-toggle,.mode-toggle{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  border:1px solid #E5E7EB;
  background:#fff;
  color:var(--muted);
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.chip.active{background:var(--deep);color:#fff;border-color:var(--deep)}
.analytics-panel{
  margin-top:14px;
  display:grid;
  gap:16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
@media(min-width:768px){.analytics-panel{grid-template-columns:.9fr 1.1fr;padding:24px}}
.analytics-value{font-size:clamp(2.5rem,6vw,3.5rem);font-weight:900;color:var(--deep);line-height:1;margin:6px 0}
.hint{margin:0;color:var(--muted);font-size:14px}
.analytics-list{max-height:250px;overflow:auto}
.row{
  display:flex;justify-content:space-between;gap:12px;
  padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;
}
.row span{color:var(--muted)}
.row b{color:var(--deep)}
.row.is-active span{color:var(--deep);font-weight:700}
.row.is-active b{color:var(--gold)}

.howto h3{margin-bottom:16px}
.howto ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.howto li{
  position:relative;
  padding:14px 16px 14px 48px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:12px;
  line-height:1.5;
}
.howto li:before{
  content:"✓";
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;
  background:#DBEAFE;color:var(--deep);font-weight:800;font-size:12px;
}

.prayer-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:clamp(16px,3vw,36px);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  width:100%;
  --pray-scale:1;
}
.prayer-box-featured{
  border:2px solid var(--deep);
  box-shadow:0 16px 40px rgba(11,43,90,.12);
  position:relative;
}
.prayer-box-featured.is-daily{
  border-color:var(--gold);
  background:
    linear-gradient(180deg,rgba(212,175,55,.08),transparent 120px),
    #fff;
}
.prayer-box-featured.is-archive-view{
  border-color:#93C5FD;
}
.daily-banner{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  margin-bottom:14px;
}
.daily-pill{
  display:inline-flex;align-items:center;
  background:var(--deep);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:6px 12px;border-radius:999px;
}
.prayer-box-featured.is-daily .daily-pill{
  background:var(--gold);color:var(--deep);
}
.daily-pill.mini{font-size:10px;padding:4px 8px}
.daily-live{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:800;color:#B45309;
}
.daily-live .dot{
  width:8px;height:8px;border-radius:50%;background:#EF4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.15);
}
.pray-title{
  margin:0 0 8px;
  font-size:calc(1.55rem * var(--pray-scale));
  color:var(--deep);font-weight:900;line-height:1.25;
}
.prayer-box .scripture{
  color:var(--gold);font-weight:700;margin-bottom:18px;
  font-size:calc(1.05rem * var(--pray-scale));
}
.pray-media{
  margin:0;
  border-radius:0 0 12px 12px;
  overflow:hidden;
  background:#F1F5F9;
}
.pray-media img{
  display:block;
  width:100%;
  max-height:480px;
  object-fit:contain;
  background:#0B2B5A08;
}
.pray-attachments{
  display:flex;
  flex-direction:column;
  gap:0;
  margin:12px 0 0;
  width:100%;
}
.prayer-box-featured:has(.pray-attachments){
  padding-left:0;
  padding-right:0;
  padding-bottom:0;
  overflow:hidden;
}
.prayer-box-featured:has(.pray-attachments) .daily-banner,
.prayer-box-featured:has(.pray-attachments) .prayer-meta,
.prayer-box-featured:has(.pray-attachments) .pray-title,
.prayer-box-featured:has(.pray-attachments) .scripture,
.prayer-box-featured:has(.pray-attachments) .prayer-readable{
  padding-left:clamp(16px,3vw,36px);
  padding-right:clamp(16px,3vw,36px);
}
.pray-attach{
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  overflow:hidden;
  background:#fff;
  width:100%;
}
.attach-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:10px clamp(16px,3vw,36px);
  background:#F8FAFC;
  border-bottom:1px solid var(--line);
}
.attach-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--deep);
}
.attach-open,.pdf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--deep);
  color:#fff !important;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  padding:8px 14px;
  border-radius:8px;
}
.attach-open:hover,.pdf-btn:hover{filter:brightness(1.08)}
.attach-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.attach-full-btn{border:0;cursor:pointer;font:inherit}
.attach-pill{
  display:inline-flex;
  align-items:center;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:999px;
  background:#FEF3C7;
  color:#92400E;
}
.pray-html:fullscreen,
.pray-html:-webkit-full-screen{
  background:#fff;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
}
.pray-html:fullscreen .html-frame,
.pray-html:-webkit-full-screen .html-frame{
  flex:1;
  min-height:0;
  height:100%;
}
.pray-html:fullscreen .attach-bar,
.pray-html:-webkit-full-screen .attach-bar{
  flex-shrink:0;
}
.pray-pdf,.pray-html{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:0;
}
.pdf-frame,.html-frame{
  display:block;
  width:100%;
  max-width:100%;
  min-height:min(85vh,900px);
  height:min(85vh,900px);
  border:0;
  background:#F8FAFC;
}
.html-frame{background:#fff}
@media(max-width:700px){
  .pdf-frame,.html-frame{min-height:420px}
}
.prayer-card.has-files{
  border-color:#F5D76E;
}
.prayer-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.meta-tag{
  font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;
  background:#EFF6FF;color:var(--deep);
}
.lang-wrap{display:flex;flex-direction:column;gap:6px;min-width:min(100%,220px)}
.lang-wrap span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.lang-wrap select{max-width:280px;min-width:180px}

.prayer-readable{
  max-width:none;
  width:100%;
  color:#1E293B;
  content-visibility:auto;
  contain-intrinsic-size:auto 800px;
}
.prayer-box.body-hidden .prayer-readable{
  display:none;
}
.pray-document{display:flex;flex-direction:column;gap:4px;width:100%;contain:layout style}
.pray-meta-line{
  background:#F8FAFC;
  border:1px solid #E5E7EB;
  border-radius:10px;
  padding:10px 14px;
  margin:4px 0;
  font-size:calc(14px * var(--pray-scale));
  color:#334155;
  line-height:1.45;
}
.pray-h2{
  margin:28px 0 12px;
  padding:12px 14px;
  background:var(--deep);
  color:#fff;
  border-radius:10px;
  font-size:calc(1rem * var(--pray-scale));
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.35;
}
.pray-h2:first-child{margin-top:8px}
.pray-h3{
  margin:20px 0 8px;
  padding-bottom:6px;
  border-bottom:2px solid var(--gold);
  color:var(--deep);
  font-size:calc(1.05rem * var(--pray-scale));
  font-weight:800;
  line-height:1.35;
}
.pray-h4{
  margin:14px 0 6px;
  color:var(--gold);
  font-size:calc(.95rem * var(--pray-scale));
  font-weight:900;
}
.pray-p{
  margin:0 0 12px;
  font-size:calc(16px * var(--pray-scale));
  line-height:1.75;
  color:#334155;
}
.pray-p a{color:var(--deep);font-weight:700;text-decoration:underline;word-break:break-all}
.pray-section{margin:0}

.archive-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin:28px 0 12px;
}
.archive-head h4{margin:0;font-size:1.05rem;font-weight:800;color:var(--deep)}

.prayer-grid{
  display:grid;grid-template-columns:1fr;gap:12px;margin-top:0;
}
@media(min-width:700px){.prayer-grid{grid-template-columns:1fr 1fr}}
@media(min-width:1100px){.prayer-grid{grid-template-columns:1fr 1fr 1fr}}
.prayer-card{
  border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;
  transition:border-color .2s,box-shadow .2s;
}
.prayer-card.is-latest{
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(212,175,55,.35);
}
.prayer-card.is-active{
  border-color:var(--deep);
  box-shadow:0 8px 24px rgba(11,43,90,.12);
}
.card-top{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:4px}
.prayer-card h4{margin:8px 0;font-size:1rem;color:var(--deep)}
.card-date{margin:0 0 8px;font-size:12px;color:var(--muted);font-weight:600}
.card-preview{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:1.5}
.prayer-grid[data-show-text="false"] .card-preview{display:none}
.prayer-card button{
  border:0;background:none;color:var(--deep);font-weight:800;cursor:pointer;padding:0;
}

@media(max-width:560px){
  .daily-tools{width:100%}
  .tool-wide,.font-tools,.lang-wrap{width:100%}
  .lang-wrap select{max-width:none;width:100%}
  .font-tools{justify-content:space-between}
}

.cta-pair{
  display:flex;flex-direction:column;gap:24px;position:relative;margin-top:48px;
}
@media(min-width:768px){.cta-pair{flex-direction:row;align-items:stretch;gap:32px}}
.cta-pair article{
  flex:1;
  background:#fff;
  border-radius:16px;
  padding:28px;
  display:flex;flex-direction:column;justify-content:space-between;gap:18px;
}
.cta-pair article:first-child{border:2px solid var(--deep)}
.cta-pair article:last-child{border:1px solid #E5E7EB}
.cta-pair h4{margin:0 0 10px;font-size:1.15rem;font-weight:800;color:var(--deep)}
.cta-pair p{margin:0;color:var(--ink);opacity:.8;line-height:1.55}
.or-badge{
  align-self:center;
  background:#F8FAFC;
  border:2px solid #F3F4F6;
  color:#9CA3AF;
  font-weight:800;
  font-size:13px;
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  z-index:2;
}
@media(min-width:768px){
  .or-badge{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  }
}
.btn-gold,.btn-blue{
  display:block;width:100%;text-align:center;
  font-weight:800;padding:12px 16px;border-radius:12px;border:0;cursor:pointer;
}
.btn-gold{background:var(--gold);color:var(--deep)}
.btn-gold:hover{background:#EAB308}
.btn-blue{background:var(--deep);color:#fff}
.btn-blue:hover{background:#1E3A8A}
.subscribe-form{display:grid;gap:8px}

.footer-note{
  text-align:center;max-width:42rem;margin:48px auto 16px;padding:0 16px;
  color:#374151;line-height:1.5;
}
footer{text-align:center;padding-bottom:16px;color:#6B7280;font-size:14px}
footer p{margin:0}

.toast{
  position:fixed;bottom:20px;right:20px;z-index:50;
  background:var(--deep);color:#fff;padding:12px 16px;border-radius:10px;
  opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none;
  box-shadow:var(--shadow);max-width:min(90vw,360px);
}
.toast.show{opacity:1;transform:none}
.toast.error{background:#991B1B}

@media(max-width:767px){
  .page{padding-top:4px}
  .stats-card{border-left:0;border-right:0;border-radius:0}
}
