:root {
    --renew-bg-deep: rgba(4, 9, 22, 0.95);
    --renew-bg-soft: rgba(10, 20, 42, 0.86);
    --renew-surface: rgba(8, 15, 32, 0.84);
    --renew-surface-strong: rgba(7, 13, 28, 0.94);
    --renew-accent: #bf8450;
    --renew-accent-soft: rgba(191, 132, 80, 0.26);
    --renew-accent-strong: #efd2ae;
    --renew-text: #f8f1e6;
    --renew-text-soft: rgba(248, 241, 230, 0.74);
    --renew-shadow: 0 1.4vw 3vw rgba(2, 6, 16, 0.42);
    --renew-border: rgba(248, 231, 204, 0.15);
    --renew-glow-cool: rgba(34, 84, 142, 0.2);
    --renew-glow-warm: rgba(120, 74, 28, 0.2);
}

body {
    background-attachment: fixed;
    background-color: #070f22;
    background-image:
        radial-gradient(circle at 30% 40%, var(--renew-glow-warm), transparent 56%),
        radial-gradient(circle at 70% 16%, var(--renew-glow-cool), transparent 58%);
    background-position: center;
    background-repeat: no-repeat;
    color: var(--renew-text);
    font-family: "Trebuchet MS", "Gill Sans", "Candara", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-shadow: 0 0.5vw 1.5vw rgba(1, 4, 10, 0.44);
}

body::before,
body::after {
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 14% 18%, rgba(65, 44, 19, 0.11), transparent 48%),
        radial-gradient(circle at 86% 20%, rgba(6, 24, 58, 0.11), transparent 60%);
    opacity: 0.85;
}

body::after {
    background:
        radial-gradient(circle at 50% 0%, rgba(85, 61, 31, 0.04), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.025), transparent 54%);
    opacity: 0.2;
}

.main,
.sub-main,
.ezanduasi,
.flashMessage {
    position: relative;
    z-index: 1;
}

.message-flash,
#message-flash-kongre {
    align-items: center;
    color: var(--renew-text);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    text-align: center;
    text-shadow: 0 0.7vw 1.8vw rgba(0, 0, 0, 0.42);
    z-index: 40;
}

#black-screen {
    background: rgba(0, 0, 0, 0.8);
    display: none;
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 30;
}

footer,
#weather {
    z-index: 2;
}

.header h1 {
    color: var(--renew-text);
    font-size: 3.1vw;
    font-weight: 700;
    letter-spacing: 0.08em;
    max-width: 1400px;
    padding: 1.1vw 1.6vw;
    text-shadow: 0 0.45vw 1.2vw rgba(2, 6, 16, 0.4);
    width: 82%;
}

.headerText {
    display: inline-block;
    padding: 0 1vw;
}

.mosque-logo {
    filter: drop-shadow(0 0.4vw 0.8vw rgba(8, 12, 29, 0.32));
    width: 4.4vw;
}

#weather {
    background: transparent;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--renew-text);
    font-size: 1.6vw;
    min-width: 8vw;
    padding: 0;
    right: 1.5vw;
    text-align: center;
    top: 1.2vw;
}

#weather img {
    display: block;
    height: 6vw;
    margin: 0 auto 0.2vw;
    width: auto;
}

.top-content {
    display: flex;
    flex-direction: column;
}

.top-content > .header,
.top-content > .adhan-flash {
    flex: 0 0 auto;
}

.current-time-div {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 1.2vw;
    margin: 0 auto !important;
    min-height: 0;
}

.current-time-div > div:first-child {
    background: transparent;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0.6vw;
    justify-content: center;
    max-width: 22vw;
    min-width: 18vw;
    padding: 5vh 2vw 2.4vh 0 !important;
    width: 22vw !important;
}

.current-time-div > div:first-child .name {
    color: var(--renew-accent-strong);
    font-size: 0.92em;
    letter-spacing: 0.08em;
}

.current-time-div > div:first-child .time {
    color: var(--renew-text);
    font-size: 2.15em;
    line-height: 1.05;
    padding: 0;
}

.content {
    flex: 1 1 auto;
    margin-top: 0.4vw;
}

.content .middle-bloc {
    max-width: 46vw;
    width: 46vw;
}

.center-time,
.bottom-block,
.prayer-highlighted {
    border: 1px solid var(--renew-border);
    box-shadow: var(--renew-shadow);
}

.center-time {
    background: rgba(7, 14, 29, 0.94) !important;
    border-radius: 2.6vw;
    height: 18vw;
    overflow: hidden;
    padding: 1.8vw;
    position: relative;
}

