/* صفحهٔ اول — فقط وقتی هنوز محتوایی mount نشده (نه بعد از لود Blazor) */
#app:empty {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: #080e1c;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* اسپلش اولیهٔ HTML (قبل از WASM) — پس‌زمینه پرچم در heyat-boot-flag.css */
#app.app-blazor-prep #heyat-static-boot {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    text-align: center;
    font-family: Tahoma, "Segoe UI", system-ui, sans-serif;
}

#app.app-blazor-prep .heyat-static-boot-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #f8fafc;
    border-radius: 50%;
    animation: heyatBootSpin 0.85s linear infinite;
}

#app.app-blazor-prep .heyat-static-boot-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

#app.app-blazor-prep .heyat-static-boot-hint {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.82;
    max-width: 22rem;
    line-height: 1.55;
}

/* راهنمای «اولین بار» — موبایل و لمس؛ روی دسکتاپ با ماوس مخفی */
#app.app-blazor-prep .heyat-static-boot-hint {
    display: block;
}

@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
    #app.app-blazor-prep .heyat-static-boot-hint {
        display: none;
    }
}

.heyat-auth-hint-mobile {
    display: block;
    margin: 0;
    max-width: 20rem;
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.85;
}

@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
    .heyat-auth-hint-mobile {
        display: none;
    }
}

@keyframes heyatBootSpin {
    to { transform: rotate(360deg); }
}

/* تم پورتال — تاکید بصری نزدیک‌تر به sms.ir */
.port-site.port-sms-theme {
    --port-primary: #0b1530;
    --port-sms-yellow: #ffd200;
    --port-ink: #0a1224;
    /* بدون وابستگی به CDN اینترنت: فونت سیستم ویندوز/اندروید */
    font-family: Tahoma, "Segoe UI", "Iranian Sans", "B Nazanin", system-ui, sans-serif;
}

.port-site.port-sms-theme .port-hero,
.port-site.port-sms-theme .port-carousel {
    min-height: min(52vh, 640px);
}

/* نوار زیر هیرو (نزدیک به sms.ir) */
.port-hero-ribbon {
    display: block;
    width: 100%;
    height: 0.4rem;
    background: linear-gradient(90deg, #e6b000 0%, #ffd200 40%, #ffe066 100%);
    position: relative;
    z-index: 8;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* دکمه‌های گردش اسلاید */
.port-site.port-sms-theme .port-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    color: #0a1226;
    background: linear-gradient(180deg, #fff, #e8e8e8);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 210, 0, 0.85);
    padding: 0 0 2px 0;
    font-family: Tahoma, sans-serif;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    pointer-events: auto;
}
.port-site.port-sms-theme .port-slide-nav:hover {
    filter: brightness(1.05);
    transform: translateY(-50%) scale(1.05);
}
.port-site.port-sms-theme .port-slide-nav--newer {
    inset-inline-start: 0.5rem;
}
.port-site.port-sms-theme .port-slide-nav--older {
    inset-inline-end: 0.5rem;
}
@media (max-width: 600px) {
    .port-site.port-sms-theme .port-slide-nav {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.4rem;
    }
}
.port-site.port-sms-theme .port-slide-kicker {
    margin: 0 0 0.35rem 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffd200;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

.port-site.port-sms-theme .port-slide-title {
    font-weight: 800;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    letter-spacing: -0.02em;
}

.port-site.port-sms-theme .port-sms-trust-block {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* بلوک میانی شبیه بخش سرویس‌های sms.ir: زمینه تیره + کارت + نوار زرد */
.port-sms-pitch {
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(180deg, #050a16 0%, #0b1530 38%, #0a1222 100%);
    border-top: 1px solid rgba(255, 210, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    padding: 1.75rem 1rem 2.25rem;
    color: #e8edf5;
    margin: 0;
    overflow-x: hidden;
}
.port-sms-pitch-head {
    max-width: 1100px;
    margin: 0 auto 1.35rem;
    text-align: center;
}
.port-sms-pitch-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd200;
    margin: 0 0 0.4rem 0;
}
.port-sms-pitch-line {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
    color: rgba(232, 237, 245, 0.95);
    line-height: 1.55;
}
.port-sms-feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}
@media (max-width: 1024px) {
    .port-sms-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .port-sms-feature-grid {
        grid-template-columns: 1fr;
    }
}
.port-sms-feat {
    display: block;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
    border: 1px solid rgba(255, 210, 0, 0.18);
    border-radius: 14px;
    padding: 1.1rem 0.9rem 1.15rem;
    min-height: 7.5rem;
    position: relative;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    box-sizing: border-box;
}
.port-sms-feat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 0, 0.38);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}
.port-sms-feat-ico svg,
.port-sms-feat-ico .mud-icon-root {
    font-size: 1.35rem !important;
    width: 1.25em;
    height: 1.25em;
}
.port-sms-feat-ico {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffd200, #e6a800);
    color: #0a1224;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.6rem 0;
    font-size: 1.3rem;
}
.port-sms-feat-h {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.02em;
}
.port-sms-feat-tx {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(232, 237, 245, 0.78);
}
.port-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* حالت «در حال بررسی ورود» — نباید صفحهٔ خالی تیره باشد */
.app-auth-silent {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(165deg, #0b1530 0%, #152a52 50%, #0b1530 100%);
    margin: 0;
    padding: 16px;
    color: #f8fafc;
    font-family: Tahoma, "Segoe UI", system-ui, sans-serif;
    text-align: center;
}

.app-auth-silent .heyat-auth-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffd200;
    border-radius: 50%;
    animation: heyatBootSpin 0.85s linear infinite;
}

.app-auth-silent .heyat-auth-text {
    font-size: 0.95rem;
    font-weight: 600;
}
