:root {
    --masjid-green: #0f766e;
    --masjid-green-dark: #115e59;
    --masjid-gold: #c59d3f;
    --masjid-ink: #17211f;
    --masjid-soft: #f4f7f5;
}

body {
    color: var(--masjid-ink);
}

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.btn-success,
.text-bg-success {
    background-color: var(--masjid-green) !important;
    border-color: var(--masjid-green) !important;
}

.btn-warning {
    background-color: var(--masjid-gold) !important;
    border-color: var(--masjid-gold) !important;
    color: #17211f !important;
}

.admin-edit-bar {
    background: var(--masjid-green-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.site-header {
    z-index: 1030;
}

.site-header .navbar {
    min-height: 76px;
}

.site-header .navbar-brand {
    max-width: min(42vw, 380px);
    min-width: 0;
    padding-bottom: .35rem;
    padding-top: .35rem;
}

.site-logo {
    display: block;
    flex: 0 1 auto;
    height: auto;
    max-height: 56px;
    max-width: clamp(190px, 28vw, 360px);
    object-fit: contain;
    width: auto;
}

.site-mark {
    flex: 0 0 auto;
    height: 42px;
    width: 42px;
    border-radius: 50%;
}

.site-mark,
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--masjid-green), var(--masjid-gold));
    color: #fff;
    font-weight: 800;
}

.site-tagline {
    color: #66736f;
    font-size: .78rem;
    font-weight: 500;
}

.navbar .nav-link {
    border-radius: 0;
    font-weight: 600;
    padding-left: .85rem;
    padding-right: .85rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--masjid-green-dark);
    background: var(--masjid-soft);
}

.navbar .nav-link.nav-link-donate {
    background: var(--masjid-green);
    color: #fff;
    margin-left: .25rem;
}

.navbar .nav-link.nav-link-donate.active,
.navbar .nav-link.nav-link-donate:hover {
    background: var(--masjid-green-dark);
    color: #fff;
}

.avatar-button,
.avatar-login {
    border: 0;
    padding: 0;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: .8rem;
    letter-spacing: .02em;
}

.site-footer {
    background:
        linear-gradient(180deg, rgba(197, 157, 63, .14) 0, transparent 1px),
        linear-gradient(135deg, #082f2a 0%, #123f37 58%, #17211f 100%);
    color: rgba(255, 255, 255, .82);
    position: relative;
}

.site-footer::before {
    background: linear-gradient(90deg, var(--masjid-gold), rgba(197, 157, 63, .18), var(--masjid-green));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.footer-kicker {
    color: var(--masjid-gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.footer-copy {
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    max-width: 34rem;
}

.footer-section-title {
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-contact-list {
    display: grid;
    gap: .6rem;
}

.footer-contact-link {
    align-items: center;
    color: rgba(255, 255, 255, .82);
    display: inline-flex;
    gap: .55rem;
    line-height: 1.45;
    text-decoration: none;
}

.footer-contact-link::before {
    background: var(--masjid-gold);
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: .45rem;
    width: .45rem;
}

.footer-contact-link:hover {
    color: #fff;
}

.footer-link-list {
    border-left: 1px solid rgba(255, 255, 255, .14);
    padding-left: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, .78);
    display: inline-flex;
    font-weight: 700;
    padding: .12rem 0;
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

.social-chip {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
    padding: .45rem .75rem;
    text-decoration: none;
}

.social-chip:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .62);
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: 1rem;
    justify-content: space-between;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

.public-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(197, 157, 63, .2), transparent 28%),
        linear-gradient(135deg, #f7faf8 0%, #eef6f2 100%);
}

.home-hero-photo {
    background:
        linear-gradient(90deg, rgba(10, 42, 36, .94) 0%, rgba(12, 65, 56, .84) 45%, rgba(12, 65, 56, .42) 72%, rgba(10, 42, 36, .7) 100%),
        var(--hero-image, linear-gradient(135deg, #f7faf8 0%, #eef6f2 100%));
    background-position: center;
    background-size: cover;
    min-height: 580px;
    position: relative;
}

.home-hero-photo::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .14));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.home-hero-photo > .container {
    position: relative;
    z-index: 1;
}

.home-hero-photo .container {
    min-height: 460px;
}

.home-hero-photo h1 {
    color: #fff;
    letter-spacing: 0;
    max-width: 760px;
    text-shadow: 0 .2rem 1.2rem rgba(0, 0, 0, .24);
}

.home-hero-photo .lead {
    color: rgba(255, 255, 255, .9);
    max-width: 680px;
}

.home-hero-copy {
    color: rgba(255, 255, 255, .78);
    max-width: 660px;
}

.home-hero-badge {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: .45rem .75rem;
    text-transform: uppercase;
}

.settings-preview {
    max-height: 180px;
    object-fit: contain;
}

.settings-log {
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
}

.tv-background-month-card {
    overflow: hidden;
    position: relative;
}

.tv-background-month-card.is-generating {
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .14), 0 1rem 2rem rgba(23, 33, 31, .16) !important;
}

.tv-background-generating {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(4px);
    color: var(--masjid-ink);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: absolute;
    text-align: center;
    z-index: 5;
}

.tv-background-generating[hidden] {
    display: none !important;
}

.tv-background-generating strong,
.tv-background-generating span {
    display: block;
}

.tv-background-generating span {
    color: var(--bs-secondary-color);
    font-size: .9rem;
    max-width: 18rem;
}

.tv-background-progress {
    background: rgba(15, 118, 110, .14);
    border-radius: 999px;
    height: .45rem;
    max-width: 16rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.tv-background-progress span {
    animation: tv-background-progress 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, var(--masjid-green), var(--masjid-gold));
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 45%;
}

@keyframes tv-background-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(235%);
    }
}

.next-countdown {
    border-radius: 8px;
    background: rgba(15, 118, 110, .1);
    color: var(--masjid-green-dark);
    font-size: 1.25rem;
    font-weight: 800;
    padding: .7rem .9rem;
    text-align: center;
}

.monthly-prayer-table {
    min-width: 900px;
}

.prayer-month-header {
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(15, 118, 110, .1), rgba(197, 157, 63, .12));
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.35rem;
}

.prayer-month-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.summary-tile {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    height: 100%;
    padding: 1rem;
}

