: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: "Segoe UI", "Trebuchet MS", sans-serif;
    --font-body: "Segoe UI", "Trebuchet MS", 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: "Cormorant Garamond", "Georgia", serif;
    --font-body: "Segoe UI", "Trebuchet MS", 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);
    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);
}

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 {
    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.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(6px);
}

/* —— Намаз уақыты виджеті —— */
.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,
.practice-shell .progress-soft,
.page-head + .hero-stat .progress-soft {
    background: #d9e7f7;
}

.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-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;
    }

    .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-eyebrow {
    position: relative;
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    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;
    text-align: center;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    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-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cabinet-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    background: #fff;
}

.cabinet-nav-link:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
}

.cabinet-nav-link.is-active {
    background: var(--brand-soft);
    border-color: transparent;
    color: var(--brand-dark);
    font-weight: 600;
}

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

@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: 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 7.5rem;
}

.cabinet-stat-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.cabinet-stat-value {
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--brand-dark);
}

.cabinet-stat-value.cabinet-stat-text {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

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

.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 .hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -20% -55% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
    pointer-events: none;
}

body.theme-female .card,
body.theme-female .auth-card,
body.theme-female .cabinet-stat,
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 .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);
}

