/* THE HIFZ EUTOPIA — Combined CSS — 2026-09-12 23:25 */


/* ═══ 077_C02_BASE.css ═══ */

/* ============================================================
   BASE — $1M PREMIUM FOUNDATION
   THE HIFZ EUTOPIA BY DEENUNA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* ── PRIMARY — Royal Purple ──────────────────────────── */
    --p: #7C3AED;
    --p-dark: #6D28D9;
    --p-deep: #4C1D95;
    --p-light: #A78BFA;
    --p-lighter: #C4B5FD;
    --p-pale: #F5F3FF;
    --p-glow: rgba(124, 58, 237, 0.12);
    --p-glow-strong: rgba(124, 58, 237, 0.25);

    /* ── ACCENT — Royal Gold ─────────────────────────────── */
    --gold: #D4A843;
    --gold-l: #F0D78A;
    --gold-d: #B08A28;
    --gold-glow: rgba(212, 168, 67, 0.12);

    /* ── SURFACES ────────────────────────────────────────── */
    --w: #FFFFFF;
    --bg: #FAFAFF;
    --bg2: #F3F1FA;
    --bg3: #EBE8F5;
    --dark: #110D20;
    --dark2: #1A1530;
    --dark3: #0A0718;

    /* ── TEXT ─────────────────────────────────────────────── */
    --t: #1A1530;
    --t2: #4A4560;
    --t3: #8A85A0;
    --t4: #B5B0C8;

    /* ── BORDERS ──────────────────────────────────────────── */
    --b: #E8E5F2;
    --b2: #F0EEF8;
    --b3: #D8D4E8;

    /* ── STATUS ───────────────────────────────────────────── */
    --grn: #10B981;
    --grn-bg: #ECFDF5;
    --grn-glow: rgba(16, 185, 129, 0.12);
    --red: #EF4444;
    --red-bg: #FEF2F2;
    --red-glow: rgba(239, 68, 68, 0.12);
    --yel: #F59E0B;
    --yel-bg: #FFFBEB;
    --blu: #3B82F6;
    --blu-bg: #EFF6FF;

    /* ── RADII ────────────────────────────────────────────── */
    --r: 16px;
    --r2: 24px;
    --r3: 12px;
    --r4: 8px;
    --r5: 6px;
    --r-full: 50px;

    /* ── SHADOWS — Layered for depth ─────────────────────── */
    --sh-xs: 0 1px 2px rgba(26, 21, 48, 0.03);
    --sh-sm: 0 2px 4px rgba(26, 21, 48, 0.04), 0 1px 2px rgba(26, 21, 48, 0.02);
    --sh: 0 4px 16px rgba(26, 21, 48, 0.06), 0 2px 4px rgba(26, 21, 48, 0.03);
    --sh-md: 0 8px 24px rgba(26, 21, 48, 0.08), 0 4px 8px rgba(26, 21, 48, 0.04);
    --sh-lg: 0 16px 48px rgba(26, 21, 48, 0.1), 0 8px 16px rgba(26, 21, 48, 0.05);
    --sh-xl: 0 24px 64px rgba(26, 21, 48, 0.14), 0 12px 24px rgba(26, 21, 48, 0.06);
    --sh-purple: 0 8px 32px rgba(124, 58, 237, 0.2), 0 4px 8px rgba(124, 58, 237, 0.1);
    --sh-gold: 0 8px 32px rgba(212, 168, 67, 0.15), 0 4px 8px rgba(212, 168, 67, 0.08);
    --sh-float: 0 20px 40px rgba(26, 21, 48, 0.12), 0 8px 16px rgba(26, 21, 48, 0.06);
    --sh-inner: inset 0 2px 4px rgba(26, 21, 48, 0.04);

    /* ── FONTS ────────────────────────────────────────────── */
    --f: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --f2: 'Outfit', -apple-system, sans-serif;
    --fa: 'Amiri', Georgia, serif;
    --fq: 'Amiri Quran', 'Amiri', Georgia, serif;

    /* ── LAYOUT ───────────────────────────────────────────── */
    --nav: 64px;
    --bottom-nav: 64px;
    --max-w: 1200px;
    --max-w-sm: 720px;

    /* ── EASINGS — Smooth & Premium ───────────────────────── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);

    /* ── TIMING ───────────────────────────────────────────── */
    --t-fast: 0.15s;
    --t-normal: 0.25s;
    --t-slow: 0.4s;
    --t-slower: 0.6s;
}

/* ── RESET ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav) + 1rem);
}

body {
    font-family: var(--f);
    background: var(--bg);
    color: var(--t);
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a {
    color: var(--p);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--p-dark); }

img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }

input, select, textarea, button {
    font-family: var(--f);
    font-size: 1rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

button { cursor: pointer; }

::selection {
    background: var(--p-pale);
    color: var(--p-deep);
}

/* ── SCROLLBAR — Minimal & Premium ────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--p-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--p);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--p-light) transparent;
}

/* ── ARABIC CALLIGRAPHY BACKGROUND ────────────────────────── */
body::before {
    content: 'بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ۞ وَلَقَدْ يَسَّرْنَا ٱلْقُرْآنَ لِلذِّكْرِ ۞ ٱقْرَأْ بِٱسْمِ رَبِّكَ ٱلَّذِى خَلَقَ ۞ ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَـٰلَمِينَ ۞ إِنَّ مَعَ ٱلْعُسْرِ يُسْرًا';
    position: fixed;
    inset: 0;
    font-family: var(--fq);
    font-size: 4rem;
    line-height: 2.2;
    color: var(--p);
    opacity: 0.015;
    direction: rtl;
    word-spacing: 1.5rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    padding: 3rem;
    white-space: nowrap;
    animation: bgFloat 180s linear infinite;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, -3%); }
    50% { transform: translate(-2%, -5%); }
    75% { transform: translate(-7%, -2%); }
    100% { transform: translate(0, 0); }
}

/* Gradient overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 5%, rgba(124, 58, 237, 0.04), transparent 50%),
        radial-gradient(ellipse at 85% 95%, rgba(124, 58, 237, 0.025), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.01), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Z-index layer management */
.nav, .main, .footer, .mobile-overlay, .mobile-drawer,
.bottom-nav, .install-banner, .login-container {
    position: relative;
    z-index: 1;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.main {
    flex: 1;
    padding-top: var(--nav);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-sm {
    max-width: var(--max-w-sm);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── SPACING UTILITIES ────────────────────────────────────── */
.tc { text-align: center; }
.mt { margin-top: 1.5rem; }
.mt-sm { margin-top: 0.75rem; }
.mb { margin-bottom: 1.5rem; }
.p-lg { padding: 2rem; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── FOCUS STYLES — Accessible ────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: 2px;
    border-radius: var(--r4);
}

/* ── SMOOTH RENDERING ─────────────────────────────────────── */
.gpu {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}







/* ═══ 078_C03_COMPONENTS.css ═══ */

/* ============================================================
   COMPONENTS — $1M PREMIUM
   Buttons, Badges, Alerts, Forms, Filter Pills
   ============================================================ */

/* ══ BUTTONS ══════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--r3);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform var(--t-fast) var(--ease),
        box-shadow var(--t-normal) var(--ease),
        background var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

/* Shine effect on hover */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 2px 8px rgba(124, 58, 237, 0.2),
        0 1px 2px rgba(124, 58, 237, 0.1);
}

.btn-primary:hover {
    box-shadow:
        0 8px 24px rgba(124, 58, 237, 0.3),
        0 4px 8px rgba(124, 58, 237, 0.15);
    color: #fff;
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

/* Gold */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-d));
    color: var(--dark);
    border-color: transparent;
    box-shadow:
        0 2px 8px rgba(212, 168, 67, 0.2),
        0 1px 2px rgba(212, 168, 67, 0.1);
}

.btn-gold:hover {
    box-shadow:
        0 8px 24px rgba(212, 168, 67, 0.3),
        0 4px 8px rgba(212, 168, 67, 0.15);
    color: var(--dark);
}

/* Outline — for dark backgrounds */
.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--p-light);
    color: var(--p-lighter);
    background: rgba(124, 58, 237, 0.06);
}

/* Ghost — for light backgrounds */
.btn-ghost {
    background: transparent;
    color: var(--t2);
    border-color: var(--b);
}

.btn-ghost:hover {
    border-color: var(--p);
    color: var(--p);
    background: var(--p-pale);
}

/* Danger */
.btn-danger {
    background: transparent;
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 4px 16px var(--red-glow);
}

/* Sizes */
.btn-lg {
    padding: 0.75rem 1.6rem;
    font-size: 0.92rem;
    border-radius: var(--r3);
}

.btn-xs {
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem;
    border-radius: var(--r5);
    gap: 0.25rem;
}

.btn-full { width: 100%; }

/* ══ WHATSAPP BUTTON ═════════════════════════════════════════ */

.wa-card {
    border-color: rgba(37, 211, 102, 0.12) !important;
    background: linear-gradient(135deg, rgba(240, 255, 248, 0.8), rgba(255, 255, 255, 0.9)) !important;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #25D366, #128C3A);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--r);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin: 0.85rem 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(37, 211, 102, 0.25),
        0 2px 4px rgba(37, 211, 102, 0.1);
    transition: all var(--t-normal) var(--ease);
}

.wa-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--t-normal) var(--ease);
}

.wa-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.35),
        0 4px 8px rgba(37, 211, 102, 0.15);
    color: #fff;
}

.wa-btn:hover::before { opacity: 1; }

.wa-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.wa-icon { font-size: 1.3rem; }
.wa-text { color: var(--t2); font-size: 0.85rem; }
.wa-note { font-size: 0.72rem; color: var(--t3); }

/* ══ BADGES ══════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.6rem;
    border-radius: var(--r-full);
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: transform var(--t-fast) var(--ease-spring);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-lg {
    font-size: 0.72rem;
    padding: 0.25rem 0.8rem;
}

.badge-green {
    background: var(--grn-bg);
    color: var(--grn);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.badge-blue {
    background: var(--blu-bg);
    color: var(--blu);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.badge-gold {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-d);
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.badge-section-a {
    background: var(--p-pale);
    color: var(--p);
}

.badge-section-b {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-d);
}

.badge-section-c {
    background: var(--blu-bg);
    color: var(--blu);
}

.badge-a {
    background: var(--p-pale);
    color: var(--p);
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: var(--r5);
    font-size: 0.7rem;
}

.badge-b {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-d);
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: var(--r5);
    font-size: 0.7rem;
}

.badge-c {
    background: var(--blu-bg);
    color: var(--blu);
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: var(--r5);
    font-size: 0.7rem;
}

/* ══ ALERTS ══════════════════════════════════════════════════ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--r3);
    font-size: 0.82rem;
    margin-bottom: 1.15rem;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    animation: alertSlideIn 0.4s var(--ease-out) forwards;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert span:first-child {
    flex-shrink: 0;
    font-size: 0.95rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--grn-bg), rgba(236, 253, 245, 0.6));
    border-color: rgba(16, 185, 129, 0.12);
    color: #065F46;
}

.alert-error {
    background: linear-gradient(135deg, var(--red-bg), rgba(254, 242, 242, 0.6));
    border-color: rgba(239, 68, 68, 0.12);
    color: var(--red);
}

.alert-gold {
    background: linear-gradient(135deg, var(--yel-bg), rgba(255, 251, 235, 0.6));
    border-color: rgba(245, 158, 11, 0.12);
    color: #92400E;
}

.alert-lg {
    padding: 1.5rem;
    border-radius: var(--r);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ══ FORMS ═══════════════════════════════════════════════════ */

.premium-form {}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

.form-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar {
    display: flex;
    gap: 0.85rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-btns {
    display: flex;
    gap: 0.4rem;
    align-self: flex-end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.field label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--b);
    border-radius: var(--r3);
    background: var(--w);
    color: var(--t);
    font-size: 0.95rem;
    transition:
        border-color var(--t-fast) var(--ease),
        box-shadow var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--b3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 4px var(--p-glow);
    background: var(--w);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--t4);
}

.field small {
    font-size: 0.68rem;
    color: var(--t3);
}

.field textarea {
    resize: vertical;
    min-height: 80px;
}

.input-mini {
    width: 60px;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    border: 1.5px solid var(--b);
    border-radius: var(--r5);
    background: #fff;
    transition: border-color var(--t-fast) var(--ease);
}

.input-mini:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--p-glow);
}

/* ── QUOTA CARDS ──────────────────────────────────────────── */

.quota-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.quota-card {
    display: block;
    padding: 1.15rem;
    border: 2px solid var(--b);
    border-radius: var(--r);
    cursor: pointer;
    background: var(--bg);
    transition: all var(--t-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.quota-card input { display: none; }

.quota-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--p-pale), transparent);
    opacity: 0;
    transition: opacity var(--t-normal) var(--ease);
}

.quota-card:hover {
    border-color: var(--p);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}

.quota-card:hover::before { opacity: 1; }

.quota-card.selected {
    border-color: var(--p);
    background: var(--p-pale);
    box-shadow: 0 0 0 4px var(--p-glow), var(--sh);
}

.quota-card.selected::before { opacity: 1; }

.quota-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quota-icon {
    font-size: 2rem;
    transition: transform var(--t-normal) var(--ease-spring);
}

.quota-card:hover .quota-icon,
.quota-card.selected .quota-icon {
    transform: scale(1.15) rotate(-5deg);
}

.quota-name { font-weight: 800; font-size: 0.9rem; }
.quota-desc { font-size: 0.7rem; color: var(--t3); }

/* ── FILTER PILLS ─────────────────────────────────────────── */

.filter-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.28rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--b);
    color: var(--t3);
    background: var(--w);
    transition: all var(--t-fast) var(--ease);
}

.filter-pill:hover {
    border-color: var(--p);
    color: var(--p);
    background: var(--p-pale);
}

.filter-pill.fp-active {
    background: var(--p);
    color: #fff;
    border-color: var(--p);
    box-shadow: 0 2px 8px var(--p-glow);
}

.filter-pill-hifz.fp-active {
    background: var(--p);
    border-color: var(--p);
}

.filter-pill-dor.fp-active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    box-shadow: 0 2px 8px var(--gold-glow);
}







/* ═══ 079_C04_NAVBAR.css ═══ */

/* ============================================================
   NAVBAR — $1M PREMIUM
   Glassmorphism, smooth transitions, premium feel
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav);
    background: rgba(17, 13, 32, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(167, 139, 250, 0.08);
    transition: all var(--t-slow) var(--ease);
}

.nav.scrolled {
    background: rgba(17, 13, 32, 0.97);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(167, 139, 250, 0.08);
    border-bottom-color: rgba(167, 139, 250, 0.15);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── BRAND ────────────────────────────────────────────────── */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--t-fast) var(--ease);
}

.nav-brand:hover { opacity: 0.85; }

.nav-logo {
    width: 38px;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
    border-radius: 50%;
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.25); }
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-family: var(--f2);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--p-lighter);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.brand-company {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── MENU ─────────────────────────────────────────────────── */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    margin-left: 1.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--r4);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    transition: all var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
    color: var(--p-lighter);
    background: rgba(124, 58, 237, 0.08);
}

.nav-item.active {
    color: var(--p-lighter);
    background: rgba(124, 58, 237, 0.12);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--p-light), transparent);
    border-radius: 2px;
    animation: navIndicator 0.3s var(--ease-out) forwards;
}

@keyframes navIndicator {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.nav-item-icon { font-size: 0.85rem; }

/* ── DROPDOWN ─────────────────────────────────────────────── */

.nav-dropdown { position: relative; }
.nav-more-btn { gap: 0.25rem; }

.more-arrow {
    transition: transform var(--t-normal) var(--ease);
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 260px;
    background: rgba(22, 16, 45, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: var(--r);
    box-shadow:
        var(--sh-xl),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(124, 58, 237, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all var(--t-normal) var(--ease-out);
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: rgba(22, 16, 45, 0.97);
    border-left: 1px solid rgba(167, 139, 250, 0.1);
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    transform: rotate(45deg);
}

.dropdown-header {
    padding: 0.6rem 1rem 0.25rem;
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--p-light);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--p);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform var(--t-fast) var(--ease-out);
}

.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--p-lighter);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dd-icon { font-size: 0.9rem; flex-shrink: 0; }
.dd-info { display: flex; flex-direction: column; }
.dd-title { font-size: 0.78rem; font-weight: 600; }
.dd-desc { font-size: 0.6rem; color: rgba(255, 255, 255, 0.2); }

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    margin: 0.25rem 0.75rem;
}

/* ── NAV USER ─────────────────────────────────────────────── */

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(167, 139, 250, 0.2);
    transition: all var(--t-fast) var(--ease);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.nav-avatar:hover {
    border-color: var(--p-light);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-username {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.nav-role {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
}

.nav-role-hifz { color: var(--p-lighter); }
.nav-role-dor { color: var(--gold-l); }

.nav-logout {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
}

.nav-logout:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.08);
    transform: scale(1.1);
}

/* ── HAMBURGER ────────────────────────────────────────────── */

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--p-light);
    border-radius: 2px;
    transition: all var(--t-normal) var(--ease);
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MOBILE OVERLAY ───────────────────────────────────────── */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 24, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-normal) var(--ease);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ── MOBILE DRAWER ────────────────────────────────────────── */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(17, 13, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    transition: right var(--t-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(167, 139, 250, 0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.mobile-drawer.open { right: 0; }

.mobile-drawer-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.mobile-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.mobile-close:hover {
    color: var(--p-lighter);
    background: rgba(124, 58, 237, 0.1);
}

.mobile-drawer-body {
    flex: 1;
    padding: 0.35rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    margin: 0.35rem 0.6rem 0.6rem;
    background: rgba(124, 58, 237, 0.04);
    border-radius: var(--r3);
    border: 1px solid rgba(124, 58, 237, 0.06);
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
    border-left: 3px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.mobile-link:active {
    background: rgba(124, 58, 237, 0.06);
    color: var(--p-lighter);
    border-left-color: var(--p-light);
}

.mobile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    margin: 0.4rem 0.9rem;
}

.mobile-logout {
    color: rgba(239, 68, 68, 0.7) !important;
}







/* ═══ 080_C05_CARDS.css ═══ */

/* ============================================================
   CARDS — $1M PREMIUM
   Glass morphism, depth, hover effects
   ============================================================ */

.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 229, 242, 0.6);
    border-radius: var(--r);
    box-shadow: var(--sh);
    overflow: hidden;
    transition:
        box-shadow var(--t-normal) var(--ease),
        transform var(--t-normal) var(--ease),
        border-color var(--t-normal) var(--ease);
}

.glass:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.08);
}

/* Card Top — Header */
.card-top {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(232, 229, 242, 0.4);
    background: linear-gradient(
        135deg,
        rgba(245, 243, 255, 0.6),
        rgba(255, 255, 255, 0.4)
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
}

/* Subtle ornament in card headers */
.card-top::before {
    content: '۞';
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--fq);
    font-size: 1.2rem;
    color: var(--p);
    opacity: 0.03;
    pointer-events: none;
    transition: opacity var(--t-normal) var(--ease);
}

.glass:hover .card-top::before {
    opacity: 0.06;
}

.card-heading {
    font-family: var(--f2);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--t);
    letter-spacing: -0.01em;
}

.card-sub {
    font-size: 0.75rem;
    color: var(--t3);
    width: 100%;
}

.card-action {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--p);
    transition: all var(--t-fast) var(--ease);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.card-action:hover {
    color: var(--p-dark);
    gap: 0.35rem;
}

