/**
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 */
/* Quran CMS - the site's own stylesheet. A theme's style.css is loaded after it. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #f5f8f7;
  --bg-2: #eef4f1;
  --surface: #ffffff;
  --surface-2: #f8fbfa;
  --ink: #13231f;
  --ink-2: #2a3d38;
  --muted: #5d706a;
  --line: #e1eae6;
  --line-2: #ecf2ef;
  --brand: #0b6b55;
  --brand-2: #12a37f;
  --brand-soft: #e3f4ee;
  --gold: #c08a23;
  --gold-2: #e8b949;
  --gold-soft: #fbf3df;
  --danger: #d64545;
  --ok: #1f9d55;
  --warn: #d98a0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .05), 0 6px 22px rgba(16, 40, 34, .06);
  --shadow-lg: 0 10px 40px rgba(10, 40, 32, .14);
  --font: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
  --font-ar: 'Amiri Quran', 'Amiri', 'Scheherazade New', serif;
  --ar-size: 32px;
  --tr-size: 17px;
  --header-h: 68px;
  --container: 1200px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M40 6l9.9 24.1L74 40l-24.1 9.9L40 74l-9.9-24.1L6 40l24.1-9.9z'/%3E%3Cpath d='M16 16h48v48H16z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08130f;
  --bg-2: #0c1b17;
  --surface: #0f201b;
  --surface-2: #122722;
  --ink: #e6f1ed;
  --ink-2: #cfe0da;
  --muted: #8fa89f;
  --line: #1d3630;
  --line-2: #183029;
  --brand: #19b58c;
  --brand-2: #37d0a6;
  --brand-soft: #123a30;
  --gold: #e8b949;
  --gold-2: #f3cf72;
  --gold-soft: #2c2512;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 44px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="en"] body { font-family: var(--font-latin); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.ic { flex: 0 0 auto; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 860px; }
.container-xs { max-width: 560px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt0 { margin-top: 0 } .mt1 { margin-top: .5rem } .mt2 { margin-top: 1rem } .mt3 { margin-top: 1.5rem } .mt4 { margin-top: 2.5rem }
.mb0 { margin-bottom: 0 } .mb1 { margin-bottom: .5rem } .mb2 { margin-bottom: 1rem } .mb3 { margin-bottom: 1.5rem }
.flex { display: flex; align-items: center; gap: .6rem; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.ar { font-family: var(--font-ar); direction: rtl; }
.num-latin { font-family: var(--font-latin); }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent;
       background: var(--b); color: #fff; padding: .7rem 1.25rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem;
       cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 107, 85, .25); }
.btn:disabled, .btn.is-busy { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { --b: var(--gold); color: #1d1606; }
.btn-gold:hover { color: #1d1606; box-shadow: 0 6px 18px rgba(192, 138, 35, .3); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-danger { --b: var(--danger); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
            background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; padding: 0; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.icon-btn.is-on { color: var(--brand); background: var(--brand-soft); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
.input, .select, .textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .93rem; border: 1px solid; }
.alert-ok, .alert-success { background: #e8f7ef; border-color: #b6e4c8; color: #145a33; }
.alert-err, .alert-error { background: #fdecec; border-color: #f4c0c0; color: #8a2020; }
.alert-info { background: var(--brand-soft); border-color: transparent; color: var(--ink); }
.alert-warn { background: var(--gold-soft); border-color: transparent; color: var(--ink); }
:root[data-theme="dark"] .alert-ok { background: #0f2e1f; color: #9ee6bc; border-color: #1c5236; }
:root[data-theme="dark"] .alert-err { background: #341414; color: #f3b1b1; border-color: #5a2222; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 1.3rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
         background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-muted { background: var(--bg-2); color: var(--muted); }
.pill-tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.pill-tabs a, .pill-tabs button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font: inherit; font-size: .9rem;
         font-weight: 600; color: var(--muted); cursor: pointer; }
.pill-tabs .on { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--brand); color: #d9f2ea; font-size: .82rem; }
:root[data-theme="dark"] .topbar { background: #07100d; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 1rem; min-height: 36px; }
.topbar .tb-dates { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.topbar .tb-dates span { display: inline-flex; align-items: center; gap: .35rem; }
.topbar .tb-next { margin-left: auto; display: inline-flex; gap: .4rem; align-items: center; color: var(--gold-2); font-weight: 600; }
.topbar a { color: #fff; }

/* ------------------------------------------------------------------ header */
.site-header { position: relative; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent);
               backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
               border-bottom: 1px solid var(--line); }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; font-size: 1.2rem; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { max-height: 44px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .brand-text small { font-size: .72rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .logo-light.has-dark { display: none; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-2);
                          font-weight: 600; font-size: .95rem; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current > a { color: var(--brand); background: var(--brand-soft); }
.main-nav .menu-cta > a { background: var(--gold); color: #1d1606 !important; margin-left: .3rem; }
.main-nav .menu-cta > a:hover { background: var(--gold-2); }
.main-nav .sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line);
                 border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem; list-style: none; margin: 0;
                 opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 70; }
.main-nav .sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; color: var(--ink-2); font-size: .92rem; }
.main-nav .sub a:hover { background: var(--brand-soft); color: var(--brand); }
.main-nav .sub a .ic { color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: .25rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: .3rem .6rem; color: var(--muted); }
.lang-switch a.on { background: var(--brand); color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center;
          font-weight: 700; font-size: .9rem; object-fit: cover; flex: 0 0 auto; }
