:root {
    --brand: #1a5fb4;
    --brand-dark: #0f3d7a;
    --brand-soft: #e8f1fb;
    --ink: #1c2b3a;
    --muted: #5b6b7c;
    --line: #d7e3f0;
    --bg: #f5f8fc;
    --header-deep: #0c2d5c;
    --header-mid: #1a5fb4;
    --header-light: #2a6fc4;
    --radius: 1.1rem;
    --radius-lg: 1.35rem;
    --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
    --font-body: "Nunito Sans", "Segoe UI", sans-serif;
    --glow: rgba(26, 95, 180, 0.08);
    --hero-grad: linear-gradient(135deg, var(--brand-dark), #2b7de0);
}

body.theme-female {
    --brand: #b85a72;
    --brand-dark: #7a3148;
    --brand-soft: #f9e8ed;
    --ink: #2a1f24;
    --muted: #7a6570;
    --line: #e8d4da;
    --bg: #fbf6f8;
    --header-deep: #4a1f30;
    --header-mid: #b85a72;
    --header-light: #c97a8c;
    --radius: 1.35rem;
    --radius-lg: 1.75rem;
    --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
    --font-body: "Nunito Sans", "Segoe UI", sans-serif;
    --glow: rgba(184, 90, 114, 0.12);
    --hero-grad: linear-gradient(145deg, #4a1f30 0%, #b85a72 55%, #d4a0ad 100%);
}

body {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, var(--glow), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 220px);
    min-height: 100vh;
}

body.theme-female {
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(184, 90, 114, 0.16), transparent 50%),
        radial-gradient(ellipse 60% 40% at -10% 30%, rgba(201, 122, 140, 0.1), transparent 45%),
        linear-gradient(180deg, #fffafb 0%, var(--bg) 240px);
}

h1, h2, h3, .display-5, .page-head .h3, .auth-title {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-optical-sizing: auto;
}

.navbar-brand {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.lead {
    font-family: var(--font-body);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.bg-brand {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand)) !important;
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: #fff;
}

.howto-modal {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
}

.howto-modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.howto-grid {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

@media (min-width: 576px) {
    .howto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.howto-card {
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
}

.howto-card-fard {
    background: linear-gradient(180deg, #eef5ff, #e6f0fb);
    border-color: #c5daf3;
}

.howto-card-sunnah {
    background: #f8fafc;
}

.howto-card-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.4rem;
}

.howto-card-text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink);
}

.howto-order {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.15rem;
}

.howto-order-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.55rem;
}

.howto-order-list {
    padding-left: 1.2rem;
    color: var(--ink);
    line-height: 1.7;
}

.howto-qamat {
    background: linear-gradient(180deg, #eef5ff, #f7fbff);
    border: 1px solid #c5daf3;
    border-radius: 1.1rem;
    padding: 1.05rem 1.1rem 0.85rem;
}

.howto-qamat-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.howto-qamat-lead {
    color: var(--muted);
    font-size: 0.95rem;
}

.howto-qamat-audio {
    margin: 0.9rem 0 0.35rem;
    background: #fff;
    border: 1px solid #c5daf3;
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
}

.howto-qamat-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.howto-qamat-list-flush {
    margin-top: 0;
}

.howto-qamat-list-flush .howto-qamat-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.howto-qamat-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-top: 1px solid #d7e3f0;
}

.howto-qamat-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
}

.howto-qamat-times {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand);
    background: #fff;
    border: 1px solid #c5daf3;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
}