.center-time::before {
    background: rgba(240, 197, 143, 0.9);
    box-shadow: 0 0 0.9vw rgba(240, 197, 143, 0.34);
    content: "";
    height: 0.5vw;
    inset: 0 0 auto;
    position: absolute;
}

.bottom-block {
    background: rgba(9, 18, 36, 0.9) !important;
    border-radius: 2vw;
}

.content .currentTime {
    color: var(--renew-text);
    font-size: 8.4vw;
    line-height: 8.7vw;
    margin-bottom: -0.8vw;
}

#currentTimeHM {
    letter-spacing: 0.08em;
}

#currentTime .sec {
    color: var(--renew-accent-strong);
    text-shadow: none;
}

#gregorianDate,
#hijriDate {
    color: var(--renew-text-soft);
    font-size: 2.5vw;
    font-weight: 600;
    letter-spacing: 0.05em;
    top: 11.6vw;
}

.next-prayer-bloc {
    background: rgba(6, 13, 27, 0.94);
    border: 1px solid rgba(248, 231, 204, 0.14);
    border-radius: 0 0 2.2vw 2.2vw;
    box-shadow: 0 1vw 2vw rgba(3, 7, 16, 0.28);
    height: 8.4vw;
    line-height: 10vw;
}

.next-prayer,
.next-prayer span,
.currentTimeShort {
    color: var(--renew-text);
}

.next-prayer span {
    color: var(--renew-accent-strong);
}

.next-prayer-bloc img,
.cupola {
    filter: drop-shadow(0 0.35vw 0.7vw rgba(0, 0, 0, 0.24));
}

.prayers {
    gap: 0.9vw;
    max-width: 1340px;
    padding: 1vw 1vw 0;
    width: 96%;
}

.prayers > div {
    background: rgb(6 13 27 / 93%);
    border: 1px solid var(--renew-border);
    border-radius: 2vw;
    box-shadow: 0 1.1vw 2.4vw rgba(3, 7, 16, 0.28);
    overflow: hidden;
    padding: 1vw 0.6vw;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    width: 15vw;
}

.prayers > div::before {
    background: rgba(240, 197, 143, 0.9);
    box-shadow: 0 0 0.6vw rgba(240, 197, 143, 0.24);
    content: "";
    height: 0.36vw;
    inset: 0 0 auto;
    position: absolute;
}

.prayers .name {
    color: rgba(240, 197, 143, 0.88);
    font-size: 3.05vw;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.time {
    color: var(--renew-text);
    font-size: 4.55vw;
    padding: 0 0.2vw;
}

small {
    color: var(--renew-accent-strong);
    font-size: 1.9vw;
}

.prayer-highlighted {
    background: rgb(10, 30, 43) !important;
    border-color: rgba(184, 112, 19, 0.72);
    box-shadow: 0 1.2vw 2.8vw rgba(7, 12, 27, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-0.39vw);
}

.prayer-highlighted::before {
    background: rgba(255, 233, 205, 0.98);
    border-radius: 999px;
    box-shadow: 0 0 0.9vw rgba(255, 233, 205, 0.3);
    inset: 0.26vw 24% auto;
}

.prayer-highlighted::after {
    border: 1px solid rgba(255, 244, 228, 0.14);
    border-radius: 1.55vw;
    content: "";
    inset: 0.38vw;
    pointer-events: none;
    position: absolute;
}

.prayer-highlighted div {
    color: #fff !important;
    text-shadow: 0 0.16vw 0.58vw rgba(0, 0, 0, 0.34);
}

.top-content .adhan-flash {
    background: rgba(8, 16, 32, 0.9);
    border: 1px solid rgba(240, 197, 143, 0.32);
    border-radius: 2.8vw;
    box-shadow: var(--renew-shadow);
    padding: 1.2vw 2vw;
}

.message-flash {
    background: radial-gradient(circle at center, rgba(191, 132, 80, 0.2), rgba(6, 13, 27, 0.95) 72%);
    font-size: 6.4vw;
    letter-spacing: 0.08em;
    padding: 8vw 2vw;
}

#message-flash-kongre > div {
    background: rgba(8, 17, 34, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 197, 143, 0.24);
    border-radius: 3vw;
    box-shadow: var(--renew-shadow);
    margin: 0 auto;
    max-width: 78vw;
}

.ezanduasi,
.adhan,
.douaa-between-adhan-iqama {
    background: rgba(8, 16, 33, 0.9);
    border: 1px solid rgba(248, 231, 204, 0.12);
    border-radius: 2.5vw;
    box-shadow: var(--renew-shadow);
    left: 50%;
    margin: 0;
    max-height: 90vh;
    max-width: 92vw;
    overflow: auto;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 35;
}

