/* Fitur Islami: Al-Qur'an, Kiblat, Doa & Jadwal Sholat. */
/* ===== Al-Qur'an ===== */
.tq-last{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#FAF3DF;border:1px dashed #EAD9A8;border-radius:14px;padding:12px 16px;margin-bottom:14px}
.tq-last b{display:block;color:var(--navy);font-size:13.5px}
.tq-last small{color:var(--muted);font-size:12px}
.tq-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.tq-card{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line-soft);border-radius:16px;padding:14px;cursor:pointer;text-align:left;font-family:inherit;color:var(--ink);min-width:0}
.tq-card:hover{border-color:var(--gold);transform:translateY(-2px);box-shadow:0 10px 26px rgba(15,42,82,.12)}
.tq-no{min-width:40px;height:40px;border-radius:12px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;flex-shrink:0}
.tq-id{flex:1;min-width:0}
.tq-id b{display:block;font-size:14px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tq-id small{color:var(--muted);font-size:11.5px}
.tq-ar{font-family:"Scheherazade New","Amiri Quran",serif;font-size:24px;color:var(--navy);flex-shrink:0}
.tq-status{text-align:center;color:var(--muted);font-size:13px;padding:18px}
/* Ikon Lucide di halaman Quran */
.search-page-bar svg{width:17px;height:17px;flex-shrink:0}
.btn svg{width:16px;height:16px;flex-shrink:0}
.tq-go{width:20px;height:20px;color:var(--muted);flex-shrink:0}
.spin{animation:tqspin 1s linear infinite}
@keyframes tqspin{to{transform:rotate(360deg)}}
.tq-status{display:flex;align-items:center;justify-content:center;gap:8px}
.tq-status svg{width:18px;height:18px}
.empty svg{width:26px;height:26px;color:var(--muted)}
.empty .link-more{display:inline-flex;align-items:center;gap:6px;margin-top:8px}
.empty .link-more svg{width:14px;height:14px}
/* Reader */
.tq-surah-head{display:flex;align-items:center;gap:14px;margin:16px 0 12px;flex-wrap:nowrap}
.tq-surah-head>div:nth-child(2){flex:1;min-width:0}
.tq-surah-head h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tq-arabname{margin-left:auto;flex-shrink:0;font-size:38px;line-height:1.4;text-align:right}
.tq-surah-no{min-width:52px;height:52px;border-radius:16px;background:var(--gold);color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px}
.tq-surah-head h2{margin:0;color:var(--navy);font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tq-surah-head small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.tq-arabname{margin-left:auto;flex-shrink:0;font-family:"Scheherazade New","Amiri Quran",serif;font-size:38px;line-height:1.4;text-align:right;color:var(--navy)}
.tq-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px;background:var(--bg);padding:10px 0;border-bottom:1px solid var(--line-soft)}
.tq-switch{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer;border:1px solid var(--line);border-radius:999px;padding:7px 14px 7px 8px;background:var(--card);user-select:none}
.tq-switch svg{width:15px;height:15px;color:var(--muted)}
.tq-switch:has(input:checked){border-color:var(--gold)}
.tq-switch:has(input:checked) svg{color:var(--gold-dark)}
.tq-switch input{-webkit-appearance:none;appearance:none;width:38px;height:21px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background .2s ease;margin:0;flex-shrink:0;outline-offset:2px}
.tq-switch input::after{content:"";position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;background:#fff;transition:left .2s ease;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.tq-switch input:checked{background:var(--gold)}
.tq-switch input:checked::after{left:19px}
.tq-switch input:focus-visible{outline:2px solid var(--gold)}
.tq-qori{padding:9px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font-size:12.5px;font-weight:700;font-family:inherit;max-width:100%}
.tq-desc{border:1px solid var(--line-soft);border-radius:14px;background:var(--card);margin:0 0 12px;overflow:hidden}
.tq-desc summary{cursor:pointer;display:flex;align-items:center;gap:8px;padding:12px 16px;font-weight:800;font-size:13.5px;color:var(--navy);list-style:none}
.tq-desc summary::-webkit-details-marker{display:none}
.tq-desc summary svg{width:16px;height:16px;color:var(--gold-dark)}
.tq-desc>div{padding:0 16px 14px;font-size:13.5px;line-height:1.85;color:var(--ink)}
#tq-playall{margin-left:auto;padding:9px 18px;font-size:12.5px}
.tq-juz{text-align:center;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--gold-dark);margin:18px 0 6px}
.tq-ayah{margin-bottom:12px;scroll-margin-top:90px}
.tq-ayah.playing{border-color:var(--gold);box-shadow:0 0 0 3px rgba(193,154,61,.2)}
.tq-play.loading,.tq-ayah.playing .tq-play{background:var(--gold);border-color:var(--gold);color:#fff}
#tq-playall.loading{background:var(--gold-dark);border-color:var(--gold-dark)}
.tq-ayah-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.tq-ayah-no{min-width:36px;height:36px;border-radius:50%;background:var(--bg-soft);border:1px solid var(--line);display:inline-grid;place-items:center;font-weight:800;font-size:13px;color:var(--navy)}
.tq-ayah-act{display:flex;gap:8px}
.tq-play,.tq-mark{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--bg-soft);color:var(--navy);cursor:pointer;font-size:14px;display:grid;place-items:center}
.tq-play svg,.tq-mark svg{width:16px;height:16px}
.tq-play:hover,.tq-mark:hover{border-color:var(--gold)}
.tq-arab{font-family:"Scheherazade New","Amiri Quran",serif;font-size:30px;line-height:2.1;margin:0 0 10px;color:var(--ink)}
.tq-arab .w{transition:color .2s ease}
.tq-arab .w.on{color:var(--gold-dark)}
.tq-latin{font-size:13px;font-style:italic;color:var(--gold-dark);line-height:1.8;margin:0 0 6px}
.tq-terjemah{font-size:14px;line-height:1.85;color:var(--ink);margin:0}
.hide-arab .tq-arab,.hide-latin .tq-latin,.hide-terjemah .tq-terjemah{display:none}
.tq-nav{display:flex;gap:10px;margin:18px 0 8px}
.tq-nav .btn{flex:1}
/* ===== Kiblat ===== */
.kb-card{padding:22px;display:grid;gap:16px}
.kb-status{text-align:center;font-size:13px;font-weight:800;color:var(--gold-dark);background:#FAF3DF;border:1px dashed #EAD9A8;border-radius:12px;padding:10px 14px}
.kb-status.locked{color:#0E7A3D;background:#E3F3E6;border-color:#9AD6AC;border-style:solid}
.kb-compass{position:relative;width:280px;height:280px;margin:4px auto}
.kb-rose{position:absolute;inset:0;border-radius:50%;background:var(--bg-soft);border:2px solid var(--line);transition:transform .18s linear}
.kb-t{position:absolute;left:50%;top:8px;width:2px;height:9px;margin-left:-1px;background:var(--muted);opacity:.5;transform-origin:1px 132px}
.kb-t.mid{height:13px;opacity:.75}
.kb-t.maj{height:17px;width:3px;margin-left:-1.5px;background:var(--gold);opacity:1}
.kb-c{position:absolute;font-weight:900;font-size:17px;color:var(--navy)}
.kb-n{top:22px;left:50%;transform:translateX(-50%)}
.kb-s{bottom:22px;left:50%;transform:translateX(-50%)}
.kb-e{right:26px;top:50%;transform:translateY(-50%)}
.kb-w{left:26px;top:50%;transform:translateY(-50%)}
.kb-kaaba{position:absolute;left:50%;top:50%;font-size:26px;margin:-14px 0 0 -13px}
.kb-needle{position:absolute;top:-8px;left:50%;transform:translateX(-50%);color:var(--gold);font-size:26px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.kb-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;background:var(--card);border:1px solid var(--line);border-radius:50%;width:104px;height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.kb-center b{font-size:26px;color:var(--navy)}
.kb-center small{font-size:11px;color:var(--muted);max-width:80px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-controls{display:grid;gap:12px}
.kb-info{margin-top:16px}
.kb-info .amount{font-size:19px}
.kb-how{margin-top:16px}
.kb-how .checks{font-size:13px}
/* Toast + overlay loading audio tengah layar */
#tq-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,16px);background:var(--navy);color:#fff;padding:12px 20px;border-radius:999px;font-size:13px;font-weight:700;display:flex;gap:8px;align-items:center;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:300;box-shadow:0 12px 30px rgba(0,0,0,.3);max-width:calc(100vw - 32px)}
#tq-toast.show{opacity:1;transform:translate(-50%,0)}
#tq-toast.err{background:#B42318}
#tq-toast svg{width:16px;height:16px;flex-shrink:0}
#tq-loader{position:fixed;inset:0;display:grid;place-items:center;background:rgba(8,15,30,.45);backdrop-filter:blur(2px);z-index:400;opacity:0;pointer-events:none;transition:opacity .2s ease}
#tq-loader.show{opacity:1;pointer-events:auto}
.tq-loader-box{background:var(--card,#fff);border:1px solid var(--line,#E7EDF5);border-radius:18px;padding:24px 32px;display:flex;flex-direction:column;gap:12px;align-items:center;font-weight:800;font-size:14px;color:var(--ink,#22304A);box-shadow:0 20px 50px rgba(0,0,0,.3)}
.tq-loader-box svg{width:36px;height:36px;color:var(--gold,#C19A3D)}
/* ===== Doa harian ===== */
.dd-tools{display:grid;grid-template-columns:1fr 220px;gap:10px;margin-bottom:4px}
.dd-search{margin:0}
.dd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.dd-day{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px}
.dd-day-ic{min-width:46px;height:46px;border-radius:15px;background:var(--gold);color:#fff;display:grid;place-items:center;flex-shrink:0}
.dd-day-ic svg{width:22px;height:22px}
.dd-day h3{margin:4px 0 8px;color:var(--navy);font-size:17px}
.dd-day b{font-size:12px;color:var(--gold-dark)}
.dd-day .btn{margin-left:auto;flex-shrink:0;align-self:center}
.dd-day-ar{font-size:22px !important}
.dd-tentang{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 12px}
.dd-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.dd-tag{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--ink);background:var(--bg-soft);border:1px solid var(--line);border-radius:999px;padding:5px 12px}
.dd-tag svg{width:12px;height:12px;color:var(--gold-dark)}
/* ===== Jadwal sholat ===== */
.sh-next{display:flex;align-items:center;gap:14px;margin-bottom:16px;border-color:var(--gold)}
.sh-next-ic{min-width:50px;height:50px;border-radius:16px;background:var(--navy);color:#fff;display:grid;place-items:center;flex-shrink:0}
.sh-next-ic svg{width:24px;height:24px}
.sh-next small{color:var(--muted);font-size:11.5px;display:block}
.sh-next b{color:var(--navy);font-size:17px}
.sh-count{margin-left:auto;font-size:30px;font-weight:900;color:var(--gold-dark);font-variant-numeric:tabular-nums;white-space:nowrap}
.sh-controls{display:grid;gap:12px;margin-bottom:6px}
.f-field>span{display:flex;align-items:center;gap:7px}
.f-field>span svg{width:14px;height:14px}
.sh-today{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}
.sh-tile{background:var(--card);border:1px solid var(--line-soft);border-radius:14px;padding:12px 8px;text-align:center;display:grid;gap:3px;justify-items:center}
.sh-tile svg{width:20px;height:20px;color:var(--gold-dark)}
.sh-tile small{color:var(--muted);font-size:11px}
.sh-tile b{color:var(--navy);font-size:16px;font-variant-numeric:tabular-nums}
.sh-tile.next{border-color:var(--gold);box-shadow:0 0 0 3px rgba(193,154,61,.2)}
.sh-monthbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 10px}
.sh-monthbar>span{display:flex;gap:8px}
.sh-monthbar .icon-btn svg{width:16px;height:16px}
.sh-scroll{overflow-x:auto;border:1px solid var(--line-soft);border-radius:16px;background:var(--card)}
.sh-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:780px}
.sh-table th,.sh-table td{padding:10px 12px;text-align:center;border-bottom:1px solid var(--line-soft);white-space:nowrap}
.sh-table thead th{background:var(--bg-soft);color:var(--navy);font-size:11.5px}
.sh-table tr.today td{background:#FAF3DF;font-weight:700}
@media (max-width:960px){.tq-grid{grid-template-columns:repeat(2,1fr)}.sh-today{grid-template-columns:repeat(4,1fr)}}
@media (max-width:600px){
  .dd-tools{grid-template-columns:1fr}
  .dd-grid{grid-template-columns:1fr}
  .dd-day{flex-direction:column}
  .dd-day .btn{margin-left:0;width:100%}
  .sh-today{grid-template-columns:repeat(2,1fr)}
  .sh-count{font-size:22px}
  .sh-next{flex-wrap:wrap}
  .tq-grid{grid-template-columns:1fr}
  .tq-card{padding:12px;gap:10px}
  .tq-no{min-width:36px;height:36px;font-size:13px}
  .tq-ar{font-size:19px}
  .tq-arab{font-size:24px;line-height:2}
  .tq-arabname{font-size:28px}
  .tq-surah-head{gap:10px;padding:16px}
  .tq-surah-no{min-width:46px;height:46px;font-size:18px}
  .tq-surah-head h2{font-size:18px}
  .tq-switch{flex:1 1 28%;justify-content:center;padding:7px 4px;font-size:12px}
  .tq-qori{flex:1 1 100%;width:100%}
  #tq-playall{margin-left:0;width:100%}
  .tq-tools{top:60px;gap:10px}
  .tq-nav{flex-direction:column}
  .kb-compass{width:250px;height:250px}
  .kb-t{transform-origin:1px 117px}
}