/* Card Content */
.card-content {
    padding: 1.15rem;
}

.card-content.no-pad { padding: 0; }

/* ── EMPTY STATE ──────────────────────────────────────────── */

.empty {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--t3);
}

.empty.large { padding: 3rem 1.5rem; }

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: grayscale(0.3);
}

/* ── NOTES BOX ────────────────────────────────────────────── */

.notes-box {
    text-align: left;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    padding: 0.75rem;
    font-size: 0.78rem;
    color: var(--t2);
    border: 1px solid var(--b2);
    line-height: 1.55;
}







/* ═══ 081_C06_HERO.css ═══ */

/* ============================================================
   HERO — $1M PREMIUM
   Page heroes, welcome, streak, quick actions, schedule, sabak
   ============================================================ */

/* ══ PAGE HERO ═══════════════════════════════════════════════ */

.page-hero {
    background: linear-gradient(135deg, #0D0820, #1A1040, #0D0820);
    padding: 2.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(167, 139, 250, 0.06);
}

/* Arabic watermark */
.page-hero::before {
    content: 'ٱقْرَأْ بِٱسْمِ رَبِّكَ';
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--fq);
    font-size: 6rem;
    color: var(--p);
    opacity: 0.02;
    direction: rtl;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* Floating orb */
.page-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(124, 58, 237, 0.06) 0%,
        rgba(124, 58, 237, 0.02) 40%,
        transparent 65%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-15px, 12px) scale(1.05); }
    66% { transform: translate(10px, -8px) scale(0.98); }
}

/* Slim inner-page banner, matched to the dashboard greeting so every page
   in the site opens the same way. */
.page-hero.hero-sm {
    padding: 1.05rem 1.5rem;
    border-radius: 16px;
    margin: 1.1rem auto 0;
    max-width: 1280px;
    width: calc(100% - 3rem);
    box-shadow: 0 10px 26px rgba(76,29,149,.22);
    /* Same purple as the dashboard greeting. */
    background: linear-gradient(135deg, #120B2D, #412080 58%, #7C3AED);
    border-bottom: 0;
}
/* The banner is always dark, so its text is always light. Without this the
   title takes the page text colour and turns near-black in dark mode. */
.page-hero.hero-sm .hero-title { color: #fff !important; }
.page-hero.hero-sm .hero-badge {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #EDE9FE !important;
}
.page-hero.hero-sm .hero-inner { padding: 0; }
/* The long explanation line under the title is hidden on these slim banners:
   the title and badge already say what the page is. */
.page-hero.hero-sm .hero-subtitle { display: none; }
.page-hero.hero-sm .hero-title {
    margin: .4rem 0 0;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    line-height: 1.25;
}
.page-hero.hero-sm .hero-badge {
    padding: .22rem .6rem;
    font-size: .58rem;
    letter-spacing: .08em;
}
@media (max-width: 650px) {
    .page-hero.hero-sm {
        padding: .9rem 1.05rem;
        border-radius: 14px;
        width: calc(100% - 2rem);
    }
    .page-hero.hero-sm .hero-title { font-size: 1.1rem; }
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 0.4rem;
}

.hero-title {
    font-family: var(--f2);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--w);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* ══ WELCOME HERO ════════════════════════════════════════════ */

.welcome-hero {
    background: linear-gradient(135deg, #0D0820, #1A1040, #150C35);
    padding: 3.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(167, 139, 250, 0.06);
}

.welcome-hero::before {
    content: 'وَلَقَدْ يَسَّرْنَا ٱلْقُرْآنَ لِلذِّكْرِ فَهَلْ مِن مُّدَّكِرٍ';
    position: absolute;
    left: 3%;
    bottom: 12%;
    font-family: var(--fq);
    font-size: 3.5rem;
    color: var(--p);
    opacity: 0.015;
    direction: rtl;
    white-space: nowrap;
    pointer-events: none;
}

/* Multiple floating orbs */
.welcome-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle,
        rgba(212, 168, 67, 0.03),
        transparent 65%
    );
    border-radius: 50%;
    animation: orbFloat 15s ease-in-out infinite reverse;
}

.welcome-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.welcome-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.welcome-bismillah {
    font-family: var(--fq);
    font-size: 1.35rem;
    color: var(--p-lighter);
    direction: rtl;
    margin-bottom: 0.5rem;
    opacity: 0.6;
    animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

.welcome-greeting {
    font-family: var(--f2);
    font-size: 1.95rem;
    font-weight: 900;
    color: var(--w);
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.gold { color: var(--p-lighter); }

.welcome-date {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin: 0.4rem 0 0.85rem;
    letter-spacing: -0.01em;
}

.welcome-right { flex-shrink: 0; }

.welcome-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.welcome-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 800;
}

.welcome-type-hifz {
    background: rgba(124, 58, 237, 0.1);
    color: var(--p-lighter);
    border: 1px solid rgba(167, 139, 250, 0.12);
}

.welcome-type-dor {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-l);
    border: 1px solid rgba(212, 168, 67, 0.12);
}

/* ══ PROGRESS RING ═══════════════════════════════════════════ */

.ring-display {
    position: relative;
    width: 124px;
    height: 124px;
}

.progress-ring {
    width: 124px;
    height: 124px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.2));
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 7;
}

.ring-fill {
    fill: none;
    stroke: var(--p-light);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dasharray 1.8s var(--ease-out);
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.35));
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-pct {
    font-family: var(--f2);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--w);
    line-height: 1;
}

.ring-label {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ══ TROPHY ══════════════════════════════════════════════════ */

.trophy-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.75rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: var(--r);
    overflow: hidden;
}

.trophy-glow {
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle,
        rgba(124, 58, 237, 0.08),
        transparent 70%
    );
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
}

.trophy-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    animation: trophyBounce 3s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-3px) rotate(-3deg); }
    75% { transform: translateY(-3px) rotate(3deg); }
}

.trophy-text {
    color: var(--p-lighter);
    font-family: var(--f2);
    font-weight: 800;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.trophy-text small {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    font-size: 0.75rem;
    font-family: var(--f);
}

/* ══ STREAK ══════════════════════════════════════════════════ */

.streak-display {
    padding: 0.5rem;
}

.streak-fire {
    font-size: 2rem;
    animation: fireWiggle 2s ease-in-out infinite;
}

@keyframes fireWiggle {
    0%, 100% { transform: rotate(0) scale(1); }
    25% { transform: rotate(-10deg) scale(1.08); }
    50% { transform: rotate(0) scale(1); }
    75% { transform: rotate(10deg) scale(1.08); }
}

.streak-num {
    font-family: var(--f2);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--p);
    background: linear-gradient(135deg, var(--p), var(--p-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.streak-label {
    font-weight: 800;
    color: var(--t2);
    font-size: 0.78rem;
}

.streak-msg {
    font-size: 0.72rem;
    color: var(--t3);
    margin-top: 0.2rem;
}

/* ══ QUICK ACTIONS ═══════════════════════════════════════════ */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--t);
    transition: all var(--t-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

/* Gradient border on hover */
.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p), var(--p-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-normal) var(--ease-out);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    color: var(--t);
}

.quick-card:hover::before {
    transform: scaleX(1);
}

.qc-done {
    border-color: rgba(16, 185, 129, 0.15) !important;
}

.qc-done::before {
    background: linear-gradient(90deg, var(--grn), #34D399) !important;
    transform: scaleX(1) !important;
}

.qc-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform var(--t-normal) var(--ease-spring);
}

.quick-card:hover .qc-icon {
    transform: scale(1.12) rotate(-5deg);
}

.qc-green {
    background: linear-gradient(135deg, var(--grn-bg), rgba(236, 253, 245, 0.5));
}

.qc-blue {
    background: linear-gradient(135deg, var(--blu-bg), rgba(239, 246, 255, 0.5));
}

.qc-purple {
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.5));
}

.qc-gold {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.06), rgba(255, 251, 235, 0.5));
}

.qc-info { flex: 1; min-width: 0; }

.qc-title {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.qc-desc {
    font-size: 0.68rem;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qc-arrow {
    color: var(--t4);
    font-size: 0.95rem;
    transition: all var(--t-fast) var(--ease);
}

.quick-card:hover .qc-arrow {
    transform: translateX(4px);
    color: var(--p);
}

/* ══ SCHEDULE ════════════════════════════════════════════════ */

.schedule-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
}

.sched-card {
    text-align: center;
    padding: 0.85rem 0.4rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    border: 1px solid var(--b2);
    transition: all var(--t-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.sched-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--p);
    transform: scaleX(0);
    transition: transform var(--t-normal) var(--ease-out);
}

.sched-card:hover {
    border-color: var(--p);
    transform: translateY(-3px);
    box-shadow: var(--sh);
}

.sched-card:hover::after {
    transform: scaleX(1);
}

.sched-icon {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
    transition: transform var(--t-normal) var(--ease-spring);
}

.sched-card:hover .sched-icon {
    transform: scale(1.15);
}

.sched-time {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--p);
}

.sched-act {
    font-size: 0.6rem;
    color: var(--t3);
    margin-top: 0.1rem;
}

/* Schedule list (vertical) */
.schedule-list {
    display: flex;
    flex-direction: column;
}

.sl-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--b2);
    transition: padding-left var(--t-fast) var(--ease);
}

.sl-item:last-child { border-bottom: none; }

.sl-item:hover {
    padding-left: 0.5rem;
}

.sl-icon {
    font-size: 1.15rem;
    width: 1.6rem;
    text-align: center;
    flex-shrink: 0;
}

.sl-time {
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--p);
    margin-bottom: 0.12rem;
}

.sl-act {
    font-size: 0.75rem;
    color: var(--t2);
    line-height: 1.45;
}

/* ══ SABAK ═══════════════════════════════════════════════════ */

.sabak-hero {
    border-top: 2px solid;
    border-image: linear-gradient(90deg, var(--p), var(--p-light), var(--p)) 1;
}

.sabak-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--t3);
}

.sabak-big-num {
    font-family: var(--f2);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--p);
    background: linear-gradient(135deg, var(--p), var(--p-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numPulse 4s ease-in-out infinite;
}

@keyframes numPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.sabak-sub {
    font-size: 0.82rem;
    color: var(--t3);
    margin-bottom: 0.85rem;
}

.sabak-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.sm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.55rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    border: 1px solid var(--b2);
    transition: all var(--t-fast) var(--ease);
}

.sm-item:hover {
    border-color: var(--p);
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

.sm-icon { font-size: 0.9rem; }

.sm-l {
    font-size: 0.55rem;
    color: var(--t3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sm-v {
    font-size: 0.82rem;
    font-weight: 800;
}

/* Sabak mini grid */
.sabak-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.smg-item {
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--b2);
    transition: border-color var(--t-fast) var(--ease);
}

.smg-item:hover { border-color: var(--p); }

.smg-l {
    display: block;
    font-size: 0.58rem;
    color: var(--t3);
    font-weight: 700;
}

.smg-v {
    display: block;
    font-family: var(--f2);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--p);
}

.section-a { color: var(--p) !important; }
.section-b { color: var(--gold-d) !important; }
.section-c { color: var(--blu) !important; }

/* ══ STEPS ═══════════════════════════════════════════════════ */

.steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: padding-left var(--t-fast) var(--ease);
}

.step:hover { padding-left: 0.3rem; }

.step-n {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.step-t {
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
}

.step-d {
    font-size: 0.75rem;
    color: var(--t2);
    line-height: 1.45;
}

/* ══ LOCK ════════════════════════════════════════════════════ */

.lock-display { padding: 2.5rem 1.75rem; }

.lock-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: lockShake 3s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.lock-title {
    font-family: var(--f2);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.lock-desc {
    color: var(--t3);
    font-size: 0.82rem;
    max-width: 320px;
    margin: 0 auto 1.15rem;
    line-height: 1.5;
}

.lock-bar {
    max-width: 340px;
    margin: 0 auto;
}

/* ══ MONTH MINI STATS ════════════════════════════════════════ */

.month-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.mms-item {
    text-align: center;
    padding: 0.65rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    border: 1px solid var(--b2);
    transition: all var(--t-fast) var(--ease);
}

.mms-item:hover {
    border-color: var(--p);
    transform: translateY(-2px);
}

.mms-val {
    font-family: var(--f2);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--p);
}

.mms-label {
    font-size: 0.58rem;
    color: var(--t3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.1rem;
}







/* ═══ 082_C07_FOOTER.css ═══ */

/* ============================================================
   FOOTER — $1M PREMIUM
   ============================================================ */

.footer {
    background: linear-gradient(180deg, #0D0820, #080515);
    padding: 2.25rem 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(167, 139, 250, 0.06);
}

/* Gold top line */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(167, 139, 250, 0.12),
        rgba(212, 168, 67, 0.1),
        rgba(167, 139, 250, 0.12),
        transparent
    );
}

/* Arabic watermark */
.footer::before {
    content: 'خَيْرُكُمْ مَنْ تَعَلَّمَ ٱلْقُرْآنَ وَعَلَّمَهُ';
    position: absolute;
    font-family: var(--fq);
    font-size: 3rem;
    color: var(--p);
    opacity: 0.01;
    direction: rtl;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-title {
    font-family: var(--f2);
    font-weight: 800;
    color: var(--p-lighter);
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.footer-sub {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.15);
}

.footer-center { text-align: center; }

.footer-arabic {
    font-family: var(--fq);
    font-size: 1.25rem;
    color: var(--p-lighter);
    direction: rtl;
    margin-bottom: 0.35rem;
    opacity: 0.5;
}

.footer-ayah {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-style: italic;
    line-height: 1.6;
}

.footer-right {
    text-align: right;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

.footer-free {
    color: var(--p-lighter);
    font-weight: 700;
    margin-top: 0.15rem;
    font-size: 0.68rem;
}







/* ═══ 083_C08_TABLES.css ═══ */

/* ============================================================
   TABLES — $1M PREMIUM
   Tables, avatars, lists, dots, mini rows
   ============================================================ */

/* ══ TABLES ══════════════════════════════════════════════════ */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.premium-table th {
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.5));
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--t2);
    border-bottom: 1.5px solid var(--b);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.premium-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--b2);
    vertical-align: middle;
    transition: background var(--t-fast) var(--ease);
}

.premium-table tr:last-child td { border-bottom: none; }

.premium-table tr:hover td {
    background: rgba(245, 243, 255, 0.5);
}

.premium-table .tc { text-align: center; }

.row-today td {
    background: rgba(124, 58, 237, 0.03) !important;
    border-left: 3px solid var(--p);
}

.row-holiday td {
    background: rgba(255, 251, 235, 0.5) !important;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.meta-cell {
    font-size: 0.65rem;
    color: var(--t3);
}

.notes-cell {
    max-width: 140px;
    font-size: 0.68rem;
    color: var(--t3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-text {
    color: var(--t3);
    font-size: 0.8rem;
}

/* ══ AVATARS ═════════════════════════════════════════════════ */

.avatar-sm,
.avatar-xs {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
}

.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
}

.avatar-xs {
    width: 20px;
    height: 20px;
    font-size: 0.55rem;
}

/* ══ LIST ROWS ═══════════════════════════════════════════════ */

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--b2);
    gap: 0.5rem;
    flex-wrap: wrap;
    transition: all var(--t-fast) var(--ease);
}

.list-row:last-child { border-bottom: none; }

.list-row:hover {
    background: rgba(245, 243, 255, 0.3);
    margin: 0 -1.15rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    border-radius: var(--r4);
}

.list-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-name {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

.list-meta {
    font-size: 0.65rem;
    color: var(--t3);
}

/* ══ DOTS ════════════════════════════════════════════════════ */

.dot-row {
    display: flex;
    gap: 0.15rem;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.52rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-fast) var(--ease-spring);
}

.dot:hover { transform: scale(1.2); }

.dot-on {
    background: var(--grn-bg);
    color: var(--grn);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.dot-off {
    background: var(--b2);
    color: var(--t4);
}

/* ══ PROGRESS ROWS ═══════════════════════════════════════════ */

.progress-row {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--b2);
}

.progress-row:last-child { border-bottom: none; }

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.progress-pct {
    font-weight: 800;
    color: var(--p);
    font-size: 0.82rem;
    font-family: var(--f2);
}

/* ══ MINI ROWS ═══════════════════════════════════════════════ */

.mini-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.15rem;
    border-bottom: 1px solid var(--b2);
    transition: all var(--t-fast) var(--ease);
}

.mini-row:last-child { border-bottom: none; }

.mini-row:hover {
    background: rgba(245, 243, 255, 0.3);
}

.mini-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mini-date {
    font-size: 0.65rem;
    color: var(--t3);
}

.mini-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.38rem;
    background: var(--p-pale);
    color: var(--p);
    border-radius: var(--r5);
}

/* Week day link */
.week-day-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
    color: var(--t);
    transition: color var(--t-fast) var(--ease);
}

.week-day-link strong { font-size: 0.82rem; }
.week-day-link span { font-size: 0.68rem; color: var(--t3); }
.week-day-link:hover { color: var(--p); }







/* ═══ 084_C09_PROGRESS.css ═══ */

/* ============================================================
   PROGRESS — $1M PREMIUM
   Bars, scores, stats, sections, summary
   ============================================================ */

/* ══ PROGRESS BARS ═══════════════════════════════════════════ */

.bar-track {
    width: 100%;
    height: 6px;
    background: var(--b2);
    border-radius: var(--r-full);
    overflow: hidden;
    position: relative;
}

.bar-track.bar-sm { height: 4px; }

.bar-track.bar-lg {
    height: 20px;
    background: linear-gradient(135deg, var(--b2), var(--bg3));
    box-shadow: var(--sh-inner);
}

.bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    width: 0;
    background: linear-gradient(90deg, var(--p), var(--p-light));
    transition: width 1.2s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on bar */
.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: barShimmer 2s ease-in-out infinite;
}

@keyframes barShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bar-fill.animate-bar { width: var(--w); }

/* Bar color variants */
.bar-gradient {
    background: linear-gradient(90deg, var(--p), var(--gold)) !important;
}