.ezanduasi {
    max-width: 96vw;
    width: 96vw;
}

.ezanduasi .title,
.adhan .title,
.douaa-between-adhan-iqama .title {
    border-bottom-color: rgba(240, 197, 143, 0.72);
    color: var(--renew-accent-strong);
}

.association {
    color: var(--renew-text-soft);
    font-size: 1.35vw;
    letter-spacing: 0.04em;
}

.version {
    background: rgba(7, 14, 29, 0.7);
    border: 1px solid rgba(248, 231, 204, 0.1);
    border-radius: 999px;
    bottom: 1vw;
    color: var(--renew-text-soft);
    font-size: 0.9vw;
    letter-spacing: 0.08em;
    padding: 0.35vw 0.9vw;
    right: 2vw;
}

footer {
    background: rgba(3, 7, 16, 0.62);
    height: 12vh;
}

footer .info {
    background: rgba(14, 23, 45, 0.34);
    border: 1px solid rgba(248, 231, 204, 0.08);
    border-radius: 999px;
    padding: 0.55vw 1.4vw;
    width: auto;
}

.important {
    color: #ffd6ab;
}

.top-buttons,
.top-buttons a {
    color: rgba(255, 246, 231, 0.72);
}

@keyframes ambientGlow {
    from {
        opacity: 0.85;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 1;
        transform: translate3d(0, -1.5%, 0) scale(1.04);
    }
}

@keyframes prayerPulse {
    0%,
    100% {
        box-shadow: 0 1.15vw 2.7vw rgba(7, 12, 27, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 0.7vw rgba(240, 197, 143, 0.08);
    }

    50% {
        box-shadow: 0 1.55vw 3.3vw rgba(7, 12, 27, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 1.1vw rgba(240, 197, 143, 0.18), 0 0 1.8vw rgba(132, 165, 216, 0.14);
    }
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

    #weather {
        font-size: 3.4vw;
        min-width: 18vw;
        padding: 0;
        right: 2vw;
        top: 2vw;
    }

    #weather img {
        height: 10vw;
    }

    .header h1 {
        font-size: 4.4vw;
        padding: 2.4vw 3vw;
        width: 92%;
    }

    .mosque-logo {
        max-width: 56px;
        width: 8vw;
    }

    .current-time-div {
        gap: 2vw;
    }

    .current-time-div > div:first-child {
        font-size: 3.2vw !important;
        max-width: none;
        min-width: 24vw;
        padding: 4vh 1vw 2.4vh 0 !important;
        width: 24vw !important;
    }

    .content .middle-bloc {
        max-width: none;
        width: 56vw;
    }

    .center-time {
        border-radius: 4vw;
        height: 22vw;
    }

    .content .currentTime {
        font-size: 10.6vw;
        line-height: 11vw;
    }

    #gregorianDate,
    #hijriDate {
        font-size: 3.9vw;
        top: 14vw;
    }

    .next-prayer-bloc {
        border-radius: 0 0 4vw 4vw;
        font-size: 3.4vw;
        height: 10vw;
        line-height: 12vw;
    }

    .prayers {
        gap: 1.6vw;
        padding-top: 2vw;
        width: 97%;
    }

    .prayers > div {
        border-radius: 4vw;
        padding: 1.8vw 1vw;
        width: 15.2vw;
    }

    .prayers .name {
        font-size: 3.8vw;
    }

    .time {
        font-size: 5.6vw;
    }

    .message-flash {
        font-size: 8vw;
    }

    .top-content .adhan-flash {
        border-radius: 4.5vw;
        font-size: 14vw;
        width: 90%;
    }

    .version {
        font-size: 1.8vw;
        padding: 0.8vw 1.8vw;
    }

    .association {
        font-size: 2.6vw;
    }
}

@media (max-width: 520px) {
    #weather {
        font-size: 4.4vw;
        min-width: 23vw;
    }

    .header h1 {
        font-size: 5vw;
        letter-spacing: 0.05em;
    }

    .current-time-div > div:first-child {
        font-size: 3.6vw !important;
        width: 25vw !important;
    }

    .content .middle-bloc {
        width: 57vw;
    }

    .center-time {
        height: 24vw;
    }

    .content .currentTime {
        font-size: 12vw;
        line-height: 12.4vw;
    }

    #gregorianDate,
    #hijriDate {
        font-size: 4vw;
        top: 15.2vw;
    }

    .prayers .name {
        font-size: 4.4vw;
    }

    .time {
        font-size: 6.6vw;
    }

    .version {
        font-size: 2.4vw;
    }
}