.nav-toggle { display: none; }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4, 16, 12, .5); opacity: 0; visibility: hidden; transition: .2s; z-index: 90; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(88vw, 360px); background: var(--surface); z-index: 95; transform: translateX(100%);
          transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer.open + .drawer-backdrop, .drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: .6rem; flex: 1; }
.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: flex; align-items: center; gap: .7rem; padding: .75rem .8rem; border-radius: 12px; color: var(--ink); font-weight: 600; }
.drawer-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.drawer-nav .has-sub > .row { display: flex; align-items: center; }
.drawer-nav .has-sub > .row > a { flex: 1; }
.drawer-nav .sub { list-style: none; margin: 0 0 .4rem 1.2rem; padding: 0 0 0 .6rem; border-left: 2px solid var(--line); display: none; }
.drawer-nav .has-sub.open > .sub { display: block; }
.drawer-nav .sub a { font-weight: 500; font-size: .93rem; padding: .55rem .7rem; }
.drawer-nav .has-sub.open > .row .icon-btn .ic { transform: rotate(180deg); }
.drawer-foot { padding: 1rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; flex-wrap: wrap; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(4, 16, 12, .55); display: none; align-items: flex-start;
                  justify-content: center; padding: 10vh 16px 16px; }
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 640px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box form { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.search-box input { border: 0; box-shadow: none !important; font-size: 1.1rem; padding: .4rem; background: transparent; }
.search-tips { padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); }
.search-tips .chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: var(--bg-2);
        color: var(--ink-2); font-size: .85rem; border: 1px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.search-suggest a { display: flex; gap: .8rem; align-items: center; padding: .7rem 1.2rem; color: var(--ink); border-top: 1px solid var(--line-2); }
.search-suggest a:hover, .search-suggest a.active { background: var(--brand-soft); }

