@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#bg-slide {
    animation: gradientShift 8s ease-in-out infinite !important;
}

#overlay,
#overlay-slide,
#bg-slide,
#tsparticles-overlay,
#brand-slide {
    font-family: 'Tajawal', sans-serif !important;
}

#strapText-slide {
    font-family: 'Tajawal', sans-serif !important;
}

#weather-layer,
#weather-layer * {
    font-family: 'Tajawal', sans-serif !important;
}

#weather-panel {
    --weather-accent-rgb: 56, 189, 248;
    --weather-accent-soft-rgb: 251, 191, 36;
    --weather-card-glow: rgba(56, 189, 248, 0.18);
    --weather-chip-bg: rgba(56, 189, 248, 0.14);
    --weather-chip-border: rgba(125, 211, 252, 0.28);
    --weather-chip-text: rgba(224, 242, 254, 0.96);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#weather-panel[data-scene='clear'] {
    --weather-accent-rgb: 251, 191, 36;
    --weather-accent-soft-rgb: 249, 115, 22;
    --weather-card-glow: rgba(251, 191, 36, 0.2);
    --weather-chip-bg: rgba(251, 191, 36, 0.16);
    --weather-chip-border: rgba(253, 224, 71, 0.3);
    --weather-chip-text: rgba(255, 251, 235, 0.98);
}

#weather-panel[data-scene='clouds'],
#weather-panel[data-scene='mist'] {
    --weather-accent-rgb: 148, 163, 184;
    --weather-accent-soft-rgb: 96, 165, 250;
    --weather-card-glow: rgba(148, 163, 184, 0.18);
    --weather-chip-bg: rgba(148, 163, 184, 0.16);
    --weather-chip-border: rgba(203, 213, 225, 0.24);
    --weather-chip-text: rgba(241, 245, 249, 0.96);
}

#weather-panel[data-scene='rain'] {
    --weather-accent-rgb: 56, 189, 248;
    --weather-accent-soft-rgb: 59, 130, 246;
    --weather-card-glow: rgba(56, 189, 248, 0.22);
    --weather-chip-bg: rgba(14, 165, 233, 0.16);
    --weather-chip-border: rgba(125, 211, 252, 0.26);
    --weather-chip-text: rgba(224, 242, 254, 0.96);
}

#weather-panel[data-scene='storm'] {
    --weather-accent-rgb: 96, 165, 250;
    --weather-accent-soft-rgb: 192, 132, 252;
    --weather-card-glow: rgba(125, 211, 252, 0.24);
    --weather-chip-bg: rgba(96, 165, 250, 0.18);
    --weather-chip-border: rgba(191, 219, 254, 0.28);
    --weather-chip-text: rgba(239, 246, 255, 0.98);
}

#weather-panel[data-scene='snow'] {
    --weather-accent-rgb: 226, 232, 240;
    --weather-accent-soft-rgb: 125, 211, 252;
    --weather-card-glow: rgba(226, 232, 240, 0.18);
    --weather-chip-bg: rgba(226, 232, 240, 0.16);
    --weather-chip-border: rgba(248, 250, 252, 0.3);
    --weather-chip-text: rgba(248, 250, 252, 0.98);
}

.weather-panel-bg,
.weather-panel-accent,
.weather-panel-orb,
.weather-particle,
.weather-icon-glow,
.weather-icon-ripple {
    pointer-events: none;
}

.weather-panel-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.weather-panel-gradient {
    background:
        radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.16), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.18), transparent 30%),
        linear-gradient(130deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.56), rgba(8, 47, 73, 0.72));
    background-size: 140% 140%;
    animation: weatherPanelShift 14s ease-in-out infinite;
    opacity: 0.92;
}

.weather-panel-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
    opacity: 0.18;
    animation: weatherGridDrift 18s linear infinite;
}

.weather-panel-accent {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 48%, transparent 100%);
    transform: rotate(12deg);
    mix-blend-mode: screen;
    opacity: 0.28;
    animation: weatherAccentSweep 9s ease-in-out infinite;
}

.weather-status-bar {
    position: relative;
    padding-bottom: 10px;
}

.weather-status-bar::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--weather-accent-rgb), 0.72), transparent);
    opacity: 0.72;
}

.weather-scene-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--weather-chip-border);
    background: linear-gradient(135deg, var(--weather-chip-bg), rgba(255, 255, 255, 0.05));
    color: var(--weather-chip-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(2, 8, 23, 0.18);
    overflow: hidden;
}

.weather-scene-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(var(--weather-accent-soft-rgb), 0.92);
    box-shadow: 0 0 14px rgba(var(--weather-accent-soft-rgb), 0.65);
    animation: weatherChipPulse 2.6s ease-in-out infinite;
}

.weather-scene-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 48%, transparent 100%);
    transform: translateX(-130%);
    animation: weatherChipSweep 5.6s ease-in-out infinite;
}

.weather-scene-meta {
    text-align: right;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.weather-metric-card {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(2, 8, 23, 0.24), 0 0 0 1px rgba(var(--weather-accent-rgb), 0.08);
}

.weather-metric-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -45% auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(var(--weather-accent-soft-rgb), 0.18), transparent 65%);
    filter: blur(6px);
    opacity: 0.75;
}

.weather-metric-card--temp {
    animation: weatherCardBreath 4.8s ease-in-out infinite;
}

.weather-metric-card--wind {
    animation: weatherCardBreath 5.6s ease-in-out infinite -1.6s;
}

.weather-panel-orb {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.34;
    animation: weatherOrbFloat 12s ease-in-out infinite;
}