.bar-green {
    background: linear-gradient(90deg, #059669, #34D399) !important;
}

.bar-yellow {
    background: linear-gradient(90deg, #D97706, #FBBF24) !important;
}

.bar-red {
    background: linear-gradient(90deg, #DC2626, #F87171) !important;
}

.bar-a {
    background: linear-gradient(90deg, var(--p-dark), var(--p-light)) !important;
}

.bar-b {
    background: linear-gradient(90deg, var(--gold-d), var(--gold-l)) !important;
}

.bar-c {
    background: linear-gradient(90deg, #1D4ED8, #60A5FA) !important;
}

.bar-label-inside {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.big-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 0.45rem;
}

/* ══ SCORE PILLS ═════════════════════════════════════════════ */

.score-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: var(--r5);
    font-size: 0.7rem;
    font-weight: 800;
    transition: transform var(--t-fast) var(--ease-spring);
}

.score-pill:hover { transform: scale(1.08); }

.score-high {
    background: var(--grn-bg);
    color: var(--grn);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.score-mid {
    background: var(--yel-bg);
    color: #92400E;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.score-low {
    background: var(--red-bg);
    color: var(--red);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.score-lg {
    font-size: 1.5rem;
    padding: 0.4rem 1.15rem;
    border-radius: var(--r3);
}

.score-big { margin: 0.85rem 0 0.35rem; }

.score-msg {
    color: var(--t2);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ══ STATS ROW ═══════════════════════════════════════════════ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    position: relative;
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    overflow: hidden;
    transition: transform var(--t-normal) var(--ease);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-glow {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
    transition: opacity var(--t-normal) var(--ease);
}

.stat-card:hover .stat-glow { opacity: 0.1; }

[data-color="blue"] .stat-glow { background: var(--blu); }
[data-color="green"] .stat-glow { background: var(--grn); }
[data-color="purple"] .stat-glow { background: var(--p); }
[data-color="gold"] .stat-glow { background: var(--gold); }

.stat-icon-wrap {
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: transform var(--t-normal) var(--ease-spring);
}

.stat-card:hover .stat-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.stat-num {
    font-family: var(--f2);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--t);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--t3);
    margin-top: 0.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ══ SECTION PROGRESS ════════════════════════════════════════ */

.section-row {
    margin-bottom: 1.1rem;
}

.section-row:last-child { margin-bottom: 0; }

.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 3px currentColor;
}

.section-a-dot { background: var(--p); color: var(--p); }
.section-b-dot { background: var(--gold); color: var(--gold); }
.section-c-dot { background: var(--blu); color: var(--blu); }

.section-name {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.section-range {
    font-size: 0.68rem;
    color: var(--t3);
}

.section-pct {
    font-family: var(--f2);
    font-weight: 900;
    font-size: 1rem;
    color: var(--p);
}

/* ══ SUMMARY ROW ═════════════════════════════════════════════ */

.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 0.65rem;
}

.summary-card {
    padding: 0.6rem;
    transition: transform var(--t-fast) var(--ease);
}

.summary-card:hover { transform: translateY(-2px); }

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.summary-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--t2);
}

.summary-count {
    font-size: 0.65rem;
    color: var(--t3);
    font-weight: 700;
}

.summary-pct {
    font-size: 0.6rem;
    color: var(--t3);
    margin-top: 0.15rem;
}

/* ══ WEEK SUMMARY ════════════════════════════════════════════ */

.week-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ws-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.ws-emoji { font-size: 0.9rem; }

.ws-name {
    font-weight: 700;
    font-size: 0.78rem;
    flex: 1;
}

.ws-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--p);
    font-family: var(--f2);
}







/* ═══ 085_C10_CALENDAR.css ═══ */

/* ============================================================
   CALENDAR — $1M PREMIUM
   Switcher, Monthly grid, Yearly, Today, Daily results
   ============================================================ */

/* ══ CALENDAR SWITCHER ═══════════════════════════════════════ */

.cal-switcher {
    margin-bottom: 1.5rem;
    padding: 0;
    overflow: hidden;
    border-radius: var(--r) !important;
}

.cal-switch-tabs {
    display: flex;
    border-bottom: 1px solid var(--b);
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.3), rgba(255, 255, 255, 0.5));
}

.cal-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.78rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--t3);
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    background: transparent;
    transition: all var(--t-fast) var(--ease);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.cal-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--p), var(--p-light));
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform var(--t-normal) var(--ease-out);
}

.cal-tab:hover {
    color: var(--p);
    background: rgba(124, 58, 237, 0.03);
}

.cal-tab.active {
    color: var(--p);
    background: rgba(124, 58, 237, 0.04);
}

.cal-tab.active::after {
    transform: scaleX(1);
}

.cal-tab-icon {
    font-size: 0.95rem;
    transition: transform var(--t-fast) var(--ease-spring);
}

.cal-tab:hover .cal-tab-icon,
.cal-tab.active .cal-tab-icon {
    transform: scale(1.1);
}

/* ══ CALENDAR NAV ════════════════════════════════════════════ */

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    flex-wrap: wrap;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t2);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--w);
    border: 1.5px solid var(--b);
    box-shadow: var(--sh-xs);
    transition: all var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.cal-nav-btn:hover {
    background: var(--p);
    color: #fff;
    border-color: var(--p);
    box-shadow: var(--sh-purple);
    transform: scale(1.08);
}

.cal-nav-btn:active {
    transform: scale(0.95);
}

.cal-nav-title {
    font-family: var(--f2);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--t);
    min-width: 180px;
    text-align: center;
    letter-spacing: -0.01em;
}

.cal-today-btn {
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--p);
    background: var(--p-pale);
    text-decoration: none;
    border: 1px solid rgba(124, 58, 237, 0.08);
    transition: all var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.cal-today-btn:hover {
    background: var(--p);
    color: #fff;
    box-shadow: 0 2px 8px var(--p-glow);
}

/* ══ MONTHLY CALENDAR GRID ═══════════════════════════════════ */

.mcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mcal-header {
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mcal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    min-height: 75px;
    border-radius: var(--r4);
    border: 1.5px solid var(--b2);
    background: var(--w);
    text-decoration: none;
    color: var(--t);
    transition: all var(--t-fast) var(--ease);
    position: relative;
    overflow: hidden;
}

/* Hover glow effect */
.mcal-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--p-glow), transparent 70%);
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
}

.mcal-cell:hover {
    transform: scale(1.05);
    box-shadow: var(--sh-md);
    z-index: 2;
    border-color: var(--p);
}

.mcal-cell:hover::before { opacity: 1; }

.mcal-empty {
    border: none;
    background: transparent;
    min-height: 0;
}

.mcal-empty::before { display: none; }

.mcal-num {
    font-weight: 900;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.mcal-score {
    font-size: 0.6rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    position: relative;
    z-index: 1;
}

.mcal-dots {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mcal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transition: transform var(--t-fast) var(--ease-spring);
}

.mcal-cell:hover .mcal-dot { transform: scale(1.3); }

.md-on { background: var(--grn); }
.md-off { background: var(--b); }

/* Cell states */
.mcal-today {
    border: 2px solid var(--p) !important;
    box-shadow: 0 0 0 3px var(--p-glow), var(--sh);
}

.mcal-today .mcal-num {
    color: var(--p);
    font-size: 0.85rem;
}

.mcal-perfect {
    background: linear-gradient(135deg, var(--grn-bg), rgba(236, 253, 245, 0.5));
    border-color: rgba(16, 185, 129, 0.12);
}

.mcal-perfect .mcal-score { color: var(--grn); }

.mcal-good {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.5), rgba(255, 251, 235, 0.3));
    border-color: rgba(245, 158, 11, 0.08);
}

.mcal-good .mcal-score { color: var(--yel); }

.mcal-low {
    background: linear-gradient(135deg, var(--red-bg), rgba(254, 242, 242, 0.5));
    border-color: rgba(239, 68, 68, 0.06);
}

.mcal-low .mcal-score { color: var(--red); }

.mcal-missed { background: var(--bg2); }

.mcal-future {
    opacity: 0.35;
    pointer-events: none;
}

/* ══ CALENDAR LEGEND ═════════════════════════════════════════ */

.mcal-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.15rem;
    flex-wrap: wrap;
    font-size: 0.68rem;
    color: var(--t3);
}

.mcal-legend span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mcal-leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.leg-perfect { background: var(--grn-bg); border: 1.5px solid var(--grn); }
.leg-good { background: var(--yel-bg); border: 1.5px solid var(--yel); }
.leg-low { background: var(--red-bg); border: 1.5px solid var(--red); }
.leg-missed { background: var(--bg2); border: 1.5px solid var(--b); }
.leg-today { background: var(--p-pale); border: 1.5px solid var(--p); }

/* ══ YEARLY GRID ═════════════════════════════════════════════ */

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.year-month {
    padding: 0.65rem;
    overflow: hidden;
    transition: all var(--t-normal) var(--ease);
}

.year-month:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
}

.year-month.ym-current {
    border-color: var(--p) !important;
    box-shadow: 0 0 0 3px var(--p-glow), var(--sh);
}

.ym-header {
    text-align: center;
    margin-bottom: 0.45rem;
}

.ym-title {
    font-family: var(--f2);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--p);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

.ym-title:hover { color: var(--p-dark); }

.ym-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.ym-day-header {
    text-align: center;
    font-size: 0.42rem;
    font-weight: 700;
    color: var(--t4);
    padding: 0.15rem 0;
}

.ym-day {
    text-align: center;
    font-size: 0.52rem;
    font-weight: 600;
    padding: 0.2rem 0.1rem;
    border-radius: 2px;
    color: var(--t2);
    transition: transform var(--t-fast) var(--ease);
}

.ym-day:hover { transform: scale(1.3); }

.ym-empty { visibility: hidden; }

.ym-today {
    background: var(--p) !important;
    color: #fff !important;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.ym-perfect { background: var(--grn-bg); color: var(--grn); font-weight: 800; }
.ym-good { background: var(--yel-bg); color: #92400E; }
.ym-low { background: var(--red-bg); color: var(--red); }

/* ══ TODAY CARD ══════════════════════════════════════════════ */

.today-card {
    border-top: 2px solid;
    border-image: linear-gradient(90deg, var(--p), var(--p-light)) 1;
}

.today-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.today-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    border: 1px solid var(--b2);
    transition: all var(--t-fast) var(--ease);
}

.today-item:hover {
    border-color: var(--p);
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

.today-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.today-name {
    font-weight: 800;
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
    letter-spacing: -0.01em;
}

.today-pages {
    font-size: 0.72rem;
    color: var(--t2);
    line-height: 1.4;
}

.today-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border-radius: var(--r3);
    border: 1px solid var(--b2);
}

.today-extras span {
    font-size: 0.72rem;
    color: var(--t2);
}

/* ══ DAILY RESULTS ═══════════════════════════════════════════ */

.daily-results {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.daily-result-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: var(--r4);
    font-size: 0.78rem;
    transition: all var(--t-fast) var(--ease);
}

.daily-result-row:hover {
    transform: translateX(4px);
}

.dr-done {
    background: linear-gradient(135deg, var(--grn-bg), rgba(236, 253, 245, 0.5));
}

.dr-miss {
    background: linear-gradient(135deg, var(--red-bg), rgba(254, 242, 242, 0.5));
}

.dr-icon { font-size: 0.85rem; }
.dr-emoji { font-size: 0.9rem; }

.dr-name {
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.01em;
}

.dr-time {
    font-size: 0.68rem;
    color: var(--t3);
}







/* ═══ 086_C11_TRACKER.css ═══ */

/* ============================================================
   TRACKER — $1M PREMIUM
   Tracker cards, rakaats, score live
   ============================================================ */

/* ══ TRACKER ITEMS ═══════════════════════════════════════════ */

.tracker-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tracker-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border: 2px solid var(--b);
    border-radius: var(--r);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.tracker-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--p);
    transform: scaleY(0);
    transition: transform var(--t-fast) var(--ease-out);
}

.tracker-card:hover {
    border-color: var(--p);
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.5));
}

.tracker-card:hover::before {
    transform: scaleY(1);
}

.tc-checked {
    border-color: var(--p) !important;
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.7)) !important;
    box-shadow: 0 0 0 3px var(--p-glow), var(--sh-sm);
}

.tc-checked::before {
    transform: scaleY(1) !important;
    background: linear-gradient(180deg, var(--p), var(--p-light)) !important;
}

.tracker-cb { display: none; }

.tc-icon {
    font-size: 1.3rem;
    width: 1.6rem;
    text-align: center;
    flex-shrink: 0;
    transition: transform var(--t-fast) var(--ease-spring);
}

.tracker-card:hover .tc-icon,
.tc-checked .tc-icon {
    transform: scale(1.1);
}

.tc-info { flex: 1; }

.tc-label {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.tc-time {
    font-size: 0.68rem;
    color: var(--p);
    font-weight: 700;
}

.tc-desc {
    font-size: 0.65rem;
    color: var(--t3);
    line-height: 1.4;
}

.tc-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    flex-shrink: 0;
    transition: all var(--t-fast) var(--ease-spring);
}

.ch-active {
    background: linear-gradient(135deg, var(--p), var(--p-light));
    border-color: var(--p);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transform: scale(1.1);
}

.tc-check-sm {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
}

/* ══ SCORE LIVE ══════════════════════════════════════════════ */

.score-live {
    text-align: center;
    margin-top: 0.85rem;
    padding: 0.8rem;
    border-radius: var(--r3);
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border: 2px solid var(--b);
    transition: all var(--t-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.score-live::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--t-normal) var(--ease);
}

.score-live-label {
    font-size: 0.68rem;
    color: var(--t3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.score-live-val {
    font-family: var(--f2);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--t);
    position: relative;
    z-index: 1;
    transition: color var(--t-fast) var(--ease);
}

.sl-perfect {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--yel-bg), rgba(255, 251, 235, 0.5));
}

.sl-perfect::before {
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06), transparent 70%);
    opacity: 1;
}

.sl-perfect .score-live-val { color: var(--gold-d); }

.sl-good {
    border-color: var(--p);
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.5));
}

.sl-good::before {
    background: radial-gradient(circle, var(--p-glow), transparent 70%);
    opacity: 1;
}

.sl-good .score-live-val { color: var(--p); }

.sl-mid {
    border-color: var(--blu);
    background: linear-gradient(135deg, var(--blu-bg), rgba(239, 246, 255, 0.5));
}

.sl-mid .score-live-val { color: var(--blu); }

/* ══ DONE STATE ══════════════════════════════════════════════ */

.done-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: doneBounce 0.6s var(--ease-spring) forwards;
}

@keyframes doneBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.done-title {
    font-family: var(--f2);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--p);
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.done-sub {
    color: var(--t3);
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
}

/* Result grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    text-align: left;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.65rem;
    border-radius: var(--r5);
    font-size: 0.75rem;
    font-weight: 600;
    transition: transform var(--t-fast) var(--ease);
}

.result-item:hover { transform: translateX(3px); }

.r-done {
    background: linear-gradient(135deg, var(--grn-bg), rgba(236, 253, 245, 0.5));
    color: #065F46;
}

.r-miss {
    background: linear-gradient(135deg, var(--red-bg), rgba(254, 242, 242, 0.5));
    color: var(--red);
}

/* ══ RAKAT CARDS ═════════════════════════════════════════════ */

.rakat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.rakat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rakat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rakat-grid-4 { grid-template-columns: repeat(4, 1fr); }

.rakat-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(135deg, var(--bg2), var(--bg));
    border: 2px solid var(--b);
    border-radius: var(--r3);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.rakat-card:hover {
    border-color: var(--p);
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.5));
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

.rakat-card.tc-checked {
    border-color: var(--p) !important;
    background: linear-gradient(135deg, var(--p-pale), rgba(245, 243, 255, 0.7)) !important;
    box-shadow: 0 0 0 2px var(--p-glow), var(--sh-sm);
}

.rakat-compact {
    padding: 0.5rem;
    justify-content: center;
    gap: 0.35rem;
}

.rakat-special {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.04), var(--bg));
    border-color: rgba(212, 168, 67, 0.12);
}

.rakat-special:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), var(--bg));
}

.rakat-special.tc-checked {
    border-color: var(--gold) !important;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(255, 251, 235, 0.5)) !important;
    box-shadow: 0 0 0 2px var(--gold-glow) !important;
}

.rk-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
    transition: transform var(--t-fast) var(--ease-spring);
}

.rakat-card:hover .rk-num {
    transform: scale(1.1);
}

.rk-num-sm {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--t2);
}

.rk-info { flex: 1; min-width: 0; }

.rk-label {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: -0.01em;
}

.rk-page {
    font-size: 0.65rem;
    color: var(--p);
    font-weight: 600;
}

.rakat-all-btn {
    padding: 0.32rem 0.7rem;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
    transition: all var(--t-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.rakat-all-btn:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
}

.rakat-all-btn:active {
    transform: scale(0.97);
}

/* ══ RAKAT RESULT GROUPS ═════════════════════════════════════ */

.rakat-result-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--b2);
}

.rakat-result-group:last-child { border-bottom: none; }

.rrg-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--t2);
}

.rrg-dots {
    display: flex;
    gap: 0.2rem;
}

.rrg-dot {
    font-size: 0.7rem;
    transition: transform var(--t-fast) var(--ease-spring);
}

.rrg-dot:hover { transform: scale(1.2); }

/* Animated Group Completion */
.card-content.group-done {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
    transition: background 0.5s ease;
}

.rakat-all-btn.pulse-success {
    animation: successPulse 1s infinite;
}

@keyframes successPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Heatmap for Admin */
.heatmap-item {
    background: var(--w);
    padding: 15px 5px;
    border-radius: var(--r);
    border: 1px solid var(--b);
    transition: all 0.3s var(--ease);
}
.heatmap-item:hover {
    background: var(--p-pale);
    border-color: var(--p);
    transform: scale(1.05);
}







/* ═══ 087_C12_LOGO.css ═══ */

/* ============================================================
   Q-LOGO — $1M PREMIUM
   Crescent + Star with animations
   ============================================================ */

.q-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.q-logo.xs { width: 26px; height: 26px; }
.q-logo.sm { width: 34px; height: 34px; }
.q-logo.md { width: 44px; height: 44px; }
.q-logo.lg { width: 56px; height: 56px; }

/* Crescent */
.q-crescent {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid var(--p-lighter);
    mask-image: radial-gradient(circle at 62% 38%, transparent 30%, black 31%);
    -webkit-mask-image: radial-gradient(circle at 62% 38%, transparent 30%, black 31%);
    animation: crescentPulse 4s ease-in-out infinite;
}

.q-logo.xs .q-crescent { border-width: 1.5px; }
.q-logo.lg .q-crescent { border-width: 3px; }

@keyframes crescentPulse {
    0%, 100% {
        opacity: 0.5;
        filter: drop-shadow(0 0 2px rgba(196, 181, 253, 0.15));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(196, 181, 253, 0.5));
    }
}

/* Star */
.q-star {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: starSpin 25s linear infinite;
}

.q-star::before,
.q-star::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--p-lighter);
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%,
        79% 91%, 50% 70%, 21% 91%, 32% 57%,
        2% 35%, 39% 35%
    );
}

.q-star::after {
    transform: rotate(36deg);
    opacity: 0.5;
}

.q-star-inner {
    position: absolute;
    width: 28%;
    height: 28%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gold);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 6px rgba(212, 168, 67, 0.3);
    animation: innerGlow 3s ease-in-out infinite;
}

@keyframes starSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes innerGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 4px rgba(212, 168, 67, 0.2);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 12px rgba(212, 168, 67, 0.5);
    }
}

.q-shine {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(196, 181, 253, 0.12);
    animation: shineRotate 3s linear infinite;
}

@keyframes shineRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.q-logo::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: logoGlow 4s ease-in-out infinite;
}

.q-logo.xs::before { inset: -3px; }

/* Context speeds */
.login-logo-ring .q-star { animation-duration: 35s; }
.login-logo-ring .q-crescent { animation-duration: 5s; border-width: 3px; }
.footer .q-star { animation-duration: 45s; }
.footer .q-crescent { animation-duration: 7s; }

/* Hover effect */
.nav-brand:hover .q-star { animation-duration: 8s; }
.nav-brand:hover .q-crescent { filter: drop-shadow(0 0 12px rgba(196, 181, 253, 0.6)); opacity: 1; }







/* ═══ 088_C13_LOGIN.css ═══ */

/* ============================================================
   LOGIN — $1M PREMIUM
   ============================================================ */

.login-page {
    background: linear-gradient(150deg, #0D0820, #150C35, #0D0820);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-page::before {
    content: 'بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ۞ ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَـٰلَمِينَ';
    position: fixed;
    font-family: var(--fq);
    font-size: 4.5rem;
    color: var(--p);
    opacity: 0.015;
    direction: rtl;
    top: 15%;
    left: -5%;
    white-space: nowrap;
    pointer-events: none;
    animation: loginScroll 55s linear infinite;
}

@keyframes loginScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-40%); }
}