.text-brand {
    color: var(--brand) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.82);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background: var(--hero-grad);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: #fff;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--brand-dark) 28%, transparent);
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.hero-user {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.hero-user strong {
    color: #fff;
    font-size: 1.15rem;
}

.hero-stat,
.practice-card,
.content-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* —— Намаз уақыты виджеті —— */
.waqt-widget {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(90, 162, 255, 0.22), transparent 55%),
        linear-gradient(145deg, #0c2d5c 0%, #1a5fb4 55%, #2a6fc4 100%);
    border-radius: 1.25rem;
    padding: 1.5rem 1.6rem 1.35rem;
    color: #fff;
    box-shadow: 0 14px 36px rgba(15, 61, 122, 0.16);
}

.waqt-widget::before {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.waqt-top {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.waqt-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.waqt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.waqt-source {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff;
    color: var(--brand-dark);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.waqt-foot {
    position: relative;
    margin: 0.95rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.waqt-foot a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.waqt-foot a:hover {
    color: #dcecff;
}

.waqt-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.waqt-sub {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.waqt-countdown {
    flex-shrink: 0;
    text-align: right;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    padding: 0.75rem 1.1rem;
    backdrop-filter: blur(8px);
    min-width: 8.5rem;
}

.waqt-countdown-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.15rem;
}

.waqt-countdown-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.waqt-slots {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.waqt-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.9rem;
    padding: 0.85rem 0.7rem 0.75rem;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.waqt-slot:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-2px);
}

.waqt-slot.is-current {
    background: #fff;
    border-color: #fff;
    color: var(--brand-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.waqt-slot.is-current:hover {
    color: var(--brand-dark);
    background: #fff;
}

.waqt-slot.is-next {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
}

.waqt-slot-name {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.9;
}

.waqt-slot.is-current .waqt-slot-name {
    opacity: 1;
    color: var(--brand);
}

.waqt-slot-time {
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.waqt-slot-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--brand);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.waqt-slot.is-current .waqt-slot-badge {
    background: var(--brand);
}

.waqt-slot.is-next .waqt-slot-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.progress-soft {
    height: 0.55rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.hero-stat .progress-soft {
    background: rgba(255, 255, 255, 0.28);
}

.practice-shell .progress-soft,
.page-head + .hero-stat .progress-soft {
    background: #d9e7f7;
}

.hero-stat .progress-bar {
    background: linear-gradient(90deg, #ffffff, #cfe3ff);
}

.progress-bar {
    background: linear-gradient(90deg, #5aa2ff, #1a5fb4);
}

.topic-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.topic-tile:hover {
    border-color: #9fc0e8;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 95, 180, 0.08);
    color: inherit;
}

.topic-tile-lg .topic-body span {
    display: block;
    color: var(--muted);
    margin-top: 0.35rem;
}

.topic-tile-lg .topic-body em {
    display: block;
    font-style: normal;
    color: var(--brand);
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.topic-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
}

.topic-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.topic-body span {
    color: var(--muted);
    font-size: 0.92rem;
}

.lesson-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1rem 1.15rem;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lesson-row:hover {
    border-color: #9fc0e8;
    background: #fafcff;
    color: inherit;
}

.list-stack {
    display: grid;
    gap: 0.75rem;
}

.chevron {
    color: var(--brand);
    font-size: 1.2rem;
}

.status-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    margin-top: 0.4rem;
    background: #c5d4e5;
    flex-shrink: 0;
}

.status-dot.done {
    background: #2f9e62;
}

.steps-list {
    display: grid;
    gap: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.dua-box {
    background: var(--brand-soft);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

.arabic {
    font-size: 1.35rem;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    font-family: "Traditional Arabic", "Scheherazade New", "Amiri", serif;
}

.lesson-cover,
.step-photo {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: #fff;
}

.lesson-cover img,
.step-photo img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #f8fbff;
}

.step-item .step-photo {
    max-width: 320px;
}

.practice-card .step-photo {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Lesson learn — big memory-friendly layout */
.lesson-learn {
    max-width: 820px;
    margin: 0 auto;
}

.lesson-learn:has(.lesson-with-toc) {
    max-width: 1100px;
}

.lesson-with-toc {
    display: grid;
    gap: 1.5rem;
}

.rakat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
}

.rakat-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.7rem 1.35rem;
    border-radius: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    background: #e9ecef;
    transition: background 0.15s ease, color 0.15s ease;
}

.rakat-tab:hover {
    background: #dde2e7;
}

.rakat-tab.is-active {
    background: var(--brand);
    color: #fff;
}

.rakat-tab.is-active:hover {
    background: var(--brand-dark);
    color: #fff;
}

.rakat-next-wrap {
    margin-top: 1.25rem;
}

.rakat-next-btn {
    width: 100%;
    max-width: 320px;
}

.lesson-toc-inner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1rem 0.85rem;
}

.lesson-toc-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    padding: 0 0.55rem 0.65rem;
}

.lesson-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lesson-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.55rem;
    border-radius: 0.75rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    transition: background 0.15s ease, color 0.15s ease;
}

.lesson-toc-link:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.lesson-toc-link.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.lesson-toc-num {
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.45rem;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.lesson-toc-link.is-active .lesson-toc-num {
    background: var(--brand);
    color: #fff;
}

.lesson-toc-text {
    padding-top: 0.1rem;
}

@media (min-width: 992px) {
    .lesson-with-toc {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }

    .lesson-toc {
        position: sticky;
        top: 5rem;
        max-height: calc(100vh - 6rem);
        overflow: auto;
    }
}

@media (max-width: 991.98px) {
    .lesson-toc-inner {
        padding: 0.85rem 0.75rem;
    }

    .lesson-toc-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.4rem;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .lesson-toc-link {
        flex: 0 0 auto;
        max-width: 11.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.88rem;
        padding: 0.45rem 0.65rem;
        border: 1px solid var(--line);
        background: #fff;
    }

    .lesson-toc-link.is-active {
        border-color: transparent;
    }

    .lesson-toc-text {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.lesson-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-dark);
}

.lesson-lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--muted);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.content-block-lg {
    font-size: 1.15rem;
    line-height: 1.7;
}

.memory-steps {
    display: grid;
    gap: 1.75rem;
}

.memory-step {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 1.35rem;
    padding: 1.5rem 1.4rem 1.6rem;
    box-shadow: 0 10px 28px rgba(15, 61, 122, 0.06);
    scroll-margin-top: 5.5rem;
}

.memory-step-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.15rem;
}

.memory-num {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    font-weight: 800;
    flex-shrink: 0;
}

.memory-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.25rem;
    color: var(--ink);
}

.memory-rakat {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.pose-player {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 1.35rem;
    padding: 1.35rem 1.25rem 1.4rem;
    box-shadow: 0 10px 28px rgba(15, 61, 122, 0.06);
}

.pose-player-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pose-player-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.2rem;
}

.pose-player-heading {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
}

.pose-player-count {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.pose-player-stage {
    position: relative;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fbff;
    aspect-ratio: 3 / 4;
    max-height: 480px;
    margin: 0 auto;
}

.pose-player-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.pose-player-img.is-active {
    opacity: 1;
}

.pose-player-caption {
    margin-top: 0.95rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    min-height: 1.6em;
}

.pose-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.pose-btn {
    min-width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border-radius: 0.9rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    place-items: center;
}

.pose-btn-play {
    min-width: 3.4rem;
    height: 3.4rem;
    font-size: 1.2rem;
}

.memory-step.is-pose-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.18), 0 10px 28px rgba(15, 61, 122, 0.08);
}

.memory-photo {
    margin: 0 0 1.25rem;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fbff;
}

.memory-photo img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
}

.memory-media {
    margin: 0 0 1.25rem;
}

.memory-media-tabs {
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: #eef3f8;
    border: 1px solid var(--line);
}

.memory-media-tab {
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.memory-media-tab.is-active {
    background: var(--brand);
    color: #fff;
}

.memory-video {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0b1220;
}

.memory-video-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0.65rem 0 0.35rem;
}

.memory-video-el {
    display: block;
    width: 100%;
    max-height: 560px;
    background: #0b1220;
}

.step-media .memory-media-tabs {
    margin-bottom: 0.65rem;
}

.step-video {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0b1220;
}

.practice-card .step-video .memory-video-el,
.practice-card .memory-video-el {
    max-height: 420px;
}

.memory-text {
    font-size: 1.2rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.memory-dua {
    background: linear-gradient(180deg, #eef5ff, #e6f0fb);
    border: 1px solid #c5daf3;
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem;
}

.memory-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.35rem;
}

.memory-arabic {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    line-height: 1.85;
    direction: rtl;
    text-align: right;
    font-family: "Traditional Arabic", "Scheherazade New", "Amiri", serif;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}

.memory-trans {
    margin-bottom: 0.9rem;
}

.memory-trans-text {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink);
}

.memory-meaning {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
}

.audio-panel,
.audio-inline {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.audio-panel {
    background: rgba(255, 255, 255, 0.95);
}

.audio-panel-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.55rem;
}

.audio-player {
    width: 100%;
    height: 42px;
}

.reciter-bar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.reciter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.4rem;
}

.reciter-select {
    border-color: var(--line);
    font-weight: 600;
}

