/* Bijak Labur: Ibadah (grid ciri, Al-Quran, doa, tasbih, kalendar, panduan) */
:root { --ar-size: 28px; --ar-font: "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif; }
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tabbar a { font-size: 0.64rem; }

/* Ikon gaya app: segi empat bulat dengan kecerunan */
.app-ic {
  width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; flex: none; color: color-mix(in srgb, var(--b) 70%, #000);
  background: linear-gradient(155deg, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -8px color-mix(in srgb, var(--b) 80%, transparent);
}
.app-ic svg { width: 30px; height: 30px; }
.app-ic .ic { color: #fff; width: 24px; height: 24px; stroke-width: 2; }
.app-ic.sm { width: 40px; height: 40px; border-radius: 12px; }
.app-ic.sm svg { width: 22px; height: 22px; }
.app-ic.xs { width: 34px; height: 34px; border-radius: 10px; }
.app-ic.xs svg { width: 19px; height: 19px; }
.app-ic.cal { color: #0b5b78; display: flex; flex-direction: column; gap: 0; line-height: 1; justify-content: center; }
.app-ic.cal b { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; }
.app-ic.cal small { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* Grid ciri */
.ib-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; padding: 20px 12px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 26px; box-shadow: var(--shadow);
}
@media (min-width: 520px) { .ib-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .ib-grid { grid-template-columns: repeat(8, 1fr); padding: 24px; } }
.ib-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.25; }
.ib-tile .app-ic { transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.ib-tile:hover .app-ic { transform: translateY(-2px); }
.ib-tile:active .app-ic { transform: scale(.94); }

/* Baris pantas di Utama */
.quick-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 16px; }
.quick-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: .74rem; font-weight: 600; }
.quick-row .app-ic { width: 52px; height: 52px; border-radius: 15px; }

/* Kepala panel */
.ib-head { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.ib-head h1 { font-size: 1.5rem; margin-right: auto; }
.ib-back { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--text); background: var(--surface); border: 1px solid var(--border); flex: none; }
.ib-back .ic { transform: rotate(180deg); width: 18px; height: 18px; }
.ic.flip { transform: rotate(180deg); }
.search-in { position: relative; margin: 0 0 12px; }
.search-in .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.search-in input { padding-left: 40px; border-radius: 99px; background: var(--surface); }
.pad { padding: 16px; }
.empty { text-align: center; }
.empty .btn { margin-top: 4px; }

/* Al-Quran */
.q-tabs { display: flex; width: 100%; margin-bottom: 12px; }
.q-tabs .seg { flex: 1; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.q-row:first-child { border-top: 0; }
a.q-row:hover, .q-link:hover { background: var(--surface-2); }
.q-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; border-radius: 10px; margin: -6px; padding: 6px; }
.q-num {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--text);
  background: no-repeat center/100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23c9a14a' stroke-width='1.4'%3E%3Cpath d='M20 2.5l5 3.6 6.1-.4 1.9 5.8 5 3.6-1.9 5.9 1.9 5.9-5 3.6-1.9 5.8-6.1-.4-5 3.6-5-3.6-6.1.4-1.9-5.8-5-3.6 1.9-5.9-1.9-5.9 5-3.6 1.9-5.8 6.1.4z'/%3E%3C/svg%3E");
}
.q-num .ic { width: 16px; height: 16px; color: var(--gold); }
.q-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.q-main b { font-weight: 650; color: var(--brand); }
.q-main small { color: var(--muted); font-size: .8rem; }
.q-ar { font-family: var(--ar-font); font-size: 1.3rem; color: var(--text); white-space: nowrap; }
.q-play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; cursor: pointer; flex: none; }
.q-play .ic, .icon-btn .ic { width: 18px; height: 18px; }
#i-play, .ic use[href="#i-play"] { fill: currentColor; }
.q-play svg use[href="#i-play"] { fill: currentColor; }
.q-hero {
  text-align: center; color: #fff; border-radius: 24px; padding: 22px 16px 18px; margin-bottom: 14px;
  background: radial-gradient(120% 90% at 50% 0%, #1f9d63 0%, #0e5f43 55%, #0a3d2e 100%); box-shadow: 0 18px 40px -24px rgba(10, 61, 46, .8);
}
.q-hero h2 { font-size: 1.35rem; }
.q-hero p { margin: 4px 0 0; opacity: .85; font-size: .9rem; }
.q-hero .q-ar-big { font-family: var(--ar-font); font-size: 2.1rem; opacity: 1; margin: 0 0 4px; line-height: 1.6; }
.q-hero .actions { justify-content: center; margin-top: 14px; }
.btn.light { background: rgba(255, 255, 255, .95); color: #0e5f43; }
.btn.light .ic { fill: currentColor; }
.q-basm { font-family: var(--ar-font); font-size: calc(var(--ar-size) * 1.05); text-align: center; margin: 4px 0 14px; color: var(--text); }
.ayahs { list-style: none; margin: 0; padding: 0; }
.ayah { border-bottom: 1px solid var(--border); padding: 10px 2px 14px; scroll-margin-top: 90px; transition: background-color .4s; border-radius: 10px; }
.ayah.playing { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.ayah.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--gold) 20%, transparent); } 100% { background: transparent; } }
.ay-bar { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 10px; padding: 2px 4px 2px 12px; }
.ay-n { font-size: .78rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.ay-acts { display: flex; }
.ay-acts .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.ay-acts .icon-btn.on { color: var(--gold); }
.ay-acts .icon-btn.on .ic { fill: currentColor; }
.ay-ar { font-family: var(--ar-font); font-size: var(--ar-size); line-height: 2.1; text-align: right; margin: 12px 4px 8px; color: var(--text); }
.ay-end { font-size: .75em; color: var(--gold); white-space: nowrap; }
.ay-end::before { content: "\FD3F"; } .ay-end::after { content: "\FD3E"; }
.ay-ms { margin: 0 4px; color: var(--muted); font-size: .95rem; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.q-mini {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); z-index: 40;
  width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .3);
}
@media (min-width: 900px) { .q-mini { bottom: 18px; } }
.qm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.25; }
.qm-body small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-mini .icon-btn { width: 38px; height: 38px; }
.q-mini use[href="#i-play"] { fill: currentColor; }