.weather-panel-orb--warm {
    top: -40px;
    right: -20px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.34) 0%, rgba(251, 191, 36, 0.05) 72%, transparent 100%);
}

.weather-panel-orb--cool {
    bottom: -75px;
    left: -35px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(56, 189, 248, 0.05) 68%, transparent 100%);
    animation-delay: -6s;
}

.weather-particle {
    position: absolute;
    width: 84px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    filter: blur(0.2px);
    opacity: 0.22;
    animation: weatherParticleFloat 11s linear infinite;
}

.weather-particle--1 {
    top: 18%;
    right: 10%;
}

.weather-particle--2 {
    top: 34%;
    left: 4%;
    width: 120px;
    animation-delay: -4s;
}

.weather-particle--3 {
    bottom: 30%;
    right: 20%;
    width: 104px;
    animation-delay: -7s;
}

.weather-particle--4 {
    bottom: 16%;
    left: 22%;
    width: 72px;
    animation-delay: -2.5s;
}

.weather-compass {
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.16);
}

.weather-icon-card {
    min-height: 102px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 36px rgba(2, 8, 23, 0.28);
}

.weather-icon-glow {
    position: absolute;
    inset: 14px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
    opacity: 0.6;
    animation: weatherGlowPulse 4s ease-in-out infinite;
}

.weather-icon-ripple {
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0;
    animation: weatherRipple 5s ease-out infinite;
}

.weather-icon-ripple--two {
    animation-delay: 2.5s;
}

.weather-icon-image {
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.4));
    transform-origin: center;
}

#weather-panel[data-scene='clear'] .weather-icon-glow {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.34), rgba(251, 191, 36, 0.08) 58%, transparent 72%);
}

#weather-panel[data-scene='clouds'] .weather-particle,
#weather-panel[data-scene='mist'] .weather-particle {
    opacity: 0.3;
    filter: blur(1px);
}

#weather-panel[data-scene='rain'] .weather-particle,
#weather-panel[data-scene='storm'] .weather-particle {
    width: 3px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.65), rgba(125, 211, 252, 0));
    opacity: 0.48;
    animation-name: weatherRainFall;
    animation-duration: 1.7s;
}

#weather-panel[data-scene='storm'] .weather-panel-accent {
    opacity: 0.42;
    animation-duration: 4.2s;
}

#weather-panel[data-scene='storm'] .weather-icon-glow {
    background: radial-gradient(circle, rgba(147, 197, 253, 0.28), rgba(147, 197, 253, 0.07) 58%, transparent 72%);
}

#weather-panel[data-scene='snow'] .weather-particle {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(219, 234, 254, 0.3));
    opacity: 0.55;
    filter: blur(0);
    animation-name: weatherSnowFall;
    animation-duration: 6s;
}

@keyframes weatherPanelShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes weatherGridDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(34px, 17px, 0);
    }
}

@keyframes weatherAccentSweep {
    0%,
    100% {
        transform: translateX(-18%) rotate(12deg);
    }

    50% {
        transform: translateX(118%) rotate(12deg);
    }
}

@keyframes weatherOrbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(12px, -16px, 0) scale(1.08);
    }
}

@keyframes weatherParticleFloat {
    0% {
        transform: translate3d(-24px, 0, 0);
    }

    50% {
        transform: translate3d(20px, -10px, 0);
    }

    100% {
        transform: translate3d(72px, 2px, 0);
    }
}

@keyframes weatherRainFall {
    0% {
        transform: translate3d(0, -90px, 0) rotate(10deg);
        opacity: 0;
    }

    15% {
        opacity: 0.48;
    }

    100% {
        transform: translate3d(-18px, 220px, 0) rotate(10deg);
        opacity: 0;
    }
}

@keyframes weatherSnowFall {
    0% {
        transform: translate3d(0, -60px, 0) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 0.55;
    }

    100% {
        transform: translate3d(20px, 210px, 0) scale(1.2);
        opacity: 0;
    }
}

@keyframes weatherGlowPulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.78;
    }
}

@keyframes weatherChipPulse {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@keyframes weatherChipSweep {
    0%,
    100% {
        transform: translateX(-130%);
    }

    50% {
        transform: translateX(130%);
    }
}

@keyframes weatherCardBreath {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(2, 8, 23, 0.24), 0 0 0 1px rgba(var(--weather-accent-rgb), 0.08);
    }

    50% {
        transform: translateY(-2px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 48px rgba(2, 8, 23, 0.28), 0 0 0 1px rgba(var(--weather-accent-rgb), 0.16), 0 0 24px rgba(var(--weather-accent-rgb), 0.12);
    }
}

@keyframes weatherRipple {
    0% {
        transform: scale(0.75);
        opacity: 0;
    }

    20% {
        opacity: 0.28;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

#flipdown-slide {
    --flipdown-color: #fff;
    --flipdown-background: rgba(0, 0, 0, 0.4);
    --flipdown-border: 2px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

#flipdown-slide .flipdown__group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#flipdown-slide .flipdown__group .flipdown__rotor {
    width: 60px;
    height: 70px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipdown-slide .flipdown__rotor-top,
#flipdown-slide .flipdown__rotor-bottom {
    padding: 0;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipdown-slide .flipdown__label {
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 0.9;
}

#flipdown-slide .flipdown__divider {
    width: auto;
    padding: 0 3px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 36px;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 10px;
    font-family: 'Tajawal', sans-serif;
}

@keyframes flipAnimate {
    0% {
        transform: rotateX(0deg);
    }

    100% {
        transform: rotateX(360deg);
    }
}

#flipdown-slide .flipdown__rotor .flipdown__rotor-top {
    animation: flipAnimate 0.3s ease-in-out;
}