.login-bg { position: fixed; inset: 0; pointer-events: none; }

.login-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(124, 58, 237, 0.08), transparent 55%),
        radial-gradient(ellipse at 75% 85%, rgba(124, 58, 237, 0.04), transparent 55%);
}

.login-particles { position: absolute; inset: 0; }

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    padding: 1rem 0;
}

.login-brand { text-align: center; }

.login-logo-ring {
    position: relative;
    width: 85px;
    height: 85px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-orbit {
    position: absolute;
    border: 1px solid rgba(167, 139, 250, 0.08);
    border-radius: 50%;
    animation: orbitSpin 20s linear infinite;
}

.ring-orbit::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--p-light);
    border-radius: 50%;
    top: -1px;
    left: 50%;
    box-shadow: 0 0 6px var(--p-light);
}

.ring-1 { width: 72px; height: 72px; animation-duration: 12s; }
.ring-2 { width: 92px; height: 92px; animation-duration: 18s; animation-direction: reverse; }
.ring-3 { width: 112px; height: 112px; animation-duration: 24s; }

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-title {
    font-family: var(--f2);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--p-lighter);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.login-subtitle strong {
    color: rgba(255, 255, 255, 0.5);
}

.login-bismillah {
    font-family: var(--fq);
    font-size: 1.2rem;
    color: var(--p-lighter);
    direction: rtl;
    margin-top: 0.65rem;
    opacity: 0.4;
}

.login-badge {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.25rem 0.85rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: var(--r-full);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--p-light);
}

/* Card */
.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: var(--r2);
    box-shadow: var(--sh-xl);
    border: 1px solid rgba(167, 139, 250, 0.06);
    overflow: hidden;
}

.login-card-top {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--b2);
    text-align: center;
    background: linear-gradient(135deg, var(--p-pale), rgba(255, 255, 255, 0.8));
}

.login-card-top h2 {
    font-family: var(--f2);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--p-deep);
    letter-spacing: -0.02em;
}

.login-card-top p {
    color: var(--t3);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.login-alert {
    margin: 0.65rem 1.5rem 0;
    border-radius: var(--r4);
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.login-alert-error {
    background: linear-gradient(135deg, var(--red-bg), rgba(254, 242, 242, 0.5));
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.login-alert-success {
    background: linear-gradient(135deg, var(--grn-bg), rgba(236, 253, 245, 0.5));
    color: var(--grn);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.login-form { padding: 1.5rem 1.75rem 1.75rem; }

.login-field { margin-bottom: 1.1rem; }

.login-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--t2);
    margin-bottom: 0.38rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--t3);
    z-index: 1;
    display: flex;
    transition: color var(--t-fast) var(--ease);
}

.login-input-wrap input {
    width: 100%;
    padding: 0.75rem 0.95rem 0.75rem 2.6rem;
    border: 1.5px solid var(--b);
    border-radius: var(--r3);
    background: var(--w);
    font-size: 0.92rem;
    color: var(--t);
    transition: all var(--t-fast) var(--ease);
}

.login-input-wrap input:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 4px var(--p-glow);
}

.login-input-wrap input:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
    color: var(--p);
}

.login-eye {
    position: absolute;
    right: 0.7rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--t3);
    display: flex;
    padding: 0.2rem;
    transition: color var(--t-fast) var(--ease);
}

.login-eye:hover { color: var(--p); }

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    border: none;
    border-radius: var(--r3);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 0.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
    transition: all var(--t-normal) var(--ease);
}

.login-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.login-btn:hover::after {
    transform: translateX(100%);
}

.login-btn:active {
    transform: translateY(0) scale(0.99);
}

.login-footer-text {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--b2);
    text-align: center;
    background: linear-gradient(135deg, var(--bg), var(--bg2));
    font-size: 0.78rem;
    color: var(--t3);
}

.login-footer-text strong { color: var(--p); }

.login-hadith {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.65;
    max-width: 320px;
}

.login-hadith span {
    display: block;
    color: var(--p-light);
    font-style: normal;
    font-weight: 700;
    margin-top: 0.3rem;
    font-size: 0.72rem;
}







/* ═══ 089_C14_LANDING.css ═══ */

/* Landing page styles are inline in 139_index.php */
/* Move here if needed in future */







/* ═══ 090_C15_TYPE_HIFZ.css ═══ */

/* ============================================================
   TYPE — HIFZ STUDENT (Purple)
   $1M PREMIUM + Achievement System
   ============================================================ */

/* ── BASE HIFZ BADGES ──────────────────────────────────────── */
.badge-hifz {
    background: var(--p-pale);
    color: var(--p);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.04);
}

/* ── STUDENT CARDS (ADMIN VIEW) ───────────────────────────── */
.student-card.type-hifz {
    border-left: 4px solid var(--p);
}

.student-card.type-hifz .sc-header {
    background: linear-gradient(135deg, var(--p-pale), rgba(255, 255, 255, 0.8));
}

.student-card.type-hifz .sc-avatar,
.avatar-hifz {
    background: linear-gradient(135deg, var(--p), var(--p-light)) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2) !important;
}

/* ── TABLES & BARS ────────────────────────────────────────── */
.tr-hifz td:first-child {
    border-left: 3px solid var(--p);
}

.bar-fill-hifz {
    background: linear-gradient(90deg, var(--p-dark), var(--p-light)) !important;
    position: relative;
}

/* ── TYPE INDICATORS ──────────────────────────────────────── */
.type-dot-hifz {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.type-strip-hifz {
    background: var(--p-pale);
    color: var(--p);
    padding: 0.15rem 0.42rem;
    border-radius: var(--r-full);
    font-size: 0.55rem;
    font-weight: 800;
    border: 1px solid rgba(124, 58, 237, 0.06);
}

.type-divider-hifz .type-divider-line {
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
}

.type-divider-hifz .type-divider-label {
    color: var(--p);
}

.card-type-hifz .card-top {
    border-left: 3px solid var(--p);
}

/* ── ACHIEVEMENT / BADGE SYSTEM (DASHBOARD) ────────────────── */
.badge-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--p-light) transparent;
}

.badge-row::-webkit-scrollbar {
    height: 4px;
}

.badge-row::-webkit-scrollbar-thumb {
    background: var(--p-lighter);
    border-radius: 10px;
}

.badge-item {
    background: var(--w);
    padding: 15px 10px;
    border-radius: var(--r);
    border: 1px solid var(--b);
    min-width: 90px;
    transition: all 0.3s var(--ease-spring);
    box-shadow: var(--sh-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badge-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--p-pale);
    border-color: var(--p-light);
    box-shadow: var(--sh-md);
}

.badge-item .badge-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.badge-item .badge-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--t);
    text-align: center;
    line-height: 1.2;
}

.badge-item .badge-desc {
    font-size: 0.55rem;
    color: var(--t3);
    text-align: center;
    margin-top: 3px;
}

/* ── ADMIN: INACTIVE ALERT STYLES ─────────────────────────── */
.alert-border {
    border: 2px solid var(--red) !important;
    animation: pulseRedBorder 2s infinite;
}

@keyframes pulseRedBorder {
    0% { border-color: var(--red); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { border-color: transparent; box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { border-color: var(--red); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.wa-quick-link {
    background: #25D366;
    color: white !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s var(--ease);
    box-shadow: 0 2px 8px rgba(37, 211, 162, 0.3);
}

.wa-quick-link:hover {
    transform: scale(1.15) rotate(10deg);
    background: #1EAD54;
    box-shadow: 0 4px 12px rgba(37, 211, 162, 0.5);
}

/* ── PROGRESS INSIGHT CARD ────────────────────────────────── */
.insight-card {
    background: linear-gradient(135deg, var(--p-pale), var(--w));
    border-left: 4px solid var(--p-light);
}

.insight-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--p-dark);
    font-family: var(--fa);
    line-height: 1.6;
    text-align: center;
}







/* ═══ 091_C16_TYPE_DOR.css ═══ */

/* ============================================================
   TYPE — DOR STUDENT (Gold) + Shared Type Styles
   $1M PREMIUM
   ============================================================ */

/* ── DOR SPECIFIC ─────────────────────────────────────────── */

.badge-dor {
    background: rgba(212, 168, 67, 0.06);
    color: var(--gold-d);
    border: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.04);
}

.student-card.type-dor {
    border-left: 3px solid var(--gold);
}

.student-card.type-dor .sc-header {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.04), rgba(255, 255, 255, 0.8));
}

.student-card.type-dor .sc-avatar,
.avatar-dor {
    background: linear-gradient(135deg, var(--gold-d), var(--gold)) !important;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.2) !important;
}

.tr-dor td:first-child {
    border-left: 3px solid var(--gold);
}

.bar-fill-dor {
    background: linear-gradient(90deg, var(--gold-d), var(--gold-l)) !important;
}

.type-dot-dor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.1);
}

.type-strip-dor {
    background: rgba(212, 168, 67, 0.06);
    color: var(--gold-d);
    padding: 0.15rem 0.42rem;
    border-radius: var(--r-full);
    font-size: 0.55rem;
    font-weight: 800;
    border: 1px solid rgba(212, 168, 67, 0.06);
}

.type-divider-dor .type-divider-line {
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.1), transparent);
}

.type-divider-dor .type-divider-label {
    color: var(--gold-d);
}

.card-type-dor .card-top {
    border-left: 3px solid var(--gold);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.03), rgba(255, 255, 255, 0.9));
}

/* ── SHARED TYPE STYLES ───────────────────────────────────── */

.type-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0;
    margin: 0.5rem 0;
}

.type-divider-line {
    flex: 1;
    height: 1px;
}

.type-divider-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── OVERVIEW TYPE CARDS ──────────────────────────────────── */

.overview-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ot-card {
    border-radius: var(--r);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    transition: all var(--t-normal) var(--ease);
}

.ot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.ot-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.04;
    pointer-events: none;
}

.ot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-lg);
}

.ot-card-hifz {
    background: linear-gradient(135deg, var(--p-pale), rgba(255, 255, 255, 0.9));
    border-color: rgba(124, 58, 237, 0.08);
}

.ot-card-hifz::before { background: linear-gradient(180deg, var(--p), var(--p-light)); }
.ot-card-hifz::after { background: var(--p); }

.ot-card-dor {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.04), rgba(255, 255, 255, 0.9));
    border-color: rgba(212, 168, 67, 0.08);
}

.ot-card-dor::before { background: linear-gradient(180deg, var(--gold-d), var(--gold)); }
.ot-card-dor::after { background: var(--gold); }

.ot-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--r3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--t-normal) var(--ease-spring);
}

.ot-card:hover .ot-icon {
    transform: scale(1.1) rotate(-5deg);
}

.ot-icon-hifz {
    background: var(--p-pale);
    border: 1px solid rgba(124, 58, 237, 0.06);
}

.ot-icon-dor {
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.06);
}

.ot-info { flex: 1; }

.ot-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.ot-label-hifz { color: var(--p); }
.ot-label-dor { color: var(--gold-d); }

.ot-count {
    font-family: var(--f2);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ot-count-hifz { color: var(--p); }
.ot-count-dor { color: var(--gold-d); }

.ot-sub {
    font-size: 0.68rem;
    color: var(--t3);
    margin-top: 0.15rem;
}

.ot-stats {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.4rem;
}

.ot-stat {
    font-size: 0.6rem;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.ot-stat strong { color: var(--t); }

/* ── STUDENT GRID ─────────────────────────────────────────── */

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.student-card {
    overflow: hidden;
    transition: all var(--t-normal) var(--ease);
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}

.student-card.completed { border-color: var(--gold); }

.student-card.completed .sc-header {
    background: linear-gradient(135deg, var(--yel-bg), rgba(255, 251, 235, 0.5));
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--p-pale), rgba(255, 255, 255, 0.8));
    border-bottom: 1px solid var(--b2);
}

.sc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p-light));
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
    transition: transform var(--t-fast) var(--ease-spring);
}

.student-card:hover .sc-avatar { transform: scale(1.08); }

.sc-info { flex: 1; }

.sc-name {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.sc-user {
    font-size: 0.68rem;
    color: var(--t3);
}

.sc-stats { padding: 0.7rem 0.95rem; }

.sc-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.18rem 0;
    font-size: 0.75rem;
}

.sc-stat-l { color: var(--t3); }
.sc-stat-r { font-weight: 700; }

.sc-progress { padding: 0.4rem 0.95rem; }

.sc-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--t3);
    margin-top: 0.2rem;
}

.sc-actions {
    padding: 0.5rem 0.95rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--b2);
    background: linear-gradient(135deg, var(--bg), var(--bg2));
}

.sc-form {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.sc-footer {
    padding: 0.5rem 0.95rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}







/* ═══ 092_C17_ADMIN.css ═══ */

/* Admin-specific extras — covered in C16 */







/* ═══ 093_C18_ANIMATIONS.css ═══ */

/* ============================================================
   ANIMATIONS — $1M PREMIUM
   All keyframes, stagger, print, reduced motion
   ============================================================ */

/* ── SLIDE ANIMATIONS ─────────────────────────────────────── */

.animate-slide-up {
    opacity: 0;
    transform: translateY(24px);
    animation: slideUp 0.5s var(--ease-out) forwards;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-24px);
    animation: slideRight 0.5s var(--ease-out) forwards;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(24px);
    animation: slideLeft 0.5s var(--ease-out) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: animFadeIn 0.6s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.88);
    animation: scaleIn 0.5s var(--ease-spring) forwards;
}

.animate-float {
    animation: floatAnim 5s ease-in-out infinite;
}

.animate-shake {
    animation: shakeAnim 0.45s ease-in-out;
}

.animate-pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

/* ── DELAYS ───────────────────────────────────────────────── */

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── STAGGER ──────────────────────────────────────────────── */

.animate-stagger > *:nth-child(1) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.04s forwards; }
.animate-stagger > *:nth-child(2) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.08s forwards; }
.animate-stagger > *:nth-child(3) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.12s forwards; }
.animate-stagger > *:nth-child(4) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.16s forwards; }
.animate-stagger > *:nth-child(5) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.20s forwards; }
.animate-stagger > *:nth-child(6) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.24s forwards; }
.animate-stagger > *:nth-child(7) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.28s forwards; }
.animate-stagger > *:nth-child(8) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.32s forwards; }
.animate-stagger > *:nth-child(9) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.36s forwards; }
.animate-stagger > *:nth-child(10) { opacity: 0; animation: slideUp 0.45s var(--ease-out) 0.40s forwards; }

/* ── KEYFRAMES ────────────────────────────────────────────── */

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes animFadeIn {
    to { opacity: 1; }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

@keyframes pulseSlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.018); }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── PRINT ────────────────────────────────────────────────── */

@media print {
    .nav, .footer, .btn, .quick-grid, .nav-hamburger,
    .mobile-overlay, .mobile-drawer, .bottom-nav,
    .install-banner, .cal-switcher, .filter-pills {
        display: none !important;
    }

    .main { padding-top: 0; }

    body::before,
    body::after { display: none; }

    .glass {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
        backdrop-filter: none;
    }

    .page-hero,
    .welcome-hero {
        background: #f5f5f5 !important;
        color: #333 !important;
        border-bottom: 2px solid #7C3AED;
    }

    .hero-title,
    .welcome-greeting {
        color: #333 !important;
        -webkit-text-fill-color: #333 !important;
    }
}







/* ═══ 094_C19_MOBILE_BASE.css ═══ */

/* ============================================================
   MOBILE — $1M PREMIUM
   Complete mobile experience
   ============================================================ */

/* ── DESKTOP: HIDE MOBILE ─────────────────────────────────── */
@media (min-width: 769px) {
    .bottom-nav, .install-banner { display: none !important; }
}