/* ----------------------------------------------------------------- footer */
.site-footer { margin-top: 4rem; background: #06201b; color: #b9d3cb; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .6; pointer-events: none; }
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding: 3.2rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold-2); border-radius: 2px; }
.site-footer a { color: #cfe6de; }
.site-footer a:hover { color: var(--gold-2); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .9rem; }
.footer-brand img { max-height: 42px; width: auto; }
.social { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.social a img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.social a:hover { transform: translateY(-2px); }
/* brand: each network in its own colour */
.social-brand a { background: var(--bc, var(--brand)); color: var(--bi, #fff); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.social-brand a:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, .28); }
.social-square a { border-radius: 12px; background: var(--bc, var(--brand)); color: var(--bi, #fff); }
/* pill: logo and name */
.social-pill a { width: auto; height: 34px; padding: 0 .85rem 0 .7rem; border-radius: 99px; display: inline-flex; gap: .45rem; align-items: center; font-size: .85rem; font-weight: 600;
                 background: var(--bc, var(--brand)); color: var(--bi, #fff); }
/* mono: the theme's own colours, brand colour on hover */
.social-mono a { background: rgba(255, 255, 255, .08); color: #fff; }
.social-mono a:hover { background: var(--bc, var(--gold)); color: var(--bi, #1d1606); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.1rem 0 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
                 align-items: center; justify-content: space-between; font-size: .88rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.footer-credit { font-size: .8rem; opacity: .8; }
.mini-prayer { display: grid; gap: .35rem; }
.mini-prayer div { display: flex; justify-content: space-between; padding: .35rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.mini-prayer div.now { background: rgba(232, 185, 73, .18); color: #fff; }

/* ---------------------------------------------------------------- sections */
.section { padding: 3rem 0; }
.section-sm { padding: 2rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: .6rem; }
.section-head h2 .ic { color: var(--gold); }
.section-head p { margin: .3rem 0 0; color: var(--muted); max-width: 60ch; }
.see-all { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .92rem; }
.page-head { padding: 2.4rem 0 1.6rem; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.page-head h1 { margin-bottom: .3rem; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 500px at 80% -10%, #1aa681 0%, transparent 60%),
        linear-gradient(135deg, #0a5a47 0%, #06332a 55%, #041f1a 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: 1; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%;
               background: radial-gradient(circle, rgba(232, 185, 73, .25), transparent 65%); }
.hero .container { position: relative; z-index: 1; padding-top: 3.6rem; padding-bottom: 3.6rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: .8rem; }
.hero p.lead { color: #cfe9e0; font-size: 1.08rem; max-width: 56ch; }
.hero .bismillah { font-family: var(--font-ar); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-2); margin-bottom: .6rem; direction: rtl; }
.jump-form { display: flex; gap: .5rem; background: #fff; border-radius: 999px; padding: .4rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); margin: 1.4rem 0 1rem; max-width: 560px; }
.jump-form input { border: 0; box-shadow: none !important; background: transparent; font-size: 1.05rem; color: #13231f; padding-left: 1rem; }
.jump-form .btn { flex: 0 0 auto; }
.hero .chips .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #eaf7f2; }
.hero .chips .chip:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.ayah-day { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 1.5rem; backdrop-filter: blur(6px); }
.ayah-day .label { display: flex; align-items: center; gap: .4rem; color: var(--gold-2); font-weight: 600; font-size: .85rem; letter-spacing: .3px; text-transform: uppercase; }
.ayah-day .arabic { font-family: var(--font-ar); direction: rtl; font-size: 1.8rem; line-height: 2.1; color: #fff; margin: .6rem 0; }
.ayah-day .trans { color: #d8efe7; font-size: .98rem; }
.ayah-day .ref { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: .6rem; flex-wrap: wrap; }
.ayah-day .ref a { color: var(--gold-2); font-weight: 600; }

/* ------------------------------------------------------------ prayer times */
.prayer-panel { display: grid; grid-template-columns: 340px 1fr; gap: 1.2rem; }
.prayer-now { background: linear-gradient(145deg, var(--brand), #064636); color: #fff; border-radius: 22px; padding: 1.5rem; position: relative; overflow: hidden; }
.prayer-now::before { content: ""; position: absolute; inset: 0; background: var(--pattern); }
.prayer-now > * { position: relative; }
.prayer-now .place { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.prayer-now .place button { margin-left: auto; background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 999px; padding: .3rem .75rem;
                            font: inherit; font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.prayer-now .dates { font-size: .88rem; color: #cfe9e0; margin-top: .25rem; }
.prayer-now .next-label { margin-top: 1.4rem; font-size: .9rem; color: #cfe9e0; }
.prayer-now .next-name { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.prayer-now .countdown { font-family: var(--font-latin); font-size: 2.3rem; font-weight: 700; letter-spacing: 1px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
html[lang="bn"] .prayer-now .countdown { font-family: var(--font); }
.prayer-now .sun-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.prayer-now .sun-row div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: .6rem .8rem; font-size: .85rem; }
.prayer-now .sun-row strong { display: block; font-size: 1.05rem; }
.prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.prayer-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .8rem; position: relative; }
.prayer-card .pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.prayer-card .pn { font-weight: 600; color: var(--ink-2); }
.prayer-card .pt { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.prayer-card .pe { font-size: .78rem; color: var(--muted); }
.prayer-card.is-now { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.prayer-card.is-now::after { content: attr(data-now); position: absolute; top: .6rem; right: .7rem; font-size: .7rem; font-weight: 700; color: #fff;
                             background: var(--brand-2); border-radius: 999px; padding: .1rem .5rem; }
.prayer-card.is-next .pi { background: var(--gold-soft); color: var(--gold); }
.fast-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.fast-card { border-radius: 18px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .9rem; background: var(--gold-soft); border: 1px solid transparent; }
.fast-card .pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--gold); }
.fast-card .pt { font-size: 1.3rem; font-weight: 700; }
.forbidden { margin-top: .8rem; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.loc-panel { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 16, 12, .55); }
.loc-panel.open { display: flex; }
.loc-box { width: 100%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.loc-box .lh { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.loc-box .lb { padding: 1rem 1.2rem; overflow-y: auto; }
.loc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; margin-top: .7rem; }
.loc-list button { text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: .5rem .7rem; font: inherit;
                   font-size: .9rem; cursor: pointer; color: var(--ink); }
.loc-list button:hover { border-color: var(--brand); color: var(--brand); }
.times-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); }
.times-table th, .times-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line-2); text-align: center; white-space: nowrap; }
.times-table th { background: var(--brand); color: #fff; font-weight: 600; position: sticky; top: 0; }
.times-table tr.today td { background: var(--gold-soft); font-weight: 700; }
.times-table td:first-child, .times-table th:first-child { text-align: left; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

/* ------------------------------------------------------------ surah cards */
.surah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.surah-card { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem;
              color: var(--ink); transition: .18s; position: relative; }
.surah-card:hover { border-color: var(--brand-2); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.star-num { position: relative; width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; font-weight: 700; font-size: .92rem; color: var(--brand); }
.star-num::before, .star-num::after { content: ""; position: absolute; inset: 7px; border: 1.6px solid currentColor; border-radius: 6px; opacity: .55; }
.star-num::after { transform: rotate(45deg); }
.surah-card:hover .star-num { color: var(--gold); }
.surah-card .sn { font-weight: 700; line-height: 1.3; }
.surah-card .sm { font-size: .8rem; color: var(--muted); }
.surah-card .sa { margin-left: auto; text-align: right; flex: 0 0 auto; }
.surah-card .sa .ar { font-size: 1.35rem; line-height: 1.2; color: var(--ink-2); }
.surah-card .sa small { display: block; font-size: .75rem; color: var(--muted); }
.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.juz-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; color: var(--ink); display: block; }
.juz-card:hover { border-color: var(--brand-2); color: var(--ink); }
.juz-card strong { display: block; }
.juz-card small { color: var(--muted); }
.list-tools { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.list-tools .search-inline { flex: 1 1 260px; position: relative; }
.list-tools .search-inline .ic { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.list-tools .search-inline input { padding-left: 2.5rem; border-radius: 999px; }

/* ------------------------------------------------------------------ reader */
.reader-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 1.6rem; align-items: start; padding-top: 1.4rem; }
.reader-side { position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); display: flex; flex-direction: column;
               background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reader-side .side-search { padding: .7rem; border-bottom: 1px solid var(--line); }
.reader-side .side-search input { border-radius: 999px; padding: .55rem .9rem; font-size: .9rem; }
.reader-side .side-list { overflow-y: auto; padding: .35rem; }
.reader-side .side-list a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; color: var(--ink-2); font-size: .92rem; }
.reader-side .side-list a:hover { background: var(--bg-2); }
.reader-side .side-list a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.reader-side .side-list .n { width: 28px; text-align: center; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.reader-side .side-list .ar { margin-left: auto; font-size: 1.05rem; color: var(--muted); }
.surah-banner { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 2rem 1.6rem 1.6rem; text-align: center;
                background: radial-gradient(700px 300px at 50% -40%, #1aa681, transparent 70%), linear-gradient(135deg, #0a5a47, #05302a); }
.surah-banner::before { content: ""; position: absolute; inset: 0; background: var(--pattern); }
.surah-banner > * { position: relative; }
.surah-banner .ar-name { font-family: var(--font-ar); font-size: 2.6rem; line-height: 1.4; color: var(--gold-2); }
.surah-banner h1 { color: #fff; margin: .2rem 0 .3rem; font-size: 1.7rem; }
.surah-banner .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem .9rem; color: #cfe9e0; font-size: .9rem; }
.surah-banner .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.surah-banner .actions .btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.surah-banner .actions .btn-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.reader-bar { position: sticky; top: var(--header-h); z-index: 30; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: color-mix(in srgb, var(--bg) 88%, transparent);
              backdrop-filter: blur(10px); padding: .6rem 0; margin: .8rem 0; border-bottom: 1px solid var(--line); }
.reader-bar .jump { display: flex; gap: .4rem; align-items: center; }
.reader-bar select, .reader-bar input { padding: .45rem .7rem; font-size: .88rem; border-radius: 10px; width: auto; }
.reader-bar input { width: 80px; }
.bismillah-line { text-align: center; font-family: var(--font-ar); font-size: calc(var(--ar-size) * 1.05); color: var(--ink-2); margin: 1.6rem 0 1rem; direction: rtl; }
.ayah { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; margin-bottom: .9rem; transition: border-color .2s, box-shadow .2s; scroll-margin-top: calc(var(--header-h) + 70px); }
.ayah.is-target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.ayah.is-playing { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.ayah-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; flex-wrap: wrap; }
.ayah-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 .6rem; border-radius: 999px;
            background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.ayah-top .tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.ayah-actions { margin-left: auto; display: flex; gap: .1rem; flex-wrap: wrap; }
.ayah-ar { font-family: var(--font-ar); font-size: var(--ar-size); line-height: 2.15; direction: rtl; text-align: right; color: var(--ink); margin: .3rem 0 .9rem; word-spacing: 2px; }
.ayah-end { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin: 0 .25em; font-size: .6em; line-height: 1; vertical-align: middle;
            color: var(--gold); position: relative; font-family: var(--font-ar); font-weight: 700; }
.ayah-end::before, .ayah-end::after { content: ""; position: absolute; inset: .2em; border: 1.5px solid var(--gold); border-radius: 3px; opacity: .85; }
.ayah-end::after { transform: rotate(45deg); }
.ayah-pron { font-size: calc(var(--tr-size) * .98); color: var(--brand); font-style: normal; margin-bottom: .6rem; line-height: 1.7; }
.ayah-tr { font-size: var(--tr-size); color: var(--ink-2); line-height: 1.75; margin-bottom: .5rem; }
.ayah-tr .tr-name { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .2px; margin-bottom: .1rem; }
.ayah-tr[dir=rtl] { text-align: right; font-size: calc(var(--tr-size) * 1.12); }
.reading-view .ayah { display: none; }
.reading-mushaf { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2rem 1.6rem; font-family: var(--font-ar);
                  font-size: calc(var(--ar-size) * 1.05); line-height: 2.3; text-align: justify; direction: rtl; color: var(--ink); }
.reading-view .reading-mushaf { display: block; }
.reading-mushaf .rm-ayah { cursor: pointer; border-radius: 8px; transition: background .15s; }
.reading-mushaf .rm-ayah:hover, .reading-mushaf .rm-ayah.is-playing { background: var(--brand-soft); }
.surah-nav { display: flex; justify-content: space-between; gap: .8rem; margin: 1.8rem 0; flex-wrap: wrap; }
.surah-nav a { flex: 1 1 220px; display: flex; align-items: center; gap: .6rem; padding: 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.surah-nav a:hover { border-color: var(--brand); }
.surah-nav a.next { justify-content: flex-end; text-align: right; }
.surah-nav small { display: block; color: var(--muted); font-size: .8rem; }

/* settings + tafsir panels (slide-in) */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(94vw, 440px); background: var(--surface); z-index: 110; box-shadow: var(--shadow-lg);
         transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.panel.open { transform: none; }
.panel-head { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 1rem 1.2rem 2rem; overflow-y: auto; flex: 1; }
.panel-backdrop { position: fixed; inset: 0; background: rgba(4, 16, 12, .45); z-index: 105; opacity: 0; visibility: hidden; transition: .2s; }
.panel-backdrop.open { opacity: 1; visibility: visible; }
.opt-group { margin-bottom: 1.4rem; }
.opt-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 .6rem; }
.opt-list { display: grid; gap: .3rem; }
.opt-list label { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; font-size: .93rem; }
.opt-list label:hover { background: var(--bg-2); }
.opt-list small { color: var(--muted); margin-left: auto; font-size: .75rem; }
.range-row { display: flex; align-items: center; gap: .7rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--brand); padding: 0; border: 0; box-shadow: none; }
.range-row output { min-width: 42px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tafsir-body { font-size: 1rem; line-height: 1.85; color: var(--ink-2); }
.tafsir-body[dir=rtl] { font-family: var(--font-ar); font-size: 1.25rem; text-align: right; }
.tafsir-body h2, .tafsir-body h3 { font-size: 1.05rem; }
.tafsir-ayah { background: var(--bg-2); border-radius: 14px; padding: .9rem; margin-bottom: 1rem; }
.tafsir-ayah .ar { font-size: 1.5rem; line-height: 2; text-align: right; }

/* ------------------------------------------------------------ audio player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; transform: translateY(110%); transition: transform .28s ease;
          background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
          border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0, 0, 0, .08); }
.player.show { transform: none; }
.player .container { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); gap: 1rem; align-items: center; padding-top: .55rem; padding-bottom: .55rem; }
.player .now { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.player .art { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
               display: grid; place-items: center; flex: 0 0 auto; position: relative; overflow: hidden; }
.player .art .ar { font-size: 1rem; }
.player .title { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .controls { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: min(460px, 44vw); }
.player .buttons { display: flex; align-items: center; gap: .3rem; }
.player .play-main { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.player .play-main:hover { background: var(--brand-2); }
.player .seek { display: flex; align-items: center; gap: .6rem; width: 100%; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player .seek input[type=range] { flex: 1; accent-color: var(--brand); padding: 0; height: 4px; border: 0; box-shadow: none; }
.player .extra { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; }
.player .extra select { width: auto; padding: .3rem .5rem; font-size: .8rem; border-radius: 8px; }
.player .badge-rep { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: #1d1606; font-size: .65rem; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.player .btn-rel { position: relative; }
.player-pop { position: absolute; bottom: calc(100% + 10px); right: 16px; width: min(92vw, 360px); background: var(--surface); border: 1px solid var(--line);
              border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1rem; display: none; }
.player-pop.open { display: block; }
.player-pop h4 { font-size: .85rem; margin: 0 0 .6rem; }
.player-pop .row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; font-size: .9rem; }
.player-pop .row select, .player-pop .row input { width: auto; padding: .35rem .5rem; font-size: .85rem; }
.player .vol { width: 90px; accent-color: var(--brand); padding: 0; border: 0; box-shadow: none; }
body.has-player { padding-bottom: 90px; }

/* ------------------------------------------------------------------ audio page */
.reciter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.reciter-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; display: flex; gap: .8rem; align-items: center; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.reciter-card:hover, .reciter-card.on { border-color: var(--brand-2); color: var(--ink); }
.reciter-card.on { box-shadow: 0 0 0 3px var(--brand-soft); }
.reciter-card .rimg { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; object-fit: cover; }
.reciter-card small { display: block; color: var(--muted); font-size: .78rem; }
.track-list { display: grid; gap: .4rem; }
.track { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.track.on { border-color: var(--brand-2); background: var(--brand-soft); }
.track .tn { width: 34px; text-align: center; color: var(--muted); font-weight: 700; font-size: .85rem; }
.track .tt { flex: 1; min-width: 0; }
.track .tt small { display: block; color: var(--muted); font-size: .78rem; }

/* ------------------------------------------------------------------- blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), #064b3b); display: block; position: relative; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .thumb .ph { position: absolute; inset: 0; background: var(--pattern); display: grid; place-items: center; color: var(--gold-2); }
.post-card .pc-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.12rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--muted); align-items: center; }
.post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; margin-bottom: 1.2rem; }
.widget h4 { margin: 0 0 .8rem; font-size: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.widget ul a { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .93rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.article .cover img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.article .art-body { padding: 1.8rem 2rem; }
.prose { font-size: 1.06rem; line-height: 1.85; color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: 14px; }
.prose blockquote { margin: 1.4em 0; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); }
.prose .ar, .prose [lang=ar] { font-family: var(--font-ar); font-size: 1.5em; line-height: 2; direction: rtl; }
.prose .arabic-box { background: var(--brand-soft); border-radius: 16px; padding: 1rem 1.2rem; margin: 1.2em 0; text-align: center; }
.prose .arabic-box .ar { display: block; font-size: 1.7em; color: var(--ink); }
.prose .arabic-box .pron { display: block; color: var(--brand); margin-top: .3rem; font-weight: 600; }
.prose .arabic-box .mean { display: block; color: var(--ink-2); margin-top: .2rem; }
.prose .note { background: var(--bg-2); border-radius: 14px; padding: .9rem 1.1rem; margin: 1.2em 0; border-left: 4px solid var(--brand-2); }
.prose .steps { counter-reset: step; list-style: none; padding: 0; }
.prose .steps > li { counter-increment: step; position: relative; padding: .2rem 0 1rem 3rem; }
.prose .steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
html[lang="bn"] .prose .steps > li::before { font-family: var(--font); }
.reactions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.react-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
             color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; font-weight: 600; }
.react-btn:hover { border-color: var(--brand); color: var(--brand); }
.react-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.react-btn.on.down { background: var(--danger); border-color: var(--danger); }
.share-row { display: flex; gap: .4rem; margin-left: auto; }
.author-box { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border-radius: 18px; background: var(--bg-2); margin-top: 1.4rem; }
.comments { margin-top: 2rem; }
.comment { display: flex; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--line-2); }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.comment .c-head strong { color: var(--ink); }
.comment .c-text { margin: .35rem 0 .45rem; color: var(--ink-2); white-space: pre-line; word-wrap: break-word; }
.comment .c-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.comment .c-actions button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; display: inline-flex;
                             align-items: center; gap: .25rem; padding: .25rem .5rem; border-radius: 8px; font-weight: 600; }
.comment .c-actions button:hover { background: var(--bg-2); color: var(--brand); }
.comment .c-actions button.on { color: var(--brand); }
.comment .c-actions button.on.down { color: var(--danger); }
.comment .replies { margin-top: .3rem; padding-left: .9rem; border-left: 2px solid var(--line-2); }
.comment .replies .comment { padding: .7rem 0; }
.comment.pending .c-text { opacity: .75; }
.comment-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; margin-top: 1rem; }
.comment-form.inline { margin: .6rem 0; padding: .9rem; }
.pagination { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin: 2rem 0 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 .7rem; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line);
                                   background: var(--surface); color: var(--ink-2); font-weight: 600; }
.pagination .on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- donate */
.donate-hero { padding: 3rem 0 2rem; background: linear-gradient(180deg, var(--gold-soft), transparent); }
.donate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.4rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
.stat strong { display: block; font-size: 1.5rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .88rem; }
.cause-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.cause { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.cause .c-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--gold), #8a5d10); position: relative; }
.cause .c-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cause .c-img .ph { position: absolute; inset: 0; background: var(--pattern); display: grid; place-items: center; color: #fff; }
.cause .c-body { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.cause h3 { margin: 0; font-size: 1.12rem; }
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); gap: .5rem; }
.donate-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.6rem; align-items: start; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.amounts button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: .7rem .4rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.amounts button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.method { border: 1.5px solid var(--line); border-radius: 14px; padding: .7rem; cursor: pointer; display: flex; align-items: center; gap: .55rem; background: var(--surface); font-weight: 600; font-size: .9rem; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.method .ml { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .72rem; color: #fff; flex: 0 0 auto; }
.method-box { background: var(--bg-2); border-radius: 14px; padding: 1rem; margin-top: .8rem; font-size: .92rem; }
.method-box .acc { font-size: 1.25rem; font-weight: 800; letter-spacing: .5px; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.donor-list { display: grid; gap: .5rem; }
.donor { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.donor .amt { margin-left: auto; font-weight: 700; color: var(--brand); }
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; max-width: 640px; margin: 2rem auto; }
.receipt .rrow { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); gap: 1rem; }

/* ----------------------------------------------------------------- learn */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; color: var(--ink); display: flex; flex-direction: column; gap: .6rem; transition: .18s; }
.course-card:hover { border-color: var(--brand-2); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.course-card .ci { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.course-card h3 { margin: 0; }
.lesson-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.6rem; align-items: start; padding-top: 1.5rem; }
.lesson-list { list-style: none; margin: 0; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); overflow-y: auto; }
.lesson-list a { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 12px; color: var(--ink-2); font-size: .92rem; }
.lesson-list a:hover { background: var(--bg-2); }
.lesson-list a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.lesson-list .ln { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .72rem; flex: 0 0 auto; margin-top: .1rem; }
.lesson-list .done .ln { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem 2rem; }
.lesson-foot { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------- tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; transition: .18s; }
.tool-card:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card .ti { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.tool-card h3 { margin: 0; font-size: 1.08rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------ member area */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.6rem; align-items: start; padding-top: 1.6rem; }
.account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .5rem; position: sticky; top: calc(var(--header-h) + 14px); }
.account-nav .who { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-bottom: 1px solid var(--line-2); margin-bottom: .3rem; }
.account-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.account-nav a:hover { background: var(--bg-2); }
.account-nav a.on { background: var(--brand-soft); color: var(--brand); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 2.5rem 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); }
.auth-card .brand-top { text-align: center; margin-bottom: 1.2rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.data-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .ic { color: var(--brand); opacity: .6; margin-bottom: .5rem; }

/* ------------------------------------------------------------- misc bits */
.toast-wrap { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { background: #10231e; color: #fff; padding: .75rem 1rem; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; display: flex; gap: .6rem; align-items: center;
         animation: toast-in .25s ease; pointer-events: auto; }
.toast.err { background: #7c1d1d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal { position: fixed; inset: 0; z-index: 140; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 16, 12, .55); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.modal-head { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.modal-body { padding: 1.2rem; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .3rem; border-radius: 14px; border: 1px solid var(--line);
         background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: .78rem; cursor: pointer; text-align: center; }
.share-grid a:hover, .share-grid button:hover { border-color: var(--brand); color: var(--brand); }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--line-2), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.cta-band { border-radius: 26px; padding: 2.2rem; background: linear-gradient(135deg, var(--gold), #b3781a); color: #1d1606; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .7; filter: invert(1); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #1d1606; margin: 0 0 .3rem; }
.cta-band .btn { --b: #1d1606; }
.counter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.counter { text-align: center; padding: 1.3rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.counter strong { display: block; font-size: 2rem; color: var(--brand); }
.counter span { color: var(--muted); }

/* the phone's bottom bar */
.tabbar { display: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .reader-wrap { grid-template-columns: 1fr; }
  .reader-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout, .donate-layout { grid-template-columns: 1fr; }
  .prayer-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 2.4rem; padding-bottom: 2.4rem; }
  .lesson-layout, .account-layout { grid-template-columns: 1fr; }
  .lesson-list, .account-nav { position: static; max-height: none; }
  .counter-row { grid-template-columns: repeat(2, 1fr); }
  .player .container { grid-template-columns: 1fr auto; }
  .player .extra { display: none; }
  .player .controls { min-width: 0; }
  .player .seek { display: none; }
  .player.full .seek { display: flex; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; --ar-size: 28px; }
  body { font-size: 15.5px; }
  .brand .brand-text small { display: none; }
  .header-tools .lang-switch, .header-tools .hide-sm { display: none; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-stats { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 2.4rem; }
  .ayah { padding: 1rem; border-radius: 16px; }
  .ayah-actions .icon-btn { width: 34px; height: 34px; }
  .article .art-body, .lesson-card { padding: 1.2rem; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 2.2rem 0; }
  .loc-list { grid-template-columns: 1fr 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--surface);
            border-top: 1px solid var(--line); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .68rem; color: var(--muted); padding: .25rem 0; font-weight: 600; }
  .tabbar a.on { color: var(--brand); }
  body { padding-bottom: 64px; }
  body.has-player { padding-bottom: 140px; }
  .player { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .toast-wrap { bottom: 150px; }
}
@media (max-width: 420px) {
  .prayer-card { padding: .8rem; gap: .6rem; }
  .prayer-card .pi { width: 38px; height: 38px; }
  .prayer-card .pt { font-size: 1.1rem; }
  .fast-row { grid-template-columns: 1fr; }
  .surah-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .topbar, .player, .tabbar, .no-print { display: none !important; }
  body { background: #fff; }
  .receipt { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* wide tables in lessons and posts scroll sideways on phones instead of widening the page */
@media (max-width: 640px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { min-width: 4.5rem; }
}

/* page columns never grow wider than the screen because of a wide table or long word */
.lesson-layout > *, .blog-layout > *, .donate-layout > *, .reader-wrap > *, .account-layout > *, .dua-layout > * { min-width: 0; }

/* videos embedded in posts, pages and lessons */
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin: 1.2em 0; background: #000; }
.prose video { max-width: 100%; border-radius: 14px; }

/* footer colours chosen on Appearance → Footer */
.site-footer[style*="--ft-ink"] a:not(.social a) { color: var(--ft-ink); }
.site-footer .social a:hover { color: var(--bi, #fff); }
.site-footer .social-mono a:hover { color: var(--bi, #1d1606); }

/* the top bar: its pieces never wrap */
.topbar .tb-next { white-space: nowrap; flex: 0 0 auto; }
.topbar .tb-next b { font-weight: 600; }
.topbar .tb-next .tb-left { font-variant-numeric: tabular-nums; font-family: var(--font-latin); letter-spacing: .3px; }
.topbar .tb-dates > span { white-space: nowrap; }
/* phones: one row — the dates take turns, the next prayer keeps its name and time */
@media (max-width: 720px) {
  .topbar .container { gap: .6rem; min-height: 34px; }
  .topbar .tb-dates { position: relative; flex: 1 1 auto; min-width: 0; height: 34px; overflow: hidden; display: block; }
  .topbar .tb-dates > span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-width: 100%; overflow: hidden; text-overflow: ellipsis;
                             opacity: 0; animation: tb-turn 12s infinite; }
  .topbar .tb-dates.tb-n2 > span { animation-duration: 8s; }
  .topbar .tb-dates > span:nth-child(2) { animation-delay: 4s; }
  .topbar .tb-dates > span:nth-child(3) { animation-delay: 8s; }
  .topbar .tb-dates.tb-n2 > span { animation-name: tb-turn2; }
  .topbar .tb-next { font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; background: rgba(0, 0, 0, .16); }
  .topbar .tb-next .tb-lbl { display: none; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .topbar .tb-dates > span { animation: none; opacity: 0; }
  .topbar .tb-dates > span:first-child { opacity: 1; }
}
@keyframes tb-turn { 0% { opacity: 0; } 3%, 30% { opacity: 1; } 33.3%, 100% { opacity: 0; } }
@keyframes tb-turn2 { 0% { opacity: 0; } 5%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }