.ani-worship {
    --worship-ink: #183d3f;
    --worship-muted: #5d7372;
    --worship-paper: #fffdf8;
    --worship-line: #dbe4dc;
    --worship-saffron: #c97d24;
    --worship-saffron-soft: #fff2da;
    --worship-teal: #2f7773;
    --worship-teal-soft: #e5f3ef;
    --worship-rose: #9b4e52;
    margin-top: 1rem;
    border: 1px solid var(--worship-line);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(201, 125, 36, 0.13), transparent 30%),
        linear-gradient(145deg, #fffdf8 0%, #f6fbf8 100%);
    color: var(--worship-ink);
    box-shadow: 0 14px 32px rgba(24, 61, 63, 0.08);
}

.ani-worship-heading {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(219, 228, 220, 0.85);
}

.ani-worship-kicker {
    display: block;
    color: var(--worship-saffron);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ani-worship-heading h2,
.ani-worship-hatim-card h3,
.ani-worship-activity h3 {
    margin: 0.18rem 0 0;
    color: var(--worship-ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.35rem, 4.6vw, 1.9rem);
    line-height: 1.13;
}

.ani-worship-heading p {
    max-width: 62ch;
    margin: 0.42rem 0 0;
    color: var(--worship-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ani-worship-notice:empty {
    display: none;
}

.ani-worship-notice {
    align-self: start;
    border: 1px solid #d6e2d8;
    border-radius: 10px;
    background: #f5fbf7;
    color: #285c44;
    padding: 0.62rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.ani-worship-notice.is-error {
    border-color: #ebc6c7;
    background: #fff5f5;
    color: #803c42;
}

.ani-worship-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.82rem 0.85rem 0;
}

.ani-worship-stat {
    position: relative;
    min-height: 124px;
    overflow: hidden;
    border: 1px solid var(--worship-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.7rem;
}

.ani-worship-stat::after {
    position: absolute;
    right: -14px;
    bottom: -24px;
    width: 84px;
    height: 84px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0.1;
}

.ani-worship-stat-icon {
    display: grid;
    width: fit-content;
    min-height: 26px;
    place-items: center;
    border-radius: 9px;
    background: var(--worship-teal-soft);
    color: var(--worship-teal);
    padding: 0.22rem 0.44rem;
    font-family: Georgia, serif;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ani-worship-stat strong {
    display: block;
    margin-top: 0.5rem;
    color: var(--worship-ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    line-height: 0.96;
}

.ani-worship-stat > span:last-child {
    display: block;
    margin-top: 0.43rem;
    color: var(--worship-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.28;
}

.ani-worship-stat--hatim .ani-worship-stat-icon,
.ani-worship-stat--fatiha .ani-worship-stat-icon {
    background: var(--worship-saffron-soft);
    color: #9b5d1a;
}

.ani-worship-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.85rem;
}

.ani-worship-prayer-btn,
.ani-worship-juz-action button,
.ani-worship-juz-action a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ani-worship-prayer-btn:hover,
.ani-worship-prayer-btn:focus-visible,
.ani-worship-juz-action button:hover,
.ani-worship-juz-action button:focus-visible,
.ani-worship-juz-action a:hover,
.ani-worship-juz-action a:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(24, 61, 63, 0.13);
}

.ani-worship-prayer-btn--yasin {
    background: var(--worship-teal);
    color: #ffffff;
}

.ani-worship-prayer-btn--fatiha {
    background: var(--worship-saffron-soft);
    border-color: #e8c795;
    color: #805015;
}

.ani-worship-hatim-card,
.ani-worship-activity {
    margin: 0 0.85rem 0.85rem;
    border: 1px solid var(--worship-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.79);
    padding: 0.9rem;
}

.ani-worship-hatim-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
}

.ani-worship-hatim-summary strong {
    color: var(--worship-teal);
    font-size: 0.79rem;
    text-align: right;
}

.ani-worship-progress {
    width: 100%;
    height: 11px;
    margin-top: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ece7;
}

.ani-worship-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--worship-teal), #5ba08c);
    transition: width 320ms ease;
}

.ani-worship-progress-note {
    margin: 0.48rem 0 0;
    color: var(--worship-muted);
    font-size: 0.79rem;
}

.ani-worship-juz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: 0.85rem;
}

.ani-worship-juz {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    border: 1px solid #dce7df;
    border-radius: 11px;
    background: #fbfdfb;
    padding: 0.55rem;
}

.ani-worship-juz.is-assigned {
    border-color: #e6d2ad;
    background: #fffbf3;
}

.ani-worship-juz.is-completed {
    border-color: #bcdccf;
    background: #f2faf5;
}

.ani-worship-juz-number {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 8px;
    background: #edf4ef;
    color: var(--worship-teal);
    font-size: 0.72rem;
    font-weight: 800;
}

.ani-worship-juz.is-assigned .ani-worship-juz-number {
    background: var(--worship-saffron-soft);
    color: #925a1a;
}

.ani-worship-juz.is-completed .ani-worship-juz-number {
    background: #d9efe2;
    color: #286a4c;
}

.ani-worship-juz-copy {
    min-width: 0;
}

.ani-worship-juz-copy strong,
.ani-worship-juz-copy span,
.ani-worship-juz-copy small {
    display: block;
}

.ani-worship-juz-copy strong {
    color: var(--worship-ink);
    font-size: 0.78rem;
}

.ani-worship-juz-copy span {
    margin-top: 0.12rem;
    color: var(--worship-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.ani-worship-juz-copy small {
    overflow: hidden;
    margin-top: 0.18rem;
    color: #6e817a;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ani-worship-juz-action {
    grid-column: 1 / -1;
}

.ani-worship-juz-action button,
.ani-worship-juz-action a {
    width: 100%;
    min-height: 33px;
    padding: 0.42rem;
    border-color: #c8ddd4;
    background: #eff8f4;
    color: #286a59;
    font-size: 0.69rem;
}

.ani-worship-juz-action button[data-worship-action="complete"] {
    border-color: #e4c68d;
    background: var(--worship-saffron-soft);
    color: #835018;
}

.ani-worship-juz-state {
    display: block;
    color: var(--worship-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

.ani-worship-activity-heading h3 {
    font-size: clamp(1.12rem, 3.8vw, 1.45rem);
}

.ani-worship-activity-list {
    display: grid;
    gap: 0.48rem;
    margin: 0.72rem 0 0;
    padding: 0;
    list-style: none;
}

.ani-worship-activity-list li {
    position: relative;
    padding: 0.58rem 0.62rem 0.58rem 1.12rem;
    border-radius: 9px;
    background: #f5f9f6;
    color: #3e5852;
    font-size: 0.78rem;
    line-height: 1.45;
}

.ani-worship-activity-list li::before {
    position: absolute;
    top: 0.9rem;
    left: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--worship-saffron);
    content: "";
}

.ani-worship-activity-list .ani-worship-empty {
    padding-left: 0.65rem;
    color: var(--worship-muted);
}

.ani-worship-activity-list .ani-worship-empty::before {
    display: none;
}

.ani-worship button[disabled] {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

@media (min-width: 680px) {
    .ani-worship-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        padding: 1.15rem 1.2rem;
    }

    .ani-worship-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
        padding: 0.95rem 1.2rem 0;
    }

    .ani-worship-actions {
        display: flex;
        padding: 0.95rem 1.2rem;
    }

    .ani-worship-prayer-btn {
        min-width: 212px;
    }

    .ani-worship-hatim-card,
    .ani-worship-activity {
        margin-right: 1.2rem;
        margin-left: 1.2rem;
        padding: 1rem;
    }

    .ani-worship-juz-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .ani-worship-juz-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ani-worship *,
    .ani-worship *::before,
    .ani-worship *::after {
        transition-duration: 0.01ms !important;
    }
}