/* ── TABLET ───────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .container, .container-sm { padding: 1.5rem 1.25rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .student-grid { grid-template-columns: repeat(2, 1fr); }
    .today-grid { grid-template-columns: repeat(2, 1fr); }
    .schedule-row { grid-template-columns: repeat(3, 1fr); }
    .year-grid { grid-template-columns: repeat(3, 1fr); }
    .overview-type-cards { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-right { display: none; }
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --nav: 54px; --bottom-nav: 60px; }
    body { font-size: 15px; }
    .nav-menu, .nav-user { display: none !important; }
    .nav-hamburger { display: flex !important; }
    .main { padding-top: 54px; padding-bottom: calc(var(--bottom-nav) + 8px); }
    .container, .container-sm { padding: 0.85rem; }

    /* Nav */
    .nav { height: 54px; }
    .nav-inner { padding: 0 0.65rem; gap: 0.4rem; }
    .nav-logo { width: 30px; height: 30px; }
    .q-logo.sm { width: 26px; height: 26px; }
    .brand-title { font-size: 0.82rem; }
    .brand-company { font-size: 0.48rem; }

    /* Bottom Nav */
    .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav); background: rgba(17,13,32,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(167,139,250,0.06); display: flex; align-items: center; justify-content: space-around; z-index: 999; padding: 0 0.2rem; padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -2px 16px rgba(0,0,0,0.15); }
    .bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.06rem; padding: 0.3rem 0.35rem; text-decoration: none; color: rgba(255,255,255,0.28); font-size: 0.52rem; font-weight: 700; min-width: 44px; -webkit-tap-highlight-color: transparent; position: relative; }
    .bottom-nav-item .bn-icon { font-size: 1.15rem; line-height: 1; }
    .bottom-nav-item.active { color: var(--p-light); }
    .bottom-nav-item.active::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--p-light); border-radius: 0 0 2px 2px; }
    .bottom-nav-item:active { transform: scale(0.88); transition: transform 0.08s ease; }
    .bn-center { position: relative; top: -8px; }
    .bn-center .bn-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--p), var(--p-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; box-shadow: 0 4px 14px rgba(124,58,237,0.3); border: 3px solid rgba(17,13,32,0.97); color: white; }

    /* Heroes */
    .page-hero, .welcome-hero { padding: 1.15rem 0.85rem; }
    .page-hero.hero-sm { padding: 0.85rem; }
    .page-hero::before { font-size: 2.5rem; }
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .hero-title { font-size: 1.25rem; }
    .hero-subtitle { font-size: 0.75rem; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; font-size: 0.78rem; }
    .welcome-inner { flex-direction: column; text-align: center; gap: 0.85rem; }
    .welcome-greeting { font-size: 1.25rem; }
    .welcome-bismillah { font-size: 0.92rem; }
    .welcome-date { font-size: 0.75rem; margin: 0.2rem 0 0.45rem; }
    .welcome-right { margin: 0 auto; }
    .welcome-type-badge { font-size: 0.62rem; padding: 0.18rem 0.55rem; }
    .ring-display { width: 88px; height: 88px; }
    .progress-ring { width: 88px; height: 88px; }
    .ring-pct { font-size: 1.1rem; }
    .ring-label { font-size: 0.48rem; }
    .trophy-display { padding: 0.75rem 1rem; }
    .trophy-icon { font-size: 1.8rem; }

    /* Cards */
    .glass { border-radius: var(--r3); }
    .glass:hover { transform: none; box-shadow: var(--sh); }
    .card-top { padding: 0.65rem 0.75rem; }
    .card-heading { font-size: 0.85rem; }
    .card-content { padding: 0.75rem; }

    /* Stats */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-bottom: 0.85rem; }
    .stat-card { padding: 0.65rem; gap: 0.45rem; border-radius: var(--r3); }
    .stat-card:hover { transform: none; }
    .stat-icon-wrap { font-size: 1.15rem; }
    .stat-num { font-size: 1.15rem; }
    .stat-label { font-size: 0.52rem; }

    /* Grids */
    .grid-2 { grid-template-columns: 1fr; gap: 0.75rem; }
    .quick-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.75rem; }
    .quick-card { padding: 0.65rem 0.5rem; flex-direction: column; text-align: center; gap: 0.25rem; border-radius: var(--r3); }
    .quick-card:hover { transform: none; }
    .quick-card::before { display: none; }
    .qc-icon { width: 32px; height: 32px; font-size: 1.05rem; }
    .qc-title { font-size: 0.7rem; }
    .qc-desc { font-size: 0.56rem; }
    .qc-arrow { display: none; }

    /* Forms */
    .form-grid, .quota-cards { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .filter-bar { flex-direction: column; gap: 0.5rem; }
    .filter-bar .field, .filter-btns { width: 100%; }
    .filter-btns .btn { flex: 1; }
    .filter-pills { gap: 0.2rem; }
    .filter-pill { padding: 0.2rem 0.45rem; font-size: 0.55rem; }
    .field input, .field select, .field textarea { font-size: 16px; padding: 0.55rem 0.75rem; border-radius: var(--r4); }

    /* Schedule */
    .schedule-row { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
    .sched-card { padding: 0.55rem 0.25rem; }
    .sched-card::after { display: none; }
    .sched-icon { font-size: 1rem; }
    .sched-time { font-size: 0.58rem; }
    .sched-act { font-size: 0.5rem; }
    .sl-item { padding: 0.5rem 0; gap: 0.45rem; }
    .sl-icon { font-size: 0.95rem; width: 1.2rem; }
    .sl-time { font-size: 0.72rem; }
    .sl-act { font-size: 0.65rem; }

    /* Streak */
    .streak-fire { font-size: 1.5rem; }
    .streak-num { font-size: 2rem; }
    .streak-label { font-size: 0.7rem; }

    /* Sabak */
    .sabak-big-num { font-size: 3rem; }
    .sabak-meta-row { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
    .sm-item { padding: 0.4rem; }
    .sm-v { font-size: 0.72rem; }
    .sabak-mini-grid { gap: 0.3rem; }
    .smg-item { padding: 0.35rem; }
    .smg-v { font-size: 0.92rem; }
    .steps { gap: 0.5rem; }
    .step-n { width: 22px; height: 22px; font-size: 0.65rem; }
    .step-t { font-size: 0.75rem; }
    .step-d { font-size: 0.68rem; }

    /* Tracker */
    .tracker-card { padding: 0.55rem 0.6rem; gap: 0.4rem; border-radius: var(--r3); }
    .tracker-card::before { display: none; }
    .tc-icon { font-size: 1.05rem; width: 1.2rem; }
    .tc-label { font-size: 0.75rem; }
    .tc-time { font-size: 0.6rem; }
    .tc-desc { font-size: 0.55rem; }
    .tc-check { width: 20px; height: 20px; font-size: 0.6rem; }
    .tc-check-sm { width: 16px; height: 16px; font-size: 0.52rem; }
    .score-live { padding: 0.5rem; }
    .score-live-val { font-size: 1.2rem; }
    .done-icon { font-size: 2.2rem; }
    .done-title { font-size: 1.1rem; }
    .result-grid { grid-template-columns: 1fr; gap: 0.2rem; }
    .result-item { padding: 0.3rem 0.45rem; font-size: 0.68rem; }
    .daily-results { gap: 0.2rem; }
    .daily-result-row { padding: 0.3rem 0.4rem; font-size: 0.68rem; gap: 0.3rem; }

    /* Rakat */
    .rakat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }
    .rakat-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .rakat-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .rakat-card { padding: 0.42rem 0.5rem; gap: 0.3rem; border-radius: var(--r4); }
    .rk-num { width: 22px; height: 22px; font-size: 0.65rem; }
    .rk-label { font-size: 0.68rem; }
    .rk-page { font-size: 0.55rem; }
    .rakat-all-btn { padding: 0.2rem 0.4rem; font-size: 0.58rem; }

    /* Calendar */
    .cal-switch-tabs { overflow-x: auto; scrollbar-width: none; }
    .cal-switch-tabs::-webkit-scrollbar { display: none; }
    .cal-tab { padding: 0.5rem 0.35rem; font-size: 0.68rem; }
    .cal-tab-icon { font-size: 0.78rem; }
    .cal-nav { padding: 0.4rem 0.55rem; gap: 0.3rem; }
    .cal-nav-btn { width: 24px; height: 24px; font-size: 0.85rem; }
    .cal-nav-title { font-size: 0.75rem; min-width: 100px; }
    .cal-today-btn { padding: 0.2rem 0.42rem; font-size: 0.55rem; }
    .mcal-grid { gap: 2px; }
    .mcal-header { padding: 0.3rem 0.1rem; font-size: 0.52rem; }
    .mcal-cell { min-height: 48px; padding: 0.2rem 0.1rem; border-radius: var(--r5); }
    .mcal-cell::before { display: none; }
    .mcal-cell:hover { transform: none; }
    .mcal-num { font-size: 0.65rem; }
    .mcal-score { font-size: 0.48rem; }
    .mcal-dots { display: none; }
    .mcal-legend { gap: 0.35rem; font-size: 0.52rem; }
    .mcal-leg-dot { width: 7px; height: 7px; }
    .year-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
    .year-month { padding: 0.4rem; border-radius: var(--r4); }
    .year-month:hover { transform: none; }
    .ym-title { font-size: 0.72rem; }
    .ym-day { font-size: 0.42rem; padding: 0.12rem; }
    .ym-day-header { font-size: 0.35rem; }
    .today-grid { grid-template-columns: 1fr; gap: 0.35rem; }
    .today-item { padding: 0.5rem; gap: 0.35rem; }
    .today-icon { font-size: 1rem; }
    .today-name { font-size: 0.7rem; }
    .today-pages { font-size: 0.62rem; }
    .today-extras { padding: 0.45rem; gap: 0.2rem; }
    .today-extras span { font-size: 0.62rem; }

    /* Tables */
    .premium-table { font-size: 0.68rem; min-width: 480px; }
    .premium-table th { padding: 0.4rem 0.45rem; font-size: 0.52rem; }
    .premium-table td { padding: 0.4rem 0.45rem; }
    .notes-cell { max-width: 80px; font-size: 0.55rem; }
    .meta-cell { font-size: 0.55rem; }

    /* Students */
    .student-grid { grid-template-columns: 1fr; gap: 0.65rem; }
    .student-card:hover { transform: none; }
    .sc-header { padding: 0.65rem; gap: 0.5rem; }
    .sc-avatar { width: 32px; height: 32px; font-size: 0.82rem; }
    .sc-name { font-size: 0.82rem; }
    .sc-stats { padding: 0.45rem 0.65rem; }
    .sc-stat { font-size: 0.68rem; }
    .sc-actions { padding: 0.35rem 0.65rem; gap: 0.2rem; }

    /* Type cards */
    .overview-type-cards { grid-template-columns: 1fr; gap: 0.55rem; }
    .ot-card { padding: 0.75rem; }
    .ot-card:hover { transform: none; }
    .ot-icon { width: 38px; height: 38px; font-size: 1.15rem; }
    .ot-count { font-size: 1.35rem; }
    .ot-label { font-size: 0.58rem; }
    .ot-stats { gap: 0.35rem; }
    .ot-stat { font-size: 0.55rem; }
    .type-divider { padding: 0.35rem 0; }
    .type-divider-label { font-size: 0.55rem; }
    .type-strip { padding: 0.15rem 0.38rem; font-size: 0.52rem; }
    .summary-row { grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }
    .summary-card { padding: 0.35rem; }
    .summary-label { font-size: 0.55rem; }

    /* Lists */
    .avatar-sm { width: 24px; height: 24px; font-size: 0.62rem; }
    .avatar-xs { width: 17px; height: 17px; font-size: 0.48rem; }
    .list-row { padding: 0.4rem 0; }
    .list-row:hover { margin: 0; padding-left: 0; background: none; }
    .list-name { font-size: 0.72rem; }
    .list-meta { font-size: 0.58rem; }
    .dot { width: 16px; height: 16px; font-size: 0.48rem; }
    .dot:hover { transform: none; }
    .mini-row { padding: 0.35rem 0.65rem; }
    .mini-title { font-size: 0.68rem; }
    .mini-date { font-size: 0.55rem; }
    .mini-badge { font-size: 0.52rem; padding: 0.08rem 0.25rem; }
    .month-mini-stats { gap: 0.3rem; }
    .mms-item { padding: 0.4rem; border-radius: var(--r4); }
    .mms-item:hover { transform: none; }
    .mms-val { font-size: 0.95rem; }
    .mms-label { font-size: 0.48rem; }
    .section-name { font-size: 0.72rem; }
    .section-range { font-size: 0.58rem; }
    .section-pct { font-size: 0.78rem; }

    /* Progress */
    .bar-track.bar-lg { height: 12px; }
    .bar-fill::after { display: none; }
    .bar-label-inside { font-size: 0.48rem; right: 3px; }
    .big-bar-label { font-size: 0.68rem; }

    /* Buttons etc */
    .btn { font-size: 0.78rem; padding: 0.45rem 0.95rem; }
    .btn::after { display: none; }
    .btn:hover { transform: none; }
    .btn:active { transform: scale(0.97); }
    .btn-lg { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
    .alert { padding: 0.55rem 0.65rem; font-size: 0.75rem; border-radius: var(--r4); }
    .alert-lg { padding: 0.75rem; }
    .badge { font-size: 0.55rem; padding: 0.14rem 0.42rem; }
    .badge-lg { font-size: 0.6rem; padding: 0.18rem 0.55rem; }
    .score-pill { font-size: 0.6rem; padding: 0.1rem 0.38rem; }
    .score-lg { font-size: 1.15rem; padding: 0.25rem 0.75rem; }
    .notes-box { padding: 0.5rem; font-size: 0.68rem; }
    .empty { padding: 1rem; }
    .empty-icon { font-size: 1.5rem; }
    .lock-display { padding: 1.5rem 1rem; }
    .lock-icon { font-size: 2rem; }
    .lock-title { font-size: 1.05rem; }
    .lock-desc { font-size: 0.75rem; }
    .wa-btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; width: 100%; border-radius: var(--r3); }

    /* Footer */
    .footer { padding: 1.25rem 0.85rem; padding-bottom: calc(1.25rem + var(--bottom-nav)); }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 0.75rem; }
    .footer-brand { justify-content: center; gap: 0.5rem; }
    .footer-title { font-size: 0.82rem; }
    .footer-sub { font-size: 0.52rem; }
    .footer-arabic { font-size: 1rem; }
    .footer-ayah { font-size: 0.6rem; }
    .footer-right { display: none; }

    /* Background */
    body::before { font-size: 2rem; line-height: 1.8; }

    /* Mobile drawer */
    .mobile-drawer { right: -290px; width: 270px; }
    .mobile-link { padding: 0.65rem 0.95rem; font-size: 0.85rem; }
    .mobile-user-card .nav-avatar { width: 28px; height: 28px; font-size: 0.65rem; }

    /* Login */
    .login-page { padding: 1rem 0.65rem; }
    .login-title { font-size: 1.4rem; }
    .login-bismillah { font-size: 0.95rem; }
    .login-card { border-radius: var(--r); }
    .login-card-top { padding: 1rem 1.15rem; }
    .login-card-top h2 { font-size: 1.1rem; }
    .login-form { padding: 1.05rem 1.15rem 1.15rem; }
    .login-input-wrap input { padding: 0.65rem 0.75rem 0.65rem 2.3rem; font-size: 16px; }
    .login-btn { padding: 0.65rem; font-size: 0.88rem; }
    .login-footer-text { padding: 0.75rem 1.15rem; font-size: 0.72rem; }
    .login-logo-ring { width: 65px; height: 65px; }
    .q-logo.lg { width: 42px; height: 42px; }
    .ring-orbit.ring-1 { width: 55px; height: 55px; }
    .ring-orbit.ring-2 { width: 70px; height: 70px; }
    .ring-orbit.ring-3 { width: 88px; height: 88px; }
}

/* ── VERY SMALL ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .container, .container-sm { padding: 0.65rem; }
    .hero-title, .welcome-greeting { font-size: 1.1rem; }
    .welcome-bismillah { font-size: 0.85rem; }
    .cal-tab span:not(.cal-tab-icon) { display: none; }
    .cal-tab { padding: 0.45rem; }
    .cal-nav-title { font-size: 0.68rem; min-width: 85px; }
    .quick-grid { gap: 0.3rem; }
    .quick-card { padding: 0.5rem; }
    .qc-icon { width: 28px; height: 28px; font-size: 0.92rem; }
    .qc-title { font-size: 0.65rem; }
    .stats-row { gap: 0.3rem; }
    .stat-card { padding: 0.5rem; }
    .stat-num { font-size: 1rem; }
    .rakat-grid { grid-template-columns: 1fr 1fr; }
    .rakat-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .year-grid { gap: 0.3rem; }
    .year-month { padding: 0.25rem; }
    .ym-day { font-size: 0.38rem; }
    .mcal-cell { min-height: 42px; }
    .mcal-num { font-size: 0.58rem; }
    .schedule-row { grid-template-columns: 1fr; }
    .sabak-big-num { font-size: 2.5rem; }
    .overview-type-cards { gap: 0.4rem; }
    .ot-card { padding: 0.6rem; }
    .ot-count { font-size: 1.1rem; }
    .footer { padding: 1rem 0.65rem; padding-bottom: calc(1rem + var(--bottom-nav)); }
}

/* ── TINY (iPhone SE) ─────────────────────────────────────── */
@media (max-width: 380px) {
    .bottom-nav-item { padding: 0.25rem 0.28rem; font-size: 0.48rem; min-width: 38px; }
    .bottom-nav-item .bn-icon { font-size: 1rem; }
    .bn-center .bn-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .bn-center { top: -6px; }
    .rakat-grid-3 { grid-template-columns: 1fr 1fr; }
    .rakat-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mcal-grid { gap: 1px; }
    .mcal-cell { min-height: 38px; }
    .hero-title, .welcome-greeting { font-size: 1rem; }
    .brand-title { font-size: 0.75rem; }
}