.reciter-fixed {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.reciter-fixed strong {
    font-size: 1.05rem;
    color: var(--ink);
}

.reciter-change-link {
    font-size: 0.9rem;
    white-space: nowrap;
}

.lesson-actions .btn,
.lesson-hero .btn {
    font-weight: 700;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.prayer-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 1.2rem;
    padding: 1.2rem 1.15rem;
    color: inherit;
    min-height: 140px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.prayer-card:hover {
    border-color: #8fb6e4;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 95, 180, 0.1);
    color: inherit;
}

.prayer-card.is-done {
    border-color: #8fd0ae;
}

.prayer-card-feature {
    background: linear-gradient(180deg, #eef5ff, #f7fbff);
    border-color: #c5daf3;
}

.prayer-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prayer-chip {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.prayer-done {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #2f9e62;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.prayer-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
}

.prayer-note {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .prayer-grid {
        grid-template-columns: 1fr;
    }
}

/* Zikr counter (Sajda-style) */
.zikr-counter {
    background: linear-gradient(160deg, #0f3d7a 0%, #1a5fb4 55%, #2b7de0 100%);
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem 1.35rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 16px 36px rgba(15, 61, 122, 0.22);
}

.zikr-counter-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.zikr-tap {
    position: relative;
    width: 11.5rem;
    height: 11.5rem;
    margin: 0 auto 1.15rem;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.zikr-tap:active .zikr-tap-inner,
.zikr-tap.is-pulse .zikr-tap-inner {
    transform: scale(0.94);
}

.zikr-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.zikr-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 6;
}

.zikr-ring-fg {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.2s ease;
}

.zikr-tap-inner {
    position: absolute;
    inset: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition: transform 0.12s ease, background 0.12s ease;
}

.zikr-tap.is-done .zikr-tap-inner {
    background: rgba(72, 199, 142, 0.35);
    border-color: rgba(180, 255, 210, 0.7);
}

.zikr-count {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.zikr-goal {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

.zikr-presets {
    display: inline-flex;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.zikr-preset {
    min-width: 3.2rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.zikr-preset.is-active,
.zikr-preset:hover {
    background: #fff;
    color: var(--brand-dark);
    border-color: #fff;
}

.zikr-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0.45rem;
}

.zikr-reset {
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.zikr-reset:hover {
    background: rgba(255, 255, 255, 0.28);
}

.zikr-hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

.zikr-view {
    position: relative;
}
.zikr-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}
.zikr-settings-btn {
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand-soft, #e8f1fb);
    color: var(--brand-dark, #0f3d7a);
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
}
.zikr-settings-pop {
    position: absolute;
    top: 2.7rem;
    right: 0;
    z-index: 20;
    width: min(20rem, 100%);
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.05rem 1.1rem;
    box-shadow: 0 16px 40px rgba(20, 30, 40, 0.18);
    color: #1c1c1c;
}
.zikr-settings-title {
    font-weight: 800;
    font-size: 1.1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 0.35rem;
}
.zikr-set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-weight: 600;
}
.zikr-set-row input {
    width: 2.6rem;
    height: 1.35rem;
    accent-color: #2e8b57;
}
.zikr-set-label {
    font-weight: 700;
    margin: 0.55rem 0 0.4rem;
}
.zikr-set-seg,
.zikr-set-show {
    display: flex;
    gap: 0.45rem;
}
.zikr-seg,
.zikr-show-btn {
    flex: 1;
    border: 1.2px solid #222;
    background: #fff;
    border-radius: 0.55rem;
    padding: 0.5rem 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.zikr-seg.is-on {
    background: #1c1c1c;
    color: #fff;
}
.zikr-show-btn.is-on {
    background: var(--brand-soft, #e8f1fb);
    border-color: var(--brand, #1a5fb4);
}
.zikr-view.is-light .memory-arabic,
.zikr-view.is-light .memory-trans-text {
    color: #1c2b3a;
}
.zikr-view[data-show-ar="0"] .memory-arabic {
    display: none;
}
.zikr-view[data-show-tr="0"] .memory-trans {
    display: none;
}
.zikr-view[data-font="large"] .memory-arabic {
    font-size: 1.85em;
}
.zikr-view[data-font="large"] .memory-trans-text {
    font-size: 1.2em;
}

.zikr-step-counter {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
}

.zikr-step-tap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    border: 0;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, background 0.15s ease;
}

.zikr-step-tap:active {
    transform: scale(0.96);
}

.zikr-step-counter.is-done .zikr-step-tap {
    background: #d8f5e5;
    color: #146c43;
}

.zikr-step-sep {
    opacity: 0.45;
    font-weight: 500;
}

.zikr-step-target {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.7;
}

.zikr-step-reset {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
}

.zikr-step-done {
    color: #146c43;
    font-weight: 700;
    font-size: 1.1rem;
}

.bagyshtau-page {
    max-width: 820px;
    margin: 0 auto;
}

.bagyshtau-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(90, 162, 255, 0.2), transparent 55%),
        linear-gradient(145deg, #0c2d5c 0%, #1a5fb4 55%, #2a6fc4 100%);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem 1.85rem;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 14px 36px rgba(15, 61, 122, 0.18);
}

.bagyshtau-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.bagyshtau-hero-title {
    font-size: clamp(1.85rem, 5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.bagyshtau-hero-lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.5;
    opacity: 0.88;
    margin-bottom: 0;
}

.bagyshtau-steps {
    display: grid;
    gap: 1.5rem;
}

.bagyshtau-step {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 1.5rem;
    padding: 1.75rem 1.6rem 1.85rem;
    box-shadow: 0 10px 28px rgba(15, 61, 122, 0.06);
}

.bagyshtau-step-dua {
    border-color: #c5daf3;
    background: linear-gradient(180deg, #f7fbff 0%, #fff 40%);
}

.bagyshtau-step-head {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.bagyshtau-num {
    flex-shrink: 0;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.05rem;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(26, 95, 180, 0.28);
}

.bagyshtau-step-title {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.bagyshtau-step-meta {
    color: var(--muted);
    font-size: 1.05rem;
}

.bagyshtau-verse {
    background: linear-gradient(180deg, #eef5ff, #f7fbff);
    border: 1px solid #c5daf3;
    border-radius: 1.2rem;
    padding: 1.35rem 1.4rem;
}

.bagyshtau-verse p {
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.bagyshtau-verse p:last-child {
    margin-bottom: 0;
}

.bagyshtau-verse-close {
    margin-top: 1.15rem;
}

.bagyshtau-amin {
    color: var(--brand-dark) !important;
    font-size: clamp(1.35rem, 3vw, 1.6rem) !important;
    font-weight: 800 !important;
    margin-top: 0.35rem !important;
}

.bagyshtau-aside {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-top: 1.1rem;
    padding: 0.95rem 1.15rem;
    background: #fff;
    border: 1px dashed #b7d0ec;
    border-radius: 1rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.bagyshtau-aside strong {
    color: var(--brand-dark);
    font-size: 1.15rem;
}

.bagyshtau-aside-times {
    background: var(--brand-soft);
    border-style: solid;
    border-color: #c5daf3;
}

.bagyshtau-prose {
    margin-bottom: 0.25rem;
}

.bagyshtau-prose p {
    font-size: clamp(1.12rem, 2.4vw, 1.28rem);
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.bagyshtau-prose em {
    color: var(--brand);
    font-style: normal;
    font-weight: 700;
    background: var(--brand-soft);
    padding: 0.1rem 0.4rem;
    border-radius: 0.35rem;
}

.bagyshtau-footer {
    margin-top: 2rem;
    padding-top: 0.5rem;
}

@media (max-width: 575.98px) {
    .bagyshtau-hero {
        padding: 1.5rem 1.2rem 1.4rem;
        border-radius: 1.25rem;
    }

    .bagyshtau-step {
        padding: 1.25rem 1.05rem 1.35rem;
        border-radius: 1.25rem;
    }

    .bagyshtau-num {
        width: 2.9rem;
        height: 2.9rem;
        font-size: 1.25rem;
        border-radius: 0.9rem;
    }

    .bagyshtau-verse {
        padding: 1.1rem 1rem;
    }

    .bagyshtau-step-head {
        gap: 0.85rem;
        margin-bottom: 1.1rem;
    }
}

.site-footer {
    background: var(--brand-dark);
}

.practice-shell {
    max-width: 720px;
    margin: 0 auto;
}

.practice-card {
    min-height: 280px;
}

.breadcrumb a {
    color: var(--brand);
}

@media (max-width: 767.98px) {
    .waqt-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .waqt-countdown {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-panel {
        padding: 1.4rem;
    }

    .cabinet-hero {
        min-height: 0;
    }

    .cabinet-hero-inner {
        padding: 1.35rem 1.2rem 1.4rem;
    }

    .cabinet-hero-bg {
        background-position: 62% center;
    }

    .cabinet-hero-shade {
        background:
            linear-gradient(180deg, rgba(8, 12, 18, 0.55) 0%, rgba(8, 12, 18, 0.72) 45%, rgba(8, 12, 18, 0.88) 100%),
            linear-gradient(105deg, rgba(8, 12, 18, 0.7) 0%, rgba(8, 12, 18, 0.35) 100%);
    }

    .cabinet-hero-actions .btn,
    .cabinet-continue {
        flex: 1 1 100%;
        max-width: none;
    }

    .display-5 {
        font-size: 1.85rem;
    }

    .waqt-widget {
        padding: 1.25rem 1.1rem 1.15rem;
    }

    .waqt-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .waqt-slot:last-child {
        grid-column: 1 / -1;
    }

    .memory-step {
        padding: 1.15rem 1rem 1.25rem;
    }

    .memory-num {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.2rem;
    }

    .memory-photo img {
        max-height: 420px;
    }

    .memory-video-el {
        max-height: 420px;
    }
}

/* Auth */
.auth-page {
    position: relative;
    padding: 0.5rem 0 1.5rem;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: -1rem -1.5rem auto;
    height: 14rem;
    background:
        radial-gradient(ellipse 70% 80% at 15% 20%, rgba(90, 162, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 10%, rgba(26, 95, 180, 0.12), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-shell {
    position: relative;
    z-index: 1;
    max-width: 26.5rem;
    margin: 0 auto;
}

.auth-shell-wide {
    max-width: 34rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(15, 61, 122, 0.03),
        0 18px 40px rgba(15, 61, 122, 0.1);
    animation: auth-rise 0.45s ease both;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card-head {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgba(90, 162, 255, 0.28), transparent 55%),
        linear-gradient(145deg, #0c2d5c 0%, #1a5fb4 55%, #2a6fc4 100%);
    color: #fff;
    padding: 1.75rem 1.6rem 1.55rem;
    text-align: center;
}

.auth-card-head::after {
    content: "";
    position: absolute;
    inset: auto -15% -55% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.auth-mark {
    position: relative;
    width: 3.1rem;
    height: 3.1rem;
    margin: 0 auto 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    place-items: center;
    font-family: "Traditional Arabic", "Scheherazade New", "Amiri", serif;
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.auth-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 auto 0.85rem;
}

.auth-logo-word {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fff8ec;
}

.auth-logo-mark {
    position: relative;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    border: 1.5px solid rgba(247, 241, 230, 0.95);
    box-shadow: inset -0.28rem 0 0 0 rgba(247, 241, 230, 0.95);
    background: rgba(228, 196, 138, 0.16);
    transform: translateY(-0.05rem);
}

.auth-logo-mark::after,
.landing-brand-mark::after,
.brand-mark::after {
    content: "";
    position: absolute;
    top: -0.18em;
    right: -0.22em;
    width: 0.42em;
    height: 0.42em;
    background: #e4c48a;
    clip-path: polygon(
        50% 0%, 58% 35%, 98% 35%, 66% 56%,
        79% 91%, 50% 70%, 21% 91%, 34% 56%,
        2% 35%, 42% 35%
    );
}

.auth-eyebrow {
    position: relative;
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
}

.auth-title {
    position: relative;
    margin: 0 0 0.4rem;
    font-size: clamp(1.55rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-lead {
    position: relative;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.8);
}

.auth-card-body {
    padding: 1.35rem 1.4rem 1.5rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.3rem;
    margin-bottom: 1.25rem;
    background: #f0f5fb;
    border-radius: 0.9rem;
}

.auth-tab {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 0.75rem;
    border: 0;
    background: transparent;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-tab:hover {
    color: var(--brand-dark);
}

.auth-tab.is-active {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(15, 61, 122, 0.08);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: #fff1f1;
    border: 1px solid #f5c2c7;
    color: #842029;
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-alert-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-top: 0.05rem;
}

.auth-form {
    display: grid;
    gap: 0.95rem;
}

.auth-field-row {
    display: grid;
    gap: 0.95rem;
}

@media (min-width: 576px) {
    .auth-shell-wide .auth-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-field {
    display: grid;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.95rem;
    color: #8aa0b8;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: color 0.15s ease;
}

.auth-input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 0.9rem;
    background: #fafcff;
    padding: 0.85rem 2.75rem 0.85rem 2.75rem;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
    color: #9aadc2;
}

.auth-input:hover {
    border-color: #b7cfe8;
}

.auth-input:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.15);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--brand);
}

.auth-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b7c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
}

.auth-toggle-pass {
    position: absolute;
    right: 0.45rem;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: #8aa0b8;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-toggle-pass:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.auth-hint {
    margin: -0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.auth-gender {
    display: flex;
    gap: 0.65rem;
}

.auth-gender-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.85rem 0.75rem;
    border: 1.5px solid #d7e3f4;
    border-radius: 0.9rem;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.auth-gender-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.auth-gender-option input {
    accent-color: var(--brand);
}

.auth-submit {
    margin-top: 0.35rem;
    width: 100%;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.95rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 10px 22px rgba(26, 95, 180, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(26, 95, 180, 0.34);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.25), 0 10px 22px rgba(26, 95, 180, 0.28);
}

.auth-footer {
    margin: 1.2rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

.auth-footer a {
    font-weight: 700;
}

.auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.85rem;
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    animation: auth-rise 0.55s ease 0.08s both;
}

.auth-trust li {
    position: relative;
    padding-left: 1.05rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.auth-trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    .auth-card {
        border-radius: 1.25rem;
    }

    .auth-card-head {
        padding: 1.45rem 1.2rem 1.3rem;
    }

    .auth-card-body {
        padding: 1.15rem 1.1rem 1.3rem;
    }

    .auth-input {
        font-size: 16px;
    }
}

/* Cabinet */

.cabinet-home {
    --cabinet-rise: 14px;
}

.cabinet-home > .cabinet-hero,
.cabinet-home > .waqt-widget,
.cabinet-home > .cabinet-recent,
.cabinet-home > .cabinet-nudge {
    animation: cabinet-rise 0.55s ease both;
}

.cabinet-home > .waqt-widget { animation-delay: 0.06s; }
.cabinet-home > .cabinet-recent,
.cabinet-home > .cabinet-nudge { animation-delay: 0.12s; }

@keyframes cabinet-rise {
    from {
        opacity: 0;
        transform: translateY(var(--cabinet-rise));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-home > .cabinet-hero,
    .cabinet-home > .waqt-widget,
    .cabinet-home > .cabinet-recent,
    .cabinet-home > .cabinet-nudge {
        animation: none;
    }
}

.cabinet-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-bottom: 1.35rem !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.cabinet-nav::-webkit-scrollbar {
    display: none;
}

.cabinet-nav-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-nav-link:hover {
    color: var(--brand-dark);
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
    box-shadow: 0 4px 14px var(--glow);
}

.cabinet-nav-link.is-active {
    background: var(--brand-soft);
    border-color: transparent;
    color: var(--brand-dark);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.cabinet-hero {
    --cabinet-hero-ink: #fff8ec;
    --cabinet-hero-muted: rgba(255, 248, 236, 0.82);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(22rem, 42vw, 28rem);
    border-radius: var(--radius-lg);
    color: var(--cabinet-hero-ink);
    box-shadow:
        0 22px 48px rgba(8, 12, 18, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.06) inset;
}

.cabinet-hero-bg,
.cabinet-hero-shade,
.cabinet-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cabinet-hero-bg {
    background: url("../images/landing-prayer.jpg?v=5") right 32% center / cover no-repeat;
    transform: scale(1.06);
    animation: cabinet-hero- ken 18s ease-in-out infinite alternate;
}

.cabinet-hero-shade {
    background:
        linear-gradient(105deg, rgba(8, 12, 18, 0.88) 0%, rgba(8, 12, 18, 0.62) 42%, rgba(8, 12, 18, 0.28) 72%, rgba(8, 12, 18, 0.45) 100%),
        linear-gradient(180deg, rgba(8, 12, 18, 0.2) 0%, transparent 40%, rgba(8, 12, 18, 0.55) 100%);
}

.cabinet-hero-glow {
    background:
        radial-gradient(circle at 78% 58%, rgba(228, 196, 138, 0.32), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(228, 196, 138, 0.12), transparent 36%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.cabinet-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
    align-items: end;
    min-height: inherit;
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

@media (min-width: 992px) {
    .cabinet-hero-inner {
        align-items: center;
    }
}

.cabinet-hero-copy {
    max-width: 34rem;
    animation: cabinet-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cabinet-hero-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.02;
    color: var(--cabinet-hero-ink);
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cabinet-hero-title .brand-mark {
    width: clamp(1.15rem, 2.2vw, 1.55rem);
    height: clamp(1.15rem, 2.2vw, 1.55rem);
    border-width: 2px;
    border-color: rgba(255, 248, 236, 0.9);
    box-shadow: inset -0.34rem 0 0 0 rgba(255, 248, 236, 0.95);
    background: rgba(228, 196, 138, 0.14);
    transform: translateY(0.08em);
}

.cabinet-hero-greet {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 500;
    color: rgba(255, 248, 236, 0.96);
}

.cabinet-hero-greet strong {
    color: #fff;
    font-weight: 800;
}

.cabinet-hero-lead {
    margin: 0 0 1.45rem;
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--cabinet-hero-muted);
    text-wrap: pretty;
}

.cabinet-continue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 28rem;
    width: 100%;
    padding: 1.05rem 1.2rem;
    border-radius: 1.1rem;
    background: #fff8ec;
    color: #1a1510;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-continue:hover,
.cabinet-continue:focus {
    background: #fff;
    color: #12100c;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.cabinet-continue-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.cabinet-continue-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(26, 21, 16, 0.55);
}

.cabinet-continue-label {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.cabinet-continue-hint {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(26, 21, 16, 0.72);
    line-height: 1.35;
}

.cabinet-continue-arrow {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 21, 16, 0.08);
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cabinet-continue:hover .cabinet-continue-arrow,
.cabinet-continue:focus .cabinet-continue-arrow {
    transform: translateX(3px);
    background: rgba(26, 21, 16, 0.12);
}

.cabinet-hero-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.1rem;
    max-width: 28rem;
}

.cabinet-hero-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.55rem 0.4rem;
    border-radius: 1.1rem;
    background: #fff8ec;
    color: #1a1510;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-hero-links a:hover,
.cabinet-hero-links a:focus {
    background: #fff;
    color: #12100c;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
}

@media (max-width: 420px) {
    .cabinet-hero-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cabinet-nudge {
    margin: 0;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
    color: var(--ink);
    font-size: 0.98rem;
}

.cabinet-nudge a {
    font-weight: 800;
}

.cabinet-empty-cta {
    padding: 1.15rem 1.25rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15, 61, 122, 0.05);
}

.cabinet-empty-cta p {
    margin: 0;
    color: var(--muted);
}

.cabinet-linked-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--line);
    background: var(--bg);
    font-weight: 700;
}

.cabinet-linked-field a {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand);
}

.cabinet-linked-field a:hover {
    color: var(--brand-dark);
}

.cabinet-reciter-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: #fff;
}

.cabinet-reciter-card-body strong {
    display: block;
    margin-bottom: 0.15rem;
}

.cabinet-reciter-card-link {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand);
}

.cabinet-reciter-card-link:hover {
    color: var(--brand-dark);
}

.waqt-headline-block {
    flex: 1 1 14rem;
    min-width: 0;
}

.waqt-headline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.waqt-headline-row .waqt-title {
    flex: 1 1 12rem;
    min-width: 0;
}

.waqt-headline-row .waqt-countdown {
    flex: 0 0 auto;
}

.waqt-slots-label {
    position: relative;
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.waqt-soft .waqt-slots-label {
    color: var(--muted);
}

/* Compact prayer widget (cabinet) */
.waqt-compact {
    padding: 1.2rem 1.25rem 1.1rem;
}

.waqt-compact .waqt-top {
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.waqt-compact .waqt-title {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.waqt-compact .waqt-sub {
    margin-top: 0.35rem;
    font-size: 0.88rem;
}

.waqt-compact .waqt-countdown {
    padding: 0.5rem 0.8rem;
    min-width: 7.25rem;
}

.waqt-compact .waqt-countdown-value {
    font-size: 1.22rem;
}

.waqt-compact .waqt-slot {
    padding: 0.7rem 0.6rem 0.65rem;
}

.waqt-compact .waqt-foot {
    margin-top: 0.7rem;
    font-size: 0.76rem;
}

@media (max-width: 767.98px) {
    .waqt-compact .waqt-sub,
    .waqt-compact .waqt-source,
    .waqt-compact .waqt-slots-label,
    .waqt-compact .waqt-foot {
        display: none;
    }

    .waqt-compact .waqt-meta {
        margin-bottom: 0.3rem;
    }

    .waqt-compact .waqt-headline-row {
        align-items: center;
        gap: 0.65rem;
    }

    .waqt-compact .waqt-slots {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.2rem;
        margin-inline: -0.15rem;
        padding-inline: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .waqt-compact .waqt-slot {
        flex: 0 0 5.6rem;
        scroll-snap-align: start;
    }

    .waqt-compact .waqt-slot:last-child {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .waqt-compact {
        padding: 0.95rem 0.9rem 0.85rem;
    }

    .waqt-compact .waqt-title {
        font-size: 1.12rem;
    }

    .waqt-compact .waqt-countdown {
        min-width: 6.6rem;
        padding: 0.42rem 0.65rem;
    }

    .waqt-compact .waqt-countdown-value {
        font-size: 1.1rem;
    }

    .cabinet-hero-greet {
        font-size: 1.28rem;
    }
}

/* Soft prayer widget — sits under photo hero without competing */
.waqt-soft {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 61, 122, 0.05);
}

.waqt-soft::before {
    display: none;
}

.waqt-soft .waqt-eyebrow,
.waqt-soft .waqt-sub,
.waqt-soft .waqt-foot {
    color: var(--muted);
}

.waqt-soft .waqt-title {
    color: var(--brand-dark);
}

.waqt-soft .waqt-source {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.waqt-soft .waqt-countdown {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 16%, var(--line));
    color: var(--brand-dark);
}

.waqt-soft .waqt-countdown-label {
    color: var(--muted);
}

.waqt-soft .waqt-countdown-value {
    color: var(--brand-dark);
}

.waqt-soft .waqt-slot {
    background: var(--bg);
    border-color: var(--line);
    color: var(--ink);
}

.waqt-soft .waqt-slot:hover {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
    color: var(--brand-dark);
}

.waqt-soft .waqt-slot.is-current,
.waqt-soft .waqt-slot.is-next {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent);
}

.waqt-soft .waqt-slot.is-current:hover,
.waqt-soft .waqt-slot.is-next:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.waqt-soft .waqt-slot.is-current .waqt-slot-name,
.waqt-soft .waqt-slot.is-current .waqt-slot-time,
.waqt-soft .waqt-slot.is-next .waqt-slot-name,
.waqt-soft .waqt-slot.is-next .waqt-slot-time {
    color: #fff;
    opacity: 1;
}

.waqt-soft .waqt-slot.is-current .waqt-slot-badge {
    background: #fff;
    color: var(--brand-dark);
}

.waqt-soft .waqt-slot.is-next .waqt-slot-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.waqt-soft .waqt-foot a {
    color: var(--brand);
}

.waqt-soft .waqt-foot a:hover {
    color: var(--brand-dark);
}

body.theme-female .waqt-soft {
    box-shadow: 0 10px 28px rgba(122, 49, 72, 0.06);
}

@keyframes cabinet-hero-ken {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.2%, -0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-hero-bg {
        animation: none;
        transform: scale(1.04);
    }

    .cabinet-hero-copy {
        animation: none;
    }
}

.cabinet-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .cabinet-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cabinet-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    padding: 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 8rem;
    box-shadow: 0 8px 24px rgba(15, 61, 122, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cabinet-stat:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
    box-shadow: 0 14px 32px rgba(15, 61, 122, 0.08);
}

.cabinet-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.cabinet-stat-value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1.1;
    color: var(--brand-dark);
    font-weight: 800;
}

.cabinet-stat-value.cabinet-stat-text {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    margin-top: 0.4rem;
    line-height: 1.35;
}

.cabinet-stat-note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: auto;
}

.cabinet-stat-note a {
    font-weight: 700;
}

.cabinet-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cabinet-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border-radius: 0.95rem;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    font-weight: 700;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-quick-link:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.cabinet-quick-link.is-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 28%, transparent);
}

.cabinet-quick-link.is-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.cabinet-recent {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.15rem 1.2rem 0.85rem;
    box-shadow: 0 8px 24px rgba(15, 61, 122, 0.04);
}

.cabinet-recent-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.cabinet-recent-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.cabinet-recent-more {
    font-size: 0.88rem;
    font-weight: 700;
}

.cabinet-recent .list-stack {
    gap: 0;
}

.cabinet-recent .lesson-row {
    border-radius: 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    padding: 0.95rem 0.5rem;
}

.cabinet-recent .lesson-row:last-child {
    border-bottom: 0;
}

.cabinet-recent .lesson-row:hover {
    background: var(--brand-soft);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.nav-user-name {
    opacity: 0.85;
    font-size: 0.9rem;
}

.fav-form {
    display: inline-flex;
}

/* —— Әйелдер тақырыбы: бөлек көрініс —— */
body.theme-female h1,
body.theme-female h2,
body.theme-female .display-5,
body.theme-female .auth-title,
body.theme-female .page-head .h3,
body.theme-female .navbar-brand {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

body.theme-female .navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
}

body.theme-female .hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

body.theme-female .cabinet-hero-shade {
    background:
        linear-gradient(105deg, rgba(42, 18, 28, 0.9) 0%, rgba(74, 31, 48, 0.65) 42%, rgba(42, 18, 28, 0.28) 72%, rgba(42, 18, 28, 0.5) 100%),
        linear-gradient(180deg, rgba(42, 18, 28, 0.22) 0%, transparent 40%, rgba(42, 18, 28, 0.58) 100%);
}

body.theme-female .cabinet-hero-glow {
    background:
        radial-gradient(circle at 78% 58%, rgba(232, 180, 190, 0.28), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(201, 122, 140, 0.14), transparent 36%);
}

body.theme-female .hero-panel::after {
    content: none;
}

body.theme-female .card,
body.theme-female .auth-card,
body.theme-female .cabinet-stat,
body.theme-female .cabinet-recent,
body.theme-female .lesson-card,
body.theme-female .cat-card {
    border-radius: var(--radius) !important;
    border-color: var(--line);
    box-shadow: 0 10px 28px rgba(122, 49, 72, 0.06);
}

body.theme-female .cabinet-quick-link,
body.theme-female .cabinet-continue {
    border-radius: 1.1rem;
}

body.theme-female .cabinet-stat:hover {
    box-shadow: 0 14px 32px rgba(122, 49, 72, 0.1);
}

body.theme-female .btn,
body.theme-female .auth-submit,
body.theme-female .auth-input,
body.theme-female .form-control,
body.theme-female .form-select {
    border-radius: 1.1rem;
}

body.theme-female .auth-mark {
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
}

body.theme-female .auth-gender-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

body.theme-female .bg-brand {
    background: linear-gradient(120deg, var(--header-deep), var(--brand)) !important;
}

body.theme-female .howto-qamat-times,
body.theme-female .chip,
body.theme-female .badge-soft {
    border-color: color-mix(in srgb, var(--brand) 35%, white);
}

/* Android app landing — single screen */
body.is-landing {
    --landing-ink: #f7f1e6;
    --landing-muted: rgba(247, 241, 230, 0.84);
    --landing-gold: #e4c48a;
    --landing-gold-deep: #c9a05a;
    font-family: var(--font-body);
    background: #0c1219;
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-main {
    padding: 0;
    min-height: 100vh;
}

.landing-shell,
.landing {
    width: 100%;
    max-width: none;
    min-height: 100vh;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100vh;
    color: var(--landing-ink);
}

.landing-hero-bg,
.landing-hero-shade,
.landing-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-hero-bg {
    background: url("../images/landing-prayer.jpg?v=5") right 35% center / cover no-repeat;
    transform: scale(1.04);
}

.landing-hero-shade {
    background:
        linear-gradient(105deg, rgba(8, 12, 18, 0.82) 0%, rgba(8, 12, 18, 0.55) 38%, rgba(8, 12, 18, 0.18) 68%, rgba(8, 12, 18, 0.35) 100%),
        linear-gradient(180deg, rgba(8, 12, 18, 0.25) 0%, transparent 28%, rgba(8, 12, 18, 0.55) 100%);
}

.landing-hero-glow {
    background:
        radial-gradient(circle at 78% 62%, rgba(228, 196, 138, 0.28), transparent 28%),
        radial-gradient(circle at 18% 80%, rgba(228, 196, 138, 0.1), transparent 34%);
    mix-blend-mode: screen;
    opacity: 0.85;
}

.landing-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.landing-hero-copy {
    max-width: 34rem;
    animation: landingRise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    font-family: var(--font-display);
    font-size: clamp(2.85rem, 6.5vw, 4.35rem);
    font-weight: 700;
    font-optical-sizing: auto;
    line-height: 1.02;
    letter-spacing: 0.04em;
    color: #fff8ec;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.landing-logo-word {
    display: inline-block;
}

.landing-brand-mark,
.brand-mark {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    border: 1.5px solid rgba(247, 241, 230, 0.92);
    box-shadow: inset -0.38rem 0 0 0 rgba(247, 241, 230, 0.95);
    background: rgba(228, 196, 138, 0.12);
}

.landing-logo .landing-brand-mark {
    width: clamp(1.35rem, 2.4vw, 1.85rem);
    height: clamp(1.35rem, 2.4vw, 1.85rem);
    border-width: 2px;
    box-shadow: inset -0.42rem 0 0 0 rgba(247, 241, 230, 0.95);
    transform: translateY(0.12em);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-word {
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.navbar-brand .brand-mark {
    width: 0.95rem;
    height: 0.95rem;
    border-width: 1.5px;
    box-shadow: inset -0.24rem 0 0 0 rgba(247, 241, 230, 0.95);
    transform: translateY(-0.05rem);
}

.hero-panel .brand-lockup {
    gap: 0.35rem;
}

.hero-panel .brand-word {
    letter-spacing: 0.12em;
}

.hero-panel .brand-mark {
    width: 0.85rem;
    height: 0.85rem;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: inset -0.22rem 0 0 0 rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

.landing-hero-lead {
    margin: 0 0 1.35rem;
    max-width: 28rem;
    font-family: var(--font-body);
    font-size: clamp(1.08rem, 2.3vw, 1.28rem);
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--landing-muted);
    text-wrap: pretty;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.landing-btn-primary {
    border: 0;
    background: linear-gradient(135deg, #f0d7a4 0%, var(--landing-gold) 45%, var(--landing-gold-deep) 100%);
    color: #1a140c;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.landing-btn-primary:hover,
.landing-btn-primary:focus {
    background: linear-gradient(135deg, #fff0cc 0%, #edd19a 50%, #d4ae68 100%);
    color: #1a140c;
}

.landing-btn-ghost {
    border: 1px solid rgba(247, 241, 230, 0.42);
    color: #fff8ec;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.landing-btn-ghost:hover,
.landing-btn-ghost:focus {
    border-color: rgba(247, 241, 230, 0.7);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.landing-hero-meta {
    margin: 1rem 0 0;
    font-size: 0.84rem;
    color: rgba(247, 241, 230, 0.62);
}

@keyframes landingRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .landing-hero-bg {
        background-position: 70% center;
    }

    .landing-hero-shade {
        background:
            linear-gradient(180deg, rgba(8, 12, 18, 0.35) 0%, rgba(8, 12, 18, 0.55) 45%, rgba(8, 12, 18, 0.82) 100%),
            linear-gradient(105deg, rgba(8, 12, 18, 0.55) 0%, rgba(8, 12, 18, 0.2) 100%);
    }

    .landing-hero-inner {
        align-items: flex-end;
        padding: 2rem 0 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .landing-hero-inner {
        width: min(100% - 1.5rem, 1120px);
    }

    .landing-hero-actions .btn {
        width: 100%;
    }
}

body.is-landing.theme-female {
    background: #241018;
}

/* Auth modal on landing */
.auth-modal {
    border: 0;
    border-radius: 1.35rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    max-height: min(92vh, 860px);
    scrollbar-width: thin;
    scrollbar-color: rgba(28, 36, 48, 0.35) transparent;
}

.auth-modal::-webkit-scrollbar {
    width: 8px;
}

.auth-modal::-webkit-scrollbar-thumb {
    background: rgba(28, 36, 48, 0.28);
    border-radius: 999px;
}

.auth-modal::-webkit-scrollbar-track {
    background: transparent;
}

.auth-modal-head {
    position: relative;
    padding: 1.45rem 1.4rem 1.25rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgba(228, 196, 138, 0.28), transparent 55%),
        linear-gradient(145deg, #0c1219 0%, #1a2433 55%, #243246 100%);
}

.auth-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    opacity: 0.85;
}

.auth-modal-head .auth-logo {
    margin-bottom: 0.55rem;
}

.auth-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff8ec;
}

.auth-modal-lead {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(247, 241, 230, 0.75);
}

.auth-modal-body {
    padding: 1.2rem 1.25rem 1.4rem;
}

.auth-panel[hidden] {
    display: none !important;
}

#authModal .modal-dialog {
    max-width: 34rem;
    margin: 0.75rem auto;
}

body.is-landing.theme-female .auth-modal-head {
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 190, 210, 0.22), transparent 55%),
        linear-gradient(145deg, #4a1f30 0%, #7a3148 55%, #b85a72 100%);
}

.admin-zikr-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-zikr-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
}

.admin-zikr-card-body {
    flex: 1 1 16rem;
    min-width: 0;
}

.admin-zikr-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.45rem;
}

.admin-zikr-order {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.admin-zikr-title {
    font-size: 1.05rem;
}

.admin-zikr-arabic {
    font-size: 1.35rem;
    line-height: 1.7;
    margin: 0;
}

.admin-zikr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.admin-zikr-actions form {
    margin: 0;
}

.admin-arabic-input {
    font-size: 1.35rem;
    line-height: 1.7;
    text-align: right;
}

/* —— Құран: оқылымды тексеру —— */
.recite-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(12, 24, 40, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 576px) {
    .recite-overlay {
        align-items: center;
    }
}

.recite-card {
    width: min(420px, 100%);
    max-height: min(92vh, 740px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    padding: 1.35rem 1.25rem 1.2rem;
    box-shadow: 0 18px 50px rgba(12, 24, 40, 0.18);
    text-align: center;
}

.recite-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.35rem;
}

.recite-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.4rem;
}

.recite-lead {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
}

.recite-verse {
    background: var(--brand-soft);
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.recite-arabic {
    font-family: "Noto Naskh Arabic", "Amiri", "Scheherazade New", serif;
    font-size: 1.45rem;
    line-height: 1.9;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.recite-trans {
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--ink);
    margin: 0.15rem 0 0.75rem;
}

.recite-trans-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.recite-listen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    border: 1.5px solid var(--brand);
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}

.recite-listen:hover {
    background: #fff;
    color: var(--brand-dark);
}

.recite-listen.is-play {
    background: var(--brand);
    color: #fff;
}

.recite-listen-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.recite-mic {
    position: relative;
    width: 5.6rem;
    height: 5.6rem;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin: 0.15rem auto 0.85rem;
    box-shadow: 0 10px 24px rgba(26, 95, 180, 0.28);
}

.recite-mic-icon {
    font-size: 1.55rem;
    line-height: 1;
}

.recite-mic-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.recite-mic-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    opacity: 0;
}

.recite-mic.is-listen {
    background: #c62828;
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.28);
}

.recite-mic.is-listen .recite-mic-ring {
    animation: recitePulse 1.2s ease-out infinite;
}

.recite-mic.is-ok {
    background: #2e7d32;
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.28);
}

.recite-mic.is-bad {
    background: #c05621;
}

@keyframes recitePulse {
    0% { transform: scale(0.92); opacity: 0.55; }
    100% { transform: scale(1.18); opacity: 0; }
}

.recite-status {
    font-weight: 700;
    color: var(--ink);
    min-height: 1.4em;
    margin-bottom: 0.35rem;
}

.recite-status.is-ok { color: #2e7d32; }
.recite-status.is-bad { color: #b42318; }

.recite-heard {
    font-size: 0.88rem;
    color: var(--muted);
    background: var(--bg);
    border-radius: 0.7rem;
    padding: 0.55rem 0.7rem;
    margin: 0.4rem 0 0.85rem;
    line-height: 1.4;
}

.recite-actions {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
}


