﻿:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --card: #ffffff;
    --surface: #ffffff;
    --surface-strong: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --border: rgba(17, 24, 39, 0.08);
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    --radius: 18px;
    --radius-sm: 14px;
    --link: #1d4ed8;
    --link-hover: #1e40af;
    --soft-bg: rgba(59, 130, 246, 0.10);
    --soft-border: rgba(59, 130, 246, 0.18);
    --soft-text: #1d4ed8;
    --input-bg: #ffffff;
    --toggle-bg: linear-gradient(135deg, #eff6ff, #dbeafe);
    --toggle-border: rgba(37, 99, 235, 0.18);
    --toggle-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

html {
    height: 100%;
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

main,
main.container,
.container {
    width: min(1100px, calc(100% - 2rem));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-shell {
    width: min(1100px, calc(100% - 2rem));
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-hero {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-platform-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 32%);
}

.home-platform-hero .card-body {
    padding: 2rem;
}

.home-hero-kicker,
.home-section-kicker {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.home-hero-lead {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text);
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.2rem 0 1.4rem;
}

.home-hero-tags span {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--soft-bg);
    border: 1px solid var(--soft-border);
    color: var(--soft-text);
    font-weight: 700;
}

.home-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.home-metric {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
}

.home-metric strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.home-metric span {
    color: var(--muted);
    line-height: 1.5;
}

.home-cta-band,
.home-steps-section,
.home-child-spotlight,
.home-faq-section {
    width: min(1040px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-cta-band .card-body,
.home-steps-section .card-body,
.home-child-spotlight .card-body,
.home-faq-section .card-body {
    padding: 1.5rem;
}

.home-cta-heading,
.home-conversion-heading {
    max-width: 760px;
    margin-bottom: 1.15rem;
}

.home-cta-heading h2,
.home-conversion-heading h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.9rem, 2.6vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-cta-grid,
.home-trust-grid,
.home-steps-grid {
    display: grid;
    gap: 1rem;
}

.home-cta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-cta-card {
    min-height: 230px;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-cta-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.home-cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--soft-bg);
    border: 1px solid var(--soft-border);
    color: var(--soft-text);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-cta-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.18rem;
    line-height: 1.25;
}

.home-cta-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    flex: 1 1 auto;
}

.home-cta-link {
    margin-top: 1rem;
    font-weight: 800;
    color: var(--link);
}

.home-trust-section {
    width: min(1040px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-trust-card {
    height: 100%;
    border-radius: 24px;
}

.home-trust-card .card-body {
    padding: 1.25rem;
}

.home-trust-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.95rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--soft-bg);
    border: 1px solid var(--soft-border);
}

.home-trust-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.home-trust-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.home-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.home-step-card {
    position: relative;
    min-height: 180px;
    padding: 1.2rem 1.15rem 1.15rem 1.35rem;
    border-radius: 24px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
    overflow: hidden;
}

.home-step-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.75), rgba(14, 165, 233, 0.24));
}

.home-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.95rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: var(--soft-text);
    font-weight: 800;
}

.home-step-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.home-step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.home-child-spotlight-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

.home-child-copy h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.85rem, 2.5vw, 2.55rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.home-child-points {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.home-child-points li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--text);
    line-height: 1.7;
}

.home-child-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #3b82f6);
}

.home-child-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.home-child-card {
    height: 100%;
    padding: 1.3rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 32%),
        rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.home-child-card-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.home-child-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.15rem;
    line-height: 1.28;
}

.home-child-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.home-child-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.home-child-mini-stat {
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
}

.home-child-mini-stat strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.home-child-mini-stat span {
    color: var(--muted);
    line-height: 1.5;
}

.home-showcase-grid {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-info-card {
    height: 100%;
}

.home-info-card .card-body {
    padding: 1.4rem;
}

.home-info-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.home-info-card h2,
.home-learning-path h2 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

.home-info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.home-modules {
    width: min(1040px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-modules-heading {
    margin-bottom: 1rem;
}

.home-module-group {
    margin-bottom: 1.35rem;
}

.home-module-group:last-child {
    margin-bottom: 0;
}

.home-module-group-header {
    margin-bottom: 0.85rem;
}

.home-module-group-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.home-module-card {
    min-height: 250px;
    aspect-ratio: 1 / 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.18);
}

.home-module-card .card-body {
    height: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.home-module-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.home-module-icon {
    font-size: 1.5rem;
}

.home-module-status,
.platform-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--soft-bg);
    border: 1px solid var(--soft-border);
    color: var(--soft-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.home-module-copy {
    flex: 1 1 auto;
}

.home-module-card h4 {
    margin-bottom: 0.55rem;
    font-size: 1.08rem;
    line-height: 1.25;
}

.home-module-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.home-module-link {
    font-weight: 800;
    color: var(--link);
    margin-top: 1rem;
}

.home-learning-path {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-grid {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.home-grid-col {
    display: flex;
    justify-content: center;
    flex: 0 1 320px;
}

.home-card {
    width: min(320px, 100%);
    max-width: 320px;
}

.home-card-placeholder {
    height: 220px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(100, 116, 139, 0.12));
}

.home-card-title {
    margin-bottom: 0.4rem;
}

.home-card-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.platform-page {
    width: min(1100px, calc(100% - 2rem));
}

.platform-hero .card-body {
    padding: 2rem;
    text-align: center;
}

.platform-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.platform-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.platform-lead {
    max-width: 760px;
    margin: 0.9rem auto 1.1rem;
    color: var(--muted);
    line-height: 1.8;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.platform-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    font-weight: 700;
}

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

.platform-feature-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
}

.platform-feature-list li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.platform-roadmap-note {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.14);
    color: var(--text);
    line-height: 1.65;
}

.platform-rich-copy {
    color: var(--muted);
    line-height: 1.75;
}

.platform-rich-copy p:last-child {
    margin-bottom: 0;
}

.platform-source-note {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.16);
    color: var(--text);
}

.platform-source-note a {
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
}

.platform-source-note a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.platform-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.platform-mini-card {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
}

.platform-mini-card strong {
    display: block;
    margin-bottom: 0.3rem;
}

.platform-mini-card span {
    color: var(--muted);
    line-height: 1.5;
}

.prayer-page {
    width: min(1200px, calc(100% - 2rem));
}

.prayer-shell {
    display: grid;
    gap: 1.1rem;
}

.prayer-stage-body {
    display: grid;
    gap: 1rem;
}

.prayer-kicker {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.prayer-player {
    overflow: hidden;
}

.prayer-experience {
    overflow: hidden;
}

.prayer-player-media {
    position: relative;
    background: #020617;
}

.prayer-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7.8;
    background: #020617;
    object-fit: cover;
}

.prayer-audio-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.prayer-live-caption {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0.82));
    color: #f8fafc;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.26);
}

