/* HalalVerified Quran Classes — uses the HalalVerified theme's tokens when present. */
.hvq [hidden] { display: none !important; }
.hvq { --q-primary: var(--hv-primary, #1f7a3f); --q-ink: var(--hv-ink, #1d2327); --q-muted: var(--hv-muted, #5f6b6d); --q-line: var(--hv-line, #e2e6e8); --q-card: var(--hv-card, #fff); --q-radius: var(--hv-radius, 12px); color: var(--q-ink); }
.hvq * { box-sizing: border-box; }
.hvq-h { font-size: 1.15rem; margin: 1.4em 0 .6em; }
.hvq-lead { font-size: 1.05rem; color: var(--q-muted); }
.hvq-muted { color: var(--q-muted); }
.hvq-small { font-size: .875rem; }
.hvq-empty { padding: 16px; border: 1px dashed var(--q-line); border-radius: var(--q-radius); color: var(--q-muted); }
.hvq-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hvq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--q-primary); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.hvq-btn--primary { background: var(--q-primary); color: #fff; }
.hvq-btn--primary:hover, .hvq-btn--primary:focus { filter: brightness(.92); color: #fff; }
.hvq-btn--ghost { background: transparent; color: var(--q-primary); }
.hvq-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--q-primary); text-decoration: underline; cursor: pointer; font: inherit; }
.hvq a:focus-visible, .hvq button:focus-visible, .hvq input:focus-visible, .hvq select:focus-visible, .hvq textarea:focus-visible, .hvq summary:focus-visible { outline: 3px solid var(--q-primary); outline-offset: 2px; }
.hvq-notice { padding: 12px 14px; border-radius: 10px; margin: 12px 0; background: #eef5ff; border-inline-start: 4px solid #2c6ecb; }
.hvq-notice.is-success { background: #e9f6ee; border-color: #1f9a45; }
.hvq-notice.is-error { background: #fdeceb; border-color: #d63638; }
.hvq-notice ul { margin: 6px 0 0 1.2em; }
.hvq-warn { color: #8a4b00; }
.hvq-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.hvq-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; background: #f0f2f3; color: var(--q-ink); font-weight: 600; }
.hvq-badge.is-good { background: #e3f4e8; color: #0b4d2c; }
.hvq-badge.is-info { background: #e8f0fb; color: #1d4f91; }
.hvq-badge.is-warn { background: #fcf0d6; color: #7a4700; }
.hvq-badge.is-muted { color: var(--q-muted); }
.hvq-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #d63638; color: #fff; font-size: .75rem; text-align: center; }
/* Forms */
.hvq-form { margin: 12px 0; }
.hvq-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.hvq-field label, .hvq-field > span { font-weight: 600; }
.hvq input[type=text], .hvq input:not([type]), .hvq input[type=email], .hvq input[type=password], .hvq input[type=number], .hvq input[type=url], .hvq input[type=date], .hvq input[type=time], .hvq select, .hvq textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #c3c8cc; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.hvq textarea { min-height: 70px; }
.hvq fieldset { border: 1px solid var(--q-line); border-radius: var(--q-radius); padding: 14px 16px; margin: 0 0 16px; }
.hvq legend { font-weight: 700; padding: 0 6px; }
.hvq-check { display: block; margin: 8px 0; }
.hvq-checks label { display: block; margin: 4px 0; }
.hvq-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 700px) { .hvq-grid2 { grid-template-columns: 1fr 1fr; } .hvq-span2 { grid-column: 1 / -1; } }
.hvq-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.hvq-row--between { justify-content: space-between; align-items: center; }
.hvq-row .hvq-field { flex: 1 1 140px; }
.hvq-inline { display: inline; }
.hvq-types { display: grid; gap: 8px; }
.hvq-type { display: block; border: 1px solid var(--q-line); border-radius: var(--q-radius); padding: 12px 14px; cursor: pointer; }
.hvq-type:has(input:checked) { border-color: var(--q-primary); background: #f0f8f2; }
.hvq-type small { display: block; color: var(--q-muted); margin: 2px 0 0 26px; }
/* Directory */
.hvq-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; background: var(--q-card); border: 1px solid var(--q-line); border-radius: var(--q-radius); margin: 16px 0; }
.hvq-filters label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; font-weight: 600; font-size: .9rem; }
.hvq-filters label.hvq-inline { flex-direction: row; align-items: center; flex: 0 0 auto; font-weight: 500; min-height: 44px; }
.hvq-filters label.hvq-inline input { width: auto; min-height: 0; }
.hvq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hvq-card { background: var(--q-card); border: 1px solid var(--q-line); border-radius: var(--q-radius); overflow: hidden; display: flex; flex-direction: column; }
.hvq-card__img img, .hvq-avatar { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hvq-avatar { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #e3f4e8; color: var(--q-primary); font-weight: 700; }
.hvq-card__body { padding: 14px 16px; }
.hvq-card__title { margin: 0 0 4px; font-size: 1.1rem; }
.hvq-card__title a { text-decoration: none; color: inherit; }
.hvq-card__head { margin: 0 0 6px; color: var(--q-muted); }
.hvq-price { font-weight: 700; }
/* Profile + booking */
.hvq-profile__top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hvq-profile__photo { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
.hvq-dl dt { font-weight: 700; margin-top: 10px; }
.hvq-dl dd { margin: 2px 0 0; }
.hvq-slots-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.hvq-slots-preview span { padding: 6px 10px; border-radius: 8px; background: #f0f2f3; font-size: .9rem; }
.hvq-book__teacher { display: flex; gap: 12px; align-items: center; }
.hvq-book__teacher img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.hvq-book__teacher .hvq-h { margin: 0; }
.hvq-book__opts { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.hvq-book__opts label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; font-weight: 600; }
.hvq-days { display: grid; gap: 8px; margin-bottom: 16px; }
.hvq-day { border: 1px solid var(--q-line); border-radius: 10px; background: var(--q-card); }
.hvq-day summary { padding: 12px 14px; cursor: pointer; font-weight: 600; min-height: 44px; }
.hvq-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0 14px 14px; }
.hvq-time { display: block; position: relative; }
.hvq-time input { position: absolute; opacity: 0; }
.hvq-time span { display: block; text-align: center; padding: 10px 6px; border: 1px solid #c3c8cc; border-radius: 8px; cursor: pointer; min-height: 44px; }
.hvq-time input:checked + span { background: var(--q-primary); color: #fff; border-color: var(--q-primary); }
.hvq-time input:focus-visible + span { outline: 3px solid var(--q-primary); outline-offset: 2px; }
.hvq-summary { padding: 12px 14px; background: #f6f7f7; border-radius: 10px; }
.hvq-packages { margin-top: 24px; padding: 16px; border: 1px solid var(--q-line); border-radius: var(--q-radius); }
.hvq-packages label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; font-weight: 600; }
/* Dashboard */
.hvq-tabs { overflow-x: auto; border-bottom: 1px solid var(--q-line); margin-bottom: 16px; }
.hvq-tabs ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.hvq-tabs a { display: block; padding: 10px 14px; text-decoration: none; color: var(--q-ink); border-bottom: 3px solid transparent; font-weight: 600; }
.hvq-tabs a[aria-current] { border-bottom-color: var(--q-primary); color: var(--q-primary); }
.hvq-tabs__switch { margin-inline-start: auto; }
.hvq-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hvq-lesson { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--q-line); border-radius: var(--q-radius); background: var(--q-card); }
.hvq-lesson__when strong { display: block; }
.hvq-lesson__when span, .hvq-lesson__who small { display: block; color: var(--q-muted); font-size: .875rem; }
.hvq-lesson__who > span:first-child { display: block; font-weight: 600; }
.hvq-lesson__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hvq-lesson__acts details { width: 100%; }
.hvq-lesson__acts form { margin-top: 6px; }
.hvq-meetlink { width: 100%; }
.hvq-meetlink label { font-weight: 600; font-size: .9rem; }
.hvq-meetlink input { flex: 1 1 220px; }
@media (max-width: 520px) { .hvq-lesson { grid-template-columns: 1fr; } }
.hvq-status-box { padding: 14px 16px; border: 1px solid var(--q-line); border-radius: var(--q-radius); background: var(--q-card); }
.hvq-steps { margin: 8px 0 0 1.2em; }
.hvq-steps li.is-done { color: var(--q-muted); text-decoration: line-through; }
.hvq-steps li.is-done::marker { content: "✓  "; color: var(--q-primary); }
.hvq-avail { width: 100%; border-collapse: collapse; }
.hvq-avail td, .hvq-avail th { padding: 4px; text-align: start; }
.hvq-table { width: 100%; border-collapse: collapse; }
.hvq-table th, .hvq-table td { padding: 8px; border-bottom: 1px solid var(--q-line); text-align: start; }
.hvq-msgs { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) { .hvq-msgs { grid-template-columns: 220px 1fr; } }
.hvq-threads { list-style: none; margin: 0; padding: 0; }
.hvq-threads a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.hvq-threads a[aria-current] { background: #f0f8f2; font-weight: 700; }
.hvq-bubbles { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.hvq-bubbles li { max-width: 85%; padding: 8px 12px; border-radius: 12px; background: #f0f2f3; }
.hvq-bubbles li.is-me { align-self: flex-end; background: #e3f4e8; }
.hvq-bubbles p { margin: 0; }
.hvq-bubbles small { color: var(--q-muted); font-size: .75rem; }
.hvq-progress { padding-inline-start: 1.2em; }
.hvq-progress li { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--q-line); }
.hvq-progress p { margin: 2px 0; }
.hvq-learner { border: 1px solid var(--q-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.hvq-learner summary { cursor: pointer; min-height: 32px; }
.hvq-danger summary { color: #b32d2e; cursor: pointer; margin-top: 24px; }
.hvq-docs { margin: 8px 0 0 1.2em; }
/* Classroom */
.hvq-jitsi { width: 100%; height: min(78vh, 720px); min-height: 420px; background: #111; border-radius: var(--q-radius); overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; }
.hvq-jitsi .hvq-muted { color: #ccc; }
.hvq-prose ul { padding-inline-start: 1.2em; }
@media (prefers-reduced-motion: reduce) { .hvq * { transition: none !important; } }
