/* ===== متغیرهای برند (خودکفا — بدون وابستگی به پوشه assets) ===== */
:root {
    --eset-turquoise: #0096a1;
    --eset-turquoise-dark: #007a84;
    --eset-turquoise-light: #00b4c2;
    --eset-turquoise-pale: #e6f6f7;
    --eset-turquoise-glow: rgba(0, 150, 161, 0.4);
    --eset-ink: #1a2b33;
    --eset-ink-soft: #3d4f59;
    --eset-ink-muted: #6b7c85;
    --eset-surface: #ffffff;
    --eset-surface-alt: #f0f4f7;
    --eset-border: #d8e2e8;
    --eset-border-focus: #0096a1;
    --eset-hero-from: #0a1a22;
    --eset-hero-to: #14323c;
    --eset-hero-accent: #0096a1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 4px 24px rgba(26, 43, 51, 0.06);
    --shadow-card: 0 24px 64px rgba(26, 43, 51, 0.1);
    --shadow-btn: 0 8px 28px rgba(0, 150, 161, 0.32);
    --font-fa: Tahoma, 'Segoe UI', Arial, sans-serif;
    --font-brand: 'Segoe UI', Tahoma, Arial, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.35s;
}

/* ===== پایه ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-size: clamp(13px, 1.6vw, 16px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-fa);
    color: var(--eset-ink);
    line-height: 1.5;
}

/* ===== صفحه — بدون اسکرول، تمام‌صفحه ===== */
.uc-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    padding:
        max(0.65rem, env(safe-area-inset-top))
        max(0.85rem, env(safe-area-inset-right))
        max(0.65rem, env(safe-area-inset-bottom))
        max(0.85rem, env(safe-area-inset-left));
    background: linear-gradient(155deg, var(--eset-hero-from) 0%, var(--eset-hero-to) 45%, #1a4a56 100%);
    overflow: hidden;
}

.uc-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 15% 90%, var(--eset-turquoise-glow) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(0, 180, 194, 0.18) 0%, transparent 45%);
    pointer-events: none;
}

.uc-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 150, 161, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 161, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
}

.uc-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

.uc-glow--1 {
    width: min(320px, 50vw);
    height: min(320px, 50vw);
    top: -80px;
    right: -60px;
    background: rgba(0, 150, 161, 0.25);
}

.uc-glow--2 {
    width: min(240px, 40vw);
    height: min(240px, 40vw);
    bottom: 10%;
    left: 5%;
    background: rgba(0, 180, 194, 0.15);
    animation-delay: -4s;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.uc-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.uc-shape {
    position: absolute;
    border: 1px solid rgba(0, 150, 161, 0.18);
    animation: floatShape 14s var(--ease-out) infinite;
}

.uc-shape--1 {
    width: clamp(72px, 14vw, 140px);
    height: clamp(72px, 14vw, 140px);
    top: 8%;
    left: 4%;
    transform: rotate(45deg);
    background: rgba(0, 150, 161, 0.07);
    border-radius: var(--radius-md);
    --rot: 45deg;
}

.uc-shape--2 {
    width: clamp(40px, 8vw, 70px);
    height: clamp(40px, 8vw, 70px);
    bottom: 22%;
    right: 8%;
    border-radius: 50%;
    background: rgba(0, 180, 194, 0.1);
    animation-delay: -3s;
}

.uc-shape--3 {
    width: clamp(100px, 20vw, 220px);
    height: clamp(100px, 20vw, 220px);
    top: 48%;
    left: 50%;
    transform: rotate(-12deg);
    background: linear-gradient(135deg, rgba(0, 150, 161, 0.12) 0%, transparent 65%);
    animation-delay: -6s;
    --rot: -12deg;
}

.uc-shape--4 {
    width: clamp(20px, 4vw, 36px);
    height: clamp(20px, 4vw, 36px);
    top: 16%;
    right: 18%;
    transform: rotate(45deg);
    background: var(--eset-turquoise);
    opacity: 0.3;
    animation-delay: -2s;
    --rot: 45deg;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 6deg)); }
}

/* ===== قاب محتوا ===== */
.uc-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(560px, 100%);
    height: 100%;
    max-height: 100%;
    min-height: 0;
    gap: clamp(0.35rem, 1.2vh, 0.85rem);
}

.uc-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    text-align: center;
    animation: fadeSlideUp 0.9s var(--ease-out) both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uc-brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.45rem, 1.5vw, 0.85rem);
    margin-bottom: clamp(0.35rem, 1.5vh, 1rem);
    direction: ltr;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 24px rgba(0, 150, 161, 0.35));
}

.uc-brand-mark {
    flex-shrink: 0;
    display: block;
    width: clamp(32px, 7vh, 48px);
    height: clamp(32px, 7vh, 48px);
}