.prayer-live-caption.is-active {
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.prayer-live-caption-time {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.92);
}

.prayer-live-caption-text {
    font-size: clamp(0.96rem, 0.8vw + 0.66rem, 1.22rem);
    line-height: 1.45;
    font-weight: 700;
}

.prayer-controls {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem 1.2rem 1rem;
}

.prayer-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.prayer-controls-row-primary {
    justify-content: flex-start;
}

.prayer-action {
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
    color: #e5eefc;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prayer-action:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.35);
    color: #fff;
}

.prayer-action-play {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(147, 197, 253, 0.28);
}

.prayer-action-focus {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.96), rgba(8, 145, 178, 0.96));
    border-color: rgba(103, 232, 249, 0.2);
}

.prayer-action-audio {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.94), rgba(249, 115, 22, 0.95));
    border-color: rgba(253, 224, 71, 0.24);
    color: #fff7ed;
}

.prayer-volume {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: min(240px, 100%);
    padding: 0.72rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
    color: #e5eefc;
    font-weight: 700;
}

.prayer-volume span {
    white-space: nowrap;
}

.prayer-volume-slider {
    flex: 1 1 auto;
    accent-color: #38bdf8;
}

.prayer-rate {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.prayer-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
}

.prayer-progress input[type="range"] {
    width: 100%;
}

.prayer-status {
    color: var(--muted);
    font-size: 0.9rem;
}

.prayer-transcript {
    padding: 0 1.2rem 1rem;
}

.prayer-transcript-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.1rem 0 0.65rem;
}