/* Doa */
.doa-list { margin-bottom: 18px; }
.doa-cat { border-top: 1px solid var(--border); }
.doa-cat:first-child { border-top: 0; }
.doa-cat > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; font-weight: 550; }
.doa-cat > summary::-webkit-details-marker { display: none; }
.doa-cat > summary > .ic:first-child { width: 24px; height: 24px; color: var(--text); stroke-width: 1.5; }
.doa-cat > summary span { flex: 1; }
.doa-cat > summary small { color: var(--faint); font-size: .78rem; }
.doa-cat > summary .chev { transition: transform .2s; }
.doa-cat[open] > summary .chev { transform: rotate(180deg); }
.doa-items { display: grid; gap: 10px; padding: 0 12px 14px; }
.doa { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.doa h3 { font-size: .92rem; color: var(--brand); margin-bottom: 4px; }
.doa .ar, .asma .ar, .set-prev { font-family: var(--ar-font); font-size: var(--ar-size); line-height: 2; text-align: right; margin: 4px 0 6px; color: var(--text); }
.doa .rumi { font-style: italic; color: var(--text); font-size: .92rem; margin-bottom: 6px; }
.doa .tr { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.doa .ref { font-size: .76rem; color: var(--gold); font-weight: 600; }
.faq-a { padding: 0 16px 14px; margin: 0; color: var(--muted); }

/* Tasbih */
.ts-chips { margin-bottom: 4px; }
.ts-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ts-ar { font-family: var(--ar-font); font-size: 2.2rem; margin: 8px 0 0; min-height: 1.6em; }
.ts-btn {
  position: relative; width: min(270px, 74vw); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; align-content: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, #2bb8f0 22%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 24px 50px -26px rgba(17, 146, 214, .7), inset 0 0 0 1px var(--border); -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.ts-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ts-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.ts-fg { fill: none; stroke: #1192d6; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .25s; }
.ts-count { font-size: 4.2rem; font-weight: 650; letter-spacing: -.04em; line-height: 1; position: relative; }
.ts-of { color: var(--muted); font-size: .85rem; position: relative; margin-top: 4px; }
.ts-btn.pulse { animation: tsPulse .18s ease-out; }
@keyframes tsPulse { 50% { transform: scale(.97); } }
.ts-stats { width: 100%; max-width: 480px; }
.ts-stats .stat { text-align: center; }

/* Kalendar */
.cal-hero { border-radius: 22px; padding: 18px; margin-bottom: 14px; color: #083b4e; background: linear-gradient(150deg, #d9f6ff, #9fe3f7); }
.cal-hero h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.cal-hero p { margin: 2px 0 0; opacity: .8; }
.cal-hero .eyebrow { color: inherit; opacity: .7; }
.cal-card h3 { margin: 0; text-align: center; display: flex; flex-direction: column; }
.cal-card h3 small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 650; color: var(--muted); padding: 4px 0; }
.cal-d { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; line-height: 1.2; }
.cal-d b { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cal-d small { font-size: .66rem; color: var(--muted); }
.cal-d.fri b { color: var(--brand); }
.cal-d.event { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.cal-d.event small { color: var(--gold); font-weight: 700; }
.cal-d.today { background: var(--brand); }
.cal-d.today b, .cal-d.today small { color: var(--brand-ink); }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--border); }
.ev-row:first-child { border-top: 0; }
.ev-date { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; flex: none; }
.ev-date b { font-size: 1.05rem; } .ev-date small { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.ev-row .q-main b { color: var(--text); }
.ev-left { font-size: .8rem; font-weight: 650; color: var(--brand); white-space: nowrap; }
.tk-out { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.tk-out b { font-size: 1.15rem; }
.tk-out small { color: var(--muted); }
.form-grid.tk-h { grid-template-columns: 70px 1fr 90px; }

/* Asmaul Husna */
.asma-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .asma-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .asma-grid { grid-template-columns: repeat(4, 1fr); } }
.asma { position: relative; text-align: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; }
.asma .ar { text-align: center; font-size: calc(var(--ar-size) * 1.05); color: var(--brand); margin: 6px 0 2px; line-height: 1.7; }
.asma b { font-size: .92rem; }
.asma small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.asma-n { position: absolute; top: 8px; left: 10px; font-size: .7rem; color: var(--faint); font-weight: 700; }

/* Galeri */
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.gal { padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); cursor: pointer; box-shadow: var(--shadow); }
.gal img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gal img:not([src]) { visibility: hidden; }

/* Panduan langkah */
.steps { list-style: none; margin: 0 0 14px; padding: 0; position: relative; }
.steps li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--border); }
.step-n { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(155deg, #5d6470, #3a4049); }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tick li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.tick .ic { width: 17px; height: 17px; color: var(--up); margin-top: 3px; stroke-width: 2.4; }
.tick.no .ic { color: var(--down); }
.sc-ico.pink { background: color-mix(in srgb, #f06aa6 14%, var(--surface)); color: #d94a8c; }
.uzur.on { border-color: color-mix(in srgb, #f06aa6 50%, var(--border)); }
.uzur .switch[aria-checked="true"] { background: #f06aa6; }

/* Tetapan dan profil */
.set-list { padding: 4px 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); font-weight: 550; text-decoration: none; color: inherit; margin: 0; }
.set-row:first-child { border-top: 0; }
.set-row label { margin: 0; font-weight: 550; font-size: 1rem; }
.set-row select { width: auto; max-width: 60%; }
.set-row input[type="range"] { width: 45%; height: auto; padding: 0; border: 0; accent-color: var(--brand); background: none; }
.set-prev { text-align: center; margin: 0 0 8px; }
.btn.danger { color: var(--down); }
.profile { display: flex; gap: 14px; align-items: center; }
.profile .field { margin: 0; flex: 1; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; color: #fff; background: linear-gradient(155deg, #6a5cff, #4636e6); flex: none; }