.uc-brand-name {
    font-family: var(--font-brand);
    font-size: clamp(1.35rem, 4.5vh, 2.15rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.uc-icon {
    width: clamp(52px, 10vh, 72px);
    height: clamp(52px, 10vh, 72px);
    margin-bottom: clamp(0.35rem, 1.2vh, 0.85rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 150, 161, 0.18);
    border: 1px solid rgba(0, 180, 194, 0.3);
    border-radius: var(--radius-lg);
    color: var(--eset-turquoise-light);
    backdrop-filter: blur(4px);
    animation: iconPulse 3s ease-in-out infinite;
}

.uc-icon svg {
    width: clamp(26px, 5vh, 36px);
    height: clamp(26px, 5vh, 36px);
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 150, 161, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(0, 150, 161, 0); }
}

.uc-title {
    font-size: clamp(1.15rem, 3.8vh, 1.85rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: clamp(0.2rem, 0.8vh, 0.5rem);
    flex-shrink: 0;
}

.uc-tagline {
    font-size: clamp(0.82rem, 2.2vh, 1.05rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: clamp(0.35rem, 1.2vh, 0.75rem);
    flex-shrink: 0;
}

.uc-message {
    font-size: clamp(0.78rem, 2vh, 0.95rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: clamp(0.4rem, 1.4vh, 0.9rem);
    line-height: 1.55;
    max-width: 42ch;
    flex-shrink: 1;
}

/* ===== کارت وضعیت ===== */
.uc-card {
    width: 100%;
    padding: clamp(0.75rem, 2vh, 1.35rem) clamp(0.85rem, 3vw, 1.35rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 180, 194, 0.2);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    flex-shrink: 1;
    min-height: 0;
}

.uc-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: clamp(0.4rem, 1vh, 0.65rem);
    font-size: clamp(0.75rem, 1.8vh, 0.88rem);
    color: rgba(255, 255, 255, 0.75);
}

.uc-progress-label strong {
    color: var(--eset-turquoise-light);
    font-weight: 700;
}

.uc-progress-track {
    height: clamp(5px, 1vh, 8px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.uc-progress-bar {
    height: 100%;
    width: 62%;
    background: linear-gradient(90deg, var(--eset-turquoise-dark), var(--eset-turquoise-light));
    border-radius: 999px;
    animation: progressShimmer 2.5s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(0, 150, 161, 0.45);
}

@keyframes progressShimmer {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.uc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(0.25rem, 0.8vh, 0.55rem);
    margin-top: clamp(0.5rem, 1.4vh, 1rem);
    text-align: right;
}

.uc-features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(0.72rem, 1.8vh, 0.88rem);
    color: rgba(255, 255, 255, 0.78);
    padding: clamp(0.15rem, 0.5vh, 0.3rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.uc-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.uc-features .dot {
    flex-shrink: 0;
    width: clamp(6px, 1.2vh, 8px);
    height: clamp(6px, 1.2vh, 8px);
    border-radius: 50%;
    background: var(--eset-turquoise-light);
    box-shadow: 0 0 8px var(--eset-turquoise-glow);
    animation: dotBlink 2s ease-in-out infinite;
}

.uc-features li:nth-child(2) .dot { animation-delay: 0.4s; }
.uc-features li:nth-child(3) .dot { animation-delay: 0.8s; }

@keyframes dotBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.uc-footer {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    font-size: clamp(0.68rem, 1.6vh, 0.82rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
    animation: fadeSlideUp 0.9s var(--ease-out) 0.2s both;
}

.uc-footer a {
    color: var(--eset-turquoise-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 180, 194, 0.35);
    transition: color var(--duration), border-color var(--duration);
}

.uc-footer a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

/* ===== واکنش‌گرا — موبایل ===== */
@media (max-width: 480px) {
    .uc-message br {
        display: none;
    }

    .uc-message {
        max-width: 100%;
    }
}

/* ===== واکنش‌گرا — ارتفاع کم (موبایل افقی / صفحه کوتاه) ===== */
@media (max-height: 640px) {
    .uc-icon {
        display: none;
    }

    .uc-message {
        line-height: 1.4;
    }

    .uc-features li {
        padding-top: 0.1rem;
        padding-bottom: 0.1rem;
    }
}

@media (max-height: 520px) {
    .uc-brand {
        margin-bottom: 0.25rem;
    }

    .uc-tagline {
        margin-bottom: 0.25rem;
    }

    .uc-message {
        margin-bottom: 0.35rem;
    }

    .uc-features {
        margin-top: 0.35rem;
        gap: 0.15rem;
    }
}

@media (max-height: 420px) {
    .uc-shapes,
    .uc-glow {
        display: none;
    }
}