.prayer-transcript-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.transcript-panel {
    display: grid;
    gap: 0.65rem;
    max-height: 14rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.transcript-panel-inline {
    min-height: 14rem;
}

.transcript-line {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    padding: 0.75rem 0.9rem;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.transcript-line:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
}

.transcript-line.is-active {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}

.transcript-time {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.transcript-text {
    line-height: 1.55;
}

@media (min-width: 1200px) and (min-height: 900px) {
    .prayer-page {
        width: min(1160px, calc(100% - 2rem));
    }

    .prayer-video {
        aspect-ratio: 16 / 7.35;
    }

    .prayer-controls {
        gap: 0.7rem;
        padding-top: 0.85rem;
        padding-bottom: 0.9rem;
    }

    .transcript-panel {
        max-height: 12rem;
    }

    .transcript-panel-inline {
        min-height: 12rem;
    }

    .transcript-line {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

.transcript-word {
    cursor: pointer;
    border-bottom: 1px dashed transparent;
}

.transcript-word:hover {
    border-bottom-color: currentColor;
}

.auth-shell {
    width: min(560px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 1.15rem 0 2rem;
}

.auth-card {
    border-radius: 28px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 168, 74, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(10, 18, 32, 0.96), rgba(8, 14, 25, 0.98));
    box-shadow: 0 28px 56px rgba(3, 7, 18, 0.22);
}

.auth-card .card-body {
    padding: 1.7rem;
}

.auth-kicker {
    margin-bottom: 0.65rem;
    color: #d7a84a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.05;
}

.auth-lead {
    margin: 0 0 1.35rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.auth-form .form-control {
    min-height: 3.35rem;
    border-radius: 16px;
}

.auth-submit {
    min-height: 3.2rem;
    border-radius: 18px;
    font-weight: 800;
}

.auth-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-link-actions .btn {
    flex: 1 1 220px;
    min-height: 3rem;
    border-radius: 16px;
    font-weight: 700;
}

.auth-status-card .auth-link-actions .btn {
    flex-basis: 0;
}

html[data-theme="light"] .auth-card {
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.92), transparent 34%),
        radial-gradient(circle at top right, rgba(253, 230, 138, 0.36), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
    border-color: rgba(191, 219, 254, 0.88);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .auth-title,
html[data-theme="light"] .auth-form .form-label {
    color: #0f172a;
}

html[data-theme="light"] .auth-lead {
    color: rgba(51, 65, 85, 0.82);
}

html[data-theme="light"] .prayer-volume {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(191, 219, 254, 0.82);
    color: #0f172a;
}

@media (max-width: 1100px) {
    .prayer-video {
        aspect-ratio: 16 / 9;
    }
}

a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

a.card {
    color: inherit;
    text-decoration: none;
}

a.navbar-brand {
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.app-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1.1;
}

.app-brand-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-brand-tagline {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.navbar,
footer,
.footer,
.border-top,
.border-bottom {
    border-color: var(--border) !important;
}

.navbar,
footer,
.footer {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.navbar {
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.04);
}

.navbar .navbar-brand,
.navbar .nav-link,
footer,
.footer {
    color: var(--text) !important;
}

footer *,
.footer * {
    color: var(--text) !important;
}

html:not([data-theme="dark"]) footer,
html:not([data-theme="dark"]) .footer,
html:not([data-theme="dark"]) footer *,
html:not([data-theme="dark"]) .footer *,
html:not([data-theme="dark"]) footer a,
html:not([data-theme="dark"]) .footer a,
html:not([data-theme="dark"]) footer small,
html:not([data-theme="dark"]) .footer small,
html:not([data-theme="dark"]) footer span,
html:not([data-theme="dark"]) .footer span,
html:not([data-theme="dark"]) footer p,
html:not([data-theme="dark"]) .footer p,
html:not([data-theme="dark"]) footer .text-white,
html:not([data-theme="dark"]) .footer .text-white,
html:not([data-theme="dark"]) footer .text-light,
html:not([data-theme="dark"]) .footer .text-light,
html:not([data-theme="dark"]) footer .text-muted,
html:not([data-theme="dark"]) .footer .text-muted {
    color: var(--text) !important;
}

#themeToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 8.75rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--toggle-border);
    background: var(--toggle-bg) !important;
    color: var(--text) !important;
    box-shadow: var(--toggle-shadow);
    font-weight: 600;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#themeToggle:hover {
    transform: translateY(-1px);
}

#themeToggle::before {
    content: "";
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 1.8rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff8cc 0 32%, #fbbf24 33% 100%);
    box-shadow: inset -0.2rem -0.2rem 0 rgba(245, 158, 11, 0.35), 0 0 0 0.15rem rgba(255, 255, 255, 0.85);
}

#themeToggle[aria-pressed="true"]::before {
    background: radial-gradient(circle at 30% 30%, #dbeafe 0 18%, #93c5fd 19% 40%, transparent 41%), linear-gradient(135deg, #e2e8f0, #94a3b8);
    box-shadow: inset -0.32rem -0.18rem 0 rgba(15, 23, 42, 0.22), 0 0 0 0.15rem rgba(255, 255, 255, 0.14);
}

.card {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.12);
}

.card-body {
    padding: 18px;
}

a.card .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.admin-dashboard-grid {
    justify-content: center;
}

.admin-card-link {
    display: block;
}

.admin-card-link .card-body {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 0.75rem;
}

.admin-card-link .fs-4 {
    margin-bottom: 0;
}

.admin-users-page .table td,
.admin-users-page .table th {
    vertical-align: middle;
}

.step-card img {
    max-height: 240px;
    object-fit: contain;
}

.arabic {
    font-family: "Noto Naskh Arabic", serif;
    font-size: 1.85rem;
    line-height: 2.5rem;
    letter-spacing: 0.2px;
}

.reading {
    font-size: 1.05rem;
}

.text-muted,
.text-secondary {
    color: var(--muted) !important;
}

.form-control,
.form-select {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}

.form-control:focus,
.form-check-input:focus,
.btn-primary:focus,
.btn-link.nav-link:focus,
.navbar-toggler:focus,
#themeToggle:focus {
    outline: black auto 1px;
    box-shadow: none;
}

.btn {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.btn-soft {
    background: var(--soft-bg);
    border: 1px solid var(--soft-border);
    color: var(--soft-text);
}

.btn-soft:hover {
    background: rgba(59, 130, 246, 0.16);
    color: var(--soft-text);
}

.btn-primary,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.box-shadow {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.pricing-header {
    max-width: 700px;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

footer,
.footer {
    margin-top: auto;
    position: static !important;
    bottom: auto !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: normal;
    line-height: 1.5;
    flex-shrink: 0;
    text-align: center;
}

.app-footer .container {
    text-align: center;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.app-footer-links a {
    font-weight: 700;
    text-decoration: none;
}

.app-footer-links a:hover {
    text-decoration: underline;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220;
    --card: #0f1a2b;
    --surface: #0f1b2d;
    --surface-strong: #111c30;
    --text: #e5e7eb;
    --muted: #cbd5e1;
    --border: rgba(229, 231, 235, 0.10);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --link: #93c5fd;
    --link-hover: #bfdbfe;
    --soft-bg: rgba(147, 197, 253, 0.14);
    --soft-border: rgba(147, 197, 253, 0.24);
    --soft-text: #bfdbfe;
    --input-bg: rgba(255, 255, 255, 0.08);
    --toggle-bg: linear-gradient(135deg, #172554, #1e293b);
    --toggle-border: rgba(147, 197, 253, 0.26);
    --toggle-shadow: 0 12px 28px rgba(15, 23, 42, 0.38);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-card-bg: var(--card);
    --bs-card-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-color: var(--muted);
    --bs-link-color: var(--link);
    --bs-link-hover-color: var(--link-hover);
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer {
    background-color: var(--card) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer {
    background: var(--surface) !important;
}

html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] .fw-bold,
html[data-theme="dark"] .fw-semibold,
html[data-theme="dark"] .table,
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer,
html[data-theme="dark"] footer *,
html[data-theme="dark"] .footer * {
    color: var(--text) !important;
}

html[data-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background: var(--input-bg);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .form-control::placeholder {
    color: rgba(229, 231, 235, 0.72);
}

@media (max-width: 576px) {
    .arabic {
        font-size: 1.55rem;
        line-height: 2.2rem;
    }

    .prayer-page {
        width: min(100%, calc(100% - 1rem));
    }

    .prayer-live-caption {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.8rem 0.9rem;
    }

    .prayer-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .prayer-rate {
        margin-left: 0;
        justify-content: space-between;
    }

    .prayer-volume {
        width: 100%;
    }

    .prayer-progress {
        grid-template-columns: 1fr;
    }

    .transcript-panel-inline {
        min-height: 18rem;
        max-height: 18rem;
    }

    a.card .card-body {
        min-height: 78px;
    }

    #themeToggle {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    main,
    main.container,
    .container {
        width: min(100%, calc(100% - 1rem));
    }

    .home-shell {
        width: min(100%, calc(100% - 1rem));
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .app-brand {
        align-items: flex-start;
    }

    .app-brand-title {
        font-size: 1.02rem;
    }

    .app-brand-tagline {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    .home-grid {
        gap: 1rem;
    }

    .home-platform-hero .card-body {
        padding: 1.25rem;
    }

    .home-hero-metrics,
    .home-showcase-grid,
    .home-module-grid,
    .platform-content-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-tags {
        justify-content: flex-start;
    }

    .home-card,
    .home-grid-col {
        max-width: 100%;
        flex-basis: 100%;
    }

    .home-card-placeholder {
        height: 190px;
    }

    .prayer-stage-body {
        gap: 0.85rem;
    }

    .prayer-stage-copy .display-5 {
        font-size: clamp(2rem, 8vw, 2.65rem);
    }

    .prayer-audio-badge {
        left: 0.75rem;
        right: auto;
        bottom: 5.4rem;
        max-width: calc(100% - 1.5rem);
        font-size: 0.74rem;
        padding: 0.45rem 0.65rem;
    }

    .prayer-live-caption-text {
        font-size: 0.98rem;
        line-height: 1.38;
    }

    .prayer-controls {
        padding: 0.85rem 0.85rem 0.95rem;
    }

    .prayer-action {
        width: 100%;
        justify-content: center;
    }

    .prayer-rate {
        width: 100%;
    }

    .prayer-rate .form-select {
        min-width: 0;
        flex: 1 1 auto;
    }

    .prayer-progress {
        gap: 0.5rem;
    }

    .prayer-status {
        font-size: 0.86rem;
    }

    .auth-shell {
        padding-top: 1rem;
    }

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

    .auth-link-actions .btn {
        flex-basis: 100%;
    }

    .prayer-transcript {
        padding: 0 0.85rem 0.85rem;
    }

    .prayer-transcript-heading {
        padding-bottom: 0.5rem;
    }

    .transcript-panel,
    .transcript-panel-inline {
        min-height: 12rem;
        max-height: 12rem;
    }

    .transcript-line {
        border-radius: 14px;
        padding: 0.7rem 0.8rem;
    }

    .admin-card-link .card-body {
        min-height: 150px;
        padding: 1rem;
    }

    .admin-users-page .card-body,
    .admin-dashboard-grid .card-body {
        padding: 1rem;
    }

    .admin-users-page .table-responsive {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .admin-users-page .table td,
    .admin-users-page .table th {
        white-space: nowrap;
        font-size: 0.92rem;
    }

    .admin-users-page .d-inline-flex {
        width: 100%;
    }

    .admin-users-page .d-inline-flex .btn,
    .admin-users-page .d-inline-flex form,
    .admin-users-page .d-inline-flex form .btn {
        width: 100%;
    }

    .admin-users-page .row.g-4 > [class*="col-"],
    .row.g-4 > [class*="col-lg-6"] {
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center.mb-4,
    .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 .btn,
    .d-flex.justify-content-between.align-items-center.mb-3 .btn {
        width: 100%;
    }

    .card.p-3,
    .card .card-body {
        padding: 1rem;
    }

    .card.p-3 .d-flex.justify-content-between.align-items-center,
    .card-body .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
    }

    .table td form.d-inline {
        display: block !important;
        margin-top: 0.35rem;
    }

    .table td .btn {
        width: 100%;
    }

    .form-check {
        min-height: 1.5rem;
    }

    .d-flex.gap-2,
    .d-flex.flex-wrap.gap-2 {
        flex-direction: column;
    }

    .d-flex.gap-2 .btn,
    .d-flex.flex-wrap.gap-2 .btn {
        width: 100%;
    }

    footer,
    .footer {
        white-space: normal;
        line-height: 1.5;
    }
}

.site-toast-wrap {
    position: fixed;
    top: 5.5rem;
    right: 1.25rem;
    z-index: 1080;
    width: min(380px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.site-toast {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem 1rem 0.95rem;
    border-radius: 22px;
    border: 1px solid rgba(71, 202, 128, 0.3);
    background: linear-gradient(135deg, rgba(16, 97, 58, 0.98), rgba(26, 145, 85, 0.95));
    color: #effff4;
    box-shadow: 0 18px 50px rgba(6, 18, 13, 0.4);
    transform: translateY(-14px) scale(0.96);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.34s ease;
    pointer-events: auto;
}

.site-toast.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.site-toast.is-hiding {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    filter: blur(8px);
}

.site-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(0.88);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.site-toast-icon svg {
    width: 20px;
    height: 20px;
}

.site-toast.is-visible .site-toast-icon {
    transform: scale(1);
}

.site-toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    transform: translateY(4px);
    opacity: 0.92;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.site-toast.is-visible .site-toast-content {
    transform: translateY(0);
    opacity: 1;
}

.site-toast-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-toast-text {
    font-size: 0.98rem;
    line-height: 1.35;
}

.site-toast-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
}

.site-toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .site-toast {
    border-color: rgba(27, 134, 82, 0.18);
    background: linear-gradient(135deg, #ecfff3, #ddffeb);
    color: #135338;
    box-shadow: 0 18px 40px rgba(35, 91, 63, 0.18);
}

html[data-theme="light"] .site-toast-icon {
    background: rgba(31, 156, 98, 0.14);
}

html[data-theme="light"] .site-toast-close {
    background: rgba(19, 83, 56, 0.1);
}

html[data-theme="light"] .site-toast-close:hover {
    background: rgba(19, 83, 56, 0.16);
}

.site-toast-warning {
    border-color: rgba(245, 158, 11, 0.34);
    background: linear-gradient(135deg, rgba(130, 83, 10, 0.96), rgba(180, 110, 14, 0.94));
    color: #fff8eb;
}

.site-toast-error {
    border-color: rgba(248, 113, 113, 0.34);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.98), rgba(185, 28, 28, 0.94));
    color: #fff1f2;
}

html[data-theme="light"] .site-toast-warning {
    background: linear-gradient(135deg, #fff6de, #ffefc7);
    color: #7c4a03;
}

html[data-theme="light"] .site-toast-error {
    background: linear-gradient(135deg, #fff1f2, #ffe1e5);
    color: #8b1d2c;
}

@media (max-width: 767.98px) {
    .site-toast-wrap {
        top: 4.85rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .site-toast {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .site-toast-close {
        margin-left: 0.35rem;
    }
}

.feedback-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1055;
    width: min(360px, calc(100vw - 1.5rem));
}

.feedback-float-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid rgba(214, 169, 79, 0.26);
    border-radius: 22px;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 29, 53, 0.98));
    color: #f8fbff;
    box-shadow: 0 24px 46px rgba(3, 8, 20, 0.34);
    backdrop-filter: blur(16px);
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feedback-float-trigger:hover,
.feedback-float-trigger:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(214, 169, 79, 0.4);
    box-shadow: 0 28px 54px rgba(3, 8, 20, 0.4);
}

.feedback-float-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    flex: 0 0 0.85rem;
    background: radial-gradient(circle at 30% 30%, #f9d98b, #d6a94f 68%, #8e661a 100%);
    box-shadow: 0 0 0 0 rgba(214, 169, 79, 0.45);
    animation: feedbackPulse 2.3s ease-out infinite;
}

.feedback-float-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.feedback-float-copy strong {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.feedback-float-copy span {
    font-size: 0.84rem;
    color: rgba(233, 241, 255, 0.78);
}

.feedback-float-panel {
    margin-top: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(10, 18, 33, 0.98), rgba(15, 25, 44, 0.98));
    box-shadow: 0 30px 54px rgba(2, 6, 23, 0.46);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
}

.feedback-float.is-open .feedback-float-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.feedback-float-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.feedback-float-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.feedback-float-panel-head h2 {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
}

.feedback-float-close {
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
}

.feedback-float-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.feedback-float-text {
    margin: 0 0 0.9rem;
    color: rgba(233, 241, 255, 0.74);
    line-height: 1.55;
}

.feedback-float-form .form-label {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.feedback-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

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

.feedback-item {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.03));
}

.feedback-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.feedback-item-name {
    margin: 0 0 0.18rem;
    font-size: 1.05rem;
}

.feedback-item-meta,
.feedback-item-label {
    font-size: 0.84rem;
    color: var(--text-soft);
}

.feedback-item-page {
    margin-bottom: 0.7rem;
    display: grid;
    gap: 0.16rem;
}

.feedback-item-page a {
    word-break: break-word;
}

.feedback-item-message {
    white-space: pre-wrap;
    line-height: 1.65;
}

html[data-theme="light"] .feedback-float-trigger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
    color: #122441;
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 24px 42px rgba(148, 163, 184, 0.22);
}

html[data-theme="light"] .feedback-float-copy span {
    color: rgba(15, 23, 42, 0.68);
}

html[data-theme="light"] .feedback-float-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(148, 163, 184, 0.24);
}

html[data-theme="light"] .feedback-float-text {
    color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .feedback-float-close {
    background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .feedback-float-close:hover {
    background: rgba(15, 23, 42, 0.1);
}

@keyframes feedbackPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 169, 79, 0.45);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(214, 169, 79, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(214, 169, 79, 0);
    }
}

.status-page {
    width: min(820px, calc(100% - 2rem));
}

.status-panel .card-body {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    text-align: center;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.status-meta {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
}

.status-meta code {
    font-size: 0.9rem;
    color: var(--soft-text);
    word-break: break-all;
}

@media (max-width: 991.98px) {
    .feedback-float {
        left: 0.85rem;
        right: 0.85rem;
        width: auto;
        bottom: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .feedback-float-trigger {
        padding: 0.85rem 0.9rem;
        border-radius: 18px;
    }

    .feedback-float-copy strong {
        font-size: 0.92rem;
    }

    .feedback-float-panel {
        padding: 0.95rem;
        border-radius: 20px;
    }

    .status-actions .btn {
        width: 100%;
    }

    .feedback-item-header {
        flex-direction: column;
    }
}

:root {
    --body-font: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --display-font: "Marcellus", Georgia, serif;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --accent-mint: #0f766e;
    --accent-gold: #d7a84a;
    --hero-shadow: 0 30px 90px rgba(15, 23, 42, 0.14);
    --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94));
}

html[data-theme="dark"] {
    --bg: #07111f;
    --card: rgba(11, 20, 36, 0.94);
    --surface: rgba(10, 18, 32, 0.9);
    --surface-strong: #0e1a30;
    --text: #ecf2ff;
    --muted: #a9b7d0;
    --border: rgba(148, 163, 184, 0.14);
    --shadow: 0 14px 34px rgba(2, 8, 23, 0.38);
    --link: #8ec5ff;
    --link-hover: #c6e2ff;
    --soft-bg: rgba(72, 187, 255, 0.12);
    --soft-border: rgba(72, 187, 255, 0.22);
    --soft-text: #d7ecff;
    --input-bg: rgba(255, 255, 255, 0.06);
    --toggle-bg: linear-gradient(135deg, rgba(26, 39, 79, 0.96), rgba(19, 30, 51, 0.96));
    --toggle-border: rgba(143, 198, 255, 0.24);
    --toggle-shadow: 0 18px 38px rgba(4, 10, 23, 0.4);
    --hero-shadow: 0 36px 100px rgba(2, 8, 23, 0.55);
    --card-gradient: linear-gradient(180deg, rgba(12, 22, 39, 0.96), rgba(9, 16, 29, 0.98));
}

body {
    overflow-x: hidden;
    font-family: var(--body-font);
    background:
        radial-gradient(circle at 12% 12%, rgba(49, 130, 206, 0.18), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(15, 118, 110, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(215, 168, 74, 0.1), transparent 30%),
        var(--bg);
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.5;
}

body::before {
    top: 6rem;
    left: -7rem;
    width: 18rem;
    height: 18rem;
    background: rgba(59, 130, 246, 0.18);
}

body::after {
    right: -5rem;
    bottom: 8rem;
    width: 16rem;
    height: 16rem;
    background: rgba(215, 168, 74, 0.15);
}

header,
main,
footer {
    position: relative;
}

header {
    z-index: 40;
}

main,
footer {
    z-index: 1;
}

h1,
h2,
h3,
h4,
.display-5,
.app-brand-title {
    font-family: var(--display-font);
    letter-spacing: -0.02em;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.app-navbar .container {
    position: relative;
    overflow: visible;
}

.app-navbar .container::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: -0.6rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 168, 74, 0.4), transparent);
}

.app-brand {
    gap: 0.22rem;
}

.app-brand-title {
    font-size: 1.36rem;
}

.app-brand-tagline {
    color: var(--accent-gold);
    letter-spacing: 0.14em;
}

.app-navbar .dropdown,
.app-navbar .navbar-nav,
.app-navbar .navbar-collapse {
    overflow: visible;
}

.app-navbar .dropdown-menu {
    z-index: 1045;
    margin-top: 0.75rem;
    min-width: 13rem;
    padding: 0.55rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255, 255, 255, 0.06));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 24px 48px rgba(8, 15, 29, 0.22);
    backdrop-filter: blur(14px);
}

.app-navbar .dropdown-item,
.app-navbar .dropdown-menu .btn-link {
    border-radius: 12px;
    font-weight: 700;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus,
.app-navbar .dropdown-menu .btn-link:hover,
.app-navbar .dropdown-menu .btn-link:focus {
    background: rgba(37, 99, 235, 0.10);
    color: var(--text);
}

.app-navbar .dropdown-menu .btn-link {
    text-decoration: none;
    color: var(--text);
    text-align: left;
}

html[data-theme="dark"] .app-navbar .dropdown-menu {
    border-color: rgba(143, 198, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 18, 32, 0.97), rgba(8, 14, 26, 0.99));
    box-shadow:
        0 28px 56px rgba(2, 8, 23, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .app-navbar .dropdown-item,
html[data-theme="dark"] .app-navbar .dropdown-menu .btn-link {
    color: #ecf2ff;
}

html[data-theme="dark"] .app-navbar .dropdown-divider {
    margin: 0.45rem 0;
    border-top-color: rgba(148, 163, 184, 0.18);
    opacity: 1;
}

html[data-theme="dark"] .app-navbar .dropdown-item:hover,
html[data-theme="dark"] .app-navbar .dropdown-item:focus,
html[data-theme="dark"] .app-navbar .dropdown-menu .btn-link:hover,
html[data-theme="dark"] .app-navbar .dropdown-menu .btn-link:focus {
    background: rgba(72, 187, 255, 0.14);
    color: #ffffff;
}

.card {
    background: var(--card-gradient);
    box-shadow: var(--hero-shadow);
    border-color: color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.06));
}

.btn {
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 55%, #153eaf 100%);
    border-color: rgba(147, 197, 253, 0.3);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, var(--accent) 55%, #1e40af 100%);
}

.btn-soft {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--text);
}

.btn-soft:hover {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(37, 99, 235, 0.14));
    color: var(--text);
}

.home-platform-hero,
.platform-hero,
.prayer-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home-platform-hero::before,
.platform-hero::before,
.prayer-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(72, 187, 255, 0.16), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(215, 168, 74, 0.14), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 56%);
    z-index: -2;
}

.home-platform-hero::after,
.platform-hero::after,
.prayer-stage::after {
    content: "";
    position: absolute;
    inset: auto -8% -45% auto;
    width: 21rem;
    height: 21rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.22), transparent 65%);
    z-index: -1;
}

