
* {
    font-family: 'Vazirmatn',sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: #f1f5f9
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom,#1a3f8e,#0a915b);
    border-radius: 10px
}

.page-section {
    display: none;
    opacity: 0;
    transition: opacity .4s ease
}

    .page-section.active {
        display: block;
        opacity: 1
    }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out
}

    .hero-slide.active {
        opacity: 1
    }

    .hero-slide .slide-content {
        transform: translateY(40px);
        opacity: 0;
        transition: all .8s ease .3s
    }

    .hero-slide.active .slide-content {
        transform: translateY(0);
        opacity: 1
    }

.gallery-item {
    transition: all .4s cubic-bezier(.4,0,.2,1)
}

    .gallery-item.hidden-item {
        opacity: 0;
        transform: scale(.8);
        position: absolute;
        pointer-events: none
    }

    .gallery-item.visible-item {
        opacity: 1;
        transform: scale(1);
        position: relative;
        pointer-events: auto
    }

.stat-num {
    font-variant-numeric: tabular-nums
}

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(.8);
        opacity: 1
    }

    100% {
        transform: scale(1.5);
        opacity: 0
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(60px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(.5)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite
}

.animate-slide-up {
    animation: slideInUp .6s ease forwards
}

.toast-enter {
    animation: slideInRight .4s ease forwards
}

.timeline-line {
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,#1a3f8e,#0a915b);
    transform: translateX(50%)
}

@media(max-width:768px) {
    .timeline-line {
        right: 20px
    }
}

.glass {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.15)
}

.card-hover {
    transition: all .3s ease
}

    .card-hover:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(26,63,142,.12)
    }

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    animation: pulse-ring 1.5s infinite;
    border: 2px solid currentColor
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,63,142,.2)
}

.product-card:hover .product-img {
    transform: scale(1.08)
}

.product-img {
    transition: transform .5s ease
}

.nav-link {
    position: relative
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        right: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(to left,#0a915b,#1a3f8e);
        transition: width .3s ease
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%
    }

.payment-step {
    display: none
}

    .payment-step.active {
        display: block
    }

.tab-btn.active {
    background: linear-gradient(135deg,#1a3f8e,#0a915b);
    color: #fff
}

.lightbox-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease
}

    .lightbox-overlay.active {
        opacity: 1;
        pointer-events: auto
    }
/* فیلدهای OTP */
.otp-digit {
    -moz-appearance: textfield;
}

    .otp-digit::-webkit-outer-spin-button,
    .otp-digit::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-digit::placeholder {
        color: #d1d5db;
        font-size: 1.2rem;
        font-weight: 400;
    }
    .validator-message{
        color:red;
        display:inline;
    }

