/* mooddua.com: same palette and type as the app (lib/src/theme.dart). */
:root {
  --bg: #F3EFE6;
  --card: #FBF9F4;
  --border: #E6E0D3;
  --text: #1F2A17;
  --muted: #6B6A5E;
  --primary: #2E4D1F;
  --primary-2: #4A7A28;
  --deep: #233A18;
  --deep-2: #2C4A1F;
  --gold: #C9A45C;
  --gold-text: #8A6A1E;
  --sand: #E9E2D2;
  --on-deep: #F3EFE6;
  --on-primary: #fff;
  --on-deep-muted: #B9C2AE;
  --shadow: 0 10px 30px rgba(31, 42, 23, .10);
  --radius: 22px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16140F; --card: #221F17; --border: #3B372C; --text: #ECE8DF; --muted: #A6A296;
    --primary: #8FBC6E; --primary-2: #6FA046; --deep: #1E2B16; --deep-2: #263620;
    --gold: #D8B76E; --gold-text: #D8B76E; --sand: #2A271E; --on-primary: #16140F; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16140F; --card: #221F17; --border: #3B372C; --text: #ECE8DF; --muted: #A6A296;
  --primary: #8FBC6E; --primary-2: #6FA046; --deep: #1E2B16; --deep-2: #263620;
  --gold: #D8B76E; --gold-text: #D8B76E; --sand: #2A271E; --on-primary: #16140F; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans); padding-bottom: 84px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.eyebrow {
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font: 700 1.05rem/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); }
.header-cta { flex-shrink: 0; }
@media (max-width: 899px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; margin: 0 -6px; }
  .header-cta { margin-left: auto; }
}

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--sans); text-decoration: none; border-radius: 999px; padding: 14px 22px;
  background: var(--primary); color: var(--on-primary); transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--primary-2); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--sand); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 62px; width: auto; margin: -9px -10px; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; margin-top: 14px; padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--primary-2); font-weight: 700; margin-right: 6px; }