.home-platform-hero .card-body,
.platform-hero .card-body {
    padding: clamp(1.5rem, 2.8vw, 2.6rem);
}

.home-platform-hero {
    border-radius: 30px;
}

.home-platform-hero .card-body {
    text-align: center;
}

.home-platform-hero h1 {
    font-size: clamp(2.6rem, 4vw, 4.25rem);
    line-height: 1.02;
    margin-bottom: 0.85rem !important;
}

.home-hero-kicker,
.home-section-kicker,
.platform-kicker,
.prayer-kicker {
    color: var(--accent-gold);
    letter-spacing: 0.24em;
}

.home-hero-lead {
    font-size: clamp(1.05rem, 1vw + 0.85rem, 1.3rem);
    max-width: 760px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.35rem 0 0.85rem;
}

.home-hero-actions--solo {
    justify-content: center;
}

.home-hero-actions .btn {
    min-height: 3.3rem;
    min-width: 12.5rem;
    padding-inline: 1.35rem;
}

.btn-hero-primary {
    position: relative;
}

.btn-hero-primary::after {
    content: "";
    position: absolute;
    inset: auto 12% -8px 12%;
    height: 18px;
    background: rgba(37, 99, 235, 0.28);
    filter: blur(16px);
    z-index: -1;
}

.btn-hero-explorer {
    min-width: min(100%, 18rem);
    padding-inline: 2rem !important;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(14, 165, 233, 0.92)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow:
        0 22px 48px rgba(37, 99, 235, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-hero-explorer:hover,
.btn-hero-explorer:focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 26px 56px rgba(14, 165, 233, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.home-hero-tags span,
.platform-badges span {
    backdrop-filter: blur(10px);
}

.home-hero-metrics {
    margin-top: 1.6rem;
}

.home-metric {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(148, 163, 184, 0.05));
    backdrop-filter: blur(12px);
    border-radius: 22px;
}

.home-metric strong {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.home-info-card,
.platform-content-grid > .card,
.platform-summary-card {
    position: relative;
    overflow: hidden;
}

.home-info-card::before,
.platform-content-grid > .card::before,
.platform-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 168, 74, 0.55), transparent);
}