.summary-label {
    color: #687772;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.summary-value {
    color: var(--masjid-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.summary-value-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
}

.prayer-month-card {
    border: 1px solid #dfe8e4;
    overflow: hidden;
}

.legend-dot {
    border-radius: 999px;
    display: inline-block;
    height: .65rem;
    margin-right: .3rem;
    vertical-align: -.05rem;
    width: .65rem;
}

.legend-adhan {
    background: var(--masjid-ink);
}

.legend-iqamah {
    background: var(--masjid-green);
}

.legend-friday {
    background: var(--masjid-gold);
}

.monthly-prayer-table thead th {
    color: var(--masjid-green-dark);
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.monthly-prayer-table tbody tr {
    border-left: 4px solid transparent;
}

.monthly-prayer-table tbody tr.monthly-friday {
    border-left-color: var(--masjid-gold);
}

.monthly-prayer-table tbody tr.monthly-today {
    background: rgba(15, 118, 110, .06);
    border-left-color: var(--masjid-green);
}

.date-stack {
    align-items: center;
    display: flex;
    gap: .45rem;
}

.gregorian-date {
    color: var(--masjid-ink);
}

.today-pill {
    background: var(--masjid-green);
    border-radius: 999px;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    padding: .2rem .45rem;
}

.prayer-cell-time {
    color: var(--masjid-ink);
    font-weight: 800;
}

.prayer-cell-iqamah {
    color: var(--masjid-green-dark);
    font-size: .82rem;
    font-weight: 700;
}

.prayer-page-header {
    align-items: center;
}

.next-prayer-card {
    background: linear-gradient(180deg, #fff, rgba(15, 118, 110, .07));
    border: 1px solid #dfe8e4;
    overflow: hidden;
    position: relative;
}

.next-prayer-card::before {
    background: var(--masjid-gold);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 5px;
}

.next-prayer-card h2 {
    color: var(--masjid-green-dark);
}

.next-prayer-time {
    color: var(--masjid-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.prayer-day-card,
.prayer-week-card,
.prayer-jumuah-card {
    border: 1px solid #dfe8e4;
    overflow: hidden;
}

.today-prayer-table thead th,
.weekly-prayer-table thead th {
    color: var(--masjid-green-dark);
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.today-prayer-table td,
.weekly-prayer-table td {
    padding-bottom: .7rem;
    padding-top: .7rem;
}

.today-prayer-table tbody tr,
.weekly-prayer-table tbody tr {
    border-left: 4px solid transparent;
}

.today-prayer-table tbody tr.prayer-row-next,
.weekly-prayer-table tbody tr.weekly-today {
    background: rgba(15, 118, 110, .06);
    border-left-color: var(--masjid-green);
}

.weekly-prayer-table tbody tr.weekly-friday {
    border-left-color: var(--masjid-gold);
}

.weekly-prayer-table tbody tr.weekly-today.weekly-friday {
    border-left-color: var(--masjid-green);
}

.jumuah-tile {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-left: 4px solid var(--masjid-gold);
    border-radius: 8px;
    padding: 1rem;
}

.prayer-today-summary .summary-value,
.prayer-week-summary .summary-value {
    font-size: 1rem;
}

.weekly-prayer-table {
    min-width: 900px;
}

.islam-nav-menu {
    min-width: 14rem;
}

.islam-nav-menu .dropdown-item.active,
.islam-nav-menu .dropdown-item:active {
    background: var(--masjid-green);
    color: #fff;
}

.islam-nav-menu .dropdown-item:hover,
.islam-nav-menu .dropdown-item:focus {
    background: var(--masjid-soft);
    color: var(--masjid-green-dark);
}

.islam-hero {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(197, 157, 63, .12)),
        #f7faf8;
}

.islam-hero .lead {
    font-size: 1.28rem;
    line-height: 1.65;
    max-width: 42rem;
}

.islam-welcome-panel {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 1rem 2.5rem rgba(23, 33, 31, .08);
    padding: 1.5rem;
}

.islam-welcome-panel p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.islam-side-nav {
    top: 6rem;
}

.islam-side-nav .list-group {
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    overflow: hidden;
}

.islam-side-nav .list-group-item {
    border-color: #edf1ef;
    color: var(--masjid-ink);
    font-weight: 700;
    padding: .85rem 1rem;
}

.islam-side-nav .list-group-item.active {
    background: var(--masjid-green) !important;
    border-color: var(--masjid-green) !important;
    color: #fff !important;
}

.islam-article {
    display: grid;
    gap: 2rem;
}

.islam-story-section {
    border-bottom: 1px solid #e6eeea;
    padding-bottom: 1.65rem;
}

.islam-story-section:last-child {
    border-bottom: 0;
}

.islam-story-section h2 {
    color: var(--masjid-ink);
}

.islam-story-section .lead {
    font-size: 1.16rem;
    line-height: 1.85;
}

.islam-info-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-left: 4px solid var(--masjid-gold);
    border-radius: 8px;
    box-shadow: 0 .65rem 1.5rem rgba(15, 118, 110, .04);
    padding: 1rem;
}

.islam-info-card p {
    font-size: 1.02rem;
    line-height: 1.6;
}

.prayer-visual-section {
    background: linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(197, 157, 63, .08));
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    padding: 1.35rem;
}

.prayer-visual-header {
    border-bottom: 1px solid #d6e4df;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.rakah-strip {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.rakah-pill {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    display: grid;
    gap: .1rem;
    min-height: 6.25rem;
    padding: .8rem;
    text-align: center;
}

.rakah-pill span,
.rakah-pill small {
    color: #5d6b66;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rakah-pill strong {
    color: var(--masjid-green-dark);
    font-size: 2rem;
    line-height: 1;
}

.rakah-pill small {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

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

.prayer-step-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(8rem, 9rem) minmax(0, 1fr);
    padding: 1rem;
}

.prayer-step-photo {
    aspect-ratio: 3 / 4;
    background: var(--masjid-soft);
    border: 1px solid #d6e4df;
    border-radius: 8px;
    box-shadow: 0 .65rem 1.3rem rgba(10, 42, 36, .1);
    display: block;
    height: 100%;
    max-height: 13rem;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.prayer-step-visual {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(246, 250, 248, .88) 45%, rgba(229, 239, 234, .95) 100%),
        radial-gradient(circle at 78% 18%, rgba(197, 157, 63, .2), transparent 34%);
    border: 1px solid #d6e4df;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
    min-height: 9rem;
    overflow: hidden;
    position: relative;
}

.posture-window {
    background: linear-gradient(180deg, rgba(15, 118, 110, .14), rgba(255, 255, 255, .08));
    border: 1px solid rgba(15, 118, 110, .1);
    border-radius: 999px 999px 8px 8px;
    display: block;
    height: 4.8rem;
    left: .7rem;
    opacity: .72;
    position: absolute;
    top: .7rem;
    width: 2.9rem;
}

.posture-mat {
    background: linear-gradient(90deg, rgba(15, 118, 110, .2), rgba(197, 157, 63, .32), rgba(15, 118, 110, .2));
    border-radius: 999px;
    bottom: 1rem;
    display: block;
    height: .85rem;
    left: .9rem;
    position: absolute;
    right: .9rem;
    transform: perspective(6rem) rotateX(48deg);
    transform-origin: center bottom;
}

.posture-shadow {
    background: rgba(10, 42, 36, .14);
    border-radius: 999px;
    bottom: 1.22rem;
    display: block;
    height: .9rem;
    left: 31%;
    position: absolute;
    width: 42%;
}

.posture-head,
.posture-body,
.posture-arm,
.posture-leg {
    display: block;
    position: absolute;
}

.posture-head {
    background:
        linear-gradient(135deg, #0d332c 0%, #174b3c 58%, #0a221d 100%);
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    box-shadow: 0 .2rem .45rem rgba(10, 42, 36, .18);
    height: 1.55rem;
    left: 50%;
    top: 1.32rem;
    transform: translateX(-50%);
    width: 1.35rem;
    z-index: 5;
}

.posture-body,
.posture-arm,
.posture-leg {
    border-radius: 999px;
    transform-origin: center top;
}

.posture-body {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 34%),
        linear-gradient(180deg, #15513f 0%, #0f3f33 100%);
    border-radius: 1.1rem 1.1rem .55rem .55rem;
    box-shadow: 0 .4rem .9rem rgba(10, 42, 36, .16);
    height: 4rem;
    left: 50%;
    top: 2.68rem;
    transform: translateX(-50%);
    width: 2.05rem;
    z-index: 4;
}

.posture-arm {
    background: linear-gradient(180deg, #164d3f, #0d332c);
    height: 2.85rem;
    top: 3.15rem;
    width: .48rem;
    z-index: 3;
}

.posture-arm-left {
    left: calc(50% - 1.28rem);
    transform: rotate(7deg);
}

.posture-arm-right {
    right: calc(50% - 1.28rem);
    transform: rotate(-7deg);
}

.posture-leg {
    background: linear-gradient(180deg, #103c31, #092721);
    height: 2.25rem;
    top: 6.05rem;
    width: .58rem;
    z-index: 2;
}

.posture-leg-left {
    left: calc(50% - .75rem);
    transform: rotate(6deg);
}

.posture-leg-right {
    right: calc(50% - .75rem);
    transform: rotate(-6deg);
}

.prayer-posture-bowing .posture-head {
    left: 71%;
    top: 3.3rem;
    transform: translateX(-50%) rotate(12deg);
}

.prayer-posture-bowing .posture-body {
    height: 2.15rem;
    left: 47%;
    top: 3.92rem;
    transform: rotate(84deg);
    width: 4.15rem;
}

.prayer-posture-bowing .posture-arm-left,
.prayer-posture-bowing .posture-arm-right {
    height: 2.35rem;
    top: 4.55rem;
}

.prayer-posture-bowing .posture-arm-left {
    left: 62%;
    transform: rotate(18deg);
}

.prayer-posture-bowing .posture-arm-right {
    right: 19%;
    transform: rotate(-18deg);
}

.prayer-posture-bowing .posture-leg-left,
.prayer-posture-bowing .posture-leg-right {
    top: 5.85rem;
}

.prayer-posture-prostrating .posture-head {
    height: 1.25rem;
    left: 74%;
    top: 6.38rem;
    transform: translateX(-50%) rotate(82deg);
    width: 1.45rem;
}

.prayer-posture-prostrating .posture-body {
    border-radius: 1rem;
    height: 2.05rem;
    left: 45%;
    top: 5.8rem;
    transform: rotate(6deg);
    width: 4.35rem;
}

.prayer-posture-prostrating .posture-arm-left,
.prayer-posture-prostrating .posture-arm-right {
    height: 2.2rem;
    top: 5.95rem;
}

.prayer-posture-prostrating .posture-arm-left {
    left: 61%;
    transform: rotate(76deg);
}

.prayer-posture-prostrating .posture-arm-right {
    right: 18%;
    transform: rotate(-76deg);
}

.prayer-posture-prostrating .posture-leg-left,
.prayer-posture-prostrating .posture-leg-right {
    height: 2.6rem;
    top: 5.48rem;
}

.prayer-posture-prostrating .posture-leg-left {
    left: 22%;
    transform: rotate(82deg);
}

.prayer-posture-prostrating .posture-leg-right {
    right: 50%;
    transform: rotate(-82deg);
}

.prayer-posture-sitting .posture-head,
.prayer-posture-closing .posture-head {
    top: 2.15rem;
}

.prayer-posture-sitting .posture-body,
.prayer-posture-closing .posture-body {
    border-radius: 1.05rem .95rem .75rem .75rem;
    height: 3.1rem;
    top: 3.5rem;
    width: 2.25rem;
}

.prayer-posture-sitting .posture-leg-left,
.prayer-posture-sitting .posture-leg-right,
.prayer-posture-closing .posture-leg-left,
.prayer-posture-closing .posture-leg-right {
    height: 2.65rem;
    top: 6.1rem;
}

.prayer-posture-sitting .posture-leg-left,
.prayer-posture-closing .posture-leg-left {
    left: 37%;
    transform: rotate(78deg);
}

.prayer-posture-sitting .posture-leg-right,
.prayer-posture-closing .posture-leg-right {
    right: 37%;
    transform: rotate(-78deg);
}

.prayer-posture-closing .posture-head {
    left: 55%;
    transform: translateX(-50%) rotate(24deg);
}

.prayer-posture-rising .posture-arm-left {
    transform: rotate(-18deg);
}

.prayer-posture-rising .posture-arm-right {
    transform: rotate(18deg);
}

.prayer-meaning {
    border-left: 3px solid var(--masjid-gold);
    color: var(--masjid-ink);
    font-weight: 700;
    margin-bottom: .55rem;
    padding-left: .55rem;
}

.fajr-guide-section {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 .85rem 2rem rgba(15, 118, 110, .06);
    padding: 1.35rem;
}

.fajr-guide-header {
    border-bottom: 1px solid #dfe8e4;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.fajr-guide-note {
    background: var(--masjid-soft);
    border-left: 4px solid var(--masjid-gold);
    border-radius: 8px;
    color: #34423e;
    font-size: .96rem;
    line-height: 1.55;
    padding: .85rem;
}

.fajr-guide-list {
    display: grid;
    gap: .85rem;
}

.fajr-guide-card {
    background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: 5.75rem minmax(8rem, .62fr) minmax(0, 1.6fr);
    padding: 1rem;
}

.fajr-guide-photo {
    align-self: start;
    aspect-ratio: 3 / 4;
    background: var(--masjid-soft);
    border: 1px solid #d6e4df;
    border-radius: 8px;
    box-shadow: 0 .45rem 1rem rgba(10, 42, 36, .08);
    display: block;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.fajr-guide-meta h3 {
    color: var(--masjid-ink);
}

.fajr-guide-meaning {
    color: #34423e;
    font-size: 1.02rem;
    line-height: 1.7;
}

.islam-cta {
    align-items: center;
    background: var(--masjid-green-dark);
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.25rem;
}

.islam-cta p {
    font-size: 1.05rem;
    line-height: 1.65;
}

.islam-cta .btn {
    white-space: nowrap;
}

.print-prayer-page {
    background: #edf4f1;
}

.print-letter-sheet {
    background: #fff;
    border: 1px solid #dbe7e2;
    box-shadow: 0 1rem 2.5rem rgba(23, 33, 31, .08);
    margin: 0 auto;
    max-width: 8.5in;
    min-height: 11in;
    padding: .45in;
}

.print-prayer-heading {
    align-items: flex-start;
    border-bottom: 2px solid var(--masjid-green);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .18in;
    padding-bottom: .12in;
}

.print-prayer-heading h1 {
    color: var(--masjid-ink);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.print-masjid-name {
    color: var(--masjid-green-dark);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
}

.print-location,
.print-hijri-range,
.print-note {
    color: #5d6b66;
    font-size: .74rem;
}

.print-table {
    border-color: #b9c9c3;
    font-size: .72rem;
    line-height: 1.08;
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}

.print-table .print-date-col {
    width: 13%;
}

.print-table th,
.print-table td {
    border-color: #b9c9c3;
    padding: .18rem .24rem;
    text-align: center;
    vertical-align: middle;
}

.print-table th {
    background: #edf7f3;
    color: var(--masjid-green-dark);
    font-weight: 800;
}

.print-table td:first-child,
.print-table th:first-child {
    text-align: left;
}

.print-table tbody tr:nth-child(even) td {
    background: #fbfdfc;
}

.print-date,
.adhan-time,
.iqamah-time,
.hijri-date {
    display: block;
    white-space: nowrap;
}

.print-date,
.adhan-time {
    color: var(--masjid-ink);
    font-weight: 800;
}

.iqamah-time,
.hijri-date {
    color: #5d6b66;
    font-size: .64rem;
}

.print-note {
    border-top: 1px solid #dbe7e2;
    margin-top: .12in;
    padding-top: .08in;
    text-align: center;
}

.classic-prayer-print {
    color: #000;
    font-family: "Times New Roman", Times, serif;
    padding: .42in;
}

.classic-print-header {
    border: 1px solid #000;
    margin: 0 auto .02in;
    max-width: 6.75in;
    text-align: center;
}

.classic-header-row {
    border-bottom: 1px solid #000;
    font-size: 17px;
    line-height: 1.25;
    padding: .035in .08in;
}

.classic-header-row:last-child {
    border-bottom: 0;
}

.classic-site-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.classic-month-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    margin: .025in 0 .22in;
    text-align: center;
}

.classic-adhan-table {
    border-color: #000;
    color: #000;
    font-size: 17px;
    line-height: 1.02;
    margin: 0;
    table-layout: fixed;
    width: 100%;
}

.classic-adhan-table th,
.classic-adhan-table td {
    background: #fff !important;
    border-color: #000;
    padding: 1px 5px;
    text-align: center;
    vertical-align: middle;
}

.classic-adhan-table th {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.08;
}

.classic-adhan-table th:nth-child(1),
.classic-adhan-table td:nth-child(1) {
    width: 6.5%;
}

.classic-adhan-table th:nth-child(2),
.classic-adhan-table td:nth-child(2) {
    width: 7.8%;
}

.classic-adhan-table th:nth-child(3),
.classic-adhan-table td:nth-child(3) {
    width: 12.5%;
}

.classic-adhan-table th:nth-child(n+4),
.classic-adhan-table td:nth-child(n+4) {
    width: 12.2%;
}

.classic-friday td {
    font-weight: 800;
}

.classic-iqamah-block {
    color: #000;
    margin: .03in auto 0;
    max-width: 6.8in;
    text-align: center;
}

.classic-iqamah-block h2 {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 .05in;
    text-decoration: underline;
}

.classic-iqamah-table {
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.15;
    margin: 0 auto;
    width: 100%;
}

.classic-iqamah-table th {
    font-weight: 800;
    padding: 0 7px .03in;
}

.classic-iqamah-table td {
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
    font-family: "Times New Roman", Times, serif;
    padding: .025in 7px;
}

.classic-jumuah-line {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.08;
    margin-top: .02in;
}

.classic-calculation-line {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.15;
    margin-top: .03in;
}

.content-card {
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem;
    text-decoration: none;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.content-card:hover {
    border-color: var(--masjid-green);
    box-shadow: 0 .65rem 1.5rem rgba(15, 118, 110, .08);
    color: inherit;
    transform: translateY(-1px);
}

.news-event-thumb {
    aspect-ratio: 8.5 / 14;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.news-event-card-frame {
    position: relative;
}

.news-event-card-frame .content-card {
    padding: 1rem 3rem 1rem 1rem;
}

.news-event-card.has-poster {
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(15, 118, 110, .055), transparent 34%),
        #fff;
    display: grid;
    gap: 1.15rem;
    grid-template-columns: clamp(8.5rem, 29%, 10.25rem) minmax(0, 1fr);
}

.news-event-card:not(.has-poster) {
    min-height: 13.5rem;
}

.news-event-poster-frame {
    align-self: start;
    background: #f7faf8;
    border: 1px solid #d8e3de;
    border-radius: 8px;
    box-shadow: 0 .75rem 1.4rem rgba(10, 42, 36, .1);
    display: block;
    padding: .35rem;
}

.news-event-copy {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

.news-event-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .65rem;
    padding-right: .5rem;
}

.news-event-card .badge {
    font-size: .74rem;
    letter-spacing: .01em;
    padding: .42rem .55rem;
}

.news-event-meta {
    color: #66736f;
    font-size: .86rem;
    font-weight: 600;
}

.news-event-title {
    color: var(--masjid-ink);
    display: -webkit-box;
    font-size: 1.12rem;
    line-height: 1.28;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-event-summary {
    color: #34423e;
    display: -webkit-box;
    font-size: .97rem;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.news-event-link {
    color: var(--masjid-green-dark);
    font-size: .88rem;
    font-weight: 800;
    margin-top: auto;
}

.news-event-card:hover .news-event-link {
    text-decoration: underline;
}

.news-event-delete-form {
    position: absolute;
    right: .75rem;
    top: .75rem;
    z-index: 3;
}

.news-event-edit-button {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(15, 118, 110, .28);
    border-radius: 999px;
    color: var(--masjid-green-dark);
    font-size: .75rem;
    font-weight: 800;
    left: .75rem;
    padding: .35rem .7rem;
    position: absolute;
    top: .75rem;
    z-index: 3;
}

.news-event-edit-button:hover {
    background: var(--masjid-green);
    border-color: var(--masjid-green);
    color: #fff;
}

.news-event-tv-form {
    bottom: .75rem;
    position: absolute;
    right: .75rem;
    z-index: 3;
}

.news-event-tv-button {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 118, 110, .28);
    border-radius: 999px;
    color: var(--masjid-green-dark);
    font-size: .75rem;
    font-weight: 800;
    padding: .35rem .7rem;
}

.news-event-tv-button:hover,
.news-event-tv-button.is-on-tv {
    background: var(--masjid-green);
    border-color: var(--masjid-green);
    color: #fff;
}

.news-event-delete-button {
    align-items: center;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(217, 228, 223, .9);
    border-radius: 50%;
    color: #5f6d68;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 1.85rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 1.85rem;
}

.news-event-delete-button:hover {
    background: #fff3f3;
    border-color: #e3b8b8;
    color: #a83232;
}

.news-event-modal textarea {
    resize: vertical;
}

.news-event-modal .tox,
.news-event-modal .tox-tinymce,
.news-event-modal .tox-editor-container {
    border-radius: 8px;
}

.news-event-modal .tox-tinymce {
    border-color: #dfe8e4;
}

.news-ai-panel {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(197, 157, 63, .09)),
        #f8fbf9;
    border: 1px solid #dbe8e2;
    border-radius: 8px;
    padding: 1rem;
}

.news-ai-panel-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}

.news-ai-panel-grid .btn {
    justify-self: end;
    min-width: 10rem;
    white-space: nowrap;
}

.news-post-fields-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    padding: 1rem;
}

.news-event-modal .modal-content {
    position: relative;
}

.news-generate-overlay {
    align-items: center;
    background: rgba(248, 251, 249, .78);
    backdrop-filter: blur(4px);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1.25rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

.news-generate-card {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e7e1;
    border-radius: 8px;
    box-shadow: 0 1rem 2.5rem rgba(15, 94, 89, .18);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
    max-width: 28rem;
    padding: 1.15rem;
    width: min(100%, 28rem);
}

.news-generate-title {
    color: var(--masjid-ink);
    font-weight: 800;
}

.news-generate-message {
    color: #66736f;
    font-size: .92rem;
}

.news-generate-steps {
    display: flex;
    gap: .5rem;
    grid-column: 1 / -1;
}

.news-generate-step {
    background: #eef5f2;
    border: 1px solid #dbe8e2;
    color: #66736f;
    flex: 1 1 0;
    font-size: .78rem;
    font-weight: 800;
    padding: .45rem .6rem;
    text-align: center;
}

.news-generate-step.is-active {
    background: var(--masjid-green);
    border-color: var(--masjid-green);
    color: #fff;
}

.news-generate-step.is-done {
    background: rgba(197, 157, 63, .16);
    border-color: rgba(197, 157, 63, .38);
    color: #7a6227;
}

.required-label::after {
    color: #b42318;
    content: "Required";
    font-size: .72rem;
    font-weight: 700;
    margin-left: .45rem;
    vertical-align: .08rem;
}

.news-event-modal .was-validated .form-control:not([required]):valid,
.news-event-modal .was-validated .form-select:not([required]):valid {
    background-image: none;
    border-color: var(--bs-border-color);
    padding-right: .75rem;
}

.news-poster-preview img {
    aspect-ratio: 8.5 / 14;
    max-height: 420px;
    object-fit: contain;
    width: 100%;
}

.content-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.news-detail-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(197, 157, 63, .12), transparent 26%),
        linear-gradient(180deg, #f7faf8 0%, #fff 42%);
}

.news-detail-shell {
    margin: 0 auto;
    max-width: 1120px;
}

.news-detail-back {
    color: var(--masjid-green-dark);
    display: inline-flex;
    font-size: .92rem;
    font-weight: 800;
    gap: .4rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.news-detail-back:hover {
    color: var(--masjid-green);
    text-decoration: underline;
}

.news-detail-hero {
    max-width: 780px;
    padding-bottom: 1.75rem;
}

.news-detail-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1rem;
}

.news-detail-chip {
    background: #fff;
    border: 1px solid #dfe8e4;
    color: #5c6965;
    font-size: .84rem;
    font-weight: 700;
    padding: .34rem .62rem;
}

.news-detail-summary {
    color: #5e6b66;
    font-size: 1.2rem;
    line-height: 1.65;
}

.news-detail-layout {
    align-items: start;
    display: grid;
    gap: 1.5rem;
}

.news-detail-layout.has-poster {
    grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
}

.news-detail-layout.no-poster {
    max-width: 860px;
}

.news-detail-main,
.news-detail-poster-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 .85rem 1.8rem rgba(15, 94, 89, .07);
}

.news-detail-main {
    padding: 1.25rem;
}

.news-detail-facts {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.news-detail-fact {
    background: #f7faf8;
    border: 1px solid #e1ece7;
    padding: .85rem;
}

.news-detail-fact span {
    color: #66736f;
    display: block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.news-detail-fact strong {
    color: var(--masjid-ink);
    display: block;
    font-size: .98rem;
    line-height: 1.35;
}

.news-detail-body {
    color: #22312d;
}

.news-detail-body p {
    margin-bottom: 1.1rem;
}

.news-detail-body ul,
.news-detail-body ol {
    margin-bottom: 0;
    padding-left: 1.4rem;
}

.news-detail-body li + li {
    margin-top: .35rem;
}

.news-detail-aside {
    position: sticky;
    top: 6rem;
}

.news-detail-poster-card {
    padding: .75rem;
}

.news-detail-poster {
    aspect-ratio: 8.5 / 14;
    background: #f7faf8;
    border-radius: 6px;
    display: block;
    max-height: 660px;
    object-fit: contain;
    width: 100%;
}

.news-detail-actions {
    display: grid;
    gap: .55rem;
    grid-template-columns: 1fr 1fr;
    margin-top: .75rem;
}

.home-prayer-card,
.home-feature-card {
    border-radius: 8px;
}

.home-prayer-card {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1.4rem 3.2rem rgba(3, 20, 16, .28) !important;
}

.home-prayer-card .card-body {
    padding: 1.35rem !important;
}

.home-prayer-card-top {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.home-prayer-date {
    color: #5f6d68;
    font-size: .92rem;
}

.home-prayer-hijri {
    color: var(--masjid-green-dark);
    font-size: .88rem;
    font-weight: 800;
}

.home-prayer-live {
    background: rgba(15, 118, 110, .1);
    border: 1px solid rgba(15, 118, 110, .2);
    color: var(--masjid-green-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .28rem .5rem;
    text-transform: uppercase;
}

.home-hero-stats {
    max-width: 640px;
}

.home-stat {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    box-shadow: 0 .45rem 1.2rem rgba(0, 0, 0, .08);
    padding: .85rem 1rem;
}

.home-stat strong,
.home-stat span {
    display: block;
}

.home-stat strong {
    color: #fff;
    font-size: 1.05rem;
}

.home-stat span {
    color: rgba(255, 255, 255, .76);
    font-size: .9rem;
}

.home-next-prayer {
    align-items: stretch;
    background: linear-gradient(135deg, #0b3f39, var(--masjid-green-dark));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    box-shadow: 0 .7rem 1.35rem rgba(8, 47, 42, .16);
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .9rem 1rem;
}

.home-next-prayer strong,
.home-next-prayer span {
    display: block;
}

.home-next-prayer strong {
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.15;
    margin-bottom: .18rem;
}

.home-next-prayer .small {
    color: rgba(255, 255, 255, .7);
    letter-spacing: .04em;
    margin-bottom: .2rem;
}

.home-next-prayer > div:first-child > span:not(.small) {
    color: var(--masjid-gold);
    font-weight: 800;
}

.home-countdown-box {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    display: flex;
    flex: 0 0 10.75rem;
    justify-content: center;
    width: 10.75rem;
    padding: .72rem .9rem;
    text-align: center;
}

.home-countdown-box .next-countdown {
    color: #fff;
    display: block;
    font-size: 1.22rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    line-height: 1.1;
    width: 9rem;
    text-align: center;
    white-space: nowrap;
}

.home-prayer-table {
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    overflow: hidden;
}

.home-prayer-row {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(5rem, 1fr) minmax(4.5rem, .8fr) minmax(4.5rem, .8fr);
    padding: .52rem .75rem;
}

.home-prayer-row.is-next {
    background: rgba(197, 157, 63, .12);
    box-shadow: inset 3px 0 0 var(--masjid-gold);
}

.home-prayer-name {
    color: var(--masjid-ink);
    font-weight: 800;
}

.home-prayer-row + .home-prayer-row {
    border-top: 1px solid #e7efeb;
}

.home-prayer-head {
    background: var(--masjid-soft);
    color: #66736f;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.home-jumuah {
    background: #f8fbf9;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    padding: .85rem;
}

.home-jumuah span {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 999px;
    color: #3f4b47;
    display: inline-flex;
    gap: .35rem;
    padding: .35rem .65rem;
}

.home-jumuah strong {
    color: var(--masjid-green-dark);
}

.home-feature-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    box-shadow: 0 .65rem 1.5rem rgba(15, 118, 110, .05);
    padding: 1.25rem;
}

.home-feature-card h2,
.home-feature-card h3 {
    color: var(--masjid-green-dark);
}

.home-feature-card a {
    color: var(--masjid-green-dark);
    font-weight: 700;
}

.home-updates {
    background:
        linear-gradient(180deg, #f8faf9 0%, #f2f6f4 100%);
}

.home-updates-header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.home-update-feature,
.home-update-mini,
.home-update-all {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-update-feature:hover,
.home-update-mini:hover,
.home-update-all:hover {
    border-color: var(--masjid-green);
    box-shadow: 0 .85rem 1.8rem rgba(15, 118, 110, .09);
    color: inherit;
    transform: translateY(-1px);
}

.home-update-feature {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .055), transparent 38%),
        #fff;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(11rem, 32%) minmax(0, 1fr);
    overflow: hidden;
    padding: 1.1rem;
}

.home-update-feature:not(.has-poster) {
    grid-template-columns: 1fr;
}

.home-update-poster,
.home-update-mini-poster {
    background: #f7faf8;
    border: 1px solid #d8e3de;
    border-radius: 8px;
    box-shadow: 0 .75rem 1.4rem rgba(10, 42, 36, .1);
    display: block;
    padding: .35rem;
}

.home-update-poster {
    align-self: start;
}

.home-update-poster img,
.home-update-mini-poster img {
    aspect-ratio: 8.5 / 14;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.home-update-copy {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 0;
    padding: .2rem 0;
}

.home-featured-label,
.home-update-stack-title {
    color: #8b7428;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-update-copy strong {
    color: var(--masjid-ink);
    display: -webkit-box;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.16;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-update-copy > span:not(.news-event-topline):not(.news-event-link) {
    color: #34423e;
    display: -webkit-box;
    line-height: 1.6;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.home-update-stack {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.home-update-stack-title {
    padding: .1rem 0 .15rem;
}

.home-update-mini {
    display: grid;
    gap: 1rem;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    padding: .8rem;
}

.home-update-mini:not(.has-poster) {
    grid-template-columns: 1fr;
}

.home-update-mini-copy {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.home-update-mini-copy strong {
    color: var(--masjid-ink);
    display: -webkit-box;
    font-size: 1.02rem;
    line-height: 1.28;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-update-mini-copy > span:not(.news-event-topline) {
    color: #4a5753;
    display: -webkit-box;
    font-size: .92rem;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-update-all {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: auto;
    padding: 1rem 1.1rem;
}

.home-update-all strong,
.home-update-all span span {
    display: block;
}

.home-update-all strong {
    color: var(--masjid-green-dark);
}

.home-update-all span span {
    color: #66736f;
    font-size: .92rem;
}

.home-location {
    background:
        radial-gradient(circle at 18% 18%, rgba(197, 157, 63, .12), transparent 22rem),
        linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.home-location-panel,
.home-map-frame {
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    overflow: hidden;
}

.home-location-panel {
    background: #fff;
    box-shadow: 0 .85rem 1.8rem rgba(15, 118, 110, .055);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.home-location-address {
    background: var(--masjid-soft);
    border-left: 4px solid var(--masjid-gold);
    border-radius: 8px;
    padding: 1rem;
}

.home-location-address strong {
    color: var(--masjid-ink);
    display: block;
    font-size: 1.08rem;
    line-height: 1.45;
}

.home-map-frame {
    background: #e8efec;
    min-height: 360px;
}

.home-map-frame iframe {
    border: 0;
    display: block;
    height: 100%;
    min-height: 360px;
    width: 100%;
}

.home-map-placeholder {
    align-items: center;
    color: #66736f;
    display: flex;
    height: 100%;
    justify-content: center;
    min-height: 360px;
    padding: 2rem;
    text-align: center;
}

.donate-page {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, .09), transparent 30rem),
        linear-gradient(180deg, #f7faf8 0%, #fff 44%, #f6f9f7 100%);
}

.donate-hero {
    max-width: 48rem;
}

.donation-panel {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 .85rem 1.8rem rgba(15, 118, 110, .055);
}

.donation-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.donation-panel-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.donation-tax-badge {
    align-self: flex-start;
    color: var(--masjid-green-dark);
    white-space: nowrap;
}

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

.donation-frequency-group .btn,
.donation-amount-grid .btn {
    font-weight: 700;
}

.donation-amount-grid label[for="amountCustom"] {
    grid-column: 1 / -1;
}

.donation-description-panel {
    background: #f6faf8;
    border: 1px solid #dce8e3;
    border-radius: 8px;
    padding: 1rem;
}

.donation-description-copy {
    color: #596662;
    line-height: 1.55;
}

.donation-description-copy p {
    margin-bottom: .75rem;
}

.donation-card-fields {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    padding: 1rem 1rem .85rem;
}

.donation-card-fields .form-label {
    color: #1e302b;
    font-size: .92rem;
    font-weight: 650;
    margin-bottom: .4rem;
}

.clover-card-field {
    align-items: center;
    background: #fff;
    border: 1px solid #cfdcd7;
    border-radius: 6px;
    display: flex;
    height: 48px;
    overflow: hidden;
    padding: .9em;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.clover-card-field iframe {
    display: block;
    min-height: 22px;
}

.clover-card-field:focus-within {
    border-color: var(--masjid-green);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .13);
}

.donation-clover-footer {
    color: #6b7772;
    font-size: .78rem;
    line-height: 1.35;
    text-align: center;
}

.donation-clover-footer:empty {
    display: none;
}

.donation-description-copy p:last-child {
    margin-bottom: 0;
}

.donor-portal-page {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, .08), transparent 32rem),
        linear-gradient(180deg, #f7faf8 0%, #fff 46%, #f6f9f7 100%);
}

.donor-summary-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 .65rem 1.35rem rgba(15, 118, 110, .045);
    padding: 1.25rem;
}

.donor-summary-value {
    color: var(--masjid-green-dark);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-top: .35rem;
}

.donor-row {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.auth-page {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .07), rgba(197, 157, 63, .08)),
        #f7faf8;
}

.auth-shell {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 1rem 2.5rem rgba(15, 94, 89, .09);
    display: grid;
    grid-template-columns: minmax(17rem, .9fr) minmax(20rem, 1fr);
    max-width: 880px;
    overflow: hidden;
}

.auth-intro {
    background:
        linear-gradient(180deg, rgba(8, 47, 42, .92), rgba(15, 94, 89, .92)),
        var(--masjid-green-dark);
    color: #fff;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-intro-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 1rem;
}

.auth-intro-copy {
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.auth-intro-list {
    display: grid;
    gap: .65rem;
}

.auth-intro-list span {
    align-items: center;
    color: rgba(255, 255, 255, .9);
    display: flex;
    font-weight: 700;
    gap: .55rem;
}

.auth-intro-list span::before {
    background: var(--masjid-gold);
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: .45rem;
    width: .45rem;
}

.auth-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-card-header {
    margin-bottom: 1.5rem;
}

.auth-card .form-control {
    border-color: #cfddd8;
    min-height: 2.85rem;
}

.auth-card .form-control:focus {
    border-color: var(--masjid-green);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .13);
}

.auth-card-footer {
    border-top: 1px solid #e4ece8;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

@media (max-width: 575.98px) {
    .donor-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.contact-page {
    background:
        radial-gradient(circle at top left, rgba(201, 161, 58, .12), transparent 34rem),
        linear-gradient(180deg, #f7faf8 0%, #fff 44%, #f6f9f7 100%);
}

.contact-hero-panel {
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    padding: clamp(.25rem, 1.5vw, 1rem) 0;
    position: relative;
}

.contact-hero-panel::before {
    content: none;
}

.contact-response-note {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 .75rem 1.5rem rgba(15, 118, 110, .055);
    color: #3e4b47;
    padding: 1.15rem;
}

.contact-form-meta {
    background: #f6faf8;
    border: 1px solid #dce8e3;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.contact-form-meta div {
    border-right: 1px solid #dce8e3;
    padding: .85rem 1rem;
}

.contact-form-meta div:last-child {
    border-right: 0;
}

.contact-form-meta span,
.contact-side-item span {
    color: #8b7428;
    display: block;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.contact-form-meta strong {
    color: var(--masjid-green-dark);
    display: block;
    font-size: .92rem;
    line-height: 1.35;
}

.contact-request-panel,
.contact-side-panel {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    box-shadow: 0 .85rem 1.8rem rgba(15, 118, 110, .06);
}

.contact-request-panel {
    padding: clamp(1.25rem, 3vw, 2.1rem);
}

.contact-request-panel .form-label {
    color: var(--masjid-ink);
    font-weight: 700;
}

.contact-request-panel .form-control,
.contact-request-panel .form-select {
    border-color: #cfddd8;
    min-height: 2.8rem;
}

.contact-request-panel .form-control:focus,
.contact-request-panel .form-select:focus {
    border-color: var(--masjid-green);
    box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .12);
}

.contact-request-panel textarea.form-control {
    min-height: 12rem;
}

.contact-side-panel {
    padding: 1.35rem;
    position: sticky;
    top: 6rem;
}

.contact-side-list {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.25rem;
}

.contact-side-item {
    border-top: 1px solid #e5eee9;
    padding-top: 1rem;
}

.contact-side-item a {
    color: var(--masjid-green-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration-color: rgba(15, 118, 110, .25);
    text-underline-offset: .2rem;
}

.contact-side-item address {
    color: #34423e;
    font-style: normal;
    line-height: 1.6;
}

.contact-side-note {
    background: #fbf7eb;
    border: 1px solid rgba(201, 161, 58, .32);
    border-radius: 8px;
    color: #5d5131;
    font-size: .94rem;
    margin-top: 1.25rem;
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .contact-form-meta {
        grid-template-columns: 1fr;
    }

    .contact-form-meta div {
        border-bottom: 1px solid #dce8e3;
        border-right: 0;
    }

    .contact-form-meta div:last-child {
        border-bottom: 0;
    }

    .contact-side-panel {
        position: static;
    }

    .news-detail-layout.has-poster {
        grid-template-columns: 1fr;
    }

    .news-detail-aside {
        position: static;
    }

    .news-detail-poster-card {
        margin: 0 auto;
        max-width: 30rem;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-intro {
        padding-bottom: 1.5rem;
    }

    .auth-intro-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.ai-assist-group .ai-tone {
    max-width: 170px;
}

.ai-status {
    min-height: 1.25rem;
}

.page-edit-fab {
    bottom: 1.25rem;
    border-radius: 50%;
    height: 3.5rem;
    padding: 0;
    position: fixed;
    right: 1.25rem;
    width: 3.5rem;
    z-index: 1060;
}

.page-edit-fab span {
    display: inline-block;
    font-size: 1.65rem;
    line-height: 1;
    transform: translateY(-1px);
}

.page-editor-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 2rem));
}

.page-ai-panel {
    position: sticky;
    top: 0;
}

.wysiwyg-toolbar .btn {
    min-width: 2.35rem;
}

.wysiwyg-canvas {
    background: #fff;
    min-height: 7.25rem;
    overflow: auto;
}

.page-editor-modal .wysiwyg-canvas {
    min-height: 30rem;
}

.page-editor-modal .tox-tinymce,
.page-editor-modal .tox-editor-container {
    border-radius: .75rem;
}

.page-editor-modal .tox-tinymce {
    border-color: rgba(15, 118, 110, .2);
}

.wysiwyg-canvas:empty::before {
    color: #8a9692;
    content: attr(data-placeholder);
}

.wysiwyg-canvas p:last-child,
.content-html p:last-child,
.content-html ul:last-child,
.content-html ol:last-child {
    margin-bottom: 0;
}

.content-html p {
    margin-bottom: .85rem;
}

.content-html ul,
.content-html ol {
    margin-bottom: .85rem;
    padding-left: 1.35rem;
}

.about-hero {
    background:
        linear-gradient(90deg, rgba(15, 118, 110, .1) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(15, 118, 110, .08) 0 1px, transparent 1px 100%),
        linear-gradient(135deg, #fbfcf8 0%, #eef7f2 58%, #f7fbf8 100%);
    background-size: 44px 44px, 44px 44px, auto;
    overflow: hidden;
    position: relative;
}

.about-hero::before {
    background:
        linear-gradient(135deg, rgba(197, 157, 63, .32), rgba(197, 157, 63, .08));
    border: 1px solid rgba(197, 157, 63, .24);
    content: "";
    height: 78%;
    position: absolute;
    right: -8rem;
    top: 12%;
    transform: skewX(-12deg);
    width: 33%;
}

.about-hero > .container {
    position: relative;
    z-index: 1;
}

.about-hero.has-background-image {
    background:
        linear-gradient(90deg, rgba(8, 34, 30, .9) 0%, rgba(8, 34, 30, .74) 45%, rgba(8, 34, 30, .42) 100%),
        var(--about-hero-image),
        linear-gradient(135deg, #0f332d 0%, #175e54 100%);
    background-position: center;
    background-size: cover;
    min-height: 520px;
}

.about-hero.has-background-image::before {
    background: rgba(197, 157, 63, .2);
    border-color: rgba(197, 157, 63, .22);
    right: -14rem;
    width: 42%;
}

.about-hero.has-background-image h1,
.about-hero.has-background-image .lead {
    color: #fff !important;
    text-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, .28);
}

.about-hero.has-background-image .badge {
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
}

.about-hero.has-background-image .btn-outline-success {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
}

.about-hero.has-background-image .btn-outline-success:hover {
    background: #fff;
    border-color: #fff;
    color: var(--masjid-green-dark);
}

.about-hero .badge {
    box-shadow: 0 .45rem 1rem rgba(15, 118, 110, .12);
    font-weight: 800;
}

.about-hero h1 {
    color: var(--masjid-ink);
    font-size: clamp(2.65rem, 4.8vw, 4.65rem);
    letter-spacing: 0;
    line-height: 1.04;
    max-width: 760px;
}

.about-hero .lead {
    color: #34423e !important;
    font-size: clamp(1.12rem, 1.7vw, 1.35rem);
    line-height: 1.55;
    max-width: 720px;
}

.about-hero .btn-lg {
    font-weight: 800;
    padding: .8rem 1.1rem;
}

.about-photo {
    aspect-ratio: 4 / 3;
    background: #fff;
    border: 1px solid #dbe6e1;
    border-radius: 8px;
    box-shadow: 0 1.25rem 2.8rem rgba(12, 42, 36, .16) !important;
    overflow: visible;
    padding: .55rem;
    position: relative;
}

.about-photo::before {
    background: rgba(197, 157, 63, .22);
    border: 1px solid rgba(197, 157, 63, .32);
    border-radius: 8px;
    bottom: -1rem;
    content: "";
    left: 1.25rem;
    position: absolute;
    right: -1rem;
    top: 1.25rem;
    z-index: 0;
}

.about-photo img {
    border-radius: 6px;
    display: block;
    height: 100%;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 1;
}

.about-story {
    color: #44514d;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-story > h2 {
    border-top: 1px solid #dfe8e4;
    color: var(--masjid-green-dark);
    font-size: 1.65rem;
    font-weight: 800;
    margin: 2.25rem 0 1rem;
    padding-top: 2rem;
}

.about-story > h2:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.about-story > h3 {
    color: var(--masjid-ink);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 1.5rem 0 .65rem;
}

.about-story > ul {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    padding-left: 0;
}

.about-story > ul li {
    background: var(--masjid-soft);
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    padding: .8rem .9rem .8rem 2.25rem;
    position: relative;
}

.about-story > ul li::before {
    color: var(--masjid-green);
    content: "✓";
    font-weight: 800;
    left: .9rem;
    position: absolute;
}

.about-side {
    top: 6rem;
}

.about-side-card,
.about-cta {
    border-radius: 8px;
    padding: 1.25rem;
}

.about-side-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    box-shadow: 0 .65rem 1.5rem rgba(15, 118, 110, .06);
}

.about-cta {
    background: var(--masjid-green-dark);
    color: #fff;
}

@media (max-width: 767.98px) {
    .site-header .navbar {
        min-height: 66px;
    }

    .site-header .navbar-brand {
        max-width: calc(100vw - 96px);
    }

    .site-header .site-logo {
        max-height: 46px;
        max-width: min(64vw, 280px);
    }

    .about-story > ul {
        grid-template-columns: 1fr;
    }

    .about-hero::before {
        height: 18rem;
        right: -12rem;
        top: auto;
        bottom: 1rem;
        width: 26rem;
    }

    .about-hero h1 {
        font-size: 2.7rem;
    }

    .about-photo {
        margin-top: .5rem;
    }

    .auth-intro-list {
        grid-template-columns: 1fr;
    }

    .home-hero-photo {
        min-height: 0;
    }

    .home-hero-photo .container {
        min-height: 0;
    }

    .home-hero-photo h1 {
        font-size: 2.45rem;
    }

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

    .home-next-prayer .next-countdown {
        justify-content: center;
        min-width: 0;
    }

    .home-updates-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-event-card.has-poster {
        grid-template-columns: 6.75rem minmax(0, 1fr);
    }

    .news-event-card-frame .content-card {
        padding: .85rem 2.75rem .85rem .85rem;
    }

    .home-update-feature,
    .home-update-mini {
        grid-template-columns: 6.75rem minmax(0, 1fr);
    }

    .home-update-copy strong {
        font-size: 1.12rem;
        -webkit-line-clamp: 2;
    }

    .home-update-copy > span:not(.news-event-topline):not(.news-event-link) {
        -webkit-line-clamp: 3;
    }

    .news-event-summary {
        -webkit-line-clamp: 3;
    }

    .prayer-month-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .prayer-month-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .prayer-month-actions .btn {
        flex: 1 1 auto;
    }

    .next-prayer-card {
        min-height: 0;
    }

    .islam-side-nav {
        position: static !important;
    }

    .islam-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .rakah-strip,
    .prayer-step-grid {
        grid-template-columns: 1fr;
    }

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

    .prayer-step-visual {
        min-height: 9rem;
    }

    .fajr-guide-header,
    .fajr-guide-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 459.98px) {
    .news-event-card.has-poster {
        grid-template-columns: 5.65rem minmax(0, 1fr);
        gap: .8rem;
    }

    .home-update-feature,
    .home-update-mini {
        gap: .8rem;
        grid-template-columns: 5.65rem minmax(0, 1fr);
    }

    .news-event-title {
        font-size: 1rem;
    }

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

    .news-event-meta,
    .news-event-summary {
        font-size: .86rem;
    }
}

@media print {
    @page {
        margin: .35in;
        size: letter portrait;
    }

    .admin-edit-bar,
    .site-header,
    .site-footer,
    .alert,
    .no-print {
        display: none !important;
    }

    html,
    body {
        background: #fff !important;
        height: auto !important;
        min-height: 0 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    main {
        display: block !important;
    }

    .print-prayer-page .container-fluid {
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .print-prayer-page {
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-letter-sheet {
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .print-prayer-heading {
        margin-bottom: .08in !important;
        padding-bottom: .055in !important;
    }

    .print-prayer-heading h1 {
        font-size: 12pt !important;
    }

    .print-masjid-name {
        font-size: 10pt !important;
    }

    .print-location,
    .print-hijri-range,
    .print-note {
        font-size: 6.7pt !important;
    }

    .print-table {
        border-collapse: collapse !important;
        font-size: 7.3pt !important;
        line-height: 1.02 !important;
        page-break-inside: avoid;
    }

    .print-table th,
    .print-table td {
        padding: 1.7pt 2.1pt !important;
    }

    .iqamah-time,
    .hijri-date {
        font-size: 6.2pt !important;
    }

    .print-note {
        margin-top: .055in !important;
        padding-top: .04in !important;
    }

    .classic-prayer-print {
        color: #000 !important;
        font-family: "Times New Roman", Times, serif !important;
        padding: 0 !important;
    }

    .classic-print-header {
        border: .75pt solid #000 !important;
        margin: 0 auto .01in !important;
        max-width: 6.7in !important;
    }

    .classic-header-row {
        border-bottom: .75pt solid #000 !important;
        font-size: 14pt !important;
        line-height: 1.13 !important;
        padding: 2pt 6pt !important;
    }

    .classic-header-row:last-child {
        border-bottom: 0 !important;
    }

    .classic-site-name {
        font-size: 14pt !important;
    }

    .classic-month-title {
        font-size: 14.5pt !important;
        line-height: 1 !important;
        margin: 1pt 0 12pt !important;
    }

    .classic-adhan-table {
        border-collapse: collapse !important;
        border-color: #000 !important;
        font-size: 12.6pt !important;
        line-height: .98 !important;
        page-break-inside: avoid !important;
    }

    .classic-adhan-table th,
    .classic-adhan-table td {
        border-color: #000 !important;
        border-width: .75pt !important;
        padding: .8pt 3pt !important;
    }

    .classic-adhan-table th {
        font-size: 13.4pt !important;
        line-height: 1.04 !important;
    }

    .classic-iqamah-block {
        margin-top: 2pt !important;
        max-width: 6.65in !important;
        page-break-inside: avoid !important;
    }

    .classic-iqamah-block h2 {
        font-size: 14pt !important;
        margin-bottom: 3pt !important;
    }

    .classic-iqamah-table {
        font-size: 12.2pt !important;
        line-height: 1.05 !important;
    }

    .classic-iqamah-table th {
        padding: 0 5pt 2pt !important;
    }

    .classic-iqamah-table td {
        padding: 1.5pt 5pt !important;
    }

    .classic-jumuah-line {
        font-size: 12.8pt !important;
        line-height: 1 !important;
        margin-top: 1pt !important;
    }

.classic-calculation-line {
    font-size: 9.5pt !important;
    line-height: 1 !important;
    margin-top: 3pt !important;
}
}

.support-timeline {
    display: grid;
    gap: 1rem;
}

.support-stats {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.support-stat-card {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    color: inherit;
    padding: .9rem;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.support-stat-card:hover,
.support-stat-card.is-active {
    border-color: var(--masjid-green);
    box-shadow: 0 .65rem 1.35rem rgba(15, 118, 110, .08);
    color: inherit;
    transform: translateY(-1px);
}

.support-stat-card span {
    color: #66736f;
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    min-height: 1.8rem;
    text-transform: uppercase;
}

.support-stat-card strong {
    color: var(--masjid-green-dark);
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    margin-top: .35rem;
}

.support-entry {
    background: #fff;
    border: 1px solid #dfe8e4;
    border-left: 4px solid var(--masjid-green);
    border-radius: 8px;
    padding: 1rem;
}

.support-entry-note {
    background: var(--masjid-soft);
    border-left-color: var(--masjid-gold);
}

.tv-display-body {
    background: #04140f;
    color: #f7fbf8;
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
}

.tv-display,
.tv-display *,
.tv-display *::before,
.tv-display *::after {
    box-sizing: border-box;
}

.tv-display {
    align-items: center;
    background: #04140f;
    display: flex;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
}

.tv-stage-shell {
    height: calc(1080px * var(--tv-scale, 1));
    position: relative;
    width: calc(1920px * var(--tv-scale, 1));
}

.tv-stage {
    --tv-light-text-shadow: 0 5px 16px rgba(0, 0, 0, .74), 0 2px 4px rgba(0, 0, 0, .86), 0 0 1px rgba(0, 0, 0, .95);
    --tv-dark-text-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 2px 8px rgba(7, 27, 24, .18);
    background: #06251b;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 1080px;
    left: 0;
    overflow: hidden;
    padding: 32px;
    position: absolute;
    top: 0;
    transform: scale(var(--tv-scale, 1));
    transform-origin: top left;
    width: 1920px;
    text-shadow: var(--tv-light-text-shadow);
}

.tv-connection-status {
    background: rgba(3, 28, 20, .84);
    border: 1px solid rgba(244, 208, 111, .36);
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    color: rgba(247, 251, 248, .92);
    font-size: 16px;
    font-weight: 800;
    left: 18px;
    letter-spacing: .01em;
    line-height: 1;
    padding: 10px 14px;
    position: fixed;
    text-shadow: var(--tv-light-text-shadow);
    z-index: 20;
}

.tv-connection-status[hidden] {
    display: none;
}

.tv-theme-contrast {
    background:
        radial-gradient(circle at 18% 18%, rgba(197, 157, 63, .22), transparent 30rem),
        linear-gradient(135deg, #020807 0%, #071311 100%);
}

.tv-theme-warm {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 229, 158, .35), transparent 30rem),
        radial-gradient(circle at 82% 4%, rgba(42, 97, 87, .32), transparent 34rem),
        linear-gradient(135deg, #1d332e 0%, #4b3b1f 100%);
}

.tv-theme-emerald {
    background:
        radial-gradient(circle at 28% 18%, rgba(79, 209, 197, .32), transparent 30rem),
        radial-gradient(circle at 86% 86%, rgba(197, 157, 63, .2), transparent 34rem),
        linear-gradient(135deg, #042f2e 0%, #0f4f47 48%, #071b18 100%);
}

.tv-theme-midnight {
    background:
        radial-gradient(circle at 18% 8%, rgba(242, 216, 141, .2), transparent 26rem),
        radial-gradient(circle at 78% 18%, rgba(38, 120, 142, .24), transparent 34rem),
        linear-gradient(135deg, #020617 0%, #092620 54%, #020807 100%);
}

.tv-theme-dawn {
    background:
        radial-gradient(circle at 18% 82%, rgba(255, 214, 126, .36), transparent 34rem),
        radial-gradient(circle at 82% 12%, rgba(15, 118, 110, .24), transparent 32rem),
        linear-gradient(135deg, #1d332e 0%, #486a61 48%, #5a3e22 100%);
}

.tv-theme-sandstone {
    background:
        radial-gradient(circle at 82% 14%, rgba(250, 222, 154, .32), transparent 32rem),
        radial-gradient(circle at 16% 76%, rgba(15, 118, 110, .2), transparent 34rem),
        linear-gradient(135deg, #24332e 0%, #5f5133 52%, #17211f 100%);
}

.tv-theme-mountain {
    background: #06251b;
}

.tv-stage.has-tv-background-image {
    background:
        linear-gradient(135deg, rgba(3, 16, 14, .38), rgba(7, 27, 24, .18) 48%, rgba(3, 16, 14, .44)),
        radial-gradient(circle at 18% 18%, rgba(197, 157, 63, .16), transparent 30rem),
        var(--tv-background-image),
        linear-gradient(135deg, #092620 0%, #123c35 52%, #071b18 100%);
    background-position: center;
    background-size: cover;
}

.tv-prayer-panel,
.tv-updates-panel {
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .22);
}

.tv-topbar {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 340px;
    justify-content: space-between;
    min-height: 0;
    padding: 2px 0 10px;
}

.tv-brand {
    align-items: center;
    display: flex;
    gap: 1.1rem;
    min-width: 0;
}

.tv-brand img {
    background: #fff;
    border-radius: 18px;
    height: 88px;
    max-width: 450px;
    object-fit: contain;
    padding: 8px 14px;
}

.tv-brand-mark {
    align-items: center;
    background: var(--masjid-gold);
    border-radius: 50%;
    color: #102d28;
    display: inline-flex;
    font-size: 58px;
    font-weight: 900;
    height: 96px;
    justify-content: center;
    width: 96px;
}

.tv-brand h1 {
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.tv-brand p,
.tv-date-stack {
    color: rgba(247, 251, 248, .94);
}

.tv-brand p {
    font-size: 22px;
    margin: 8px 0 0;
}

.tv-date-stack {
    align-content: center;
    display: grid;
    flex: 0 0 auto;
    gap: 8px 26px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    text-align: left;
}

.tv-clock {
    color: #fff;
    font-size: 104px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    grid-row: 1 / span 2;
    line-height: 1;
    text-shadow: var(--tv-light-text-shadow);
    white-space: nowrap;
}

.tv-period-sup {
    display: inline-block;
    font-size: .32em;
    font-weight: 820;
    line-height: 1;
    margin-left: .12em;
    position: relative;
    top: 0;
    vertical-align: middle;
}

.tv-clock .tv-period-sup {
    font-size: .38em;
    top: 0;
}

.tv-prayer-row .tv-period-sup,
.tv-prayer-footer .tv-period-sup {
    font-size: .38em;
    top: 0;
}

.tv-date,
.tv-hijri {
    align-self: end;
    color: rgba(247, 251, 248, .94);
    font-size: 28px;
    font-weight: 800;
    text-shadow: var(--tv-light-text-shadow);
}

.tv-hijri {
    align-self: start;
    color: #f4d06f;
    font-size: 30px;
}

.tv-weather-card {
    align-items: center;
    background: rgba(4, 31, 22, .86);
    border: 1px solid rgba(244, 208, 111, .28);
    border-radius: 18px;
    color: rgba(247, 251, 248, .82);
    display: grid;
    gap: 12px;
    grid-template-columns: 70px minmax(0, 1fr);
    min-width: 0;
    padding: 18px 20px;
}

.tv-weather-card span {
    color: #f4d06f;
    display: block;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    text-shadow: var(--tv-light-text-shadow);
    text-transform: uppercase;
}

.tv-weather-card strong {
    color: #fff;
    display: block;
    font-size: 52px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    line-height: 1;
    margin-top: 4px;
    text-shadow: var(--tv-light-text-shadow);
}

.tv-weather-card small {
    color: rgba(247, 251, 248, .94);
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-top: 8px;
    text-shadow: var(--tv-light-text-shadow);
    white-space: nowrap;
}

.tv-weather-icon {
    height: 76px;
    position: relative;
    transform: scale(.7);
    transform-origin: left center;
    width: 84px;
}

.tv-weather-icon::before,
.tv-weather-icon::after,
.tv-weather-icon span {
    content: "";
    position: absolute;
}

.tv-weather-icon-sun::before {
    background: #f4d06f;
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(244, 208, 111, .52);
    height: 82px;
    left: 13px;
    top: 11px;
    width: 82px;
}

.tv-weather-icon-cloud::before,
.tv-weather-icon-rain::before,
.tv-weather-icon-snow::before,
.tv-weather-icon-storm::before {
    background: #eef4ef;
    border-radius: 999px;
    bottom: 18px;
    height: 42px;
    left: 8px;
    width: 100px;
}

.tv-weather-icon-cloud::after,
.tv-weather-icon-rain::after,
.tv-weather-icon-snow::after,
.tv-weather-icon-storm::after {
    background: #eef4ef;
    border-radius: 50%;
    box-shadow: 28px 8px 0 4px #eef4ef;
    height: 54px;
    left: 30px;
    top: 22px;
    width: 54px;
}

.tv-weather-icon-cloud span,
.tv-weather-icon-rain span,
.tv-weather-icon-snow span,
.tv-weather-icon-storm span {
    background: #f4d06f;
    border-radius: 50%;
    height: 46px;
    left: 5px;
    top: 10px;
    width: 46px;
}

.tv-weather-icon-rain span,
.tv-weather-icon-snow span,
.tv-weather-icon-storm span {
    background: transparent;
    border-radius: 0;
    height: 30px;
    left: 28px;
    top: 76px;
    width: 58px;
}

.tv-weather-icon-rain span {
    border-left: 8px solid #9fd8ff;
    border-right: 8px solid #9fd8ff;
    transform: skewX(-18deg);
}

.tv-weather-icon-snow span {
    color: #d8f3ff;
    font-size: 54px;
    font-weight: 900;
}

.tv-weather-icon-snow span::before {
    content: "*";
    left: 0;
    position: absolute;
    top: -16px;
}

.tv-weather-icon-storm span {
    background: #f4d06f;
    clip-path: polygon(44% 0, 76% 0, 56% 43%, 84% 43%, 32% 100%, 46% 55%, 20% 55%);
    height: 46px;
    left: 42px;
    top: 63px;
    width: 42px;
}

.tv-main-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 632px);
    height: 100%;
    min-height: 0;
}

.tv-main-grid-prayers-only {
    grid-template-columns: minmax(0, 1fr) minmax(0, 632px);
}

.tv-left-stack {
    display: grid;
    gap: 16px;
    grid-template-rows: 188px minmax(0, 1fr);
    min-height: 0;
}

.tv-prayer-panel,
.tv-updates-panel {
    backdrop-filter: blur(10px) saturate(1.08);
    background: rgba(2, 8, 14, .46);
    border-color: rgba(255, 255, 255, .18);
    border-radius: 28px;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 22px;
}

.tv-stage.has-tv-background-image .tv-prayer-panel,
.tv-stage.has-tv-background-image .tv-updates-panel {
    background: rgba(2, 8, 14, .24);
    border-color: rgba(255, 255, 255, .24);
    box-shadow: 0 1.2rem 3.4rem rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.tv-stage.has-tv-background-image .tv-topbar {
    backdrop-filter: blur(8px) saturate(1.08);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
}

.tv-prayer-panel {
    align-content: start;
    backdrop-filter: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 0;
    grid-template-rows: minmax(0, 1fr) 128px;
    overflow: visible;
    padding: 0;
}

.tv-next-card {
    background: linear-gradient(135deg, rgba(197, 157, 63, .92), rgba(242, 216, 141, .88));
    border-radius: 24px;
    color: #102d28;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 20px 28px;
    text-shadow: var(--tv-dark-text-shadow);
}

.tv-next-card.is-iqamah-soon {
    background: linear-gradient(135deg, rgba(242, 216, 141, .98), rgba(255, 247, 213, .94));
    box-shadow: 0 0 0 4px rgba(242, 216, 141, .34), 0 18px 42px rgba(0, 0, 0, .22);
}

.tv-kicker {
    color: inherit;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tv-next-name {
    font-size: 56px;
    font-weight: 950;
    grid-column: 1;
    line-height: .95;
}

.tv-next-time {
    align-self: end;
    font-size: 54px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    grid-column: 2;
    grid-row: 1 / span 2;
    line-height: 1;
    padding-left: 24px;
}

.tv-next-countdown {
    background: rgba(7, 27, 24, .14);
    border-radius: 18px;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    grid-column: 1 / -1;
    line-height: 1.08;
    margin-top: 2px;
    padding: 5px 16px;
    text-align: center;
}

.tv-prayer-table {
    align-content: start;
    background: rgba(3, 28, 20, .74);
    border: 0;
    border-radius: 28px 28px 0 0;
    border-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(244, 208, 111, .14), 0 18px 40px rgba(0, 0, 0, .12);
    display: grid;
    gap: 0;
    height: 100%;
    grid-template-rows: 46px repeat(5, minmax(0, 1fr));
    min-height: 0;
    overflow: hidden;
}

.tv-prayer-row {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(244, 208, 111, .14);
    border-radius: 0;
    box-shadow: none;
    display: grid;
    font-size: 60px;
    font-variant-numeric: tabular-nums;
    font-weight: 920;
    grid-template-columns: .78fr .78fr .9fr;
    line-height: 1;
    min-height: 0;
    padding: 8px 28px;
    position: relative;
    text-shadow: var(--tv-light-text-shadow);
}

.tv-prayer-row:last-child {
    border-bottom: 0;
}

.tv-prayer-row:not(.tv-prayer-head):nth-child(odd) {
    background: rgba(5, 39, 28, .2);
}

.tv-prayer-row:not(.tv-prayer-head):nth-child(even) {
    background: rgba(3, 28, 20, .36);
}

.tv-prayer-row span:nth-child(2),
.tv-prayer-row span:nth-child(3) {
    justify-self: end;
    text-align: right;
}

.tv-prayer-row:not(.tv-prayer-head) span:nth-child(2) {
    color: #fff;
    font-size: .92em;
    font-weight: 920;
}

.tv-prayer-row:not(.tv-prayer-head) span:nth-child(3) {
    color: #f4d06f;
    font-size: 1.16em;
    font-weight: 950;
}

.tv-prayer-head {
    background: rgba(8, 58, 41, .42);
    border-bottom-color: rgba(244, 208, 111, .18);
    border-radius: 0;
    color: rgba(247, 251, 248, .95);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tv-prayer-row.is-next {
    background: rgba(13, 86, 59, .72) !important;
    border-bottom-color: rgba(244, 208, 111, .28);
    box-shadow: inset 8px 0 0 rgba(244, 208, 111, .98), inset 0 1px 0 rgba(244, 208, 111, .14), inset 0 -1px 0 rgba(244, 208, 111, .14);
}

.tv-prayer-row.is-next::after {
    content: none;
}

.tv-stage.has-tv-background-image .tv-prayer-row {
    background: linear-gradient(90deg, rgba(2, 10, 18, .34), rgba(6, 20, 30, .18));
    border-color: rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 28px rgba(0, 0, 0, .16);
}

.tv-stage.has-tv-background-image .tv-prayer-row.is-next {
    background: linear-gradient(90deg, rgba(197, 157, 63, .34), rgba(20, 32, 38, .28));
}

.tv-prayer-name {
    color: #fff;
    font-size: 1em;
    font-weight: 950;
}

.tv-prayer-footer {
    display: grid;
    background: rgba(3, 28, 20, .76);
    border: 0;
    border-radius: 0 0 22px 22px;
    border-top: 0;
    box-shadow: inset 0 -1px 0 rgba(244, 208, 111, .12), 0 18px 40px rgba(0, 0, 0, .12);
    gap: 0;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    overflow: hidden;
}

.tv-prayer-footer > div {
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(244, 208, 111, .12);
    border-radius: 0;
    box-shadow: none;
    display: grid;
    align-items: center;
    gap: 22px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 18px 28px;
    text-shadow: var(--tv-light-text-shadow);
}

.tv-prayer-footer > div:last-child {
    border-right: 0;
}

.tv-stage.has-tv-background-image .tv-prayer-footer > div {
    background: linear-gradient(90deg, rgba(2, 10, 18, .3), rgba(7, 24, 31, .18));
    border-color: rgba(255, 255, 255, .26);
}

.tv-prayer-footer span {
    color: rgba(247, 251, 248, .95);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.tv-prayer-footer strong {
    color: #f4d06f;
    align-self: center;
    font-size: 62px;
    font-weight: 950;
    line-height: 1;
    justify-self: end;
    white-space: nowrap;
}

.tv-prayer-footer small {
    color: rgba(247, 251, 248, .68);
    font-size: .7em;
}

.tv-jumuah {
    min-width: 0;
}

.tv-jumuah strong {
    font-size: 58px;
}

.tv-updates-panel {
    background: rgba(3, 28, 20, .5);
    border-color: rgba(244, 208, 111, .18);
    border-radius: 22px;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .2);
    display: grid;
    gap: 12px;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    position: relative;
}

.tv-updates-panel-no-message {
    grid-template-rows: 1fr;
}

.tv-rotator {
    min-height: 0;
    position: relative;
}

.tv-poster-rotator {
    height: 100%;
    overflow: hidden;
}

.tv-update-card {
    display: flex;
    gap: 12px;
    inset: 0;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(20px);
    transition: opacity .55s ease, transform .55s ease;
}

.tv-update-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.tv-poster-card {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    justify-self: center;
    height: 100%;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 8.5 / 14;
    max-width: 100%;
    width: auto;
}

.tv-poster-card img {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
}

.tv-poster-card-empty {
    background:
        radial-gradient(circle at 50% 30%, rgba(242, 216, 141, .08), transparent 42%),
        rgba(3, 10, 18, .5);
}

.tv-update-copy .tv-kicker {
    color: #f2d88d;
}

.tv-update-copy {
    align-self: stretch;
    background: rgba(7, 27, 24, .78);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 32px;
    text-shadow: var(--tv-light-text-shadow);
    width: 100%;
}

.tv-update-copy h2 {
    color: #fff;
    font-size: 48px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 12px 0 16px;
}

.tv-update-copy p {
    color: rgba(247, 251, 248, .82);
    font-size: 27px;
    line-height: 1.32;
    margin-bottom: 0;
}


.tv-update-meta {
    color: #f2d88d !important;
    font-size: 25px !important;
    font-weight: 800;
    margin-bottom: 14px !important;
}

.tv2-stage {
    --tv-light-text-shadow: 0 5px 18px rgba(0, 0, 0, .82), 0 2px 5px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
    --tv-dark-text-shadow: 0 2px 8px rgba(255, 255, 255, .28), 0 4px 18px rgba(7, 27, 24, .42);
    grid-template-rows: minmax(0, 1fr) 315px;
    padding: 26px 44px 72px;
}

.tv2-stage::after {
    background:
        linear-gradient(180deg, transparent 0%, rgba(3, 10, 18, .04) 42%, rgba(3, 10, 18, .58) 100%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, .38), transparent 55%);
    bottom: 0;
    content: "";
    height: 42%;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 0;
}

.tv2-stage.has-tv-background-image {
    background:
        linear-gradient(180deg, rgba(3, 10, 18, .76), rgba(6, 20, 26, .48) 42%, rgba(3, 10, 18, .86)),
        var(--tv-background-image),
        linear-gradient(135deg, #071b2b 0%, #0b3b45 52%, #050b18 100%);
    background-position: center;
    background-size: cover;
}

.tv2-display.is-prayer-notice .tv2-stage.has-tv-background-image {
    background:
        linear-gradient(180deg, rgba(1, 5, 9, .86), rgba(4, 10, 17, .74) 45%, rgba(1, 5, 9, .88)),
        var(--tv-background-image),
        linear-gradient(135deg, #020807 0%, #071b2b 100%);
    background-position: center;
    background-size: cover;
}

.tv2-display.is-prayer-notice .tv2-stage::after {
    background:
        radial-gradient(circle at 50% 44%, rgba(242, 216, 141, .12), transparent 31rem),
        linear-gradient(180deg, rgba(1, 5, 9, .42), rgba(1, 5, 9, .72));
    height: 100%;
}

.tv2-display.is-prayer-progress .tv2-stage::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .96));
    height: 100%;
}

.tv2-display.is-prayer-notice .tv2-title-block h1,
.tv2-display.is-prayer-notice .tv2-clock-card,
.tv2-display.is-prayer-notice .tv2-date-card,
.tv2-display.is-prayer-notice .tv2-side-panel {
    filter: blur(.8px) saturate(.7);
    opacity: 0;
}

.tv2-display.is-prayer-progress .tv2-prayer-grid {
    filter: blur(.8px) saturate(.45);
    opacity: 0;
}

.tv2-header {
    display: grid;
    gap: 34px;
    grid-template-columns: 330px minmax(0, 1fr) 330px;
    min-height: 0;
    position: relative;
    text-shadow: var(--tv-light-text-shadow);
    z-index: 1;
}

.tv2-title-block {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tv2-title-block h1 {
    color: #fff;
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 24px;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv2-clock-card {
    background: linear-gradient(135deg, rgba(75, 42, 125, .94), rgba(65, 38, 112, .9));
    border-radius: 28px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, .35);
    color: #fff;
    min-width: 560px;
    padding: 22px 34px 20px;
    text-align: center;
}

.tv2-clock {
    font-size: 112px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: 0;
    line-height: .9;
}

.tv2-time-with-period {
    align-items: center;
    display: inline-flex;
    gap: .12em;
    justify-content: center;
    white-space: nowrap;
}

.tv2-time-main {
    font-variant-numeric: tabular-nums;
}

.tv2-period {
    display: inline-block;
    font-size: .28em;
    font-weight: 850;
    line-height: 1;
    margin-left: .01em;
    text-align: center;
    transform: translateY(.2em);
}

.tv2-clock .tv2-period {
    font-size: .24em;
    transform: translateY(.18em);
}

.tv2-next-line {
    align-items: baseline;
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 12px;
}

.tv2-next-line span,
.tv2-next-line strong {
    color: #fff;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.tv2-next-line strong {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.tv2-prayer-notice {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    left: 50%;
    margin-top: 0;
    min-width: 900px;
    position: absolute;
    top: var(--tv2-notice-center-y, 360px);
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 0 10px 34px rgba(0, 0, 0, .95), 0 4px 12px rgba(0, 0, 0, .95), 0 0 4px rgba(0, 0, 0, .95);
    z-index: 4;
}

.tv2-prayer-notice[hidden] {
    display: none;
}

.tv2-prayer-notice span {
    color: rgba(247, 251, 248, .88);
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 0;
}

.tv2-prayer-notice strong {
    color: #ffe28c;
    font-size: 188px;
    font-weight: 950;
    line-height: .9;
    min-width: 0;
}

.tv2-prayer-notice small {
    color: rgba(247, 251, 248, .84);
    display: block;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
}

.tv2-prayer-notice[data-notice-mode="adhan-progress"] strong {
    color: #fff;
    font-size: 164px;
    text-transform: uppercase;
}

.tv2-prayer-notice[data-notice-mode="prayer-progress"] {
    gap: 14px;
    top: 50%;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .9), 0 2px 8px rgba(0, 0, 0, .9);
}

.tv2-prayer-notice[data-notice-mode="prayer-progress"] span {
    display: none;
}

.tv2-prayer-notice[data-notice-mode="prayer-progress"] strong {
    color: rgba(247, 251, 248, .62);
    font-size: 104px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: none;
}

.tv2-prayer-notice[data-notice-mode="prayer-progress"] small {
    color: rgba(247, 251, 248, .38);
    font-size: 31px;
    font-weight: 650;
}

.tv2-date-card {
    align-items: center;
    background: rgba(0, 0, 0, .58);
    border-radius: 0 0 28px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 35px;
    gap: 8px;
    line-height: 1.05;
    min-width: 520px;
    padding: 18px 28px 20px;
}

.tv2-date-card span + span {
    color: rgba(247, 251, 248, .72);
    font-size: 22px;
    font-weight: 800;
}

.tv2-header-side {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
    min-width: 0;
    padding-top: 178px;
}

.tv2-header-side-right {
    justify-content: flex-start;
    padding-top: 22px;
}

.tv2-side-panel {
    background: rgba(6, 13, 22, .5);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
    padding: 22px 24px;
    width: 100%;
}

.tv2-side-time {
    color: #fff;
    text-align: center;
}

.tv2-side-time > span {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
}

.tv2-side-time strong {
    align-items: center;
    display: flex;
    font-size: 64px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    justify-content: center;
    line-height: .95;
}

.tv2-weather {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: center;
}

.tv2-weather .tv-weather-icon {
    height: 86px;
    transform: scale(.7);
    transform-origin: center;
    width: 96px;
}

.tv2-weather strong {
    color: #f2d88d;
    font-size: 42px;
    font-weight: 950;
}

.tv2-prayer-grid {
    align-items: end;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 0;
    position: relative;
    z-index: 1;
}

.tv2-prayer-card {
    background: rgba(6, 13, 22, .5);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
    color: #fff;
    min-width: 0;
    padding: 28px 18px 22px;
    position: relative;
    text-align: center;
    text-shadow: var(--tv-light-text-shadow);
}

.tv2-prayer-card.is-next {
    background: rgba(20, 18, 35, .58);
    border-color: rgba(242, 216, 141, .76);
    box-shadow: 0 0 0 4px rgba(242, 216, 141, .1), 0 20px 44px rgba(0, 0, 0, .34);
}

.tv2-prayer-card h2 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 18px;
}

.tv2-time-block {
    display: grid;
    gap: 6px;
}

.tv2-time-block + .tv2-time-block {
    margin-top: 14px;
}

.tv2-time-block > span {
    color: rgba(247, 251, 248, .72);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.tv2-time-block strong {
    align-items: center;
    display: flex;
    justify-content: center;
}

.tv2-adhan {
    font-size: 98px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: 0;
    line-height: .95;
}

.tv2-iqamah {
    color: #f2d88d;
    font-size: 66px;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    line-height: 1;
}

.tv2-iqamah .tv2-period {
    font-size: .48em;
}

.tv2-adhan .tv2-period,
.tv2-side-time .tv2-period {
    font-size: .3em;
}
