/* ==========================================================
   AI Padosi - shared styles for all pages
   ========================================================== */
:root {
  --brand: #3b3fb6;
  --brand-dark: #221f6b;
  --brand-soft: #eef0ff;
  --accent: #f59e0b;
  --teal: #0f8a7e;
  --ink: #1b1d3a;
  --muted: #5d6185;
  --line: #e1e3f2;
  --bg: #f9f9fe;
  --white: #ffffff;
  --ok: #15803d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(34, 31, 107, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 92%); margin: 0 auto; }
.narrow { width: min(820px, 92%); margin: 0 auto; }

.demo-bar { background: var(--ink); color: #e1e3f2; font-size: 13px; text-align: center; padding: 6px 12px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); font-weight: 800; font-size: 20px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1; }
nav.links { display: flex; gap: 20px; }
nav.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
nav.links a:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.city-select { font: inherit; font-size: 14px; font-weight: 700; color: var(--brand-dark); border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 12px; }
@media (max-width: 1240px) { nav.links { gap: 14px; } nav.links a { font-size: 14px; } }
@media (max-width: 1120px) { nav.links { display: none; } }
@media (max-width: 520px) { .brand small { display: none; } .nav-right .btn.alt { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.alt { background: var(--accent); color: #3a2503; }
.btn.alt:hover { background: #dc8a06; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); padding: 10px 20px; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.wa { background: #16a34a; }
.btn.wa:hover { background: #12803b; }
.btn.sm { padding: 7px 14px; font-size: 13.5px; }
.btn.ghost.sm { padding: 5px 12px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, #5b5fe0);
  color: #fff; padding: 72px 0 110px; position: relative; overflow: hidden;
}
.hero.small { padding: 56px 0 64px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -140px; }
.hero::after { width: 260px; height: 260px; right: 160px; bottom: -150px; }
.hero .tag { display: inline-block; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; margin: 18px 0 14px; max-width: 780px; }
.hero p { font-size: 19px; max-width: 660px; color: #dcdcfb; margin: 0 0 26px; }
.ask-box { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; max-width: 660px; box-shadow: 0 14px 40px rgba(10,8,60,.35); }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 10px 16px; border-radius: 999px; color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick button { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.quick button:hover { background: rgba(255,255,255,.24); }

/* ---------- Stats ---------- */
.stats { margin-top: -54px; position: relative; z-index: 2; }
.stats .grid {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 0; padding: 22px 12px; text-align: center;
}
.stats b { display: block; font-size: 30px; color: var(--brand); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; }
.stats .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; vertical-align: middle; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
section.alt { background: var(--white); }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 8px 0 12px; color: var(--brand-dark); line-height: 1.2; }
.lead { color: var(--muted); max-width: 760px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 6px; font-size: 18px; color: var(--brand-dark); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Who gets what */
.value { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.value .card { padding: 28px; }
.value .card.biz { background: linear-gradient(160deg, #fff7e6, #fff); border-color: #f6dfae; }
.value .card.user { background: linear-gradient(160deg, var(--brand-soft), #fff); }
.value h3 { font-size: 22px; margin-top: 4px; }
.value .big { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.value .biz .big { color: #b45309; }
@media (max-width: 760px) { .value { grid-template-columns: 1fr; } }

/* Ad slots */
.ad { margin: 34px 0 0; }
.ad:empty { display: none; }
.ad .ad-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad .ad-body {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(120deg, #fff4dc, #ffe7b3); border: 1px solid #f3d38d;
}
.ad .ad-body.has-img { padding: 0; overflow: hidden; display: block; }
.ad .ad-body.has-img img { width: 100%; height: auto; }
.ad .ad-body.empty { background: repeating-linear-gradient(45deg, #fbfbff, #fbfbff 12px, #f3f4fd 12px, #f3f4fd 24px); border: 2px dashed #c9cbeb; }
.ad h4 { margin: 0; font-size: 18px; color: var(--ink); }
.ad p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Directory ---------- */
.dir-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab .n { font-weight: 600; opacity: .7; margin-left: 4px; }
.dir-search { flex: 0 1 280px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; outline: none; background: var(--white); }
.dir-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 22px; }
.biz-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; overflow: hidden; }
.biz-card.featured { border: 2px solid var(--accent); }
.biz-card .photo { margin: -18px -18px 14px; height: 150px; background: var(--brand-soft) center / cover no-repeat; }
.biz-card .top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.pill.home { background: #e6f6f4; color: #0b6b62; }
.pill.health { background: #fde8ec; color: #a1203f; }
.pill.property { background: #e8effd; color: #2447a0; }
.pill.food { background: #fff1dc; color: #92400e; }
.pill.feat { background: var(--accent); color: #3a2503; }
.pill.ver { background: #dcfce7; color: var(--ok); }
.biz-card h3 { margin: 10px 0 2px; font-size: 17px; color: var(--brand-dark); line-height: 1.3; }
.biz-card .sub { color: var(--muted); font-size: 14px; }
.biz-card .fee { margin: 10px 0 4px; font-weight: 800; color: var(--ink); font-size: 16px; }
.biz-card .info { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.biz-card .time { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.biz-card .acts { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.dir-msg { color: var(--muted); padding: 30px 0; text-align: center; grid-column: 1 / -1; }
.dir-more { text-align: center; margin-top: 22px; }

/* Property actions */
.prop-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.prop-actions .card, .plans .card { display: flex; flex-direction: column; }
.prop-actions .card .btn, .plans .card .btn { margin-top: 16px; align-self: flex-start; }

.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
section.alt .step { background: var(--bg); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.step h3 { margin: 0 0 4px; font-size: 17px; color: var(--brand-dark); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 28px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; }
.price-card.hot { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #3a2503; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.price-card h3 { margin: 0; font-size: 20px; color: var(--brand-dark); }
.price-card .amt { font-size: 32px; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.price-card .amt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .sub { color: var(--teal); font-weight: 700; font-size: 14px; }
.price-card ul { padding-left: 0; list-style: none; margin: 16px 0 20px; }
.price-card li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.price-card .btn { margin-top: auto; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.contact-grid .card p { color: var(--ink); }

/* ---------- Section header with button ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head h2 .count { font-size: .6em; color: var(--muted); font-weight: 600; }
.sec-head .lead { margin-bottom: 0; }

/* ---------- Moving news strip ---------- */
.ticker { display: flex; align-items: stretch; background: #fff8e8; border-bottom: 1px solid #f3dfae; font-size: 14.5px; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 14px; background: var(--accent); color: #3a2503; font-weight: 800; font-size: 12.5px; letter-spacing: .08em; }
.ticker-view { flex: 1; overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; animation: tickerMove 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.t-group { display: flex; flex: none; }
.t-item { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 28px 9px 0; color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 600; }
.t-item::after { content: "•"; margin-left: 20px; color: #d4a54a; }
.t-item em { font-style: normal; font-weight: 500; color: var(--muted); }
.t-item:hover { color: var(--brand); }
.t-tag { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; }
.t-item.t-offer .t-tag { background: #dc2626; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-view { overflow-x: auto; }
  .ticker-track { animation: none; }
  .t-group[aria-hidden] { display: none; }
}

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 24px; }
.offer-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; overflow: hidden; position: relative; transition: box-shadow .3s; }
section.alt .offer-card { background: var(--bg); }
.offer-card .photo { margin: -18px -18px 14px; height: 150px; background: var(--brand-soft) center / cover no-repeat; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.deal { background: #dc2626; color: #fff; font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 8px; letter-spacing: .02em; }
.ends { font-size: 13px; font-weight: 700; color: var(--muted); }
.ends.urgent { color: #dc2626; }
.offer-card h3 { margin: 12px 0 2px; font-size: 17px; color: var(--brand-dark); line-height: 1.3; }
.offer-card .sub { color: var(--muted); font-size: 14px; }
.offer-card .info { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.offer-card .acts, .news-item .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Neighbourhood news ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 24px; }
.news-item { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; transition: box-shadow .3s; }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.news-item h3 { margin: 8px 0 4px; font-size: 17px; color: var(--brand-dark); line-height: 1.3; }
.news-item p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.news-item .by { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.flash { box-shadow: 0 0 0 4px var(--accent) !important; }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.job-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; transition: box-shadow .3s; }
section.alt .job-card { background: var(--bg); }
.job-card .top { display: flex; gap: 6px; flex-wrap: wrap; }
.job-card h3 { margin: 10px 0 2px; font-size: 18px; color: var(--brand-dark); line-height: 1.3; }
.job-card .sub { color: var(--muted); font-size: 14px; }
.job-card .fee { margin: 10px 0 6px; font-weight: 800; font-size: 16px; }
.job-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 8px; font-size: 14px; }
.job-dl dt { color: var(--muted); }
.job-dl dd { margin: 0; }
.job-card .info { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.job-card .time { color: var(--ink); font-size: 14px; margin: 0 0 8px; }
.job-foot { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.job-card .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.safety { background: #fff7e6; border: 1px solid #f6dfae; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; color: #6b4a06; margin-top: 18px; }

/* ---------- Community banner ---------- */
#community { padding: 40px 0; }
.community-card { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius); text-decoration: none; color: #fff; background: linear-gradient(120deg, #064e3b, #0f766e 60%, #14b8a6); box-shadow: var(--shadow); }
.community-card:hover { filter: brightness(1.05); }
.cc-icon { font-size: 40px; flex: none; }
.cc-text { flex: 1; }
.cc-text b { display: block; font-size: 22px; }
.cc-text span { color: #d1fae5; font-size: 15px; }
@media (max-width: 600px) { .community-card { flex-wrap: wrap; } }

/* ---------- Muslim Connect ---------- */
.hero.green { background: linear-gradient(135deg, #064e3b, #0f766e 60%, #14b8a6); }
.hero.green p { color: #d1fae5; }
.prayer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hijri { color: var(--muted); font-size: 15px; }
.prayer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 600px) { .prayer-side { align-items: flex-start; } }
.seg { display: inline-flex; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 4px; }
.seg button { font: inherit; font-size: 14.5px; font-weight: 700; border: 0; background: transparent; color: #0f766e; padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #0f766e; color: #fff; }
.prayer.changed span { animation: flashText 1s ease; }
@keyframes flashText { 0% { color: #f59e0b; } 100% { color: #064e3b; } }
.prayers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 820px) { .prayers { grid-template-columns: repeat(3, 1fr); } }
.prayer { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.prayer b { display: block; font-size: 15px; color: var(--muted); }
.prayer span { display: block; font-size: 24px; font-weight: 800; color: #064e3b; font-variant-numeric: tabular-nums; }
.prayer.next { border: 2px solid #0f766e; background: #ecfdf5; }
.prayer.next small { display: block; font-size: 12px; font-weight: 700; color: #0f766e; }
.ramadan { margin-top: 20px; border-radius: var(--radius); padding: 22px; background: linear-gradient(120deg, #1e1b4b, #312e81); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ramadan h3 { grid-column: 1 / -1; margin: 0; font-size: 20px; }
.ramadan .rt { background: rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; }
.ramadan .rt b { display: block; font-size: 14px; color: #c7d2fe; font-weight: 600; }
.ramadan .rt span { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ramadan .rt small { display: block; color: #c7d2fe; font-size: 13px; }
.ramadan p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #c7d2fe; }
.masjids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.masjid { background: var(--white); border: 1px solid var(--line); border-top: 4px solid #0f766e; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
section.alt .masjid { background: var(--bg); }
.masjid h3 { margin: 0 0 2px; font-size: 18px; color: #064e3b; }
.masjid .addr { color: var(--muted); font-size: 14px; }
.jumma-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 14px 0; }
.jumma-times div { background: #ecfdf5; border-radius: 10px; padding: 8px 10px; text-align: center; }
.jumma-times b { display: block; font-size: 12px; color: #0f766e; font-weight: 700; }
.jumma-times span { font-size: 18px; font-weight: 800; color: var(--ink); }
.masjid .meta { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.masjid .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.janaza-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
@media (max-width: 860px) { .janaza-grid { grid-template-columns: 1fr; } }
.janaza-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid #334155; border-radius: var(--radius); padding: 22px; }
.janaza-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.janaza-card h4 { margin: 16px 0 4px; font-size: 15px; color: #0f766e; }
.janaza-card ul { margin: 0; padding-left: 20px; color: #34385e; font-size: 15px; }
.janaza-card li { margin: 3px 0; }
.janaza-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.jc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.jc.main { background: #ecfdf5; border-color: #a7f3d0; }
.jc div { flex: 1; min-width: 0; }
.jc b { display: block; font-size: 15px; }
.jc span { display: block; font-size: 13.5px; color: var(--muted); }
.jc .btn { flex: none; }
.janaza-board { margin-top: 20px; border-radius: 14px; background: #1f2937; color: #fff; padding: 16px 20px; }
.janaza-board h3 { margin: 0 0 8px; font-size: 16px; color: #d1d5db; font-weight: 700; }
.janaza-board .ja { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.janaza-board .ja:first-of-type { border-top: 0; }
.janaza-board .ja b { display: block; font-size: 17px; }
.janaza-board .ja span { color: #d1d5db; font-size: 14.5px; }
.muslim-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.muslim-ads .ad { margin: 0; }
.ticker.green { background: #ecfdf5; border-color: #a7f3d0; }
.ticker.green .ticker-label { background: #0f766e; color: #fff; }
.ticker.green .t-tag { background: #0f766e; }

/* ---------- Tools ---------- */
.tool-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 24px; }
.tool-links a { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.tool-links a:hover { border-color: var(--brand); color: var(--brand); }
.tool-links a span { font-size: 22px; }
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tool-nav a { text-decoration: none; border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.12); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.tool-nav a:hover { background: rgba(255,255,255,.24); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .tools { grid-template-columns: 1fr; } }
.tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 84px; }
.tool h2 { font-size: 21px; margin: 0 0 4px; display: flex; gap: 10px; align-items: center; }
.tool > p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tool .row.three { grid-template-columns: 1fr 1fr 1fr; }
.tool .row .full { grid-column: 1 / -1; }
.tool .field input, .tool .field select { background: var(--bg); }
.swap { align-self: end; border: 1px solid var(--line); background: var(--white); border-radius: 10px; height: 44px; cursor: pointer; font-size: 18px; color: var(--brand); }
.result { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.result .big { font-size: 26px; font-weight: 800; color: var(--brand-dark); line-height: 1.25; word-break: break-word; }
.result .small { font-size: 14px; color: var(--muted); margin-top: 4px; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 14.5px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 700; text-align: right; }
.all-units { margin-top: 12px; font-size: 14px; }
.all-units table { width: 100%; border-collapse: collapse; }
.all-units td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.all-units td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tool .credit { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Today's rates */
.rates-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rates-head .small { color: var(--muted); font-size: 13.5px; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
@media (max-width: 800px) { .rates-grid { grid-template-columns: 1fr; } }
.rates h3 { font-size: 15px; color: var(--muted); margin: 6px 0 10px; font-weight: 700; }
.rate-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rate-tile { border-radius: 12px; padding: 12px 14px; background: var(--brand-soft); }
.rate-tile.gold { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.rate-tile.silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.rate-tile b { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.rate-tile span { display: block; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.3; }
.rate-tile small { color: var(--muted); font-size: 12.5px; }

/* Calculator */
.calc-screen { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; text-align: right; margin-bottom: 12px; min-height: 86px; }
.calc-screen .expr { font-size: 15px; color: #b9bbe8; min-height: 22px; word-break: break-all; }
.calc-screen .val { font-size: 32px; font-weight: 700; word-break: break-all; line-height: 1.2; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-keys button { font: inherit; font-size: 19px; font-weight: 700; padding: 14px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.calc-keys button:hover { background: var(--brand-soft); }
.calc-keys button.op { background: var(--brand-soft); color: var(--brand); }
.calc-keys button.eq { background: var(--brand); color: #fff; border-color: var(--brand); }
.calc-keys button.fn { color: #b45309; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-pick label { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 500; }
.plan-pick label b { display: block; }
.plan-pick label span { font-size: 13.5px; color: var(--muted); }
.plan-pick input { width: auto; flex: none; margin-top: 4px; accent-color: var(--brand); }
.plan-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-msg.ok { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.form-msg.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { color: var(--brand-dark); font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal p, .legal li { color: #34385e; }

/* ---------- Footer ---------- */
footer { background: var(--brand-dark); color: #cfd0f2; padding: 40px 0 30px; font-size: 14px; }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
footer .fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #a9abd6; }

/* ---------- Toast (install hint etc.) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 32px);
}

/* ==========================================================
   Chat widget
   ========================================================== */
#bb-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: flex; align-items: center; gap: 12px; cursor: pointer; border: 0;
  background: none; padding: 0; font: inherit; color: var(--brand-dark);
  -webkit-tap-highlight-color: transparent;
}
#bb-launcher .lbl {
  background: #fff; color: var(--brand-dark); font-weight: 700; font-size: 14.5px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(34,31,107,.22), inset 0 -2px 0 rgba(59,63,182,.08);
  transform-origin: right center; animation: lblIn .6s .4s both cubic-bezier(.2,1.4,.4,1), lblWiggle 5s 3s infinite;
}
#bb-launcher .orb {
  position: relative; width: 68px; height: 68px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #a5a8ff 0%, #5b5fe0 30%, #3b3fb6 62%, #16134f 100%);
  box-shadow: 0 16px 30px rgba(34,31,107,.5), 0 4px 0 rgba(255,255,255,.08),
              inset 0 -10px 16px rgba(10,8,60,.6), inset 0 7px 12px rgba(255,255,255,.38);
  animation: orbFloat 3.2s ease-in-out infinite;
  transition: transform .2s;
}
#bb-launcher .orb::before {
  content: ""; position: absolute; top: 6px; left: 12px; width: 30px; height: 18px; border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.75), rgba(255,255,255,0));
  transform: rotate(-24deg); pointer-events: none;
}
#bb-launcher .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(91,95,224,.55);
  animation: ringPulse 2.6s ease-out infinite; pointer-events: none;
}
#bb-launcher .ring.r2 { animation-delay: 1.3s; }
#bb-launcher .orb svg { position: relative; width: 36px; height: 36px; filter: drop-shadow(0 4px 3px rgba(10,8,60,.55)); animation: bubbleTilt 3.2s ease-in-out infinite; }
#bb-launcher .orb svg circle { fill: #3b3fb6; transform-box: fill-box; transform-origin: center; animation: dotBounce 1.4s ease-in-out infinite; }
#bb-launcher .orb svg circle:nth-of-type(2) { animation-delay: .18s; }
#bb-launcher .orb svg circle:nth-of-type(3) { animation-delay: .36s; }
#bb-launcher:hover .orb { transform: scale(1.1) rotate(-6deg); }
#bb-launcher:active .orb { transform: scale(.96); }
#bb-launcher .ping { position: absolute; top: 1px; right: 1px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fcd98a, var(--accent) 60%, #c2710a); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: pingBeat 1.6s ease-in-out infinite; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bubbleTilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes dotBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes pingBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes lblIn { from { opacity: 0; transform: translateX(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes lblWiggle { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  #bb-launcher .lbl, #bb-launcher .orb, #bb-launcher .ring, #bb-launcher .orb svg, #bb-launcher .orb svg circle, #bb-launcher .ping { animation: none; }
}
#bb-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 390px; max-width: calc(100vw - 24px); height: 600px; max-height: calc(100vh - 44px);
  background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(20,18,70,.32);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
#bb-panel.open { display: flex; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bb-head { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.bb-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.bb-avatar img { width: 40px; height: 40px; }
.bb-head .title { flex: 1; line-height: 1.25; }
.bb-head .title b { display: block; font-size: 16px; }
.bb-head .title span { font-size: 12.5px; color: #d3d4fa; }
.bb-head .title span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fdc9a; margin-right: 6px; }
.bb-icon-btn { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.bb-icon-btn:hover { background: rgba(255,255,255,.26); }
.bb-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #f4f4fd; display: flex; flex-direction: column; gap: 10px; }
.bb-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.bb-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.bb-msg.user { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bb-msg.note { background: #fff6e0; border: 1px solid #f0d9a4; color: #6b4a06; align-self: stretch; max-width: 100%; font-size: 13.5px; }
.bb-msg a { color: inherit; text-decoration: underline; }
.bb-msg ul { margin: 6px 0; padding-left: 20px; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; background: #f4f4fd; }
.bb-chip { border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bb-chip:hover { background: var(--brand-soft); }
.bb-typing { display: none; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; padding: 12px 14px; }
.bb-typing.show { display: flex; gap: 5px; }
.bb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a3a5dc; animation: blink 1.2s infinite; }
.bb-typing i:nth-child(2) { animation-delay: .2s; }
.bb-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bb-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.bb-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 15px; outline: none; }
.bb-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bb-form button { border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.bb-form button:disabled { background: #b9bbe8; cursor: not-allowed; }
.bb-form button svg { width: 20px; height: 20px; fill: currentColor; }
.bb-foot { text-align: center; font-size: 11.5px; color: #8b8eb8; padding: 0 0 8px; background: #fff; }
@media (max-width: 480px) {
  #bb-launcher { right: 14px; bottom: 18px; }
  #bb-launcher .lbl { display: none; }
  #bb-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
}