.home-info-card .card-body,
.platform-content-grid > .card .card-body {
    padding: 1.55rem;
}

.home-info-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 118, 110, 0.16));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-modules-heading h2,
.platform-lessons h2,
.platform-hero h1 {
    font-size: clamp(2rem, 2.7vw, 3rem);
    line-height: 1.08;
}

.home-module-group-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.home-module-group-header::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(215, 168, 74, 0.55), transparent);
}

.home-module-group-header h3 {
    color: var(--text);
}

.home-module-card {
    position: relative;
    overflow: hidden;
    min-height: 265px;
    aspect-ratio: 1 / 1.02;
    border-radius: 28px;
}

.home-module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(72, 187, 255, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%);
    opacity: 0.95;
}

.home-module-card::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 168, 74, 0.48), transparent);
}

.home-module-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.35rem;
}

.home-module-icon {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.3rem;
}

.home-module-status,
.platform-status {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 118, 110, 0.14));
    border-color: rgba(37, 99, 235, 0.14);
    color: var(--text);
}

.home-module-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.home-module-card p {
    font-size: 1rem;
}

.home-module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-gold);
}

.home-module-link::after {
    content: "↗";
    transition: transform 0.18s ease;
}

.home-module-card:hover .home-module-link::after {
    transform: translate(2px, -2px);
}