/* ── LANDSCAPE ────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .welcome-hero { padding: 0.65rem; }
    .welcome-greeting { font-size: 1rem; }
    .ring-display { width: 60px; height: 60px; }
    .progress-ring { width: 60px; height: 60px; }
    .ring-pct { font-size: 0.85rem; }
    .bottom-nav { height: 42px; }
    .main { padding-bottom: 46px; }
    .bottom-nav-item .bn-label { display: none; }
    .bn-center { top: -5px; }
    .bn-center .bn-icon { width: 32px; height: 32px; font-size: 0.88rem; }
}

/* ── TOUCH ────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .glass:hover, .quick-card:hover, .student-card:hover,
    .btn:hover, .stat-card:hover, .mms-item:hover,
    .sm-item:hover, .sched-card:hover, .today-item:hover,
    .year-month:hover, .mcal-cell:hover, .dot:hover,
    .list-row:hover, .ym-day:hover { transform: none; box-shadow: inherit; }

    .quick-card:active { transform: scale(0.97); transition: transform 0.08s ease; }
    .btn:active { transform: scale(0.96); }
    .tracker-card:active, .rakat-card:active { transform: scale(0.97); }
    input, select, textarea { font-size: 16px !important; }
}

/* ── INSTALL BANNER ───────────────────────────────────────── */
.install-banner { display: none; position: fixed; bottom: calc(var(--bottom-nav, 60px) + 4px); left: 0.55rem; right: 0.55rem; background: linear-gradient(135deg, var(--p), var(--p-dark)); border-radius: var(--r3); padding: 0.65rem; z-index: 998; box-shadow: 0 4px 18px rgba(124,58,237,0.25); border: 1px solid rgba(167,139,250,0.1); animation: installUp 0.35s var(--ease-out) forwards; }
.install-banner.show { display: block; }
.install-banner.hiding { animation: installDown 0.25s ease forwards; }
@keyframes installUp { from { transform: translateY(70px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes installDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(70px); opacity: 0; } }
.install-inner { display: flex; align-items: center; gap: 0.55rem; }
.install-icon { width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.install-text { flex: 1; }
.install-title { color: #fff; font-weight: 800; font-size: 0.75rem; }
.install-desc { color: rgba(255,255,255,0.45); font-size: 0.58rem; }
.install-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.install-btn { padding: 0.32rem 0.6rem; border-radius: 5px; font-size: 0.65rem; font-weight: 800; cursor: pointer; border: none; -webkit-tap-highlight-color: transparent; }
.install-btn-primary { background: #fff; color: var(--p); }
.install-btn-primary:active { transform: scale(0.95); }
.install-btn-close { background: rgba(255,255,255,0.1); color: #fff; }







/* ═══ 095_C20_MOBILE_ADMIN.css ═══ */

/* Admin mobile — covered in C19 */







/* ═══ 096_C21_MOBILE_HIFZ.css ═══ */

/* Hifz mobile — covered in C19 */







/* ═══ 097_C22_MOBILE_DOR.css ═══ */

/* Dor mobile — covered in C19 */







/* ═══ 334_ISLAMIC_LOGO.css ═══ */

/* ═════════════════════════════════════════════════════════════
   THE HIFZ EUTOPIA — RABBI ZIDNI ILMA MARK
   Large Open Quran · Animated Arabic Calligraphy
   ═════════════════════════════════════════════════════════════ */
.noor-logo {
    --noor-size: 46px;
    position: relative;
    width: var(--noor-size);
    height: var(--noor-size);
    display: inline-grid;
    place-items: center;
    flex: 0 0 var(--noor-size);
    vertical-align: middle;
    isolation: isolate;
}
.noor-logo--nav { --noor-size: 42px; }
.noor-logo--small { --noor-size: 34px; }
.noor-logo--medium { --noor-size: 58px; }
.noor-logo--large { --noor-size: 92px; }
.noor-logo__halo {
    position: absolute;
    inset: -24%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,.28) 0%, rgba(124,58,237,.09) 46%, transparent 70%);
    animation: rabbiHalo 4s ease-in-out infinite;
}
.noor-logo__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 5px 10px rgba(76,29,149,.22));
}
.noor-logo__calligraphy {
    fill: #FDE68A;
    font-family: 'Amiri Quran', 'Amiri', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    transform-origin: 50px 19px;
    animation: rabbiCalligraphy 3.4s ease-in-out infinite;
}
/* The Quran is intentionally large and central, with no moon/star overlap. */
.noor-logo__quran-left,
.noor-logo__quran-right {
    stroke: rgba(255,255,255,.8);
    stroke-width: 1.15;
    transform-origin: 50px 63px;
    animation: quranFloat 3.2s ease-in-out infinite;
}
.noor-logo__quran-left { fill: #6D28D9; }
.noor-logo__quran-right { fill: #8B5CF6; animation-delay: -.45s; }
.noor-logo__spine { fill: #FDE68A; }
.noor-logo__bookmark { fill: #D4A843; animation: bookmarkSway 2.8s ease-in-out infinite; transform-origin: 50px 37px; }
.noor-logo__page-line { stroke: rgba(255,255,255,.68); stroke-width: 1; stroke-linecap: round; }
.noor-logo__sparkle {
    position: absolute;
    right: 9%;
    bottom: 9%;
    color: #FDE68A;
    font-size: calc(var(--noor-size) * .16);
    line-height: 1;
    text-shadow: 0 0 7px rgba(253,230,138,.95);
    animation: rabbiSparkle 2.1s ease-in-out infinite;
}
.noor-logo__sparkle::before { content: '✦'; }
@keyframes rabbiHalo { 0%,100% { opacity:.5; transform:scale(.92); } 50% { opacity:1; transform:scale(1.08); } }
@keyframes rabbiCalligraphy { 0%,100% { opacity:.52; transform:translateY(1px); } 50% { opacity:1; transform:translateY(-1px); filter:drop-shadow(0 0 3px rgba(253,230,138,.75)); } }
@keyframes quranFloat { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-2px) rotate(.6deg); } }
@keyframes bookmarkSway { 0%,100% { transform:rotate(-3deg); } 50% { transform:rotate(3deg); } }
@keyframes rabbiSparkle { 0%,100% { opacity:.3; transform:scale(.7); } 50% { opacity:1; transform:scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .noor-logo *, .noor-logo__halo { animation-duration: 6s !important; } }


/* ═══ 342_MOBILE_UX_POLISH.css ═══ */

/* ============================================================
   UNIVERSAL MOBILE & UX POLISH
   Final responsive layer for all active academy dashboards/pages
   ============================================================ */

/* Shared aliases used by the older feature pages. */
:root {
    --c-glass: rgba(255, 255, 255, 0.88);
    --c-border: var(--b, #E8E5F2);
    --bg-light: var(--w, #FFFFFF);
}

/* Give every active feature page the same refined surface language. */
.glass-crystal {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,246,255,.88));
    border: 1px solid rgba(124,58,237,.12);
    border-radius: var(--r2, 24px);
    box-shadow: 0 14px 34px rgba(48,30,92,.075);
    color: var(--t, #1A1530);
    overflow: hidden;
}

.matte-panel {
    background: linear-gradient(135deg, var(--bg2, #F3F1FA), var(--bg, #FAFAFF));
    border: 1px solid var(--b2, #F0EEF8);
    border-radius: var(--r3, 12px);
    padding: .9rem;
    color: var(--t, #1A1530);
}

.arabic-accent {
    color: var(--p, #7C3AED);
    direction: rtl;
    font-family: var(--fq, Georgia, serif);
    line-height: 1.55;
}

/* Shared madrasa notices keep important academic communication visible without interrupting learning. */
.madrasa-notice-strip{position:relative;z-index:2;margin-top:var(--nav,64px);padding:.55rem 1rem;border-bottom:1px solid rgba(124,58,237,.12);background:var(--p-pale)}.madrasa-notice-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.6rem;color:var(--t2)}.madrasa-notice-icon{font-size:1rem}.madrasa-notice-inner strong{display:block;color:var(--t);font-size:.7rem}.madrasa-notice-inner div span{display:block;margin-top:.08rem;color:var(--t3);font-size:.62rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.madrasa-notice-inner a{padding:.32rem .48rem;border:1px solid var(--b);border-radius:8px;background:var(--w);color:var(--p);font-size:.58rem;font-weight:900;text-decoration:none;white-space:nowrap}.madrasa-notice-urgent{background:var(--red-bg);border-bottom-color:rgba(239,68,68,.2)}.madrasa-notice-important{background:var(--yel-bg);border-bottom-color:rgba(245,158,11,.2)}.madrasa-notice-strip + .main{padding-top:.75rem}body.admin-preview-mode .madrasa-notice-strip{margin-top:calc(var(--nav,64px) + 38px)}body.dark-theme .madrasa-notice-strip{background:var(--p-pale);border-color:var(--b)}body.dark-theme .madrasa-notice-urgent{background:#421725}body.dark-theme .madrasa-notice-important{background:#3E2B0B}body.dark-theme .madrasa-notice-inner a{background:var(--bg2);border-color:var(--b)}@media(max-width:768px){.madrasa-notice-strip{margin-top:var(--nav,54px);padding:.45rem .65rem}.madrasa-notice-inner{grid-template-columns:auto minmax(0,1fr) auto;gap:.4rem}.madrasa-notice-inner strong{font-size:.61rem}.madrasa-notice-inner div span{font-size:.54rem}.madrasa-notice-inner a{padding:.28rem .35rem;font-size:.5rem}body.admin-preview-mode .madrasa-notice-strip{margin-top:calc(var(--nav,54px) + 34px)}}

/* Keyboard users can move past the persistent navigation without tabbing through every control. */
.skip-link { position:fixed; z-index:3000; top:.65rem; left:.65rem; padding:.65rem .85rem; border-radius:10px; background:#FFFFFF; color:var(--p, #7C3AED); box-shadow:0 8px 22px rgba(0,0,0,.18); font-size:.75rem; font-weight:900; text-decoration:none; transform:translateY(-160%); transition:transform .18s ease; }
.skip-link:focus { transform:translateY(0); outline:3px solid var(--p-light, #A78BFA); outline-offset:2px; }

/* Safe, clearly labelled demo preview mode for an administrator. */
.admin-preview-bar{position:fixed;top:var(--nav,64px);left:0;right:0;z-index:998;min-height:38px;display:flex;align-items:center;justify-content:center;gap:1rem;padding:.42rem 1rem;background:linear-gradient(90deg,#0F766E,#059669);box-shadow:0 6px 18px rgba(5,150,105,.2);color:#ECFDF5;font-size:.68rem;font-weight:800;text-align:center}.admin-preview-bar a{display:inline-flex;align-items:center;min-height:28px;padding:.28rem .55rem;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(255,255,255,.12);color:#fff;font-size:.62rem;font-weight:900;text-decoration:none}.admin-preview-bar a:hover{background:rgba(255,255,255,.22);color:#fff}body.admin-preview-mode .main{padding-top:calc(var(--nav,64px) + 38px)}@media(max-width:768px){.admin-preview-bar{top:var(--nav,54px);min-height:34px;justify-content:space-between;gap:.5rem;padding:.3rem .65rem;font-size:.56rem;line-height:1.25}.admin-preview-bar span{min-width:0;text-align:left}.admin-preview-bar a{flex:none;min-height:26px;padding:.22rem .4rem;font-size:.52rem}body.admin-preview-mode .main{padding-top:calc(var(--nav,54px) + 34px)}}

/* Readability and touch safety across the shared dashboard system. */
button, a, input, select, textarea { touch-action: manipulation; }
canvas, img, svg { max-width: 100%; }
.table-scroll, .heatmap-scroll { scrollbar-color: var(--p-light, #A78BFA) transparent; }

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .28rem .62rem;
    border: 1px solid rgba(196,181,253,.24);
    border-radius: 999px;
    background: rgba(124,58,237,.14);
    color: var(--p-lighter, #DDD6FE);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
}

.page-hero .hero-subtitle { color: rgba(255,255,255,.68); line-height: 1.55; }
.page-hero .btn-outline { min-height: 40px; border-color: rgba(196,181,253,.33); color: var(--p-lighter, #DDD6FE); }
.page-hero .btn-outline:hover { border-color: var(--p-lighter, #DDD6FE); color: #fff; }

/* Older Hifz extras now use the current visual system. */
.student-roster-controls { min-width: 0; }
.public-khatm-action-grid,
.public-khatm-insights-grid { min-width: 0; }

@media (max-width: 1024px) {
    .container { max-width: 100%; }
    .page-hero .hero-inner { max-width: 100%; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: calc(var(--nav, 54px) + .65rem); }
    body { overflow-x: clip; }

    .container,
    .container-sm {
        width: 100%;
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .page-hero {
        padding: 1rem .9rem;
    }

    .page-hero.hero-sm { padding: .82rem .9rem; }
    .page-hero .hero-inner { align-items: stretch; gap: .55rem; }
    .page-hero .hero-left { min-width: 0; }
    .page-hero .hero-title { font-size: clamp(1.18rem, 5.5vw, 1.45rem); line-height: 1.15; }
    .page-hero .hero-subtitle { font-size: .72rem; margin-top: .18rem; }
    .page-hero .hero-actions { width: 100%; }
    .page-hero .hero-actions .btn { flex: 1 1 130px; }
    .page-hero .btn-outline { min-height: 38px; justify-content: center; font-size: .72rem; }

    .glass-crystal { border-radius: 16px; box-shadow: 0 9px 24px rgba(48,30,92,.07); }
    .matte-panel { padding: .72rem; border-radius: 10px; }
    .arabic-accent { font-size: clamp(1rem, 5vw, 1.38rem) !important; line-height: 1.45; }

    /* Inline legacy headings keep a readable scale without horizontal clipping. */
    .glass-crystal h1[style] {
        font-size: clamp(1.65rem, 8vw, 2.25rem) !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere;
    }
    .glass-crystal h2[style] {
        font-size: clamp(1.08rem, 5.5vw, 1.4rem) !important;
        line-height: 1.2 !important;
    }
    .glass-crystal p[style] { font-size: .82rem !important; line-height: 1.55 !important; }

    .btn:not(.btn-xs) { min-height: 40px; }
    .field input,
    .field select,
    .field textarea { min-height: 44px; }

    .table-scroll,
    .heatmap-scroll {
        margin-inline: -.1rem;
        border: 1px solid var(--b2, #F0EEF8);
        border-radius: 10px;
        background: rgba(255,255,255,.5);
    }
    .premium-table { min-width: 520px; }

    /* 100-button pages retain their required grid but become comfortable for thumbs. */
    .dashboard-app-library { margin-top: 1.15rem !important; }
    .dashboard-app-library-head { padding: .9rem !important; border-radius: 14px 14px 0 0 !important; }
    .dashboard-app-library-head h2 { font-size: .98rem !important; }
    .dashboard-app-library-head p { font-size: .66rem !important; line-height: 1.4; }
    .dashboard-app-count { padding: .34rem .55rem !important; font-size: .56rem !important; }
    .dashboard-app-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: .5rem !important; padding: .65rem !important; }
    .dashboard-app-button { min-height: 75px !important; padding: .62rem !important; border-radius: 10px !important; }
    .dashboard-app-icon { font-size: 1rem !important; }
    .dashboard-app-label { font-size: .64rem !important; }
    .dashboard-app-slot { font-size: .49rem !important; }

    .mobile-drawer { width: min(88vw, 330px); right: -330px; }
    .mobile-drawer-header { padding: .9rem; }
    .mobile-link { min-height: 44px; padding: .68rem .95rem; }
    .mobile-public-intro { padding: .8rem .95rem .35rem; color: var(--p-light, #A78BFA); font-size: .58rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
    .bottom-nav { padding-bottom: max(env(safe-area-inset-bottom, 0px), 2px); }

    /* Keep decorative animation behind the words on compact screens. */
    .welcome-particles { opacity: .28; }

    /* Student roster: controls become a clean compact mobile control group. */
    .student-roster-hero {
        padding: 1.15rem !important;
        margin-bottom: 1rem !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    .student-roster-controls {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: .55rem !important;
        width: 100%;
    }
    .student-roster-controls > div:first-child,
    .student-roster-controls .filter-pills {
        grid-column: 1 / -1;
        width: 100%;
    }
    .student-roster-controls input { width: 100% !important; min-height: 44px; }
    .student-roster-controls .filter-pills { justify-content: center; overflow-x: auto; }
    .student-roster-controls > a { min-height: 42px; padding: .7rem 1rem !important; text-align: center; }
    #studentGrid { grid-template-columns: 1fr !important; gap: .85rem !important; }

    /* Public Khatm: stack the larger dashboard columns rather than hiding them. */
    .epic-hero {
        margin: .85rem auto 1.1rem !important;
        padding: 1.45rem 1.05rem !important;
        border-radius: 19px;
        text-align: center !important;
    }
    .epic-hero .arabic-accent { margin-bottom: .55rem !important; }
    .epic-hero h1 { font-size: clamp(1.75rem, 8.5vw, 2.25rem) !important; line-height: 1.08 !important; }
    .epic-hero p { font-size: .8rem !important; line-height: 1.55 !important; }
    .public-khatm-action-grid,
    .public-khatm-insights-grid { grid-template-columns: 1fr !important; gap: .85rem !important; margin-bottom: 1rem !important; }
    .action-btn { min-height: 52px; padding: .85rem !important; border-radius: 12px !important; font-size: 1rem !important; }
    .stat-block { padding: 1rem !important; }
    .stat-block-val { font-size: 1.8rem !important; }
    .stat-block-lbl { font-size: .58rem !important; }

    /* Legacy leaderboard podium remains compact and readable. */
    .podium-container { margin: 2.2rem 0 1.5rem !important; gap: 2.1rem !important; min-height: 0 !important; }
    .podium-card { width: 100% !important; max-width: none !important; min-height: 180px; padding: 2.8rem 1rem 1rem !important; }
    .podium-avatar { width: 62px !important; height: 62px !important; top: -31px !important; font-size: 1.4rem !important; }
    .podium-name { margin-top: .55rem !important; font-size: 1.08rem !important; }
    .podium-xp { font-size: 1.35rem !important; }
    .lb-row { padding: .85rem !important; gap: .55rem !important; }

    /* Fixed action bars never fight the mobile navigation. */
    .floating-action-bar {
        bottom: calc(var(--bottom-nav, 60px) + max(env(safe-area-inset-bottom, 0px), 8px)) !important;
        width: calc(100% - 20px) !important;
        padding: .4rem !important;
    }
    .fab-progress-wrap { margin: 0 .6rem !important; }
    .fab-btn { padding: .72rem .9rem !important; font-size: .78rem !important; }
}

@media (max-width: 390px) {
    .container,
    .container-sm { padding-left: .7rem; padding-right: .7rem; }
    .dashboard-app-button { min-height: 70px !important; padding: .52rem !important; }
    .dashboard-app-label { font-size: .61rem !important; }
    .page-hero .hero-title { font-size: 1.13rem; }
    .page-hero .hero-badge { font-size: .54rem; }
}

/* Account-level choices saved from Settings. */
body.density-compact .container,
body.density-compact .container-sm { padding-top: 1rem; padding-bottom: 1rem; }
body.density-compact .card-content { padding: .85rem; }
body.density-compact .dashboard-app-button { min-height: 70px; }
body.density-compact .dashboard-app-library { margin-top: 1.15rem; }

body.motion-calm *,
body.motion-calm *::before,
body.motion-calm *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
}
body.motion-calm .welcome-particles { display:none; }
body.dark-theme .dashboard-app-library-head { background:linear-gradient(135deg,#211843,#151025); border-color:var(--b); }
body.dark-theme .dashboard-app-library-tools { background:#16102B; border-color:var(--b); }
body.dark-theme .dashboard-feature-search { background:#100A20; border-color:var(--b2); color:var(--t); }
body.dark-theme .dashboard-search-result { color:var(--t3); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* ═══ 354_MADRASA_VISUAL_SYSTEM.css ═══ */

/* ============================================================
   MADRASA VISUAL SYSTEM — REFINED ISLAMIC DESIGN
   Matte night theme, Arabic calligraphy texture, calm mobile-first surfaces
   ============================================================ */

:root {
    --madrasa-ink: #10191B;
    --madrasa-night: #0D1416;
    --madrasa-slate: #182225;
    --madrasa-line: #2A3938;
    --madrasa-gold: #C9A25D;
    --madrasa-gold-soft: #E9D6A8;
    --madrasa-ivory: #F7F4EC;
}

/* A subtle original geometric pattern, not a copied calligraphy image. */
body::after {
    background:
        radial-gradient(circle at 12% 9%, rgba(124,58,237,.045), transparent 31%),
        radial-gradient(circle at 88% 93%, rgba(201,162,93,.035), transparent 34%),
        linear-gradient(45deg, transparent 48%, rgba(124,58,237,.018) 49%, rgba(124,58,237,.018) 51%, transparent 52%) !important;
    background-size: auto, auto, 36px 36px !important;
}

/* ── NIGHT MADRASA MODE ────────────────────────────────────── */
body.dark-theme {
    --bg: #0D1416;
    --bg2: #141E20;
    --bg3: #1C292A;
    --w: #182225;
    --t: #F3F0E7;
    --t1: #FFFFFF;
    --t2: #D4D1C6;
    --t3: #9DA79F;
    --t4: #6E7A75;
    --b: #2A3938;
    --b1: #2A3938;
    --b2: #223231;
    --b3: #374A47;
    --p: #9A86C1;
    --p-dark: #78639F;
    --p-deep: #453562;
    --p-light: #B9A8D9;
    --p-lighter: #D6CBEA;
    --p-pale: #241E34;
    --p-glow: rgba(154,134,193,.16);
    --p-glow-strong: rgba(154,134,193,.25);
    --gold: #C9A25D;
    --gold-l: #E9D6A8;
    --gold-d: #A57F3E;
    --gold-glow: rgba(201,162,93,.14);
    --grn: #54C19A;
    --grn-bg: #12352D;
    --red: #E78787;
    --red-bg: #402326;
    --yel: #E4BA64;
    --yel-bg: #3B2D14;
    --blu: #78AEEA;
    --blu-bg: #182C43;
    background: #0D1416 !important;
    color: var(--t) !important;
}

body.dark-theme::before {
    color: var(--madrasa-gold) !important;
    opacity: .035 !important;
    filter: none !important;
}

body.dark-theme::after {
    background:
        radial-gradient(circle at 10% 5%, rgba(201,162,93,.06), transparent 34%),
        radial-gradient(circle at 88% 92%, rgba(154,134,193,.075), transparent 37%),
        linear-gradient(45deg, transparent 48%, rgba(201,162,93,.022) 49%, rgba(201,162,93,.022) 51%, transparent 52%) !important;
    background-size: auto, auto, 42px 42px !important;
}

/* Matte controls: no glossy glare, no moving shine, no plastic gradients. */
body.dark-theme .btn::after,
body.dark-theme .dashboard-app-button::after,
body.dark-theme .quick-card::before {
    display: none !important;
}

body.dark-theme .btn,
body.dark-theme .dashboard-app-button,
body.dark-theme .quick-card,
body.dark-theme .tracker-period-link,
body.dark-theme .mobile-device-control {
    box-shadow: none !important;
}

body.dark-theme .btn-primary,
body.dark-theme .tarteeb-submit .btn-primary,
body.dark-theme .feedback-submit .btn-primary,
body.dark-theme .notice-submit .btn-primary {
    background: #806A9F !important;
    border-color: #A993C9 !important;
    color: #FFFFFF !important;
}

body.dark-theme .btn-primary:hover,
body.dark-theme .tarteeb-submit .btn-primary:hover,
body.dark-theme .feedback-submit .btn-primary:hover,
body.dark-theme .notice-submit .btn-primary:hover {
    background: #927BB2 !important;
    transform: translateY(-1px) !important;
}

body.dark-theme .btn-ghost,
body.dark-theme .btn-outline {
    background: transparent !important;
    border-color: #4A5D58 !important;
    color: #E6E0D1 !important;
}

body.dark-theme .glass,
body.dark-theme .card,
body.dark-theme .glass-crystal,
body.dark-theme .matte-panel,
body.dark-theme .dashboard-app-library-head,
body.dark-theme .dashboard-app-library-tools,
body.dark-theme .dashboard-app-grid {
    background: #182225 !important;
    border-color: #2A3938 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.18) !important;
}

body.dark-theme .card-top,
body.dark-theme .dashboard-app-library-head,
body.dark-theme .feedback-card-head,
body.dark-theme .operations-card-head,
body.dark-theme .notice-admin-head,
body.dark-theme .tarteeb-prayer-head,
body.dark-theme .tarteeb-card-head {
    background: linear-gradient(135deg, #211C30, #172223) !important;
    border-bottom-color: #2A3938 !important;
}

body.dark-theme .dashboard-app-button {
    background: #141E20 !important;
    border-color: #2A3938 !important;
    color: #ECE9DF !important;
}

body.dark-theme .dashboard-app-button.live {
    background: #211C30 !important;
    border-color: rgba(201,162,93,.28) !important;
}

body.dark-theme .dashboard-app-button:hover {
    border-color: var(--madrasa-gold) !important;
    transform: translateY(-1px) !important;
}

body.dark-theme .page-hero,
body.dark-theme .welcome-hero {
    background: linear-gradient(135deg, #0C1517, #132124 62%, #1B1730) !important;
    border-bottom-color: rgba(201,162,93,.14) !important;
}

/* Replace glossy purple hero glare with a restrained night-madrasa surface. */
body.dark-theme .admin-command-hero,
body.dark-theme .hifz-lead,
body.dark-theme .companion-hero {
    background: linear-gradient(135deg, #142221, #1C2130 60%, #27203A) !important;
    border: 1px solid rgba(201,162,93,.20) !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.22) !important;
}
body.dark-theme .admin-command-hero::after { display:none !important; }
body.dark-theme .admin-command-hero::before,
body.dark-theme .hifz-lead::after,
body.dark-theme .companion-hero::after { color: rgba(201,162,93,.08) !important; opacity: 1 !important; }
body.dark-theme .admin-command-note,
body.dark-theme .hifz-direction,
body.dark-theme .hifz-lead-stat { background: rgba(0,0,0,.18) !important; border-color: rgba(201,162,93,.14) !important; }
body.dark-theme .hifz-progress-fill { background: linear-gradient(90deg, #C9A25D, #E9D6A8) !important; }


body.dark-theme .page-hero::before,
body.dark-theme .welcome-hero::before {
    color: var(--madrasa-gold) !important;
    opacity: .06 !important;
}

body.dark-theme .page-hero .hero-inner::after {
    content: 'رَبِّ زِدْنِي عِلْمًا';
    position: absolute;
    right: 0;
    bottom: -1.1rem;
    font-family: var(--fq);
    font-size: 2.1rem;
    color: rgba(201,162,93,.11);
    direction: rtl;
    pointer-events: none;
}

body.dark-theme .page-hero .hero-left,
body.dark-theme .page-hero .hero-inner > * { position: relative; z-index: 1; }

body.dark-theme .madrasa-notice-strip {
    background: #1A2423 !important;
    border-color: #3B4C46 !important;
}

body.dark-theme .madrasa-notice-important { background: #3B2D14 !important; }
body.dark-theme .madrasa-notice-urgent { background: #402326 !important; }

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .field input,
body.dark-theme .field select,
body.dark-theme .field textarea {
    background: #10191B !important;
    border-color: #344542 !important;
    color: #F3F0E7 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder { color: #77837D !important; }

body.dark-theme .premium-table th { background: #211C30 !important; color: #DED8CB !important; }
body.dark-theme .premium-table td { border-bottom-color: #263735 !important; }
body.dark-theme .premium-table tr:hover td { background: #1D2928 !important; }

/* Clean, aligned icon-only dark mode switch. */
.header-desktop-actions #themeToggle {
    background: #1A2423 !important;
    border: 1px solid #3B4C46 !important;
    color: var(--madrasa-gold) !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}
.header-desktop-actions #themeToggle:hover {
    background: #263332 !important;
    border-color: var(--madrasa-gold) !important;
    transform: translateY(-1px) !important;
}

body.dark-theme .nav,
body.dark-theme .mobile-drawer,
body.dark-theme .bottom-nav {
    background: #0C1517 !important;
    border-color: #263735 !important;
    box-shadow: none !important;
}

body.dark-theme footer {
    background: linear-gradient(180deg, #111B1D, #0B1113) !important;
}

/* ── CALM ISLAMIC LIGHT REFINEMENT ─────────────────────────── */
body:not(.dark-theme) .page-hero {
    border-bottom-color: rgba(201,162,93,.16);
}

body:not(.dark-theme) .page-hero::before {
    color: rgba(124,58,237,.16);
}

body:not(.dark-theme) .glass:hover,
body:not(.dark-theme) .card:hover {
    border-color: rgba(201,162,93,.25);
}

/* Mobile stays calm: lower decoration and remove harsh hover movement. */
@media (max-width: 768px) {
    body.dark-theme .page-hero .hero-inner::after { font-size: 1.45rem; bottom: -.8rem; }
    body.dark-theme .glass:hover,
    body.dark-theme .card:hover,
    body.dark-theme .dashboard-app-button:hover { transform: none !important; }
    body.dark-theme .btn:hover { transform: none !important; }
}

/* ── PUBLIC PAGES: ORIGINAL CALLIGRAPHIC ACCENTS ──────────── */
body.madrasa-public {
    position: relative;
    isolation: isolate;
}
/* ROUND 14: scoped with :not(.has-custom-bg). This decorative ayah shares
   `body::after` with the wallpaper dimming overlay in
   371_WALLPAPER_THEME.css.php. Only ONE ::after box exists per element, so
   the geometry below (left:50%, max-width, rotate) was being applied to the
   overlay too, turning the full-screen veil into a rotated half-width slab --
   the hard dark band down the left of the landing page. When a custom
   wallpaper is active the overlay owns ::after and this decoration stands down. */
body.madrasa-public:not(.has-custom-bg)::after {
    content: 'رَبِّ زِدْنِي عِلْمًا';
    position: fixed;
    right: -2.5rem;
    bottom: 4%;
    z-index: -1;
    color: rgba(124,58,237,.055);
    direction: rtl;
    font-family: 'Amiri Quran','Amiri',serif;
    font-size: clamp(4rem,10vw,9rem);
    line-height: 1;
    pointer-events: none;
    transform: rotate(-8deg);
}
body.madrasa-public .nav,
body.madrasa-public .top,
body.madrasa-public .nav-land {
    box-shadow: 0 12px 32px rgba(57,35,96,.07) !important;
    border-color: rgba(201,162,93,.18) !important;
}
body.madrasa-public .card,
body.madrasa-public .glass-crystal {
    border-color: rgba(124,58,237,.12) !important;
    box-shadow: 0 18px 48px rgba(57,35,96,.07) !important;
}
body.madrasa-public .badge,
body.madrasa-public .eyebrow,
body.madrasa-public .tag {
    border-color: rgba(201,162,93,.24) !important;
}
@media(max-width:600px){
    body.madrasa-public:not(.has-custom-bg)::after{font-size:4.2rem;right:-1.2rem;bottom:8%;opacity:.75}
}

@media (prefers-reduced-motion: reduce) {
    body.dark-theme *,
    body.dark-theme *::before,
    body.dark-theme *::after { transition-duration: .01ms !important; }
}

/* ── SITE-WIDE COHERENCE PASS ─────────────────────────────────
   Shared finish for every role: quieter surfaces, clearer hierarchy,
   accessible form states and a mobile-first working surface. */
:root {
    --madrasa-radius: 18px;
    --madrasa-radius-sm: 12px;
    --madrasa-shadow: 0 10px 26px rgba(34, 25, 61, .055);
    --madrasa-shadow-hover: 0 16px 34px rgba(34, 25, 61, .09);
}

/* Keyboard clarity matters just as much as visual polish. */
body:not(.madrasa-public) :focus-visible,
body.madrasa-public :focus-visible {
    outline: 3px solid rgba(201, 162, 93, .48) !important;
    outline-offset: 3px;
}

/* Internal pages share a quiet paper-and-ink surface rather than competing
   gradients. Individual dashboard styles can still add their own identity. */
body:not(.madrasa-public) .card,
body:not(.madrasa-public) .glass,
body:not(.madrasa-public) .glass-crystal {
    min-width: 0;
    border-color: rgba(92, 78, 128, .14);
    border-radius: var(--madrasa-radius);
    box-shadow: var(--madrasa-shadow);
}

body:not(.dark-theme):not(.madrasa-public) .card,
body:not(.dark-theme):not(.madrasa-public) .glass,
body:not(.dark-theme):not(.madrasa-public) .glass-crystal {
    background: rgba(255, 255, 255, .92);
}

body:not(.madrasa-public) .card-top,
body:not(.madrasa-public) .feedback-card-head,
body:not(.madrasa-public) .operations-card-head,
body:not(.madrasa-public) .notice-admin-head {
    position: relative;
    overflow: hidden;
    border-bottom-color: rgba(201, 162, 93, .17);
}

body:not(.madrasa-public) .card-top::after,
body:not(.madrasa-public) .feedback-card-head::after,
body:not(.madrasa-public) .operations-card-head::after,
body:not(.madrasa-public) .notice-admin-head::after {
    content: '۞';
    position: absolute;
    right: 1rem;
    top: 50%;
    color: rgba(201, 162, 93, .12);
    font-family: var(--fa);
    font-size: 2.25rem;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

body:not(.madrasa-public) .card-top > *,
body:not(.madrasa-public) .feedback-card-head > *,
body:not(.madrasa-public) .operations-card-head > *,
body:not(.madrasa-public) .notice-admin-head > * {
    position: relative;
    z-index: 1;
}

body:not(.madrasa-public) .card-heading,
body:not(.madrasa-public) .card-top h2,
body:not(.madrasa-public) .section-heading {
    letter-spacing: -.025em;
}

/* Preserve an elevated feel on desktop without jumpy, game-like movement. */
@media (hover: hover) and (pointer: fine) {
    body:not(.dark-theme):not(.madrasa-public) .card.glass:hover,
    body:not(.dark-theme):not(.madrasa-public) .glass-crystal:hover {
        border-color: rgba(201, 162, 93, .31);
        box-shadow: var(--madrasa-shadow-hover);
    }
}

/* Matte buttons: no shine sweep, no plastic gloss. */
body:not(.madrasa-public) .btn::after,
body:not(.madrasa-public) .dashboard-app-button::after {
    display: none !important;
}

body:not(.madrasa-public) .btn {
    border-width: 1px;
    box-shadow: 0 3px 10px rgba(36, 25, 67, .07);
}

body:not(.madrasa-public) .btn-primary {
    background: #7558A6;
    border-color: #7558A6;
    box-shadow: 0 5px 14px rgba(86, 63, 130, .16);
}

body:not(.madrasa-public) .btn-primary:hover {
    background: #684A98;
    border-color: #684A98;
    box-shadow: 0 7px 17px rgba(86, 63, 130, .20);
}

body:not(.madrasa-public) .btn-gold {
    background: #C39A55;
    border-color: #C39A55;
    box-shadow: 0 5px 14px rgba(195, 154, 85, .16);
}

body:not(.madrasa-public) .btn-gold:hover {
    background: #AA8040;
    border-color: #AA8040;
    box-shadow: 0 7px 17px rgba(170, 128, 64, .20);
}

body:not(.madrasa-public) .btn-ghost {
    background: rgba(255, 255, 255, .5);
    border-color: rgba(92, 78, 128, .16);
}

/* Form controls use a calm inset field treatment across all working pages. */
body:not(.madrasa-public) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body:not(.madrasa-public) select,
body:not(.madrasa-public) textarea {
    min-width: 0;
    border-color: rgba(92, 78, 128, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body:not(.madrasa-public) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
body:not(.madrasa-public) select:focus,
body:not(.madrasa-public) textarea:focus {
    border-color: rgba(117, 88, 166, .72) !important;
    box-shadow: 0 0 0 3px rgba(117, 88, 166, .10), inset 0 1px 0 rgba(255, 255, 255, .62) !important;
}

body:not(.madrasa-public) input[type="checkbox"]:not(.tracker-cb),
body:not(.madrasa-public) input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: var(--p);
}

body:not(.madrasa-public) input[type="radio"] {
    -webkit-appearance: radio;
}

body.dark-theme input[type="checkbox"]:not(.tracker-cb),
body.dark-theme input[type="radio"] {
    accent-color: var(--madrasa-gold);
}

/* Tables read more like an academic register, including on operational pages. */
body:not(.madrasa-public) .table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(92, 78, 128, .12);
    border-radius: var(--madrasa-radius-sm);
    background: var(--w);
    scrollbar-color: var(--gold) transparent;
}

body:not(.madrasa-public) .premium-table th {
    letter-spacing: .055em;
    font-size: .61rem;
    text-transform: uppercase;
}

body:not(.madrasa-public) .premium-table td {
    vertical-align: middle;
}

body:not(.madrasa-public) .premium-table tr:last-child td {
    border-bottom: 0;
}

/* Shared dashboard tiles become more readable at a glance. */
body:not(.madrasa-public) .dashboard-app-button {
    border-radius: 14px;
    border-color: rgba(92, 78, 128, .15);
}

body:not(.madrasa-public) .dashboard-app-button.live {
    border-color: rgba(201, 162, 93, .34);
}

body:not(.madrasa-public) .dashboard-app-label {
    line-height: 1.18;
}

/* Header, hero and notice hierarchy is quieter but more intentional. */
body:not(.madrasa-public) .page-hero {
    border-bottom-color: rgba(201, 162, 93, .20);
}

body:not(.madrasa-public) .hero-badge,
body:not(.madrasa-public) .page-hero .hero-badge {
    border: 1px solid rgba(201, 162, 93, .25);
    background: rgba(255, 255, 255, .08);
    letter-spacing: .075em;
}

body:not(.madrasa-public) .madrasa-notice-strip {
    border-bottom-color: rgba(201, 162, 93, .18);
}

/* New staff planning surfaces and older cards both remain compact and safe. */
body:not(.madrasa-public) .review-card,
body:not(.madrasa-public) .muraajaah-card,
body:not(.madrasa-public) .tarteeb-card,
body:not(.madrasa-public) .operations-card {
    border-radius: var(--madrasa-radius);
}

/* Mobile: control density, stacking and hero actions without horizontal spill. */
@media (max-width: 700px) {
    body:not(.madrasa-public) .page-hero .hero-inner {
        align-items: flex-start;
    }

    body:not(.madrasa-public) .page-hero .hero-actions,
    body:not(.madrasa-public) .page-hero .hero-right {
        width: 100%;
        min-width: 0;
    }

    body:not(.madrasa-public) .page-hero .hero-actions {
        display: flex;
        gap: .45rem;
        flex-wrap: wrap;
    }

    body:not(.madrasa-public) .page-hero .hero-actions .btn {
        flex: 1 1 145px;
        min-width: 0;
        white-space: normal;
    }

    body:not(.madrasa-public) .card-top,
    body:not(.madrasa-public) .card-content {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    body:not(.madrasa-public) .card-top::after,
    body:not(.madrasa-public) .feedback-card-head::after,
    body:not(.madrasa-public) .operations-card-head::after,
    body:not(.madrasa-public) .notice-admin-head::after {
        right: .7rem;
        font-size: 1.8rem;
    }

    body:not(.madrasa-public) .table-scroll {
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    body:not(.madrasa-public) .btn {
        min-height: 40px;
        padding-left: .8rem;
        padding-right: .8rem;
    }

    body:not(.madrasa-public) .page-hero .hero-actions .btn {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.madrasa-public) *,
    body:not(.madrasa-public) *::before,
    body:not(.madrasa-public) *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Matte role heroes replace the remaining bright application-style gradients.
   The deep ink, muted purple and gold language carries through Admin, Hifz
   and Companion spaces without relying on copied artwork. */
body:not(.dark-theme):not(.madrasa-public) .admin-command-hero,
body:not(.dark-theme):not(.madrasa-public) .hifz-lead,
body:not(.dark-theme):not(.madrasa-public) .companion-hero {
    background: linear-gradient(135deg, #211831 0%, #3A2857 58%, #263C3A 100%) !important;
    border: 1px solid rgba(201, 162, 93, .27) !important;
    box-shadow: 0 16px 34px rgba(35, 23, 58, .16) !important;
}

body:not(.dark-theme):not(.madrasa-public) .admin-command-hero::before,
body:not(.dark-theme):not(.madrasa-public) .hifz-lead::after,
body:not(.dark-theme):not(.madrasa-public) .companion-hero::after {
    color: rgba(233, 214, 168, .11) !important;
    opacity: 1 !important;
}

body:not(.dark-theme):not(.madrasa-public) .admin-command-note,
body:not(.dark-theme):not(.madrasa-public) .hifz-direction,
body:not(.dark-theme):not(.madrasa-public) .hifz-lead-stat {
    background: rgba(5, 10, 17, .19) !important;
    border-color: rgba(233, 214, 168, .18) !important;
}

body:not(.dark-theme):not(.madrasa-public) .hifz-progress-fill {
    background: linear-gradient(90deg, #C39A55, #E9D6A8) !important;
}

/* Some browser form controls retain a light native canvas even when their
   computed theme is dark. A quiet inset surface keeps every role's fields
   legible and consistent in Night Madrasa mode. */
body.dark-theme input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.dark-theme select,
body.dark-theme textarea {
    background: #10191B !important;
    background-color: #10191B !important;
    box-shadow: inset 0 0 0 1000px #10191B !important;
    color: #F3F0E7 !important;
    -webkit-text-fill-color: #F3F0E7;
    color-scheme: dark;
}

body.dark-theme input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    background: #141E20 !important;
    background-color: #141E20 !important;
    box-shadow: inset 0 0 0 1000px #141E20, 0 0 0 3px rgba(201,162,93,.16) !important;
}

/* ── COMPLETE, RESPECTFUL ARABIC CALLIGRAPHY ──────────────────
   Do not let Qur’anic Arabic drift off a page edge as a cropped texture.
   Every shared placement uses one complete, framed phrase instead. */
body::before {
    content: none !important;
    display: none !important;
}

/* A complete phrase sits inside, rather than beyond, every standard hero. */
body:not(.madrasa-public) .page-hero::before,
body:not(.madrasa-public) .welcome-hero::before {
    content: 'وَقُل رَّبِّ زِدْنِي عِلْمًا' !important;
    left: auto !important;
    right: 1.6rem !important;
    top: auto !important;
    bottom: .55rem !important;
    max-width: calc(100% - 3.2rem);
    overflow: visible !important;
    transform: none !important;
    color: rgba(233,214,168,.13) !important;
    font-family: var(--fq) !important;
    font-size: clamp(1.15rem, 2.7vw, 2.45rem) !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    text-align: right;
    opacity: 1 !important;
}

/* The old negative-positioned hero echoes are intentionally removed. */
body:not(.madrasa-public) .page-hero .hero-inner::after {
    content: none !important;
    display: none !important;
}

/* Role hero calligraphy: full phrase, protected margins, no bottom crop. */
.admin-command-hero::before,
.hifz-lead::after,
.companion-hero::after,
.how-hero::after,
.khatam-hero::after,
.epic-hero-bg-text {
    content: 'وَقُل رَّبِّ زِدْنِي عِلْمًا' !important;
    left: auto !important;
    right: 1.25rem !important;
    top: auto !important;
    bottom: .7rem !important;
    max-width: calc(100% - 2.5rem);
    overflow: visible !important;
    transform: none !important;
    color: rgba(233,214,168,.15) !important;
    direction: rtl !important;
    font-family: var(--fq) !important;
    font-size: clamp(1.1rem, 2.5vw, 2.35rem) !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    pointer-events: none;
}

/* A visible, fully written Quranic reminder anchors every shared footer. */
.madrasa-calligraphy-band {
    width: min(760px, calc(100% - 2rem));
    margin: 2.2rem auto 1.15rem;
    padding: .9rem 1.2rem .8rem;
    border-top: 1px solid rgba(201,162,93,.28);
    border-bottom: 1px solid rgba(201,162,93,.18);
    text-align: center;
}

.madrasa-calligraphy-band__arabic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: #83663A;
    direction: rtl;
    font-family: var(--fq);
    font-size: clamp(1.3rem, 3vw, 2.1rem);
    line-height: 1.55;
    white-space: nowrap;
}

.madrasa-calligraphy-band__seal {
    color: var(--madrasa-gold);
    font-family: var(--fa);
    font-size: .95em;
}

.madrasa-calligraphy-band p {
    margin: .12rem 0 0;
    color: var(--t3);
    font-size: .62rem;
    font-style: italic;
}

.madrasa-calligraphy-band p span {
    color: var(--madrasa-gold);
    font-style: normal;
    font-weight: 800;
}

body.dark-theme .madrasa-calligraphy-band {
    border-top-color: rgba(201,162,93,.32);
    border-bottom-color: rgba(201,162,93,.16);
}

body.dark-theme .madrasa-calligraphy-band__arabic { color: var(--madrasa-gold-soft); }

/* Public pages get a complete centred watermark; never a word cut at the edge. */
/* ROUND 14: scoped with :not(.has-custom-bg) -- see the note above. The
   `transform: translateX(-50%) rotate(-3deg)` here was the exact source of the
   rotated seam measured on the landing page. */
body.madrasa-public:not(.has-custom-bg)::after {
    content: 'وَقُل رَّبِّ زِدْنِي عِلْمًا' !important;
    right: auto !important;
    left: 50% !important;
    bottom: 3.5% !important;
    max-width: calc(100% - 2rem);
    overflow: visible !important;
    transform: translateX(-50%) rotate(-3deg) !important;
    color: rgba(124,58,237,.055) !important;
    font-size: clamp(1.5rem, 4vw, 3.4rem) !important;
    line-height: 1.35 !important;
    text-align: center;
    white-space: nowrap !important;
}

@media (max-width: 700px) {
    body:not(.madrasa-public) .page-hero::before,
    body:not(.madrasa-public) .welcome-hero::before,
    .admin-command-hero::before,
    .hifz-lead::after,
    .companion-hero::after,
    .how-hero::after,
    .khatam-hero::after,
    .epic-hero-bg-text {
        right: 50% !important;
        bottom: .45rem !important;
        max-width: calc(100% - 1.5rem);
        transform: translateX(50%) !important;
        font-size: clamp(1rem, 5.4vw, 1.55rem) !important;
        text-align: center;
    }

    .madrasa-calligraphy-band {
        width: calc(100% - 1.5rem);
        margin-top: 1.6rem;
        padding: .75rem .55rem .65rem;
    }

    .madrasa-calligraphy-band__arabic {
        gap: .35rem;
        font-size: clamp(1.08rem, 5.1vw, 1.45rem);
        white-space: normal;
        flex-wrap: wrap;
    }

    body.madrasa-public:not(.has-custom-bg)::after {
        left: 50% !important;
        right: auto !important;
        bottom: 2% !important;
        max-width: calc(100% - 1rem);
        font-size: clamp(1rem, 5vw, 1.55rem) !important;
        white-space: normal !important;
    }
}

/* The enrolment page previously placed a long Arabic phrase off the left edge.
   Keep its complete reminder inside the visible canvas as well. */
body.madrasa-public .page-bg::before {
    content: 'وَقُل رَّبِّ زِدْنِي عِلْمًا' !important;
    left: 50% !important;
    right: auto !important;
    top: 8% !important;
    max-width: calc(100% - 2rem);
    overflow: visible !important;
    transform: translateX(-50%) rotate(-3deg) !important;
    color: rgba(124,58,237,.05) !important;
    font-size: clamp(1.6rem, 4vw, 3.5rem) !important;
    line-height: 1.35 !important;
    text-align: center;
    white-space: nowrap !important;
}

/* The public Khatam hero keeps the complete word within its panel. */
.epic-hero-bg-text {
    right: 1.25rem !important;
    bottom: .65rem !important;
    max-width: calc(100% - 2.5rem);
    overflow: visible !important;
    font-size: clamp(1.35rem, 3vw, 2.5rem) !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
}

@media (max-width:700px) {
    body.madrasa-public .page-bg::before {
        top: 6% !important;
        max-width: calc(100% - 1rem);
        font-size: clamp(1rem, 5vw, 1.55rem) !important;
        white-space: normal !important;
    }

    .epic-hero-bg-text {
        right: 50% !important;
        bottom: .45rem !important;
        transform: translateX(50%) !important;
        max-width: calc(100% - 1.5rem);
        font-size: clamp(1rem, 5vw, 1.55rem) !important;
        text-align: center;
        white-space: normal !important;
    }
}

/* Mobile pages receive a real calligraphy ribbon in normal page flow.
   This avoids relying on a clipped pseudo-element on smaller screens. */
.madrasa-mobile-calligraphy,
.madrasa-public-calligraphy {
    display: none;
}

@media (max-width: 700px) {
    /* The Quranic reminder now lives in one place, the calligraphy band above
       the footer, where it rotates each time you sign in. This strip repeated
       it directly under the header and pushed the greeting down the page, so
       it is no longer shown. */
    .madrasa-mobile-calligraphy { display: none !important; }

    .madrasa-public-calligraphy {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .34rem;
        width: calc(100% - 1.5rem);
        margin: .65rem auto .1rem;
        padding: .38rem .45rem;
        border-top: 1px solid rgba(201,162,93,.22);
        border-bottom: 1px solid rgba(201,162,93,.14);
        color: #8B6B37;
        font-family: 'Amiri Quran','Amiri',serif;
        font-size: clamp(1rem, 5vw, 1.35rem);
        line-height: 1.35;
        text-align: center;
        direction: rtl;
    }

    body:not(.madrasa-public) .page-hero::before,
    body:not(.madrasa-public) .welcome-hero::before,
    .admin-command-hero::before,
    .hifz-lead::after,
    .companion-hero::after,
    .how-hero::after,
    .khatam-hero::after,
    .epic-hero-bg-text,
    body.madrasa-public::after,
    body.madrasa-public .page-bg::before {
        content: none !important;
        display: none !important;
    }
}

@media (max-width: 700px) {
    /* The landing navigation is fixed, so reserve a clean dedicated line for
       the complete Arabic phrase rather than letting the navigation cover it. */
    body.madrasa-landing .madrasa-public-calligraphy {
        margin-top: 67px;
    }
}

/* ── ORIGINAL CALLIGRAPHY-INSPIRED GLASS PATTERN ───────────────
   Original SVG strokes and violet/gold dots: inspired by Arabic rhythm,
   not copied lettering or stock artwork. */
:root { --madrasa-calligraphy-pattern: url('362_ORIGINAL_CALLIGRAPHY_GLASS_PATTERN.svg'); }

body:not(.dark-theme):not(.madrasa-public)::after {
    background:
        radial-gradient(circle at 10% 8%, rgba(167,139,250,.14), transparent 28%),
        radial-gradient(circle at 90% 92%, rgba(201,162,93,.08), transparent 30%),
        var(--madrasa-calligraphy-pattern) repeat !important;
    background-size: auto, auto, 520px 520px !important;
    opacity: .42;
}

body.dark-theme::after {
    background:
        radial-gradient(circle at 10% 8%, rgba(154,134,193,.08), transparent 30%),
        radial-gradient(circle at 90% 92%, rgba(201,162,93,.055), transparent 30%),
        var(--madrasa-calligraphy-pattern) repeat !important;
    background-size: auto, auto, 540px 540px !important;
    opacity: .16;
}

/* Light-purple transparent glass surfaces throughout internal working pages. */
body:not(.dark-theme):not(.madrasa-public) .card,
body:not(.dark-theme):not(.madrasa-public) .glass,
body:not(.dark-theme):not(.madrasa-public) .glass-crystal,
body:not(.dark-theme):not(.madrasa-public) .tracker-summary-card,
body:not(.dark-theme):not(.madrasa-public) .fees-summary-card {
    background: rgba(251,248,255,.76) !important;
    border-color: rgba(124,58,237,.16) !important;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

body.madrasa-public .bg-mesh {
    background:
        radial-gradient(circle at 10% 20%, rgba(139,92,246,.07), transparent 38%),
        radial-gradient(circle at 90% 80%, rgba(212,168,67,.06), transparent 38%),
        var(--madrasa-calligraphy-pattern) repeat,
        linear-gradient(180deg, var(--bg) 0%, #FFFFFF 100%) !important;
    background-size: auto, auto, 500px 500px, auto !important;
    opacity: .48;
}

/* Public cards retain readability while revealing the purple glass language. */
body.madrasa-public .glass-crystal,
body.madrasa-public .support-card,
body.madrasa-public .guidance-card {
    background-color: rgba(252,250,255,.78) !important;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

@media (max-width:700px) {
    body:not(.dark-theme):not(.madrasa-public)::after { background-size: auto, auto, 360px 360px !important; opacity: .32; }
    body.dark-theme::after { background-size: auto, auto, 380px 380px !important; opacity: .13; }
    body.madrasa-public .bg-mesh { background-size: auto, auto, 350px 350px, auto !important; opacity: .38; }
}

/* Denser original ornamental calligraphy-inspired pattern, generated for this
   madrasa only. It replaces the earlier sparse line tile. */
:root { --madrasa-calligraphy-pattern: url('363_ORIGINAL_ARABIC_INSPIRED_GLASS_PATTERN.png'); }

body:not(.dark-theme):not(.madrasa-public)::after {
    background:
        radial-gradient(circle at 10% 8%, rgba(167,139,250,.10), transparent 30%),
        radial-gradient(circle at 90% 92%, rgba(201,162,93,.055), transparent 30%),
        var(--madrasa-calligraphy-pattern) repeat !important;
    background-size: auto, auto, 560px 560px !important;
    opacity: .14;
}

body.dark-theme::after {
    background:
        radial-gradient(circle at 10% 8%, rgba(154,134,193,.07), transparent 30%),
        radial-gradient(circle at 90% 92%, rgba(201,162,93,.045), transparent 30%),
        var(--madrasa-calligraphy-pattern) repeat !important;
    background-size: auto, auto, 580px 580px !important;
    opacity: .09;
}

body.madrasa-public .bg-mesh {
    background:
        radial-gradient(circle at 10% 20%, rgba(139,92,246,.06), transparent 38%),
        radial-gradient(circle at 90% 80%, rgba(212,168,67,.045), transparent 38%),
        var(--madrasa-calligraphy-pattern) repeat,
        linear-gradient(180deg, var(--bg) 0%, #FFFFFF 100%) !important;
    background-size: auto, auto, 600px 600px, auto !important;
    opacity: .20;
}

@media (max-width:700px) {
    body:not(.dark-theme):not(.madrasa-public)::after { background-size: auto, auto, 410px 410px !important; opacity: .12; }
    body.dark-theme::after { background-size: auto, auto, 430px 430px !important; opacity: .075; }
    body.madrasa-public .bg-mesh { background-size: auto, auto, 430px 430px, auto !important; opacity: .18; }
}

/* Enlarged light glass pattern: soft flowing ornament first, restrained darker
   purple dot/diamond accents above it. */
:root { --madrasa-diacritic-dots: url('364_ORIGINAL_PURPLE_DIACRITIC_DOTS.svg'); }

body::before {
    content: '' !important;
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--madrasa-diacritic-dots) repeat !important;
    background-size: 760px 760px !important;
    opacity: .24 !important;
    pointer-events: none !important;
    transform: none !important;
    animation: none !important;
}

body:not(.dark-theme):not(.madrasa-public)::after {
    background:
        radial-gradient(circle at 10% 8%, rgba(167,139,250,.075), transparent 32%),
        radial-gradient(circle at 90% 92%, rgba(201,162,93,.04), transparent 32%),
        var(--madrasa-calligraphy-pattern) repeat !important;
    background-size: auto, auto, 900px 900px !important;
    opacity: .095;
}

body.dark-theme::after {
    background-size: auto, auto, 920px 920px !important;
    opacity: .055;
}

body.madrasa-public .bg-mesh {
    background:
        radial-gradient(circle at 10% 20%, rgba(139,92,246,.045), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212,168,67,.035), transparent 40%),
        var(--madrasa-calligraphy-pattern) repeat,
        linear-gradient(180deg, var(--bg) 0%, #FFFFFF 100%) !important;
    background-size: auto, auto, 940px 940px, auto !important;
    opacity: .12;
}

/* More transparent lilac glass lets the pattern breathe without weakening text. */
body:not(.dark-theme):not(.madrasa-public) .card,
body:not(.dark-theme):not(.madrasa-public) .glass,
body:not(.dark-theme):not(.madrasa-public) .glass-crystal,
body:not(.dark-theme):not(.madrasa-public) .tracker-summary-card,
body:not(.dark-theme):not(.madrasa-public) .fees-summary-card {
    background: rgba(255,253,255,.64) !important;
    border-color: rgba(124,58,237,.13) !important;
    backdrop-filter: blur(22px) saturate(132%);
    -webkit-backdrop-filter: blur(22px) saturate(132%);
}

body.madrasa-public .glass-crystal,
body.madrasa-public .support-card,
body.madrasa-public .guidance-card {
    background-color: rgba(255,253,255,.66) !important;
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

@media (max-width:700px) {
    body::before { background-size: 520px 520px !important; opacity: .21 !important; }
    body:not(.dark-theme):not(.madrasa-public)::after { background-size: auto, auto, 650px 650px !important; opacity: .08; }
    body.dark-theme::after { background-size: auto, auto, 680px 680px !important; opacity: .045; }
    body.madrasa-public .bg-mesh { background-size: auto, auto, 690px 690px, auto !important; opacity: .11; }
}

/* Keep all public text and controls above the decorative dot layer. */
body.madrasa-public > *:not(.bg-mesh):not(.nav-land) {
    position: relative;
    z-index: 1;
}

/* Dashboard tiles join the same light-purple frosted glass system. */
body:not(.dark-theme):not(.madrasa-public) .dashboard-app-button,
body:not(.dark-theme):not(.madrasa-public) .dashboard-app-library-head,
body:not(.dark-theme):not(.madrasa-public) .dashboard-app-library-tools {
    background: rgba(255,253,255,.58) !important;
    border-color: rgba(124,58,237,.14) !important;
    backdrop-filter: blur(16px) saturate(128%);
    -webkit-backdrop-filter: blur(16px) saturate(128%);
}

/* Bolder, zoomed-in flowing ornament with the dots kept as the richer accent. */
:root { --madrasa-calligraphy-pattern: url('365_ORIGINAL_BOLD_CALLIGRAPHY_GLASS_PATTERN.png'); }

body:not(.dark-theme):not(.madrasa-public)::after {
    background-size: auto, auto, 1080px 1080px !important;
    opacity: .075;
}

body.dark-theme::after {
    background-size: auto, auto, 1100px 1100px !important;
    opacity: .045;
}

body.madrasa-public .bg-mesh {
    background-size: auto, auto, 1120px 1120px, auto !important;
    opacity: .095;
}

/* A clearer frosted-glass treatment: more transparency, white rim light and
   a soft inner highlight, while keeping Quran learning text easy to read. */
body:not(.dark-theme):not(.madrasa-public) .card,
body:not(.dark-theme):not(.madrasa-public) .glass,
body:not(.dark-theme):not(.madrasa-public) .glass-crystal,
body:not(.dark-theme):not(.madrasa-public) .tracker-summary-card,
body:not(.dark-theme):not(.madrasa-public) .fees-summary-card,
body:not(.dark-theme):not(.madrasa-public) .dashboard-app-button {
    background: rgba(255,253,255,.50) !important;
    border-color: rgba(255,255,255,.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 14px 34px rgba(91,68,138,.08) !important;
    backdrop-filter: blur(26px) saturate(138%);
    -webkit-backdrop-filter: blur(26px) saturate(138%);
}

body.madrasa-public .glass-crystal,
body.madrasa-public .support-card,
body.madrasa-public .guidance-card,
body.madrasa-landing .nav-land {
    background: rgba(255,253,255,.52) !important;
    border-color: rgba(255,255,255,.76) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 14px 34px rgba(91,68,138,.09) !important;
    backdrop-filter: blur(26px) saturate(138%);
    -webkit-backdrop-filter: blur(26px) saturate(138%);
}

@media (max-width:700px) {
    body:not(.dark-theme):not(.madrasa-public)::after { background-size: auto, auto, 760px 760px !important; opacity: .065; }
    body.dark-theme::after { background-size: auto, auto, 780px 780px !important; opacity: .035; }
    body.madrasa-public .bg-mesh { background-size: auto, auto, 790px 790px, auto !important; opacity: .085; }
    body::before { opacity: .28 !important; }
}



/* Original calm static glass ornament, zoomed for broader calligraphy strokes — no animated tracing layer. */
:root { --madrasa-calligraphy-pattern: url('363_ORIGINAL_ARABIC_INSPIRED_GLASS_PATTERN.png?v=3'); }

body:not(.dark-theme):not(.madrasa-public)::after {
    background-size: auto, auto, 1500px 1500px !important;
    opacity: .095;
}

body.dark-theme::after {
    background-size: auto, auto, 1520px 1520px !important;
    opacity: .055;
}

body.madrasa-public .bg-mesh {
    background-size: auto, auto, 1600px 1600px, auto !important;
    opacity: .12;
}

body::before {
    content: '' !important;
    display: block !important;
    background: var(--madrasa-diacritic-dots) repeat !important;
    background-size: 760px 760px !important;
    opacity: .24 !important;
}

body:not(.dark-theme):not(.madrasa-public) .card,
body:not(.dark-theme):not(.madrasa-public) .glass,
body:not(.dark-theme):not(.madrasa-public) .glass-crystal,
body:not(.dark-theme):not(.madrasa-public) .tracker-summary-card,
body:not(.dark-theme):not(.madrasa-public) .fees-summary-card,
body:not(.dark-theme):not(.madrasa-public) .dashboard-app-button {
    background: rgba(255,253,255,.62) !important;
    border-color: rgba(255,255,255,.76) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 14px 34px rgba(91,68,138,.075) !important;
    backdrop-filter: blur(22px) saturate(132%);
    -webkit-backdrop-filter: blur(22px) saturate(132%);
}

body.madrasa-public .glass-crystal,
body.madrasa-public .support-card,
body.madrasa-public .guidance-card,
body.madrasa-landing .nav-land {
    background: rgba(255,253,255,.64) !important;
    border-color: rgba(255,255,255,.78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 14px 34px rgba(91,68,138,.08) !important;
    backdrop-filter: blur(22px) saturate(132%);
    -webkit-backdrop-filter: blur(22px) saturate(132%);
}

@media (max-width:700px) {
    body::before { background-size: 520px 520px !important; opacity: .21 !important; }
    body:not(.dark-theme):not(.madrasa-public)::after { background-size: auto, auto, 1100px 1100px !important; opacity: .08; }
    body.dark-theme::after { background-size: auto, auto, 1130px 1130px !important; opacity: .045; }
    body.madrasa-public .bg-mesh { background-size: auto, auto, 1200px 1200px, auto !important; opacity: .11; }
}

