/* Portal Jamaah Surya Madina - mobile-first. Warna mengikuti situs utama (navy #0a2540, biru #0056b3, oranye #ff6b00, emas). */
:root {
  --navy: #0a2540; --navy-2: #0b1d39; --blue: #0056b3; --acc: #ff6b00;
  --gold: #b98d2e; --gold-2: #e2bd62; --gold-l: #fada7a; --gold-bg: #fff8e4;
  --ink: #16202e; --mut: #5f6c80; --line: #e6ebf3; --bg: #f3f5fa; --card: #fff;
  --ok: #12805c; --ok-bg: #e7f6ef; --bad: #c2351f; --bad-bg: #fdeeea; --wa: #25d366;
  --r: 22px; --nav-h: 74px;
  --sh: 0 1px 2px rgba(10,37,64,.04), 0 12px 28px -14px rgba(10,37,64,.16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body.jm { margin: 0; font: 400 16px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
body.jm a { color: inherit; text-decoration: none; }
body.jm h1, body.jm h2, body.jm h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- bilah atas halaman dalam ---------- */
.jm-atas { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: rgba(243,245,250,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(10,37,64,.05); }
.jm-atas h1 { flex: 1; font-size: calc(20px * var(--fs, 1)); font-weight: 800; }
.jm-kembali, .jm-profil { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--navy); background: #fff; box-shadow: var(--sh); font-size: calc(16px * var(--fs, 1)); flex-shrink: 0; }
.jm-kembali { margin-left: -4px; }
.jm-isi { max-width: 640px; margin: 0 auto; padding: 16px 16px 8px; }
body.ada-hero .jm-isi { padding-top: 0; }

/* ---------- hero beranda ---------- */
.jm-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(226,189,98,.22), transparent 55%), linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: calc(22px + env(safe-area-inset-top)) 20px 78px; border-radius: 0 0 34px 34px; }
.jm-hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(226,189,98,.22); box-shadow: 0 0 0 28px rgba(226,189,98,.05), 0 0 0 58px rgba(226,189,98,.035); pointer-events: none; }
.jm-hero-in { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.jm-hero-baris { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jm-logo { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .92; }
.jm-hero .jm-profil { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.jm-salam { margin: 26px 0 0; font-size: calc(14px * var(--fs, 1)); color: rgba(255,255,255,.72); font-weight: 500; }
.jm-nama { margin: 2px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.jm-grup { margin: 10px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--gold-l); }
.jm-grup i { font-size: calc(12px * var(--fs, 1)); }

/* kartu hitung mundur menumpuk di bawah hero */
.jm-hitung { position: relative; z-index: 2; margin: -50px 0 16px; background: var(--card); border-radius: 26px; padding: 20px 20px 18px; box-shadow: 0 2px 4px rgba(10,37,64,.04), 0 22px 40px -22px rgba(10,37,64,.35); border: 1px solid rgba(10,37,64,.05); }
.jm-label { font-size: calc(11.5px * var(--fs, 1)); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.jm-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent); opacity: .6; }
.jm-hitung-isi { display: flex; align-items: flex-end; gap: 14px; margin-top: 10px; }
.jm-angka { font-size: 54px; line-height: .95; font-weight: 800; letter-spacing: -.05em; color: var(--navy); }
.jm-angka small { font-size: calc(17px * var(--fs, 1)); font-weight: 700; letter-spacing: 0; margin-left: 4px; color: var(--mut); }
.jm-tgl { padding-bottom: 4px; font-size: calc(14px * var(--fs, 1)); color: var(--mut); line-height: 1.35; }
.jm-tgl b { display: block; color: var(--ink); font-size: calc(15px * var(--fs, 1)); }
.jm-bar { height: 8px; border-radius: 99px; background: #eaeff7; overflow: hidden; margin-top: 16px; }
.jm-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #2f80d6); }
.jm-bar.emas i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.jm-bar-ket { display: flex; justify-content: space-between; margin-top: 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--mut); font-weight: 600; }

/* ---------- komponen ---------- */
.jm-kartu { background: var(--card); border-radius: var(--r); padding: 18px; margin: 0 0 14px; box-shadow: var(--sh); border: 1px solid rgba(10,37,64,.04); }
.jm-judul { display: flex; align-items: center; gap: 10px; font-size: calc(17px * var(--fs, 1)); font-weight: 800; margin: 26px 2px 12px; }
.jm-judul:first-child { margin-top: 4px; }
.jm-judul a { margin-left: auto; font-size: calc(13.5px * var(--fs, 1)); font-weight: 700; color: var(--blue); }
.jm-ket { color: var(--mut); font-size: calc(14px * var(--fs, 1)); }
.jm-ganti { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 16px; background: var(--gold-bg); border: 1px solid #f1e1ad; border-radius: 16px; font-size: calc(13.5px * var(--fs, 1)); color: #6b5316; }
.jm-ganti b { font-weight: 800; }

/* langkah berikutnya */
.jm-langkah { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #f1e1ad; background: linear-gradient(135deg, #fffaf0, #fff); }
.jm-langkah.ok { border-color: #bfe6d3; background: linear-gradient(135deg, #f1fbf6, #fff); }
.jm-langkah.bahaya { border-color: #f4c7bd; background: linear-gradient(135deg, #fff5f2, #fff); }
.jm-ikon { width: 46px; height: 46px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: calc(19px * var(--fs, 1)); flex-shrink: 0; background: var(--gold-bg); color: var(--gold); }
.jm-langkah.ok .jm-ikon { background: var(--ok-bg); color: var(--ok); }
.jm-langkah.bahaya .jm-ikon { background: var(--bad-bg); color: var(--bad); }
.jm-langkah h3 { font-size: calc(16px * var(--fs, 1)); font-weight: 800; }
.jm-langkah p { margin: 3px 0 0; font-size: calc(14px * var(--fs, 1)); color: var(--mut); }
.jm-langkah .jm-btn { margin-top: 12px; }

/* pintasan */
.jm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.jm-pin { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--sh); border: 1px solid rgba(10,37,64,.04); display: flex; flex-direction: column; gap: 10px; min-height: 108px; transition: transform .15s, box-shadow .15s; }
.jm-pin:active { transform: scale(.98); }
.jm-pin .ik { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, var(--navy), #163a63); color: var(--gold-l); display: flex; align-items: center; justify-content: center; font-size: calc(17px * var(--fs, 1)); }
.jm-pin b { font-size: calc(15px * var(--fs, 1)); font-weight: 800; line-height: 1.2; }
.jm-pin span { font-size: calc(12.5px * var(--fs, 1)); color: var(--mut); margin-top: -6px; }

/* baris daftar */
.jm-daftar { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid rgba(10,37,64,.04); overflow: hidden; margin-bottom: 14px; }
.jm-baris { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.jm-baris:first-child { border-top: 0; }
.jm-baris .ik { width: 40px; height: 40px; border-radius: 13px; background: #eef3fa; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: calc(16px * var(--fs, 1)); flex-shrink: 0; }
.jm-baris .tx { flex: 1; min-width: 0; }
.jm-baris .tx b { display: block; font-weight: 700; line-height: 1.3; }
.jm-baris .tx span { display: block; font-size: calc(13.5px * var(--fs, 1)); color: var(--mut); margin-top: 1px; }
.jm-baris .kn { text-align: right; font-weight: 800; flex-shrink: 0; font-size: calc(15px * var(--fs, 1)); }
.jm-baris .kn small { display: block; font-weight: 600; font-size: calc(12px * var(--fs, 1)); color: var(--mut); }
a.jm-baris:active { background: #f7f9fd; }

/* tag */
.jm-tag { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12px * var(--fs, 1)); font-weight: 700; padding: 4px 11px; border-radius: 99px; background: #eef2f8; color: var(--mut); white-space: nowrap; }
.jm-tag.ok { background: var(--ok-bg); color: var(--ok); }
.jm-tag.bad { background: var(--bad-bg); color: var(--bad); }
.jm-tag.emas { background: var(--gold-bg); color: #7a5b13; }

/* tombol */
.jm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 16px; font: 700 15.5px 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff !important; background: linear-gradient(135deg, var(--navy), #14416f); box-shadow: 0 12px 22px -12px rgba(10,37,64,.7); cursor: pointer; }
.jm-btn.hijau { background: linear-gradient(135deg, #1fbd5c, #159f4c); box-shadow: 0 12px 22px -12px rgba(18,140,126,.7); }
.jm-btn.oranye { background: linear-gradient(135deg, #ff7b1d, var(--acc)); box-shadow: 0 12px 22px -12px rgba(255,107,0,.7); }
.jm-btn.garis { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px #d7deea; }
.jm-btn.penuh { width: 100%; }
.jm-btn.kecil { min-height: 42px; padding: 8px 16px; font-size: calc(14px * var(--fs, 1)); border-radius: 13px; }

/* kosong */
.jm-kosong { text-align: center; background: var(--card); border-radius: var(--r); padding: 38px 24px; box-shadow: var(--sh); color: var(--mut); border: 1px solid rgba(10,37,64,.04); }
.jm-kosong i { display: flex; width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 24px; align-items: center; justify-content: center; font-size: 26px; background: var(--gold-bg); color: var(--gold); }
.jm-kosong h2 { font-size: calc(18px * var(--fs, 1)); color: var(--ink); font-weight: 800; }
.jm-kosong p { margin: 8px auto 18px; max-width: 32ch; font-size: calc(14.5px * var(--fs, 1)); }

/* garis waktu penerbangan / hotel */
.jm-rute { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.jm-rute .kota { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.jm-rute .kota small { display: block; font-size: calc(11.5px * var(--fs, 1)); font-weight: 600; color: var(--mut); letter-spacing: 0; margin-top: 5px; max-width: 14ch; }
.jm-rute .jalur { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-2) 0 6px, transparent 6px 12px); position: relative; margin-bottom: 18px; }
.jm-rute .jalur i { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; padding: 0 6px; color: var(--gold); font-size: calc(14px * var(--fs, 1)); }
.jm-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: calc(13.5px * var(--fs, 1)); color: var(--mut); }
.jm-meta b { color: var(--ink); font-weight: 700; }

/* itinerary */
.jm-hari { background: var(--card); border-radius: 20px; box-shadow: var(--sh); border: 1px solid rgba(10,37,64,.04); margin-bottom: 10px; overflow: hidden; }
.jm-hari summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.jm-hari summary::-webkit-details-marker { display: none; }
.jm-hari .no { width: 46px; height: 46px; border-radius: 15px; background: #eef3fa; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.jm-hari .no small { font-size: calc(9.5px * var(--fs, 1)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.jm-hari .no b { font-size: calc(19px * var(--fs, 1)); font-weight: 800; margin-top: 2px; }
.jm-hari .jd { flex: 1; min-width: 0; }
.jm-hari .jd b { display: block; font-weight: 800; line-height: 1.3; }
.jm-hari .jd span { font-size: calc(13px * var(--fs, 1)); color: var(--mut); }
.jm-hari summary > .fa-chevron-down { color: #9aa7bb; font-size: calc(13px * var(--fs, 1)); transition: transform .2s; }
.jm-hari[open] summary > .fa-chevron-down { transform: rotate(180deg); }
.jm-hari .isi { padding: 0 16px 16px 76px; color: var(--mut); font-size: calc(14.5px * var(--fs, 1)); }
.jm-hari.hariini { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(226,189,98,.22), var(--sh); }
.jm-hari.hariini .no { background: linear-gradient(145deg, var(--navy), #163a63); color: #fff; }
.jm-hari.hariini .no small { color: var(--gold-l); }
.jm-hari.lewat { opacity: .62; }

/* tagihan */
.jm-saldo { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 26px; padding: 22px 20px 20px; position: relative; overflow: hidden; box-shadow: 0 22px 36px -22px rgba(10,37,64,.7); margin-bottom: 14px; }
.jm-saldo::after { content: ''; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(226,189,98,.25); box-shadow: 0 0 0 24px rgba(226,189,98,.05); }
.jm-saldo .jm-label { color: var(--gold-l); }
.jm-saldo .jm-label::after { background: linear-gradient(90deg, rgba(250,218,122,.5), transparent); }
.jm-saldo .besar { position: relative; z-index: 1; font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin-top: 8px; line-height: 1.1; }
.jm-saldo .sub { position: relative; z-index: 1; font-size: calc(13.5px * var(--fs, 1)); color: rgba(255,255,255,.7); margin-top: 4px; }
.jm-saldo .jm-bar { background: rgba(255,255,255,.14); position: relative; z-index: 1; }
.jm-saldo .jm-bar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.jm-saldo .jm-bar-ket { color: rgba(255,255,255,.68); position: relative; z-index: 1; }
.jm-rek { display: flex; flex-direction: column; gap: 3px; }
.jm-rek .no { font-size: 24px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.jm-salin { cursor: pointer; border: 0; font: 700 13px inherit; font-family: inherit; color: var(--blue); background: #eaf2fc; border-radius: 12px; padding: 8px 14px; align-self: flex-start; margin-top: 8px; }

/* form */
.jm-form label { display: block; font-size: calc(13.5px * var(--fs, 1)); font-weight: 700; margin: 16px 0 7px; }
.jm-form input[type=text], .jm-form input[type=tel], .jm-form input[type=password], .jm-form input[type=date] { width: 100%; min-height: 54px; padding: 13px 16px; font: 500 16px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #f1f4f9; border: 1.5px solid transparent; border-radius: 16px; transition: .15s; }
.jm-form input:focus { outline: 0; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,86,179,.12); }
.jm-pw { position: relative; }
.jm-pw input { padding-right: 54px !important; }
.jm-mata { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: #6b7a90; font-size: calc(17px * var(--fs, 1)); border-radius: 12px; cursor: pointer; }
.jm-mata:active { background: #e6ecf5; }
.jm-form .jm-pw { margin: 0; }
.jm-pesan { padding: 12px 14px; border-radius: 14px; font-size: calc(14px * var(--fs, 1)); margin-bottom: 14px; }
.jm-pesan.galat { background: var(--bad-bg); color: var(--bad); }
.jm-pesan.ok { background: var(--ok-bg); color: var(--ok); }
.jm-pesan.info { background: var(--gold-bg); color: #6b5316; }

/* login */
body.jm-login { min-height: 100vh; padding: 0; background: radial-gradient(110% 70% at 100% 0%, rgba(226,189,98,.2), transparent 55%), linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 70%); display: flex; flex-direction: column; }
.jm-login-atas { padding: calc(40px + env(safe-area-inset-top)) 24px 8px; text-align: center; color: #fff; }
.jm-login-atas img { height: 38px; filter: brightness(0) invert(1); opacity: .95; }
.jm-login-atas h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 26px; }
.jm-login-atas p { margin: 8px auto 0; color: rgba(255,255,255,.72); font-size: calc(15px * var(--fs, 1)); max-width: 30ch; }
.jm-login-kartu { background: #fff; border-radius: 30px 30px 0 0; margin-top: 30px; padding: 26px 22px calc(30px + env(safe-area-inset-bottom)); flex: 1; box-shadow: 0 -20px 40px -24px rgba(0,0,0,.4); }
.jm-login-kartu > div { max-width: 420px; margin: 0 auto; }
@media (min-width: 700px) { .jm-login-kartu { margin: 30px auto 60px; border-radius: 30px; max-width: 480px; flex: 0 0 auto; width: 100%; } }

/* navigasi bawah */
.jm-nav { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 520px; margin: 0 auto; height: var(--nav-h); display: flex; padding: 8px; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border: 1px solid rgba(10,37,64,.07); border-radius: 26px; box-shadow: 0 18px 36px -16px rgba(10,37,64,.4); }
.jm-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 18px; color: #7b889c; font-size: 11.5px; font-weight: 700; transition: .15s; }
.jm-nav a i { font-size: 19px; }
.jm-nav a.aktif { color: var(--navy); background: linear-gradient(180deg, var(--gold-bg), #fff); box-shadow: inset 0 0 0 1px #f1e1ad; }
.jm-nav a.aktif i { color: var(--gold); }

/* tombol WA melayang di Bantuan */
@media (min-width: 900px) { .jm-isi { padding-top: 24px; } .jm-nama { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Modul Belajar */
.jm-seg { display: flex; gap: 6px; padding: 5px; background: #e9eef6; border-radius: 16px; margin: 0 0 16px; }
.jm-seg a { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: calc(14px * var(--fs, 1)); color: var(--mut); }
.jm-seg a.aktif { background: #fff; color: var(--navy); box-shadow: var(--sh); }
.jm-teks p { margin: 0 0 12px; line-height: 1.65; }
.jm-teks h3 { font-size: calc(16px * var(--fs, 1)); font-weight: 800; margin: 18px 0 8px; color: var(--navy); }
.jm-teks ul { margin: 0 0 12px; padding-left: 20px; }
.jm-teks li { margin-bottom: 6px; line-height: 1.6; }
.jm-doa .arab { font-size: 28px; line-height: 2.1; text-align: right; font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'Traditional Arabic', serif; color: var(--navy); }
.jm-doa .latin { margin-top: 10px; font-style: italic; line-height: 1.6; color: #35506f; }

/* ===== Tema selaras situs utama suryamadina.id (16 Nov) =====
   Latar kuning emas + pola titik, kartu putih, tombol utama pil gradasi oranye, tombol sekunder pil biru,
   bilah atas putih tembus pandang, hero/saldo bergradasi biru situs. Hapus blok ini untuk kembali ke tema sebelumnya. */
:root { --bg: #FADA7A; --mut: #4a5568; --ink: #1a202c; --r: 26px; --sh: 0 10px 30px -10px rgba(0,0,0,.10); --grad-biru: linear-gradient(135deg, #0b1d39 0%, #0056b3 60%, #2575fc 100%); }
body.jm { background-color: #FADA7A; background-image: radial-gradient(rgba(0,0,0,.1) 1.5px, transparent 1.5px); background-size: 20px 20px; color: var(--ink); }
body.jm h1, body.jm h2, body.jm h3 { letter-spacing: -.03em; }

/* bilah atas seperti navbar situs */
.jm-atas { background: rgba(255,255,255,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.5); box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); }
.jm-atas h1 { font-weight: 900; letter-spacing: -.03em; }
.jm-kembali, .jm-profil { border-radius: 50%; background: #fff; box-shadow: 0 4px 14px -6px rgba(0,0,0,.2); }
.jm-judul { font-weight: 900; letter-spacing: -.02em; }
.jm-judul a { color: var(--blue); }

/* hero, saldo, login: gradasi biru situs */
.jm-hero { background: radial-gradient(120% 90% at 100% 0%, rgba(255,215,0,.22), transparent 55%), var(--grad-biru); }
.jm-saldo { background: var(--grad-biru); box-shadow: 0 22px 36px -22px rgba(0,60,140,.7); }
body.jm-login { background: radial-gradient(110% 70% at 100% 0%, rgba(255,215,0,.2), transparent 55%), var(--grad-biru); }
.jm-grup { color: #FFD700; }

/* kartu dan daftar */
.jm-kartu, .jm-daftar, .jm-kosong, .jm-hitung { border: 1px solid rgba(255,255,255,.7); }
.jm-pin { border-radius: 24px; border: 1px solid rgba(255,255,255,.7); }
.jm-hari { border: 1px solid rgba(255,255,255,.7); }
.jm-pin .ik { background: linear-gradient(135deg, #0056b3, #2575fc); color: #fff; }
.jm-hari.hariini .no { background: linear-gradient(135deg, #0056b3, #2575fc); }
.jm-hari.hariini .no small { color: #FFD700; }
.jm-hari.hariini { border-color: #FFA500; box-shadow: 0 0 0 3px rgba(255,165,0,.25), var(--sh); }
.jm-bar i { background: linear-gradient(90deg, #0056b3, #2575fc); }
.jm-bar.emas i, .jm-saldo .jm-bar i { background: linear-gradient(90deg, #FFD700, #FFA500); }

/* tombol: pil, utama gradasi oranye */
.jm-btn { border-radius: 50px; background: linear-gradient(135deg, #ff6b00, #e65a00); box-shadow: 0 10px 24px -10px rgba(230,90,0,.6); font-weight: 700; }
.jm-btn.hijau { background: linear-gradient(135deg, #25d366, #159f4c); box-shadow: 0 10px 24px -10px rgba(18,140,126,.7); }
.jm-btn.oranye { background: linear-gradient(135deg, #ff6b00, #e65a00); }
.jm-btn.garis { background: #fff; color: var(--blue) !important; box-shadow: inset 0 0 0 2px rgba(0,86,179,.18); }
.jm-btn.kecil { border-radius: 50px; }
.jm-salin { border-radius: 50px; }

/* pesan, penanda, segmen: terbaca di atas latar kuning */
.jm-pesan { background: #fff; border-left: 4px solid var(--acc); color: var(--ink); box-shadow: var(--sh); }
.jm-pesan.ok { border-left-color: var(--ok); color: var(--ok); }
.jm-pesan.galat { border-left-color: var(--bad); color: var(--bad); }
.jm-pesan.info { border-left-color: var(--acc); color: var(--ink); }
.jm-ganti { background: #fff; border: 1px solid rgba(255,255,255,.7); box-shadow: var(--sh); color: var(--ink); }
.jm-seg { background: rgba(255,255,255,.55); border-radius: 50px; }
.jm-seg a { border-radius: 50px; }
.jm-seg a.aktif { color: var(--blue); }

/* navigasi bawah: pil putih, aktif oranye */
.jm-nav { border-radius: 36px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 36px -16px rgba(0,0,0,.35); }
.jm-nav a { border-radius: 28px; }
.jm-nav a.aktif { color: #e65a00; background: rgba(255,107,0,.1); box-shadow: inset 0 0 0 1px rgba(255,107,0,.22); }
.jm-nav a.aktif i { color: var(--acc); }
.jm-form input:focus { border-color: var(--blue); }
.jm-judul > i { color: var(--blue) !important; }

/* ===== Tampilan premium (16 Nov): kedalaman, ritme, gerak halus. Tema warna tetap. Hapus blok ini untuk kembali ke versi sebelumnya. ===== */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --pegas: cubic-bezier(.34, 1.56, .64, 1);
  --sh-kartu: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(10,37,64,.05), 0 20px 38px -20px rgba(10,37,64,.28); }
body.jm { background-image: radial-gradient(130% 55% at 50% -8%, rgba(255,255,255,.6), transparent 62%), radial-gradient(rgba(0,0,0,.065) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 20px 20px; background-repeat: no-repeat, repeat; }

/* bilah atas: kaca halus */
.jm-atas { background: rgba(255,255,255,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.75); box-shadow: 0 1px 0 rgba(10,37,64,.04), 0 14px 30px -22px rgba(10,37,64,.35); }
.jm-atas h1 { font-size: calc(22px * var(--fs, 1)); font-weight: 800; letter-spacing: -.035em; color: var(--navy); }
.jm-kembali, .jm-profil { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.jm-kembali:active, .jm-profil:active { transform: scale(.92); }

/* judul bagian: label pil, tidak lagi melayang di atas latar */
.jm-judul { width: fit-content; max-width: 100%; margin: 28px 2px 12px; padding: 7px 16px 7px 12px; gap: 9px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 800; letter-spacing: .01em; color: var(--navy);
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: 50px; box-shadow: 0 8px 20px -14px rgba(10,37,64,.4); }
.jm-judul:first-child { margin-top: 6px; }
.jm-judul > i { font-size: calc(13px * var(--fs, 1)); color: var(--acc) !important; }
.jm-judul:not(:has(> i))::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #FFD700, #ff6b00); box-shadow: 0 0 0 3px rgba(255,107,0,.15); flex-shrink: 0; }

/* kartu: berlapis dan lebih lapang */
.jm-kartu, .jm-daftar, .jm-kosong, .jm-hitung, .jm-hari, .jm-pin { box-shadow: var(--sh-kartu); }
.jm-kartu { border-radius: 28px; padding: 20px; }
.jm-daftar { border-radius: 28px; }
.jm-pin { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.jm-pin:active { transform: scale(.965); }
.jm-pin .ik { box-shadow: 0 10px 18px -8px rgba(0,86,179,.65), inset 0 1px 0 rgba(255,255,255,.3); }

/* baris daftar: pemisah menjorok, ikon bergradasi, panah bergerak */
.jm-baris { position: relative; border-top: 0; padding: 15px 18px; transition: background .2s, transform .2s var(--ease); }
.jm-baris + .jm-baris::before { content: ''; position: absolute; top: 0; left: 72px; right: 18px; height: 1px; background: linear-gradient(90deg, rgba(10,37,64,.09), rgba(10,37,64,.02)); }
.jm-baris .ik { width: 42px; height: 42px; border-radius: 15px; background: linear-gradient(145deg, #f2f7ff, #dce9ff); color: var(--blue); box-shadow: inset 0 1px 0 #fff, 0 6px 12px -8px rgba(0,86,179,.5); }
.jm-baris .tx b { font-weight: 700; letter-spacing: -.01em; }
a.jm-baris:active { background: rgba(0,86,179,.05); }
.jm-panah { color: #b6c0d0; font-size: calc(12px * var(--fs, 1)); transition: transform .3s var(--ease), color .2s; }
a.jm-baris:active .jm-panah, a.jm-baris:hover .jm-panah { transform: translateX(4px); color: var(--acc); }

/* kartu kelompok (Belajar): judul berada DI DALAM kartu */
.jm-grupkartu { background: var(--card); border-radius: 28px; margin: 0 0 16px; overflow: hidden; box-shadow: var(--sh-kartu); border: 1px solid rgba(255,255,255,.8); }
.jm-grupkepala { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(180deg, #fffdf5, #fff6dc); border-bottom: 1px solid rgba(185,141,46,.2); }
.jm-grupkepala .ik { width: 36px; height: 36px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: calc(14px * var(--fs, 1)); color: #fff; background: linear-gradient(135deg, #0056b3, #2575fc); box-shadow: 0 8px 16px -8px rgba(0,86,179,.7), inset 0 1px 0 rgba(255,255,255,.35); flex-shrink: 0; }
.jm-grupkepala b { flex: 1; min-width: 0; font-size: calc(15px * var(--fs, 1)); font-weight: 800; letter-spacing: -.015em; color: var(--navy); line-height: 1.25; }
.jm-grupkepala small { font-size: calc(11.5px * var(--fs, 1)); font-weight: 800; color: #7a5b13; background: rgba(226,189,98,.3); padding: 4px 11px; border-radius: 50px; white-space: nowrap; }

/* tab Panduan | Doa: pil geser + panel bergeser */
.jm-seg { position: relative; padding: 5px; gap: 0; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 24px -16px rgba(10,37,64,.4); }
.jm-seg-pil { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 50px; background: #fff; box-shadow: 0 8px 18px -8px rgba(10,37,64,.4), inset 0 1px 0 #fff; transition: transform .45s var(--ease); }
.jm-seg[data-aktif="1"] .jm-seg-pil { transform: translateX(100%); }
.jm-seg a { position: relative; z-index: 1; padding: 11px 0; font-weight: 800; letter-spacing: -.01em; transition: color .3s; }
.jm-seg a.aktif { background: transparent; box-shadow: none; color: var(--blue); }
.jm-panel[hidden] { display: none; }
.jm-panel.masuk-kanan { animation: jm-masuk-kanan .4s var(--ease) both; }
.jm-panel.masuk-kiri { animation: jm-masuk-kiri .4s var(--ease) both; }
.jm-panel.keluar-kanan { animation: jm-keluar-kiri .16s ease-in both; }
.jm-panel.keluar-kiri { animation: jm-keluar-kanan .16s ease-in both; }
@keyframes jm-masuk-kanan { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes jm-masuk-kiri { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes jm-keluar-kiri { to { opacity: 0; transform: translateX(-18px); } }
@keyframes jm-keluar-kanan { to { opacity: 0; transform: translateX(18px); } }

/* tombol: kilau tipis dan respons sentuh */
.jm-btn { transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 26px -12px rgba(230,90,0,.7); }
.jm-btn:active { transform: scale(.97); filter: brightness(.96); }
.jm-btn.hijau { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 26px -12px rgba(18,140,126,.75); }
.jm-btn.garis { box-shadow: inset 0 0 0 2px rgba(0,86,179,.18), 0 8px 18px -14px rgba(10,37,64,.4); }

/* navigasi bawah: aktif menonjol, ikon membal */
.jm-nav { background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 44px -18px rgba(10,37,64,.5); }
.jm-nav a { transition: color .25s, background .3s var(--ease), transform .25s var(--ease); }
.jm-nav a:active { transform: scale(.94); }
.jm-nav a i { transition: transform .45s var(--pegas); }
.jm-nav a.aktif i { transform: translateY(-1px) scale(1.14); }

/* masuknya isi halaman: naik berurutan */
@keyframes jm-naik { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.jm-isi > * { animation: jm-naik .55s var(--ease) both; }
.jm-isi > *:nth-child(2) { animation-delay: .05s; } .jm-isi > *:nth-child(3) { animation-delay: .1s; } .jm-isi > *:nth-child(4) { animation-delay: .15s; }
.jm-isi > *:nth-child(5) { animation-delay: .2s; } .jm-isi > *:nth-child(6) { animation-delay: .25s; } .jm-isi > *:nth-child(n+7) { animation-delay: .3s; }

/* transisi antarhalaman yang halus (peramban yang mendukung); bilah atas dan navigasi tetap diam */
@view-transition { navigation: auto; }
.jm-atas { view-transition-name: jm-atas; }
.jm-nav { view-transition-name: jm-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* aksesibilitas */
.jm-seg a:focus-visible, .jm-baris:focus-visible, .jm-btn:focus-visible, .jm-nav a:focus-visible, .jm-pin:focus-visible { outline: 3px solid rgba(0,86,179,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .jm-isi > *, .jm-panel.masuk-kanan, .jm-panel.masuk-kiri, .jm-panel.keluar-kanan, .jm-panel.keluar-kiri { animation: none !important; }
  .jm-seg-pil, .jm-nav a i, .jm-panah { transition: none !important; }
  @view-transition { navigation: none; }
}

/* ===== Login selaras tema dalam (17 Nov): latar kuning bertitik, kartu biru bergradasi + kartu putih, tombol pil oranye. Hapus blok ini dan pulihkan login.php/lupa.php untuk kembali. ===== */
body.jm.jm-login { display: block; min-height: 100vh; padding-bottom: calc(40px + env(safe-area-inset-bottom));
  background-color: #FADA7A; background-image: radial-gradient(130% 55% at 50% -8%, rgba(255,255,255,.6), transparent 62%), radial-gradient(rgba(0,0,0,.065) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 20px 20px; background-repeat: no-repeat, repeat; }
.jm-lg-hero { position: relative; overflow: hidden; text-align: center; color: #fff; padding: calc(24px + env(safe-area-inset-top)) 20px 92px; border-radius: 0 0 38px 38px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,215,0,.24), transparent 55%), var(--grad-biru); box-shadow: 0 24px 40px -26px rgba(0,60,140,.8); }
.jm-lg-hero::before { content: ''; position: absolute; left: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,215,0,.2); box-shadow: 0 0 0 26px rgba(255,215,0,.05), 0 0 0 54px rgba(255,215,0,.035); pointer-events: none; }
.jm-lg-hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,215,0,.22); box-shadow: 0 0 0 28px rgba(255,215,0,.05), 0 0 0 58px rgba(255,215,0,.035); pointer-events: none; }
.jm-lg-hero-in { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.jm-lg-hero .jm-logo { height: 30px; }
.jm-lg-ikon { width: 74px; height: 74px; margin-top: 24px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #FFD700;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 28px -14px rgba(0,0,0,.5); }
.jm-lg-hero h1 { margin-top: 16px; font-size: 29px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.jm-lg-hero p { margin: 8px auto 0; max-width: 30ch; font-size: calc(15px * var(--fs, 1)); color: rgba(255,255,255,.8); }
.jm-lg-isi { position: relative; z-index: 2; max-width: 460px; margin: -58px auto 0; padding: 0 16px; }
.jm-lg-kartu { background: var(--card); border-radius: 28px; padding: 22px 20px; margin: 0 0 16px; border: 1px solid rgba(255,255,255,.8); box-shadow: var(--sh-kartu); }
.jm-lg-in { position: relative; }
.jm-lg-in > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); z-index: 1; color: #8392a8; font-size: calc(15px * var(--fs, 1)); pointer-events: none; }
.jm-lg-in input { padding-left: 48px !important; }
.jm-lg-bantu { margin: 12px 2px 20px; font-size: calc(13px * var(--fs, 1)); line-height: 1.5; }
.jm-lg-lupa { text-align: center; margin: 20px 0 0; }
.jm-lg-lupa a { color: var(--blue); font-weight: 800; }
.jm-lg-tamu { background: rgba(255,255,255,.82); }
.jm-lg-chip { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-lg-chip a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 50px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 700; color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(0,86,179,.16); transition: transform .25s var(--ease), background .2s; }
.jm-lg-chip a i { color: var(--acc); font-size: calc(13px * var(--fs, 1)); }
.jm-lg-chip a:active { transform: scale(.96); background: #eef5ff; }
.jm-lg-hero-in > * { animation: jm-naik .6s var(--ease) both; }
.jm-lg-hero-in > *:nth-child(2) { animation-delay: .06s; } .jm-lg-hero-in > *:nth-child(3) { animation-delay: .12s; } .jm-lg-hero-in > *:nth-child(4) { animation-delay: .18s; }
.jm-lg-isi > * { animation: jm-naik .6s var(--ease) both; animation-delay: .2s; }
.jm-lg-isi > *:nth-child(2) { animation-delay: .3s; }
.jm-lg-kartu .jm-form input[type=text], .jm-lg-kartu .jm-form input[type=password] { background: #f1f4f9; }
.jm-lg-kartu .jm-form label:first-of-type { margin-top: 12px; }
@media (min-width: 700px) { .jm-lg-hero { padding-bottom: 100px; } .jm-lg-isi { max-width: 480px; } }
@media (prefers-reduced-motion: reduce) { .jm-lg-hero-in > *, .jm-lg-isi > * { animation: none !important; } }

/* tombol Masuk kecil (tamu): di hero dan di bilah atas */
.jm-masuk-kecil { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 50px; font-size: calc(14px * var(--fs, 1)); font-weight: 800; color: #fff !important; background: linear-gradient(135deg, #ff6b00, #e65a00); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -10px rgba(230,90,0,.7); white-space: nowrap; flex-shrink: 0; }
.jm-masuk-kecil:active { transform: scale(.96); }
.jm-nav a[href$="/login"] { color: #e65a00; }

/* ===== Panduan manasik (17 Nov): chip penyaring, 4 langkah utama, catatan, materi bisa dibuka-tutup. Hapus blok ini dan pulihkan pages/belajar.php untuk kembali. ===== */
.jm-mn-chips [hidden], .jm-mn-item[hidden], [data-mn-sec][hidden], .jm-mn-kosong[hidden] { display: none !important; }
.jm-mn-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 4px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jm-mn-chips::-webkit-scrollbar { display: none; }
.jm-mn-chip { flex: 0 0 auto; border: 0; cursor: pointer; font: 700 13.5px 'Plus Jakarta Sans', system-ui, sans-serif; color: #7a4a1d; padding: 11px 18px; border-radius: 50px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1.5px rgba(122,74,29,.14), 0 8px 18px -14px rgba(10,37,64,.4); transition: transform .25s var(--ease), background .2s, color .2s; }
.jm-mn-chip:active { transform: scale(.95); }
.jm-mn-chip.aktif { color: #fff; background: linear-gradient(135deg, #ff6b00, #e65a00); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 24px -10px rgba(230,90,0,.75); }
.jm-mn-chip:focus-visible { outline: 3px solid rgba(0,86,179,.45); outline-offset: 2px; }

.jm-mn-kepala { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 2px 12px; }
.jm-mn-kepala .jm-judul { margin: 0; }
.jm-mn-kepala > span { font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; color: #6b5316; text-align: right; }

.jm-mn-langkah { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.jm-mn-lk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 6px 13px; border-radius: 22px; background: var(--card); border: 1px solid rgba(255,255,255,.85); box-shadow: var(--sh-kartu); transition: transform .3s var(--ease); }
.jm-mn-lk:active { transform: scale(.96); }
.jm-mn-lk .no { width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(15px * var(--fs, 1)); color: #e65a00; background: linear-gradient(145deg, #fff3e6, #ffe2c7); box-shadow: inset 0 1px 0 #fff; margin-bottom: 4px; }
.jm-mn-lk b { font-size: calc(14px * var(--fs, 1)); font-weight: 800; color: var(--navy); line-height: 1.2; }
.jm-mn-lk small { font-size: calc(11px * var(--fs, 1)); color: var(--mut); line-height: 1.25; }
@media (max-width: 380px) { .jm-mn-langkah { grid-template-columns: repeat(2, 1fr); } }

.jm-mn-catatan { display: flex; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 22px; background: linear-gradient(135deg, #fff6dc, #fffbee); border: 1px solid #f1d9a0; box-shadow: 0 10px 22px -16px rgba(185,141,46,.7); }
.jm-mn-catatan > i { color: #e0a100; font-size: calc(18px * var(--fs, 1)); margin-top: 2px; }
.jm-mn-catatan b { font-size: calc(14.5px * var(--fs, 1)); color: #5c4210; }
.jm-mn-catatan p { margin: 3px 0 0; font-size: calc(13.5px * var(--fs, 1)); line-height: 1.5; color: #6b5316; }

.jm-mn-daftar { display: flex; flex-direction: column; gap: 12px; }
.jm-mn-item { background: var(--card); border-radius: 26px; border: 1px solid rgba(255,255,255,.85); box-shadow: var(--sh-kartu); overflow: hidden; scroll-margin-top: 84px; }
.jm-mn-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.jm-mn-item summary::-webkit-details-marker { display: none; }
.jm-mn-item .ik { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: calc(19px * var(--fs, 1)); color: #e65a00; background: linear-gradient(145deg, #fff3e6, #ffe2c7); box-shadow: inset 0 1px 0 #fff; }
.jm-mn-item .tx { flex: 1; min-width: 0; }
.jm-mn-item .tx b { display: block; font-size: calc(16px * var(--fs, 1)); font-weight: 800; color: var(--navy); letter-spacing: -.015em; line-height: 1.3; }
.jm-mn-item .tx small { display: block; margin-top: 2px; font-size: calc(13px * var(--fs, 1)); color: var(--mut); line-height: 1.35; }
.jm-mn-panah { color: var(--acc); font-size: calc(13px * var(--fs, 1)); transition: transform .3s var(--ease); }
.jm-mn-item[open] .jm-mn-panah { transform: rotate(180deg); }
.jm-mn-item[open] summary { border-bottom: 1px solid rgba(10,37,64,.06); }
.jm-mn-isi { padding: 6px 18px 18px; animation: jm-naik .35s var(--ease) both; }
.jm-mn-isi .jm-teks ol { margin: 0 0 12px; padding-left: 22px; }
.jm-mn-isi .jm-teks h3 { color: #b84a00; }
.jm-mn-item:focus-within { outline: 0; }
.jm-mn-item summary:focus-visible { outline: 3px solid rgba(0,86,179,.45); outline-offset: -3px; border-radius: 26px; }
@media (prefers-reduced-motion: reduce) { .jm-mn-isi { animation: none; } }
.jm-teks ol { margin: 0 0 12px; padding-left: 22px; }
.jm-teks ol li { margin-bottom: 6px; line-height: 1.6; }

/* ===== Checklist perlengkapan (17 Nov). Hapus blok ini + pages/perlengkapan.php + lib/perlengkapan.php untuk kembali. ===== */
.jm-pl-jk[hidden], [data-pl-isi][hidden], [data-pl-selesai][hidden] { display: none !important; }
.jm-pl-baris { margin-bottom: 0; }
.jm-pl-baris .jm-mn-chip { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.jm-pl-baris .jm-mn-chip i { font-size: calc(13px * var(--fs, 1)); }
.jm-pl-baris .jm-mn-chip:not(.aktif) i { color: var(--acc); }
.jm-pl-baris + .jm-pl-baris { padding-top: 0; }
.jm-pl-progres { margin-top: 8px; padding: 18px 20px; }
.jm-pl-progres .atas { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jm-pl-progres .atas b { font-size: calc(15.5px * var(--fs, 1)); font-weight: 800; color: var(--navy); }
.jm-pl-progres .angka { font-size: calc(13px * var(--fs, 1)); font-weight: 800; color: #e65a00; white-space: nowrap; }
.jm-pl-progres .jm-bar { margin-top: 12px; height: 10px; }
.jm-pl-progres .jm-bar i { transition: width .45s var(--ease); }
.jm-pl-progres .selesai { margin: 12px 0 0; font-size: calc(13.5px * var(--fs, 1)); font-weight: 700; color: var(--ok); }
.jm-pl-daftar { display: flex; flex-direction: column; gap: 10px; }
.jm-pl-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--card); border-radius: 22px; border: 1px solid rgba(255,255,255,.85); box-shadow: var(--sh-kartu); cursor: pointer; transition: background .25s, transform .25s var(--ease); -webkit-user-select: none; user-select: none; }
.jm-pl-item:active { transform: scale(.985); }
.jm-pl-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jm-pl-item .kotak { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: calc(14px * var(--fs, 1)); color: transparent; background: #fff; box-shadow: inset 0 0 0 2px #e6d9cc; transition: background .25s, box-shadow .25s, color .2s, transform .35s var(--pegas); }
.jm-pl-item .tx { flex: 1; min-width: 0; }
.jm-pl-item .tx b { display: block; font-size: calc(15px * var(--fs, 1)); font-weight: 700; color: var(--navy); line-height: 1.3; transition: color .2s; }
.jm-pl-item .tx small { display: block; margin-top: 2px; font-size: calc(12.5px * var(--fs, 1)); color: var(--mut); }
.jm-pl-item input:checked ~ .kotak { background: linear-gradient(135deg, #ff6b00, #e65a00); box-shadow: 0 6px 14px -6px rgba(230,90,0,.8); color: #fff; transform: scale(1.06); }
.jm-pl-item input:checked ~ .tx b { color: #8a96a8; text-decoration: line-through; text-decoration-color: rgba(138,150,168,.7); }
.jm-pl-item:has(input:checked) { background: #fffaf3; }
.jm-pl-item input:focus-visible ~ .kotak { outline: 3px solid rgba(0,86,179,.45); outline-offset: 2px; }
.jm-pl-aksi { text-align: center; margin: 20px 0 8px; }
.jm-pl-cat { text-align: center; margin: 4px 8px 0; font-size: calc(12.5px * var(--fs, 1)); }
.jm-pl-ringkas { list-style: none; margin: 0; padding: 4px 18px 16px; }
.jm-pl-ringkas li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(10,37,64,.06); font-size: calc(14.5px * var(--fs, 1)); line-height: 1.4; }
.jm-pl-ringkas li:first-child { border-top: 0; }
.jm-pl-ringkas li i { color: var(--acc); font-size: calc(12px * var(--fs, 1)); margin-top: 4px; }

/* kartu di Beranda dan tautan di Panduan Manasik */
.jm-pl-kartu { display: flex; align-items: center; gap: 14px; }
.jm-pl-kartu h3 { font-size: calc(16px * var(--fs, 1)); font-weight: 800; color: var(--navy); }
.jm-pl-kartu p { margin: 3px 0 0; font-size: calc(13.5px * var(--fs, 1)); color: var(--mut); }
.jm-pl-kartu .jm-ikon { background: linear-gradient(145deg, #fff3e6, #ffe2c7); color: #e65a00; }
.jm-pl-kartu .jm-bar { height: 7px; }
.jm-mn-tautan { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding: 14px 16px; border-radius: 26px; background: var(--card); border: 1px solid rgba(255,255,255,.85); box-shadow: var(--sh-kartu); }
.jm-mn-tautan .ik { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: calc(19px * var(--fs, 1)); color: #e65a00; background: linear-gradient(145deg, #fff3e6, #ffe2c7); }
.jm-mn-tautan .tx { flex: 1; min-width: 0; }
.jm-mn-tautan .tx b { display: block; font-size: calc(15.5px * var(--fs, 1)); font-weight: 800; color: var(--navy); line-height: 1.3; }
.jm-mn-tautan .tx small { display: block; margin-top: 2px; font-size: calc(12.5px * var(--fs, 1)); color: var(--mut); }
.jm-mn-tautan:active { transform: scale(.985); }

/* ===== Tutorial Nusuk (17 Nov). Hapus blok ini + pages/nusuk.php untuk kembali. ===== */
.jm-ns-video { padding: 14px 14px 18px; text-align: center; }
.jm-ns-bingkai { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; margin: 0 auto 16px; border-radius: 22px; overflow: hidden; background: #0b1d39; box-shadow: 0 18px 34px -18px rgba(0,0,0,.6); }
.jm-ns-bingkai iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jm-ns-video h2 { font-size: calc(17px * var(--fs, 1)); font-weight: 800; color: var(--navy); line-height: 1.3; }
.jm-ns-video .jm-ket { margin: 6px auto 12px; max-width: 34ch; }
.jm-ns-buka { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: calc(14.5px * var(--fs, 1)); color: #e65a00; }
.jm-ns-buka i { font-size: calc(18px * var(--fs, 1)); }
.jm-ns-prosedur ul { list-style: none; margin: 0; padding: 0; }
.jm-ns-prosedur li { position: relative; padding: 0 0 14px 24px; line-height: 1.6; color: var(--mut); }
.jm-ns-prosedur li:last-child { padding-bottom: 0; }
.jm-ns-prosedur li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #FFD700, #ff6b00); }
.jm-ns-prosedur li b { color: var(--navy); }

/* ---------- Jadwal Sholat (18 Nov) ---------- */
.jm-sh-utama { text-align: center; background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; border: 0 !important; }
.jm-sh-lbl { font-size: calc(13px * var(--fs, 1)); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-l); font-weight: 700; }
.jm-sh-nama { font-size: 30px; font-weight: 800; margin-top: 2px; }
.jm-sh-hitung { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; margin: 2px 0 8px; }
.jm-sh-lok { font-size: calc(14px * var(--fs, 1)); opacity: .92; }
.jm-sh-tgl { font-size: calc(12.5px * var(--fs, 1)); opacity: .75; margin-top: 4px; }
.jm-sh-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.jm-sh-pilih { display: flex; align-items: center; gap: 8px; font-size: calc(13.5px * var(--fs, 1)); color: var(--mut); }
.jm-sh-pilih select { min-height: 42px; border-radius: 13px; border: 1.5px solid #d7deea; background: #fff; padding: 0 12px; font: 600 14px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); }
.jm-sh-daftar { padding: 6px 18px; }
.jm-sh-baris { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: calc(16px * var(--fs, 1)); }
.jm-sh-baris:last-child { border-bottom: 0; }
.jm-sh-baris .n { font-weight: 700; color: var(--navy); }
.jm-sh-baris .n i { width: 22px; color: var(--gold); }
.jm-sh-baris .w { font-weight: 800; font-variant-numeric: tabular-nums; font-size: calc(18px * var(--fs, 1)); }
.jm-sh-baris.redup .n, .jm-sh-baris.redup .w { opacity: .6; font-weight: 600; }
.jm-sh-baris.berikut { margin: 4px -10px; padding: 13px 10px; border-radius: 14px; background: var(--gold-bg); border-bottom-color: transparent; }
.jm-sh-baris.berikut .w { color: var(--acc); }

/* ---------- Strip jadwal sholat di Beranda (18 Nov) ---------- */
.jm-shs { display: block; padding: 14px 14px 12px; margin: 0 0 14px; }
.jm-shs-atas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: calc(13.5px * var(--fs, 1)); }
.jm-shs-nx { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.jm-shs-nx i { color: var(--acc); }
.jm-shs-nx b { font-size: calc(15px * var(--fs, 1)); font-weight: 800; color: var(--navy); }
.jm-shs-nx em { font-style: normal; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; font-size: calc(13.5px * var(--fs, 1)); }
.jm-shs-lok { color: var(--mut); font-size: calc(12.5px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm-shs-lok i { font-size: calc(10px * var(--fs, 1)); margin-left: 2px; }
.jm-shs-baris { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jm-shs-w { text-align: center; padding: 8px 2px; border-radius: 14px; background: #f3f5fa; line-height: 1.25; }
.jm-shs-w small { display: block; font-size: calc(11.5px * var(--fs, 1)); color: var(--mut); font-weight: 600; }
.jm-shs-w b { display: block; font-size: calc(14.5px * var(--fs, 1)); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.jm-shs-w.berikut { background: linear-gradient(145deg, var(--navy), #163a63); }
.jm-shs-w.berikut small { color: var(--gold-l); }
.jm-shs-w.berikut b { color: #fff; }
@media (max-width: 340px) { .jm-shs-w b { font-size: calc(13px * var(--fs, 1)); } .jm-shs-lok { display: none; } }

/* ---------- Al-Qur'an (18 Nov) ---------- */
.jm-qr-lanjut { display: flex; align-items: center; gap: 14px; }
.jm-qr-lanjut[hidden] { display: none; }
.jm-qr-cari { width: 100%; min-height: 48px; border-radius: 16px; border: 1.5px solid #d7deea; background: #fff; padding: 0 16px; font: 500 15px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); margin-bottom: 12px; }
.jm-qr-tab { display: flex; gap: 8px; margin-bottom: 12px; }
.jm-qr-tab button { flex: 1; min-height: 42px; border: 0; border-radius: 50px; background: #fff; font: 700 14px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--mut); box-shadow: var(--sh); }
.jm-qr-tab button.aktif { background: linear-gradient(145deg, var(--navy), #163a63); color: #fff; }
.jm-qr-daftar { padding: 4px 14px; }
.jm-qr-baris { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.jm-qr-baris:last-child { border-bottom: 0; }
.jm-qr-baris .no { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: var(--gold-bg); color: #6b5316; font-weight: 800; font-size: calc(14px * var(--fs, 1)); display: flex; align-items: center; justify-content: center; }
.jm-qr-baris .tx { flex: 1; min-width: 0; }
.jm-qr-baris .tx b { display: block; font-size: calc(15.5px * var(--fs, 1)); color: var(--navy); }
.jm-qr-baris .tx small { display: block; font-size: calc(12.5px * var(--fs, 1)); color: var(--mut); }
.jm-qr-baris .ar { font-family: 'Scheherazade New', 'Amiri Quran', 'Noto Naskh Arabic', serif; font-size: calc(22px * var(--fs, 1)); color: var(--navy); }
.jm-qr-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.jm-qr-alat { display: flex; gap: 6px; }
.jm-qr-alat button { min-width: 44px; height: 42px; border: 0; border-radius: 13px; background: #fff; box-shadow: var(--sh); font: 800 14px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--navy); }
.jm-qr-alat button.mati { opacity: .45; }
.jm-qr-kepala { text-align: center; }
.jm-qr-ar { font-family: 'Scheherazade New', 'Amiri Quran', 'Noto Naskh Arabic', serif; font-size: 34px; color: var(--navy); line-height: 1.6; }
.jm-qr-kepala h2 { font-size: calc(19px * var(--fs, 1)); }
.jm-qr-basmalah { font-family: 'Scheherazade New', 'Amiri Quran', 'Noto Naskh Arabic', serif; text-align: center; color: var(--navy); line-height: 2.6; word-spacing: .14em; margin: 4px 0 14px; }
.jm-qr-ayat { background: var(--card); border-radius: 22px; padding: 16px 16px 14px; margin: 0 0 10px; box-shadow: var(--sh); border: 1px solid rgba(10,37,64,.04); scroll-margin-top: 80px; }
.jm-qr-ayat.terakhir { box-shadow: inset 0 0 0 2px var(--gold-2), var(--sh); }
.jm-qr-ayat .ar { font-family: 'Scheherazade New', 'Amiri Quran', 'Noto Naskh Arabic', serif; font-size: var(--qr-fs, 28px); line-height: 2.7; word-spacing: .14em; letter-spacing: 0; text-rendering: optimizeLegibility; font-kerning: normal; text-align: right; color: var(--navy); padding: .15em 0; }
.jm-qr-ayat .bar { margin-top: 6px; }
.jm-qr-ayat .tanda { min-width: 38px; height: 32px; padding: 0 10px; border: 0; border-radius: 50px; background: var(--gold-bg); color: #6b5316; font: 800 13px 'Plus Jakarta Sans', system-ui, sans-serif; }
.jm-qr-ayat.terakhir .tanda { background: linear-gradient(135deg, #ff7b1d, var(--acc)); color: #fff; }
.jm-qr-ayat .tr { margin: 8px 0 0; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.65; color: var(--mut); }
.qr-tanpa-tr .jm-qr-ayat .tr { display: none; }
.jm-qr-nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 8px; }

/* Bantuan + Darurat digabung (18 Nov) */
.jm-bt-darurat { margin: 0 0 18px; }
.jm-bt-darurat .jm-daftar { margin-bottom: 12px; }


/* ===== Ukuran huruf (lansia): --fs diatur oleh tombol Aa (assets/ukuran.js), disimpan di localStorage 'jm_ukuran_v1' ===== */
html.jm-besar { --fs: 1.2; }
html.jm-sangat { --fs: 1.4; }
html.jm-besar body.jm, html.jm-sangat body.jm { line-height: 1.6; }
html.jm-besar .jm-btn, html.jm-sangat .jm-btn { min-height: 52px; }
html.jm-sangat .jm-btn { min-height: 58px; }
html.jm-besar .jm-pin, html.jm-sangat .jm-pin { padding-top: 16px; padding-bottom: 16px; }
.jm-uk { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; }
.jm-uk-tb { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #0b1d39, #0056b3); color: #fff; font: 800 19px/1 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); cursor: pointer; }
.jm-uk-tb small { font-size: 13px; font-weight: 700; }
.jm-uk-tb:focus-visible, .jm-uk-pil:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0056b3; }
.jm-uk-kotak { position: absolute; right: 0; bottom: 62px; width: min(260px, calc(100vw - 28px)); background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 18px 44px -12px rgba(0,0,0,.4); }
.jm-uk-kotak[hidden] { display: none; }
.jm-uk-kotak b { display: block; font-size: 14px; margin: 2px 6px 8px; color: #1a202c; }
.jm-uk-pil { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 2px solid #e5eaf2; background: #fff; border-radius: 14px; padding: 10px 14px; margin-top: 8px; color: #1a202c; font-family: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.jm-uk-pil[aria-pressed="true"] { border-color: #0056b3; background: #eef5ff; }
.jm-uk-pil[aria-pressed="true"]::after { content: "\2713"; color: #0056b3; font-weight: 800; }

/* ===== Frasa Arab ===== */
.jm-fr-cari { position: relative; margin: 0 0 12px; }
.jm-fr-cari i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.jm-fr-cari input { width: 100%; box-sizing: border-box; border: 2px solid #e5eaf2; border-radius: 16px; padding: 14px 16px 14px 44px; font: inherit; font-size: calc(15px * var(--fs, 1)); background: #fff; color: #1a202c; }
.jm-fr-cari input:focus { outline: none; border-color: #0056b3; }
.jm-fr { margin-bottom: 10px; }
.jm-fr[hidden], .jm-fr-sec[hidden] { display: none; }
.jm-fr .id { font-weight: 700; font-size: calc(15px * var(--fs, 1)); color: #1a202c; }
.jm-fr .arab { font-family: 'Noto Naskh Arabic', 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; font-size: calc(26px * var(--fs, 1)); line-height: 1.9; margin: 8px 0 2px; color: #0b1d39; text-align: right; }
.jm-fr .latin { font-size: calc(14px * var(--fs, 1)); color: #4a5568; font-style: italic; margin-bottom: 10px; }
.jm-fr .jm-fr-tunjuk { margin-top: 6px; }
.jm-fr-layar { position: fixed; inset: 0; z-index: 100; background: #0b1d39; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; gap: 22px; overflow: auto; }
.jm-fr-layar[hidden] { display: none; }
.jm-fr-layar .arab { font-family: 'Noto Naskh Arabic', 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; font-size: clamp(40px, 11vw, 72px); line-height: 1.7; }
.jm-fr-layar .id { font-size: 18px; opacity: .8; }
.jm-fr-tutup { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer; }
.jm-fr-tutup:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