.platform-hero {
    border-radius: 30px;
    text-align: center;
}

.platform-icon {
    display: inline-grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 118, 110, 0.18));
    margin: 0 auto 1rem;
}

.platform-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.platform-hero-actions .btn {
    min-width: 11rem;
}

.page-top-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-top-actions-split {
    justify-content: space-between;
    flex-wrap: wrap;
}

.page-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(18, 45, 78, 0.86));
    color: var(--text) !important;
    box-shadow: 0 16px 36px rgba(8, 15, 29, 0.26);
}

.page-home-link::before {
    content: "\2190";
    font-size: 0.95rem;
    line-height: 1;
    color: var(--accent-gold);
}

.page-home-link:hover,
.page-home-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(215, 168, 74, 0.4);
    box-shadow: 0 20px 40px rgba(8, 15, 29, 0.3);
}

.page-home-link-secondary {
    border-color: rgba(59, 130, 246, 0.22);
    background: linear-gradient(135deg, rgba(18, 33, 58, 0.9), rgba(28, 53, 92, 0.82));
}

html[data-theme="light"] .page-home-link {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    color: #142745 !important;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(14px);
}

html[data-theme="light"] .page-home-link:hover,
html[data-theme="light"] .page-home-link:focus-visible {
    border-color: rgba(59, 130, 246, 0.26);
    box-shadow: 0 18px 38px rgba(148, 163, 184, 0.22);
}

html[data-theme="light"] .page-home-link-secondary {
    border-color: rgba(191, 219, 254, 0.9);
    background: linear-gradient(135deg, rgba(247, 250, 255, 0.98), rgba(234, 243, 255, 0.98));
}

