/* ============================================================
   MUSLIM DAY — tema zamrud & emas, aksen mushaf cetak
   Font: Plus Jakarta Sans (UI) · Amiri Quran / Scheherazade New (Arab)
   ============================================================ */
:root {
  --emerald: #0b5b41;
  --emerald-deep: #063a29;
  --emerald-ink: #0f241c;
  --gold: #c29a3c;
  --gold-soft: #e6d7ae;
  --paper: #f2f5f1;          /* latar aplikasi: hijau pucat keabu */
  --mushaf-paper: #fdf9ee;   /* kertas mushaf: krem hangat */
  --card: #ffffff;
  --line: #dbe4dc;
  --ink: #1d2a23;
  --muted: #5d6f64;
  --danger: #b3402a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 36, 28, .07);
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-arab: "Amiri Quran", "Scheherazade New", "Traditional Arabic", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, var(--emerald-deep), var(--emerald));
  color: #fff; padding: 10px 20px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(6, 58, 41, .35);
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--gold-soft); font-size: 20px; }
.mainnav { display: flex; gap: 4px; margin: 0 auto; }
.navlink {
  display: flex; align-items: center; gap: 6px;
  color: #d9e7de; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.navlink:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.navlink.active { background: var(--gold); color: var(--emerald-ink); }
.userchip { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.userchip-img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gold-soft); }
.userchip-out { color: #ffd9cc; font-weight: 600; }

/* ---------- Layout umum ---------- */
.page { max-width: 980px; margin: 0 auto; padding: 26px 18px 70px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; border-top: 1px solid var(--line); }
.pagehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.pagehead h1 { margin: 2px 0 0; font-size: 30px; letter-spacing: -.4px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: var(--gold); }
.section { margin-top: 30px; }
.section-title { font-size: 18px; margin: 0 0 12px; }
.section-hint { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.hint { font-size: 12px; color: var(--muted); }
.alert { background: #fbeae5; border: 1px solid #eac2b5; color: var(--danger); padding: 12px 16px; border-radius: var(--radius); }
.alert-info { background: #eaf3ee; border-color: var(--line); color: var(--ink); }

.btn {
  display: inline-block; border: 0; border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 14px;
}
.btn-gold { background: var(--gold); color: var(--emerald-ink); }
.btn-gold:hover { background: #d3ab48; text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid var(--emerald); color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: #fff; text-decoration: none; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-link { background: none; border: 0; color: var(--emerald); font-weight: 600; }
.btn-icon { border: 1.5px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 10px; font-weight: 700; }

/* ---------- Login ---------- */
.login-body {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(194,154,60,.25), transparent 60%),
    linear-gradient(160deg, var(--emerald-deep) 0%, var(--emerald) 70%, #0e6b4d 100%);
  padding: 24px;
}
.login-card {
  background: var(--mushaf-paper); border-radius: 22px; padding: 44px 36px;
  max-width: 430px; width: 100%; text-align: center;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 0 0 6px rgba(253,249,238,.12), 0 24px 60px rgba(0,0,0,.35);
}
.login-ornament { font-family: var(--font-arab); font-size: 34px; color: var(--emerald); margin-bottom: 8px; }
.login-title { margin: 0; font-size: 34px; letter-spacing: -.5px; color: var(--emerald-ink); }
.login-sub { color: var(--muted); font-size: 14px; margin: 10px 0 26px; }
.login-gwrap { display: flex; justify-content: center; min-height: 44px; }
.login-note { font-size: 12px; color: var(--muted); margin-top: 22px; }
.login-error { background: #fbeae5; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 13px; }

/* ---------- Beranda ---------- */
.hero {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; justify-content: space-between;
  background: linear-gradient(130deg, var(--emerald-deep), var(--emerald));
  color: #fff; border-radius: 20px; padding: 26px 28px;
  border-bottom: 4px solid var(--gold);
}
.hero-salam { margin: 0; color: var(--gold-soft); font-weight: 600; }
.hero-name { margin: 2px 0 4px; font-size: 34px; letter-spacing: -.5px; }
.hero-date { margin: 0; color: #cfe2d7; font-size: 14px; }
.hero-next { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px 20px; min-width: 230px; }
.hn-label { margin: 0; font-size: 12px; color: var(--gold-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hn-name { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.hn-name a { color: #fff; }
.hn-count { margin: 2px 0 0; font-size: 14px; color: #cfe2d7; font-variant-numeric: tabular-nums; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.dash-card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 3px solid var(--emerald);
  transition: transform .12s ease;
}
.dash-card:hover { transform: translateY(-3px); text-decoration: none; }
.dc-eyebrow { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.dc-main { margin: 6px 0 2px; font-size: 20px; font-weight: 800; color: var(--emerald-ink); }
.dc-sub { margin: 0; font-size: 13px; color: var(--muted); }
.dc-bar { height: 7px; background: var(--paper); border-radius: 99px; margin: 8px 0 6px; overflow: hidden; }
.dc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 99px; }
.soon-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.soon-card { background: var(--card); border: 1px dashed var(--line); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 14px; }

/* ---------- Al-Qur'an: indeks ---------- */
.jumpform { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.jumpform input { width: 84px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; }
.continue-card {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(120deg, var(--emerald), #0e6b4d); color: #fff;
  border-radius: var(--radius); padding: 18px 22px; border-left: 5px solid var(--gold);
}
.continue-card:hover { text-decoration: none; filter: brightness(1.06); }
.continue-label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-soft); font-weight: 700; }
.continue-main { margin: 3px 0 0; font-size: 20px; font-weight: 800; }
.continue-sub { margin: 3px 0 0; font-size: 12px; color: #cfe2d7; }
.continue-go { font-size: 26px; }

.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.juz-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 6px; text-align: center; display: grid; gap: 2px;
}
.juz-cell:hover { border-color: var(--gold); text-decoration: none; }
.juz-no { font-weight: 800; font-size: 18px; color: var(--emerald-ink); }
.juz-page { font-size: 11px; color: var(--muted); }

.filter-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; margin-bottom: 10px; }
.surah-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.surah-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.surah-row:hover { border-color: var(--gold); text-decoration: none; }
.surah-no {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--emerald-ink);
  font-weight: 800; font-size: 13px; border-radius: 50%; transform: rotate(45deg);
}
.surah-no::after { content: ""; }
.surah-row .surah-no { border-radius: 8px; }
.surah-no { transform: none; }
.surah-names { flex: 1; display: grid; }
.surah-latin { font-weight: 700; color: var(--ink); }
.surah-meta { font-size: 12px; color: var(--muted); }
.surah-arab { font-family: var(--font-arab); font-size: 24px; color: var(--emerald); }

/* ---------- Mushaf pojok ---------- */
.mushaf-body { background: #ece7d8; }
.mushaf-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 16px; align-items: center;
}
.mtb-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.toggle input { width: 38px; height: 22px; appearance: none; background: var(--line); border-radius: 99px; position: relative; transition: background .15s; cursor: pointer; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--emerald); }
.toggle input:checked::after { left: 19px; }
.mtb-select { padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--card); max-width: 160px; }

/* Bingkai halaman ala mushaf cetak: bingkai ganda + sudut emas */
.mushaf-frame {
  background: var(--mushaf-paper);
  border: 2px solid var(--emerald);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  border-radius: 6px;
  padding: 14px 22px 10px;
  margin: 8px 6px 18px;
  position: relative;
  box-shadow: 0 10px 30px rgba(15,36,28,.18);
}
.mushaf-frame::before, .mushaf-frame::after {
  content: "❖"; position: absolute; color: var(--gold); font-size: 14px; top: -13px;
}
.mushaf-frame::before { left: -13px; }
.mushaf-frame::after { right: -13px; }
.mushaf-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 6px; margin-bottom: 10px;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.mushaf-head-surah { font-family: var(--font-arab); font-size: 20px; color: var(--emerald); font-weight: 400; }
.mushaf-text {
  font-family: var(--font-arab);
  font-size: var(--arab-size, 28px);
  line-height: 2.15;
  text-align: justify;
  color: #23281f;
  word-spacing: .05em;
}
.ayah { }
.ayah-num {
  display: inline-grid; place-items: center;
  min-width: 1.35em; height: 1.35em;
  margin: 0 .18em; padding: 0 .1em;
  font-size: .55em; line-height: 1;
  color: var(--emerald-deep);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff8e3, var(--gold-soft));
  vertical-align: .35em;
  user-select: none;
}
.surah-banner {
  display: block; text-align: center;
  border: 1.5px solid var(--gold); border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(194,154,60,.16), transparent);
  margin: .5em auto .2em; padding: .05em 1em; max-width: 24em;
}
.surah-banner-name { font-size: .8em; color: var(--emerald-deep); }
.bismillah { display: block; text-align: center; font-size: .85em; margin: .1em 0 .2em; color: #23281f; }
.mushaf-foot { text-align: center; margin-top: 10px; border-top: 1px solid var(--gold-soft); padding-top: 6px; }
.mushaf-pageno {
  display: inline-block; font-weight: 700; font-size: 13px; color: var(--emerald-deep);
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 1px 16px; background: #fff;
}

.mushaf-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 6px 22px; }
.mnav { font-weight: 700; font-size: 14px; background: var(--card); border: 1.5px solid var(--line); padding: 9px 16px; border-radius: 999px; }
.mnav:hover { border-color: var(--gold); text-decoration: none; }
.mnav-index { color: var(--muted); }

.ayah-detail { display: grid; gap: 10px; }
.ayah-detail.hide-trans .ad-trans, .ayah-detail.hide-latin .ad-latin { display: none; }
.ayah-detail.hide-trans.hide-latin { display: none; }
.ad-row { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 16px; }
.ad-ref { font-size: 12px; font-weight: 800; color: var(--emerald); text-transform: uppercase; letter-spacing: .05em; }
.ad-latin { margin: 6px 0 0; font-style: italic; color: #46564c; font-size: 14.5px; }
.ad-trans { margin: 6px 0 0; font-size: 15px; }

/* ---------- Al-Ma'tsurat ---------- */
.tabs { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.tab:hover { text-decoration: none; }
.tab.active { background: var(--emerald); color: #fff; }
.matsurat-note { color: var(--muted); font-size: 13px; }
.matsurat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: mats; }
.matsurat-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); counter-increment: mats; position: relative;
}
.matsurat-item.finished { border-color: var(--emerald); background: #f2f8f4; }
.matsurat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.matsurat-title { font-weight: 800; color: var(--emerald-ink); }
.matsurat-title::before { content: counter(mats) ". "; color: var(--gold); }
.matsurat-counter {
  border: 1.5px solid var(--gold); background: #fff8e3; color: var(--emerald-deep);
  border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px;
  min-width: 74px; font-variant-numeric: tabular-nums;
}
.matsurat-counter:active { transform: scale(.95); }
.matsurat-item.finished .matsurat-counter { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.mc-sep { opacity: .5; margin: 0 2px; }
.matsurat-arab { font-family: var(--font-arab); font-size: 26px; line-height: 2.1; margin: 12px 0 8px; color: #23281f; }
.matsurat-arti { margin: 0; font-size: 13.5px; color: var(--muted); }
.matsurat-finish { text-align: center; margin-top: 26px; }

/* ---------- Mutaba'ah ---------- */
.dateform { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dateform input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.mut-summary { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.mut-ring {
  width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--emerald) calc(var(--pct) * 1%), var(--paper) 0);
  display: grid; place-items: center; flex: 0 0 84px;
}
.mut-ring::after { content: ""; position: absolute; }
.mut-ring-num { background: var(--card); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: var(--emerald-ink); }
.mut-ring-num small { font-size: 11px; }
.mut-summary-title { margin: 0; font-weight: 800; }
.mut-summary-sub { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

.mut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mut-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
}
.mut-item.done { background: #f2f8f4; border-color: #bcd8c8; }
.mut-item.done .mut-name { color: var(--emerald); }
.mut-check { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; }
.mut-checkbox { width: 22px; height: 22px; accent-color: var(--emerald); cursor: pointer; }
.mut-name { font-weight: 600; }
.mut-counter { display: flex; align-items: center; gap: 8px; }
.mut-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 18px; font-weight: 800; color: var(--emerald-ink); }
.mut-btn:hover { border-color: var(--gold); }
.mut-val { font-weight: 800; font-size: 17px; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.mut-target { color: var(--muted); font-size: 13px; }
.mut-empty { color: var(--muted); padding: 14px; text-align: center; }

.recap-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.recap-col { display: grid; justify-items: center; gap: 5px; padding: 8px 4px; border-radius: 10px; }
.recap-col:hover { background: var(--card); text-decoration: none; }
.recap-col.current { background: var(--card); border: 1px solid var(--gold); }
.recap-pct { font-size: 11px; font-weight: 700; color: var(--muted); }
.recap-bar { width: 100%; max-width: 34px; height: 74px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.recap-bar span { width: 100%; background: linear-gradient(180deg, var(--gold), var(--emerald)); }
.recap-day { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.3; }

.manage summary { cursor: pointer; font-weight: 700; color: var(--emerald); }
.act-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.act-form input[type=text] { flex: 1 1 240px; }
.act-form input, .act-form select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.act-form input[type=number] { width: 76px; }
.act-manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.act-manage-item { display: flex; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 14px; }
.act-manage-item em { color: var(--muted); font-style: normal; font-size: 12px; }
.act-manage-item.inactive { opacity: .55; }

/* ---------- Jadwal sholat ---------- */
.city-search { margin-bottom: 18px; position: relative; }
.city-search.hidden { display: none; }
.city-search input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; }
.city-results { list-style: none; margin: 6px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.city-results:empty { display: none; }
.city-results li button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 16px; font-size: 14px; }
.city-results li button:hover { background: var(--paper); }
.sholat-today { background: linear-gradient(120deg, var(--emerald-deep), var(--emerald)); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; border-bottom: 4px solid var(--gold); }
.st-title { margin: 0 0 10px; font-weight: 700; color: var(--gold-soft); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.st-cell { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 6px; text-align: center; }
.st-cell.next-prayer { background: var(--gold); color: var(--emerald-ink); }
.st-cell b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.st-cell span { font-size: 11.5px; opacity: .9; }
.st-next { margin: 10px 0 0; font-size: 14px; color: var(--gold-soft); font-weight: 600; }
.month-nav { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; }
.month-title { margin: 0; font-size: 20px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sholat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.sholat-table th { background: var(--emerald); color: #fff; padding: 10px 8px; text-align: center; font-size: 12.5px; position: sticky; top: 0; }
.sholat-table td { padding: 8px; text-align: center; border-bottom: 1px solid var(--paper); font-variant-numeric: tabular-nums; }
.sholat-table td:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
.sholat-table tr.today-row { background: #fff5da; font-weight: 700; }
.sholat-table tr.today-row td { border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.sholat-table tr.friday td:first-child { color: var(--emerald); }
.loading { text-align: center; color: var(--muted); padding: 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; }
  .userchip-name { display: none; }
  .mainnav {
    order: 3; width: 100%; margin: 0;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--emerald-deep); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around; box-shadow: 0 -3px 12px rgba(0,0,0,.25); z-index: 60;
  }
  .navlink { flex-direction: column; gap: 1px; font-size: 10.5px; padding: 6px 10px; border-radius: 10px; }
  .navlink-ico { font-size: 18px; }
  .page { padding-bottom: 110px; }
  .pagehead h1 { font-size: 24px; }
  .hero { padding: 20px; }
  .hero-name { font-size: 26px; }
  .mushaf-frame { padding: 10px 12px 8px; margin: 6px 0 14px; }
  .mushaf-text { font-size: calc(var(--arab-size, 28px) * .82); }
  .matsurat-arab { font-size: 22px; }
  .recap-bar { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Form autentikasi (login & daftar) ---------- */
.btn-primary { background: var(--emerald); color: #fff; cursor: pointer; }
.btn-primary:hover { background: var(--emerald-ink); }
.btn-block { display: block; width: 100%; padding: 12px 18px; font-size: 15px; }

.auth-form { text-align: left; margin: 6px 0 4px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font: inherit; font-size: 15px;
  background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(11,91,65,.12); }

.auth-alt { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.auth-alt a { font-weight: 700; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.login-success { background: #eaf3ee; color: var(--emerald-ink); border-radius: 10px; padding: 10px 14px; font-size: 13px; }

/* ---------- Penanda halaman (bookmark) ---------- */
.btn-bookmark { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); }
.btn-bookmark .bm-ico path { fill: transparent; transition: fill .15s; }
.btn-bookmark.active { color: var(--gold); border-color: var(--gold); background: #fdf6e7; }
.btn-bookmark.active .bm-ico path { fill: currentColor; }
.btn-bookmark .bm-label { font-size: 12.5px; }

.bm-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 8px 6px 8px 14px; transition: border-color .15s;
}
.bm-chip:hover { border-color: var(--gold); }
.bm-chip a { display: grid; text-decoration: none; color: inherit; line-height: 1.25; }
.bm-chip a b { color: var(--emerald-ink); font-size: 14px; }
.bm-chip a span { color: var(--muted); font-size: 12px; }
.bm-chip .bm-del {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 4px 8px; border-radius: 8px;
}
.bm-chip .bm-del:hover { color: var(--danger); background: #fbeae5; }
