/* Lightweight first-entry splash for the Zabanisa PWA. */
.zabanisa-app-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at 72% 18%, rgba(23, 179, 159, 0.18) 0, transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(36, 59, 107, 0.12) 0, transparent 34%),
        linear-gradient(145deg, #f7fbfb 0%, #eef7f4 48%, #f8f1e9 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 0s linear 260ms;
}

html.zabanisa-splash-pending,
html.zabanisa-splash-pending body {
    overflow: hidden;
}

html.zabanisa-splash-pending .zabanisa-app-splash {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 260ms ease;
}

.zabanisa-app-splash__glow {
    position: absolute;
    width: 44vmin;
    height: 44vmin;
    border-radius: 999px;
    filter: blur(8px);
    opacity: .58;
    transform: translate3d(0, 0, 0);
}

.zabanisa-app-splash__glow--primary {
    top: 12%;
    right: 12%;
    background: rgba(23, 179, 159, .16);
    animation: zabanisaSplashFloat 4.2s ease-in-out infinite;
}

.zabanisa-app-splash__glow--warm {
    left: 10%;
    bottom: 12%;
    background: rgba(201, 166, 125, .18);
    animation: zabanisaSplashFloat 4.8s ease-in-out infinite reverse;
}

.zabanisa-app-splash__card {
    position: relative;
    z-index: 1;
    width: min(86vw, 360px);
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px 26px 32px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    transform: translateY(10px) scale(.985);
    animation: zabanisaSplashCardIn 520ms cubic-bezier(.2, .8, .2, 1) 70ms both;
}

.zabanisa-app-splash__logo-wrap {
    width: 98px;
    height: 98px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    padding: 7px;
    background: #fff;
    border: 1px solid rgba(23, 179, 159, .18);
    box-shadow: 0 22px 44px rgba(15, 143, 116, .18);
    animation: zabanisaSplashLogoBreath 1.45s ease-in-out infinite;
}

.zabanisa-app-splash__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.zabanisa-app-splash__brand {
    margin-top: 18px;
    color: #0f8f74;
    font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
    font-size: 2.05rem;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.05em;
}

.zabanisa-app-splash__tagline {
    margin-top: 9px;
    color: #334155;
    font-size: .98rem;
    font-weight: 850;
    line-height: 1.75;
}

.zabanisa-app-splash__pulse {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    direction: ltr;
}

.zabanisa-app-splash__pulse span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #17b39f;
    opacity: .42;
    animation: zabanisaSplashDot 1.08s ease-in-out infinite;
}

.zabanisa-app-splash__pulse span:nth-child(2) { animation-delay: .14s; }
.zabanisa-app-splash__pulse span:nth-child(3) { animation-delay: .28s; }

@keyframes zabanisaSplashCardIn {
    from { opacity: 0; transform: translateY(18px) scale(.965); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes zabanisaSplashLogoBreath {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 22px 44px rgba(15, 143, 116, .18); }
    50% { transform: translateY(-2px) scale(1.025); box-shadow: 0 26px 54px rgba(15, 143, 116, .22); }
}

@keyframes zabanisaSplashDot {
    0%, 80%, 100% { transform: translateY(0); opacity: .38; }
    40% { transform: translateY(-5px); opacity: .92; }
}

@keyframes zabanisaSplashFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -16px, 0) scale(1.05); }
}

@media (max-width: 480px) {
    .zabanisa-app-splash { padding: 20px; }
    .zabanisa-app-splash__card {
        width: min(88vw, 330px);
        min-height: 286px;
        padding: 30px 22px 28px;
        border-radius: 30px;
    }
    .zabanisa-app-splash__logo-wrap {
        width: 88px;
        height: 88px;
        border-radius: 27px;
    }
    .zabanisa-app-splash__brand { font-size: 1.84rem; }
    .zabanisa-app-splash__tagline { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zabanisa-app-splash,
    .zabanisa-app-splash *,
    .zabanisa-app-splash *::before,
    .zabanisa-app-splash *::after {
        animation: none !important;
        transition: none !important;
    }
}