.platform-content-grid > .card:nth-child(1) {
    background:
        radial-gradient(circle at 100% 0%, rgba(72, 187, 255, 0.08), transparent 26%),
        var(--card-gradient);
}

.platform-content-grid > .card:nth-child(2) {
    background:
        radial-gradient(circle at 0% 0%, rgba(215, 168, 74, 0.08), transparent 26%),
        var(--card-gradient);
}

.platform-content-grid > .card:nth-child(3) {
    background:
        radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.08), transparent 26%),
        var(--card-gradient);
}

.platform-roadmap-note {
    border-radius: 20px;
}

.platform-lesson-card {
    min-height: 320px;
}

.platform-lesson-media {
    position: relative;
    overflow: hidden;
    height: 190px;
    border-bottom: 1px solid var(--border);
}

.platform-lesson-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.34));
}

.platform-lesson-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.platform-lesson-card:hover .platform-lesson-media img {
    transform: scale(1.05);
}

.platform-lesson-card .card-body {
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
}

.prayer-stage,
.prayer-experience {
    border-radius: 30px;
}

.prayer-stage-copy .display-5 {
    font-size: clamp(2.4rem, 3vw, 3.6rem);
}

.prayer-stage-copy .btn {
    min-width: 10.5rem;
}

.prayer-action {
    border-radius: 18px;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

.prayer-action-play {
    box-shadow: 0 18px 28px rgba(37, 99, 235, 0.26);
}

html[data-theme="light"] .app-navbar {
    background: rgba(255, 255, 255, 0.78) !important;
}

html[data-theme="light"] .home-platform-hero,
html[data-theme="light"] .platform-hero,
html[data-theme="light"] .prayer-stage {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 168, 74, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

html[data-theme="dark"] .home-platform-hero,
html[data-theme="dark"] .platform-hero,
html[data-theme="dark"] .prayer-stage {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 168, 74, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(10, 18, 32, 0.96), rgba(8, 14, 25, 0.98));
}

html[data-theme="dark"] .home-cta-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(13, 22, 38, 0.96), rgba(8, 16, 30, 0.98));
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.34);
}

html[data-theme="dark"] .home-step-card,
html[data-theme="dark"] .home-child-card {
    background: rgba(10, 18, 32, 0.82);
    border-color: rgba(125, 211, 252, 0.12);
}

html[data-theme="dark"] .home-child-mini-stat {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 991.98px) {
    .home-cta-grid,
    .home-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-steps-grid,
    .home-child-spotlight-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .home-platform-hero h1,
    .platform-hero h1,
    .home-modules-heading h2,
    .platform-lessons h2 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .home-hero-actions,
    .platform-hero-actions {
        flex-direction: column;
    }

    .page-top-actions,
    .page-top-actions-split {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-actions .btn,
    .platform-hero-actions .btn,
    .page-home-link {
        width: 100%;
        min-width: 0;
    }

    .home-module-card {
        min-height: 250px;
    }

    .platform-lesson-media {
        height: 170px;
    }

    .app-navbar .container::after {
        left: 0.25rem;
        right: 0.25rem;
    }
}

.prayer-seo-intro {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.prayer-seo-intro .card-body {
    padding: 1rem 1.15rem;
}

.prayer-seo-intro h2 {
    margin: 0;
}

.faq-section {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(9, 16, 32, 0.94));
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: 0 18px 44px rgba(3, 7, 18, 0.28);
}

.faq-heading {
    margin-bottom: 1.15rem;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.faq-item h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    color: var(--text);
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

html[data-theme="light"] .faq-section {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 168, 74, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 44px rgba(148, 163, 184, 0.18);
}

html[data-theme="light"] .home-faq-section.card,
body[data-theme="light"] .home-faq-section.card {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 168, 74, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 44px rgba(148, 163, 184, 0.18);
}

html[data-theme="light"] .home-faq-section.card .card-body,
body[data-theme="light"] .home-faq-section.card .card-body {
    background: transparent;
}

html[data-theme="light"] .faq-heading h2,
html[data-theme="light"] .faq-heading .home-section-kicker {
    color: #142745;
}

html[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .faq-item h3 {
    color: #142745;
}

html[data-theme="light"] .faq-item p {
    color: rgba(20, 39, 69, 0.74);
}

html[data-theme="light"] .home-faq-section,
html[data-theme="light"] .home-faq-section .faq-heading,
html[data-theme="light"] .home-faq-section .faq-list,
body[data-theme="light"] .home-faq-section,
body[data-theme="light"] .home-faq-section .faq-heading,
body[data-theme="light"] .home-faq-section .faq-list {
    color: #142745;
}

.sitemap-grid,
.sitemap-module-grid {
    display: grid;
    gap: 1rem;
}

.sitemap-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sitemap-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sitemap-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.65rem;
}

.sitemap-list-compact {
    gap: 0.5rem;
}

.sitemap-list a,
.sitemap-module-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.sitemap-list a:hover,
.sitemap-module-card h3 a:hover {
    color: var(--brand);
}

.app-navbar .navbar-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(18, 45, 78, 0.86));
    color: #f8fafc;
    box-shadow: 0 14px 30px rgba(8, 15, 29, 0.18);
}

.app-navbar .navbar-toggler::after {
    content: none;
}

.app-navbar .navbar-toggler-label {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: inherit;
}

.app-navbar .navbar-toggler-icon {
    width: 1.2rem;
    height: 1rem;
    color: var(--accent-gold);
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 100% 2px, 100% 2px, 100% 2px;
    background-position: center 0.1rem, center center, center calc(100% - 0.1rem);
}

.app-navbar .navbar-toggler:hover,
.app-navbar .navbar-toggler:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(215, 168, 74, 0.42);
    box-shadow: 0 18px 38px rgba(8, 15, 29, 0.26);
}

html[data-theme="light"] .app-navbar .navbar-toggler {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    color: #142745;
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.16);
}

html[data-theme="light"] .app-navbar .navbar-toggler:hover,
html[data-theme="light"] .app-navbar .navbar-toggler:focus-visible {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.22);
}