/* Sticky mobile install bar */
.install-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--deep); color: var(--on-deep); border-radius: 20px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  text-decoration: none;
}
.install-bar img { width: 44px; height: 44px; border-radius: 12px; }
.install-bar b { display: block; font: 700 1rem/1.2 var(--serif); }
.install-bar small { color: var(--on-deep-muted); font-size: .8rem; white-space: nowrap; }
.install-bar .go {
  margin-left: auto; background: var(--gold); color: #1F2A17; font-weight: 700; border-radius: 999px; padding: 11px 16px; font-size: .92rem;
}
@media (min-width: 900px) { .install-bar { display: none; } }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 92px 0; } }
.hero { padding-top: 44px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.phones { position: relative; display: flex; justify-content: center; }
.phones::before {
  content: ""; position: absolute; inset: 8% 6% 0; border-radius: 50% 50% 0 0 / 34% 34% 0 0; background: var(--sand);
}
.shot {
  position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--card);
  width: min(78%, 330px); aspect-ratio: 9 / 16;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.phones .shot + .shot { position: absolute; width: min(50%, 210px); right: 0; bottom: -18px; transform: rotate(4deg); }

.feature { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip > :first-child { order: 2; }
}
.feature + .feature { margin-top: 84px; }
.feature .shot { margin: 0 auto; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.deep { background: var(--deep); color: var(--on-deep); }
.deep h2, .deep h3 { color: var(--on-deep); }
.deep .eyebrow { color: var(--gold); }
.deep .lead, .deep .muted { color: var(--on-deep-muted); }
.deep a:not(.btn):not(.play-badge) { color: var(--gold); }

/* Cards and grids */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.city-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.city-grid a {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
  text-decoration: none; color: var(--text); font-weight: 600;
}
.city-grid a small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.city-grid a:hover { border-color: var(--primary-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-size: .92rem;
}
.chips a:hover { border-color: var(--primary-2); }
.country-block + .country-block { margin-top: 34px; }

/* Breadcrumb */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

/* Prayer card, like the app's home card */
.page-head { padding: 26px 0 8px; }
.prayer-card {
  background: var(--deep); color: var(--on-deep); border-radius: 28px; padding: 26px 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.prayer-card::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, .35); box-shadow: 0 0 0 46px rgba(201, 164, 92, .05);
}
.pc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; position: relative; z-index: 1; }
.pc-label { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--on-deep-muted); }
.pc-name { font: 700 clamp(2.2rem, 6vw, 3.2rem)/1 var(--serif); margin: 8px 0 6px; }
.pc-at { color: var(--on-deep-muted); }
.pc-left { text-align: right; }
.pc-count { font: 600 clamp(2rem, 6vw, 3rem)/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.pc-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); margin: 20px 0 18px; position: relative; z-index: 1; }
.pc-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--gold); }
.pc-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: relative; z-index: 1; }
@media (min-width: 640px) { .pc-times { grid-template-columns: repeat(6, 1fr); } }
.pc-times div { text-align: center; padding: 10px 4px; border-radius: 16px; }
.pc-times div.now { background: rgba(255, 255, 255, .1); }
.pc-times div.past { opacity: .55; }
.pc-times span { display: block; color: var(--on-deep-muted); font-size: .9rem; }
.pc-times b { display: block; font: 600 1.25rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; }
.seg button {
  font: 600 .88rem/1 var(--sans); border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
th, td { padding: 11px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--bg); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tr.today td { background: color-mix(in srgb, var(--gold) 18%, transparent); font-weight: 600; }
tr.special td { background: color-mix(in srgb, var(--primary-2) 10%, transparent); }
td.hl { color: var(--primary); font-weight: 700; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #1F2A17; margin-left: 6px; vertical-align: 1px; }

/* App promo inside content pages */
.promo {
  display: grid; gap: 24px; align-items: center; background: var(--deep); color: var(--on-deep); border-radius: 28px;
  padding: 28px 22px; overflow: hidden;
}
@media (min-width: 800px) { .promo { grid-template-columns: 1.2fr .8fr; padding: 40px 44px; } }
.promo h2 { color: var(--on-deep); font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.promo p { color: var(--on-deep-muted); }
.promo .ticks li::before { background-color: var(--gold); }
.promo .shot { width: min(70%, 250px); margin: 0 auto -60px; transform: rotate(3deg); }
@media (min-width: 800px) { .promo .shot { margin-bottom: -90px; } }

/* Qibla */
.qibla-hero { display: grid; gap: 30px; align-items: center; }
@media (min-width: 820px) { .qibla-hero { grid-template-columns: 1fr 1fr; } }
.dial { width: min(100%, 360px); margin: 0 auto; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; }
.big-deg { font: 700 clamp(3.4rem, 10vw, 5rem)/1 var(--serif); color: var(--primary); }
.big-deg sup { font-size: .45em; color: var(--gold-text); }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 18px; min-width: 140px; }
.stat b { display: block; font: 700 1.4rem/1.2 var(--serif); }
.stat span { color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Duas */
.dua h3 { font: 600 1.1rem/1.35 var(--sans); margin: 0 0 12px; }
.dua h3 a { color: var(--text); text-decoration: none; }
.dua h3 a:hover { color: var(--primary); }
.ar { font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.7rem; line-height: 2.1; text-align: right; margin: 0 0 12px; color: var(--text); }
.dua-main { margin-top: 22px; padding: 26px 24px; }
.dua-main .ar { font-size: clamp(1.8rem, 5vw, 2.3rem); }
.translit { font-style: italic; color: var(--primary); }
.meaning { font-size: 1.08rem; }
.label { font: 600 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 18px 0 8px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px 18px 66px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: var(--gold); font: 700 1rem/32px var(--serif); text-align: center; }
.steps h3 { font: 600 1.08rem/1.35 var(--sans); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.prose ol { padding-left: 1.3em; }
.prose ol li { margin-bottom: .5em; }

/* Names */
.names-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.name-card { position: relative; text-align: center; padding: 18px 14px; }
.name-card .ar { text-align: center; font-size: 2rem; margin: 4px 0 2px; color: var(--primary); }
.name-card h3 { font: 600 1rem/1.3 var(--sans); margin: 0 0 4px; }
.name-card .num { position: absolute; top: 10px; left: 12px; font-size: .75rem; color: var(--gold-text); font-weight: 700; }
.names-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.names-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.names-list a:hover { border-color: var(--primary-2); }
.names-list small { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
.ar-sm { font-family: 'Amiri', serif; font-size: 1.2rem; color: var(--primary); }
.name-hero { margin-top: 18px; padding: 24px; }
.name-hero .ar { text-align: left; font-size: 2.6rem; color: var(--primary); }
.name-hero .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.name-hero .stat { min-width: 0; padding: 10px 12px; }
.name-hero .stat b { font-size: 1.02rem; }

/* Tools */
.tool h3 { font: 600 1.1rem/1.3 var(--sans); margin: 4px 0 14px; }
.tool label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 12px; }
.tool input, .tool select {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--sans); color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px;
}
.tool input:focus, .tool select:focus { outline: 2px solid var(--primary-2); outline-offset: 1px; }
.tool output { display: block; margin-top: 16px; font: 700 1.3rem/1.35 var(--serif); color: var(--primary); }
.row3 { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; }
.zakat-out { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.zakat-out .big { font: 700 2rem/1.1 var(--serif); color: var(--primary); }

/* Messages to copy */
.msg { position: relative; padding-right: 64px; }
.msg button { position: absolute; top: 16px; right: 16px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 .82rem var(--sans); color: var(--text); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding: 56px 0 40px; font-size: .95rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-grid h4 { color: var(--gold); font: 600 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand .brand span { color: var(--on-deep); }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