@media (max-width: 991.98px) {
    .app-navbar .container {
        align-items: center;
    }

    .app-navbar .navbar-brand {
        margin-right: auto;
    }

    .app-navbar .navbar-toggler {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .app-navbar .navbar-collapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .app-navbar .container {
        gap: 0.75rem;
    }

    .app-navbar .navbar-toggler {
        padding: 0.45rem 0.65rem;
    }

    .app-navbar .navbar-collapse {
        margin-top: 0.85rem;
        padding: 0.9rem;
        border-radius: 20px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        border: 1px solid var(--border);
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    }

    .app-navbar .navbar-nav {
        width: 100%;
        align-items: stretch !important;
    }

    .app-navbar .navbar-nav .nav-link,
    .app-navbar .dropdown-toggle {
        min-height: 2.9rem;
        display: flex;
        align-items: center;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .app-navbar .d-flex.align-items-center.gap-2 {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }

    .app-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 16px;
    }

    .app-navbar .dropdown-menu .dropdown-item,
    .app-navbar .dropdown-menu form,
    .app-navbar .dropdown-menu .btn-link {
        width: 100%;
    }

    .home-platform-hero .card-body,
    .platform-hero .card-body {
        padding: 1.15rem;
    }

    .home-hero-tags {
        gap: 0.55rem;
    }

    .home-hero-tags span {
        width: calc(50% - 0.3rem);
        justify-content: center;
        text-align: center;
    }

    .home-hero-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-cta-band .card-body,
    .home-steps-section .card-body,
    .home-child-spotlight .card-body,
    .home-faq-section .card-body {
        padding: 1.15rem;
    }

    .home-cta-heading h2,
    .home-conversion-heading h2,
    .home-child-copy h2 {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
    }

    .home-cta-grid,
    .home-trust-grid,
    .home-steps-grid,
    .home-child-mini-stats {
        grid-template-columns: 1fr;
    }

    .home-cta-card,
    .home-step-card {
        min-height: 0;
    }

    .home-child-actions {
        flex-direction: column;
    }

    .home-child-actions .btn {
        width: 100%;
    }

    .home-showcase-grid .card-body,
    .platform-content-grid .card-body {
        padding: 1rem;
    }

    .home-module-group-header {
        margin-bottom: 0.65rem;
    }

    .home-module-card,
    .platform-lesson-card {
        aspect-ratio: auto;
        min-height: 0;
    }

    .home-module-card .card-body,
    .platform-lesson-card .card-body {
        padding: 1rem;
    }

    .home-module-topline {
        align-items: flex-start;
    }

    .home-module-status {
        align-self: flex-start;
    }

    .home-module-card h4 {
        font-size: 1.12rem;
        line-height: 1.3;
    }

    .home-module-card p {
        font-size: 0.95rem;
        line-height: 1.58;
    }

    .home-module-link {
        margin-top: auto;
    }

    .platform-badges {
        justify-content: flex-start;
    }

    .platform-badges span {
        max-width: 100%;
        text-align: center;
    }

    .platform-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.45rem;
    }

    .platform-mini-grid {
        grid-template-columns: 1fr;
    }

    .page-top-actions {
        gap: 0.6rem;
    }

    .page-home-link {
        justify-content: center;
    }

    .prayer-stage,
    .prayer-experience,
    .prayer-seo-intro {
        border-radius: 22px;
    }

    .prayer-seo-intro .card-body {
        padding: 0.9rem 1rem;
    }

    .prayer-live-caption {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
        border-radius: 18px;
    }

    .prayer-live-caption-time {
        font-size: 0.74rem;
    }

    .prayer-controls-row-primary {
        gap: 0.55rem;
    }

    .prayer-action {
        min-height: 3rem;
    }

    .prayer-progress {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .transcript-panel,
    .transcript-panel-inline {
        min-height: 10.5rem;
        max-height: 10.5rem;
    }

    .admin-card-link .card-body {
        min-height: 0;
        text-align: left;
        align-items: flex-start;
        padding: 1rem;
    }

    .admin-card-link .fs-4 {
        font-size: 1.35rem !important;
    }

    .admin-users-page td.text-end,
    .admin-users-page th.text-end {
        text-align: left !important;
    }

    .admin-users-page .d-inline-flex.flex-wrap.justify-content-end.gap-2 {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-page .table-responsive,
    .table-responsive {
        border-radius: 16px;
    }

    .admin-users-page .table td,
    .admin-users-page .table th {
        white-space: normal;
    }

    .sitemap-grid,
    .sitemap-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .home-hero-tags span {
        width: 100%;
    }

    .home-platform-hero h1,
    .platform-hero h1,
    .prayer-stage-copy .display-5 {
        letter-spacing: -0.03em;
    }

    .platform-hero-actions .btn,
    .home-hero-actions .btn,
    .page-home-link,
    .btn.btn-outline-secondary,
    .btn.btn-success,
    .btn.btn-primary {
        width: 100%;
    }

    .prayer-progress {
        gap: 0.45rem;
    }
}

.home-progress-hub {
    width: min(1040px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-progress-hub .card-body {
    padding: 1.5rem;
}

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

.home-progress-card {
    min-height: 220px;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--text);
}

.home-progress-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.home-progress-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.home-progress-card-action {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-progress-card-action:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.home-progress-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: var(--soft-bg);
    border: 1px solid var(--soft-border);
    color: var(--soft-text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-progress-link {
    margin-top: auto;
    color: var(--link);
    font-weight: 800;
}

.home-progress-card-stat strong,
.home-progress-card-meter strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.home-progress-meter {
    width: 100%;
    height: 0.8rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.home-progress-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.home-progress-empty {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.home-progress-empty h2 {
    margin: 0;
    font-size: clamp(1.75rem, 2.4vw, 2.3rem);
    line-height: 1.15;
}

.home-progress-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lesson-progress-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.lesson-progress-banner.is-active {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
}

.lesson-progress-banner.is-complete {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 244, 0.92));
}

.lesson-progress-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lesson-progress-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.lesson-progress-copy h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.lesson-progress-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.lesson-progress-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

html[data-theme="dark"] .home-progress-card,
html[data-theme="dark"] .lesson-progress-banner.is-active {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
}

html[data-theme="dark"] .lesson-progress-banner.is-complete {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(18, 40, 32, 0.92));
}

html[data-theme="dark"] .home-progress-meter {
    background: rgba(148, 163, 184, 0.14);
}

@media (max-width: 991.98px) {
    .home-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-progress-grid {
        grid-template-columns: 1fr;
    }

    .home-progress-empty-actions {
        flex-direction: column;
    }

    .home-progress-empty-actions .btn,
    .lesson-progress-button {
        width: 100%;
    }

    .lesson-progress-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

