/* ==========================================
   فاران - بلیزر UPS - لندینگ بهار 1405
   بهینه‌سازی: فونت‌ها (3 وزن) + Canvas موبایل
   ========================================== */

/* ===== فونت‌های محلی (بهینه‌شده به 3 وزن) ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== متغیرهای رنگ و طراحی ===== */
:root{
    --bg:#06070a;
    --bg-secondary:#0d1017;
    --card:#121722;
    --card-border:rgba(255,255,255,.06);

    --primary:#ff2d2d;
    --primary-light:#ff5a5a;
    --primary-glow:rgba(255,45,45,.45);

    --text:#ffffff;
    --text-secondary:#b8c0d1;
    --muted:#7f8798;

    --success:#17d67a;
    --danger:#ff3f5f;

    --radius:24px;
    --radius-sm:16px;

    --shadow:
        0 20px 60px rgba(0,0,0,.45);

    --transition:.35s cubic-bezier(.4,0,.2,1);
}

/* ===== Reset ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Vazirmatn',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    line-height:1.8;
    position:relative;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at top right, rgba(255,45,45,.15), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.04), transparent 20%);
    pointer-events:none;
    z-index:-2;
}

/* ===== Canvas (غیرفعال روی موبایل) ===== */
canvas#mouseCanvas{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    z-index:-1;
    pointer-events:none;
}

@media (max-width:768px){
    canvas#mouseCanvas{
        display:none !important;
    }
}

/* ===== ذرات شناور ===== */
#particles-container{
    position:fixed;
    inset:0;
    overflow:hidden;
    z-index:-2;
    pointer-events:none;
}

.particle{
    position:absolute;
    width:4px;
    height:4px;
    background:rgba(255,255,255,.18);
    border-radius:50%;
    animation:floatParticle linear infinite;
}

@keyframes floatParticle{
    from{
        transform:translateY(0) translateX(0);
        opacity:0;
    }
    10%{
        opacity:1;
    }
    to{
        transform:translateY(-120vh) translateX(80px);
        opacity:0;
    }
}

/* ===== Layout ===== */
.container{
    width:min(1180px,92%);
    margin:auto;
}

section{
    padding:110px 0;
    position:relative;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

/* ===== Typography ===== */
.section-title{
    font-size:clamp(2rem,4vw,3.5rem);
    text-align:center;
    margin-bottom:18px;
    font-weight:800;
    line-height:1.2;
}

.section-subtitle{
    text-align:center;
    color:var(--text-secondary);
    margin-bottom:60px;
    font-size:1.1rem;
}

.highlight{
    color:var(--primary);
    text-shadow:0 0 24px var(--primary-glow);
}

.time-highlight{
    color:var(--primary-light);
    font-weight:800;
}

/* ===== Header ===== */
.header{
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;
    backdrop-filter:blur(16px);
    background:rgba(6,7,10,.65);
    border-bottom:1px solid rgba(255,255,255,.05);
}

.header-content{
    min-height:84px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.logo img{
    height:42px;
}

.nav{
    display:flex;
    gap:32px;
}

.nav a{
    color:var(--text-secondary);
    transition:var(--transition);
    font-weight:500;
}

.nav a:hover{
    color:var(--text);
}

.header-cta{
    display:flex;
    align-items:center;
    gap:10px;
    background:linear-gradient(135deg,var(--primary),#ff5d5d);
    padding:12px 20px;
    border-radius:999px;
    box-shadow:0 0 30px rgba(255,45,45,.25);
    transition:var(--transition);
}

.header-cta:hover{
    transform:translateY(-2px);
}

/* ===== Hero Section ===== */
.hero{
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display:flex;
    align-items:center;
    padding-top:140px;
}

.hero-content{
    max-width:860px;
    position:relative;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    margin-bottom:32px;
    backdrop-filter:blur(10px);
}

.badge-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--primary);
    box-shadow:0 0 18px var(--primary);
}

.pulse{
    animation:pulse 2s infinite;
}

@keyframes pulse{
    0%{
        box-shadow:0 0 0 0 rgba(255,45,45,.4);
    }
    70%{
        box-shadow:0 0 0 20px rgba(255,45,45,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(255,45,45,0);
    }
}

.hero-title{
    font-size:clamp(1.8rem,3vw,3rem);
    line-height:1.55;
    font-weight:900;
    margin-bottom:28px;
}

.title-line{
    display:block;
}

.hero-subtitle{
    color:var(--text-secondary);
    font-size:1.3rem;
    max-width:760px;
    margin-bottom:42px;
}

.hero-cta-group{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:50px;
}

/* ===== Buttons ===== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:18px 28px;
    border-radius:18px;
    font-weight:700;
    transition:var(--transition);
    cursor:pointer;
    border:none;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),#ff5c5c);
    color:#fff;
    box-shadow:
        0 0 40px rgba(255,45,45,.35),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.btn-primary:hover{
    transform:translateY(-4px) scale(1.01);
    box-shadow:
        0 20px 60px rgba(255,45,45,.35);
}

.btn-secondary{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
}

.btn-secondary:hover{
    background:rgba(255,255,255,.09);
}

.btn-glow{
    position:relative;
    overflow:hidden;
}

.btn-glow::before{
    content:"";
    position:absolute;
    inset:-50%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );
    transform:rotate(25deg);
    animation:shine 3s infinite;
}

@keyframes shine{
    from{
        transform:translateX(-120%) rotate(25deg);
    }
    to{
        transform:translateX(220%) rotate(25deg);
    }
}

/* ===== Trust Indicators ===== */
.trust-indicators{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
}

.trust-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    color:var(--text-secondary);
}

/* ===== Social Proof ===== */
.social-proof{
    padding:50px 0;
    border-block:1px solid rgba(255,255,255,.05);
    background:rgba(255,255,255,.02);
}

.proof-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.proof-item{
    text-align:center;
}

.proof-number{
    font-size:2.8rem;
    color:var(--primary);
    font-weight:800;
}

.proof-label{
    color:var(--text-secondary);
}

/* ===== Comparison Cards ===== */
.comparison-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:32px;
}

.comparison-card{
    padding:42px;
    border-radius:var(--radius);
    background:linear-gradient(180deg,#101521,#0c1018);
    border:1px solid var(--card-border);
    box-shadow:var(--shadow);
    transition:var(--transition);
    position:relative;
    overflow:hidden;
}

.comparison-card:hover{
    transform:translateY(-8px);
}

.comparison-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(255,255,255,.04),transparent);
    pointer-events:none;
}

.card-icon{
    width:84px;
    height:84px;
    border-radius:24px;
    display:grid;
    place-items:center;
    margin-bottom:28px;
}

.card-icon.danger{
    background:rgba(255,63,95,.12);
    color:var(--danger);
}

.card-icon.success{
    background:rgba(23,214,122,.12);
    color:var(--success);
}

.comparison-card h3{
    font-size:2rem;
    margin-bottom:28px;
}

.feature-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.feature-list li{
    display:flex;
    align-items:flex-start;
    gap:14px;
    color:var(--text-secondary);
}

.time-badge{
    margin-top:32px;
    padding:22px;
    border-radius:20px;
    text-align:center;
}

.danger-badge{
    background:rgba(255,63,95,.08);
    border:1px solid rgba(255,63,95,.18);
}

.time-value{
    display:block;
    font-size:2rem;
    font-weight:800;
}

.time-scenarios{
    margin-top:32px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.scenario{
    display:flex;
    justify-content:space-between;
    padding:16px 18px;
    background:rgba(255,255,255,.04);
    border-radius:16px;
}

.scenario-time{
    color:var(--success);
    font-weight:800;
}

/* ===== Video ===== */
.video-wrapper{
    overflow:hidden;
    border-radius:32px;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:var(--shadow);
}

.video-wrapper video{
    width:100%;
    display:block;
}

/* ===== Products Grid ===== */
.products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.product-card{
    position:relative;
    background:linear-gradient(180deg,#111723,#0d1017);
    border-radius:32px;
    padding:34px;
    border:1px solid rgba(255,255,255,.06);
    transition:var(--transition);
    overflow:hidden;
}

.product-card:hover{
    transform:translateY(-10px);
    border-color:rgba(255,45,45,.25);
    box-shadow:
        0 20px 60px rgba(0,0,0,.4),
        0 0 40px rgba(255,45,45,.15);
}

.product-card.featured{
    border-color:rgba(255,45,45,.3);
    transform:scale(1.03);
}

.product-badge{
    position:absolute;
    top:20px;
    left:20px;
    background:rgba(255,255,255,.08);
    padding:8px 14px;
    border-radius:999px;
    font-size:.85rem;
}

.product-badge.premium{
    background:linear-gradient(135deg,var(--primary),#ff6262);
}

.product-image{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:24px;
}

.product-title{
    font-size:1.7rem;
    margin-bottom:6px;
}

.product-capacity{
    color:var(--text-secondary);
    margin-bottom:24px;
}

.product-time-highlight{
    display:flex;
    align-items:center;
    gap:18px;
    background:rgba(255,45,45,.08);
    border:1px solid rgba(255,45,45,.14);
    padding:20px;
    border-radius:22px;
    margin-bottom:28px;
}

.time-icon{
    color:var(--primary);
}

.product-suitable{
    margin-bottom:26px;
}

.product-suitable h4{
    margin-bottom:14px;
}

.product-suitable ul{
    display:flex;
    flex-direction:column;
    gap:12px;
    color:var(--text-secondary);
}

.product-features{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:30px;
}

.feature{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--text-secondary);
}

.feature svg{
    color:var(--success);
}

.btn-product{
    width:100%;
    background:#171d29;
    border:1px solid rgba(255,255,255,.06);
    color:#fff;
}

.btn-product:hover{
    background:var(--primary);
}

/* ===== CTA Section ===== */
.cta-section{
    background:
        radial-gradient(circle at top right, rgba(255,45,45,.14), transparent 30%),
        linear-gradient(180deg,#0a0c12,#090b10);
}

.cta-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:40px;
    align-items:center;
}

.cta-title{
    font-size:3rem;
    line-height:1.2;
    margin-bottom:18px;
}

.cta-subtitle{
    color:var(--text-secondary);
    margin-bottom:40px;
}

.cta-benefits{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.cta-benefits li{
    display:flex;
    align-items:flex-start;
    gap:16px;
    background:rgba(255,255,255,.04);
    padding:18px;
    border-radius:18px;
}

.cta-benefits strong{
    display:block;
}

.cta-benefits span{
    color:var(--text-secondary);
    font-size:.95rem;
}

/* ===== Form ===== */
.form-wrapper{
    position:relative;
}

.form-card{
    background:linear-gradient(180deg,#111722,#0d1118);
    padding:42px;
    border-radius:32px;
    border:1px solid rgba(255,255,255,.06);
    box-shadow:
        0 30px 80px rgba(0,0,0,.45),
        0 0 40px rgba(255,45,45,.1);
}

.form-title{
    font-size:2rem;
    margin-bottom:10px;
}

.form-subtitle{
    color:var(--text-secondary);
    margin-bottom:28px;
}

.form-group{
    margin-bottom:20px;
}

.form-group input,
.form-group select{
    width:100%;
    height:62px;
    border:none;
    outline:none;
    border-radius:18px;
    background:#171d29;
    padding:0 20px;
    color:#fff;
    font-family:inherit;
    border:1px solid transparent;
    transition:var(--transition);
}

.form-group input:focus,
.form-group select:focus{
    border-color:rgba(255,45,45,.45);
    box-shadow:0 0 0 5px rgba(255,45,45,.12);
}

.form-submit{
    width:100%;
    height:64px;
    font-size:1rem;
}

/* ===== Countdown ===== */
.countdown{
    margin-top:28px;
    text-align:center;
}

.countdown-label{
    color:var(--text-secondary);
    margin-bottom:14px;
}

.countdown-timer{
    display:flex;
    justify-content:center;
    gap:12px;
}

.time-box{
    width:78px;
    height:78px;
    background:rgba(255,255,255,.05);
    border-radius:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.06);
}

.time-box span{
    font-size:1.7rem;
    font-weight:800;
    color:var(--primary);
}

.time-box small{
    color:var(--text-secondary);
}

/* ===== Footer ===== */
.footer{
    padding:70px 0 30px;
    border-top:1px solid rgba(255,255,255,.05);
}

.footer-content{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
    margin-bottom:40px;
}

.footer h4{
    margin-bottom:18px;
}

.footer p,
.footer li{
    color:var(--text-secondary);
}

.footer ul{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-bottom{
    padding-top:30px;
    border-top:1px solid rgba(255,255,255,.05);
    text-align:center;
    color:var(--muted);
}

/* ===== Reveal Animation ===== */
.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:1s ease;
}

.reveal.active{
    opacity:1;
    transform:none;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:rgba(255,45,45,.4);
    border-radius:999px;
}

/* ===== Responsive ===== */
@media (max-width:1100px){
    .products-grid{
        grid-template-columns:1fr;
    }

    .comparison-grid,
    .cta-grid,
    .footer-content,
    .proof-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:768px){
    section{
        padding:90px 0;
    }

    .header-content{
        min-height:74px;
    }

    .nav{
        display:none;
    }

    .hero{
        text-align:center;
    }

    .hero-cta-group,
    .trust-indicators{
        justify-content:center;
    }

    .comparison-grid,
    .cta-grid,
    .footer-content,
    .proof-grid{
        grid-template-columns:1fr;
    }

    .comparison-card,
    .product-card,
    .form-card{
        padding:28px;
    }

    .cta-title{
        font-size:2.2rem;
    }

    .time-box{
        width:70px;
        height:70px;
    }
}
.game-container{
  width:100%;
  max-width:1200px;
  margin:80px auto;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.2);
}

.game-container iframe{
  width:100%;
  height:720px;
  border:none;
}
.game-section{
  width:100%;
  max-width:1600px; /* هرچقدر بخواهی */
  margin:80px auto;
  padding:0 20px;
}
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2d2d, #b00000);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s ease;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(255, 45, 45, 0.45);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn svg {
    transform: rotate(-90deg);
}

#scrollTopBtn circle {
    fill: none;
    stroke: rgba(255,255,255,0.25);
    stroke-width: 4;
}

#scrollTopBtn path {
    fill: #fff;
    transform: rotate(90deg);
    transform-origin: center;
}

#scrollTopBtn:hover {
    box-shadow: 0 14px 40px rgba(255,45,45,0.6);
    transform: translateY(-4px) scale(1.05);
}

#scrollTopBtn:hover path {
    animation: arrowBounce 0.8s infinite alternate;
}

@keyframes arrowBounce {
    from { transform: translateY(2px); }
    to   { transform: translateY(-4px); }
}

/* موبایل */
@media (max-width: 600px) {
    #scrollTopBtn {
        width: 44px;
        height: 44px;
        bottom: 18px;
        right: 18px;
    }
}
/* استایل‌های مربوط به دکمه بازگشت به بالا */
#scrollTopBtn {
    display: none; /* در حالت پیش‌فرض مخفی است */
    position: fixed;
    bottom: 30px; /* فاصله از پایین صفحه */
    right: 30px; /* فاصله از سمت راست صفحه */
    z-index: 9999; /* قرارگیری روی تمام المان‌ها */
    font-size: 24px;
    font-weight: bold;
    border: none;
    outline: none;
    background-color: #ffaa00; /* رنگ پس‌زمینه دکمه - قابل تغییر */
    color: white; /* رنگ فلش */
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* دایره‌ای کردن دکمه */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* سایه ملایم */
    transition: background-color 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    background-color: #cc8800; /* رنگ دکمه هنگام رفتن ماوس روی آن */
    transform: scale(1.1); /* کمی بزرگتر شدن هنگام هاور */
}

/* این کلاس توسط جاوا اسکریپت برای نمایش دکمه اضافه می‌شود */
#scrollTopBtn.show {
    display: block; 
}
#game-frame {
    width: 100%;
    min-height: 800px; 
    max-height: 1200px; /* حداکثر ارتفاع را محدود کنید */
    border: none;
}
.products-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-card {
    flex: 0 0 380px; /* عرض ثابت برای باکس‌ها */
    max-width: 100%;
}
.footer-links a {
    text-decoration: none;
    color: inherit;
}

.footer-links a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #999;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
 /* Product Buttons */
    .product-buttons {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }

    .btn-buy {
        flex: 1;
        background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
        color: white;
        font-weight: 700;
        padding: 12px 20px;
        border-radius: 16px;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .btn-buy:hover {
        background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
    }

    .btn-buy:active {
        transform: scale(0.98);
    }

    .btn-consult {
        flex: 1;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        font-weight: 600;
        padding: 12px 20px;
        border-radius: 16px;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

    .btn-consult:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .btn-consult:active {
        transform: scale(0.98);
    }

    /* Responsive */
    @media (max-width: 640px) {
        .product-buttons {
            flex-direction: column;
            gap: 10px;
        }
        
        .btn-buy,
        .btn-consult {
            width: 100%;
        }
    }
    /* Price Box Styles */
    .price-box {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 16px;
        padding: 14px 16px;
        margin: 16px 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .price-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .price-row:not(.main) {
        margin-bottom: 8px;
    }

    .price-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
    }

    .price-old {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.4);
        text-decoration: line-through;
    }

    .price-row.main .price-label {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .price-current {
        font-size: 1.6rem;
        font-weight: 800;
        color: #ff6b6b;
        letter-spacing: -0.5px;
    }

    .price-unit {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 6px;
        text-align: left;
    }

    /* Product Buttons */
    .product-buttons {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }

    .btn-buy {
        flex: 1;
        background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
        color: white;
        font-weight: 700;
        padding: 12px 20px;
        border-radius: 16px;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
        font-size: 0.95rem;
    }

    .btn-buy:hover {
        background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
    }

    .btn-buy:active {
        transform: scale(0.98);
    }

    .btn-consult {
        flex: 1;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        font-weight: 600;
        padding: 12px 20px;
        border-radius: 16px;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

    .btn-consult:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .btn-consult:active {
        transform: scale(0.98);
    }

    /* Responsive */
    @media (max-width: 640px) {
        .product-buttons {
            flex-direction: column;
            gap: 10px;
        }
        
        .btn-buy,
        .btn-consult {
            width: 100%;
        }
        
        .price-current {
            font-size: 1.3rem;
        }
    }
    /* === Header Styles === */
  .header {
    position: relative;
    z-index: 10;
  }

  .header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
  }

  @media (min-width: 640px) {
    .header-container { padding: 0 24px; }
  }

  @media (min-width: 1024px) {
    .header-container { padding: 0 32px; }
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
  }

  /* Logo */
  .header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .header-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: box-shadow 0.3s;
  }

  .header-logo-wrap:hover .header-logo-icon {
    box-shadow: 0 0 20px rgba(255, 102, 72, 0.15);
  }

  .header-logo-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .header-logo-text {
    line-height: 1.25;
  }

  .header-brand-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
  }

  @media (min-width: 640px) {
    .header-brand-name { font-size: 18px; }
  }

  .header-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
  }

  /* LED dots */
  .header-led {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  .header-led--green  { background: #10b981; box-shadow: 0 0 6px #10b981; }
  .header-led--amber  { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
  .header-led--cyan   { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

  /* Navigation */
  .header-nav {
    display: none;
    align-items: center;
    gap: 4px;
  }

  @media (min-width: 768px) {
    .header-nav { display: flex; }
  }

  .header-nav-link {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
  }

  .header-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  /* Actions */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  @media (min-width: 640px) {
    .header-actions { gap: 12px; }
  }

  /* Phone button */
  .header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: background 0.2s;
  }

  @media (min-width: 640px) {
    .header-phone { display: inline-flex; }
  }

  .header-phone:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .header-phone-icon {
    width: 16px;
    height: 16px;
    color: #3b82f6;
  }

  .header-phone-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
  }

  /* CTA button */
  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 16px;
    background: #ff6648;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 102, 72, 0.3);
    transition: opacity 0.2s, transform 0.1s;
  }

  .header-cta:hover {
    opacity: 0.9;
  }

.iframe-container {
    position: relative;
    width: 100%;
    min-height: 600px; /* حداقل ارتفاع پیش‌فرض برای دسکتاپ */
}

.iframe-container iframe {
    width: 100%;
    border: none;
    display: block;
    height: 100%; /* iframe ارتفاع container خود را پر کند */
}

/* اصلاحات برای موبایل */
/* این را در انتهای فایل style.css قرار دهید */
@media (max-width: 768px) {
    #game-frame {
        min-height: 600px; /* حداقل ارتفاع لازم برای موبایل */
        height: auto;
        overflow: hidden;
    }
    
    /* اگر کانتینری دور iframe دارید، padding آن را صفر کنید */
    .iframe-container {
        padding-top: 0 !important;
        height: auto !important;
    }
}
/* ==================== UPS Simulator Game (Native) ==================== */
#ups-simulator-game {
    background: #0b0f1e;
    border-radius: 24px;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

#ups-simulator-game .game-header-title {
    text-align: center;
    font-size: 32px;
    color: #33d2ff;
    margin-bottom: 10px;
}

#ups-simulator-game .game-subtitle {
    text-align: center;
    color: #9fb7d8;
    margin-bottom: 40px;
    font-size: 15px;
}

#ups-simulator-game .game-inner-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
}

#ups-simulator-game .game-section-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #bfe7ff;
    font-size: 18px;
}

/* UPS Cards */
#ups-simulator-game .ups-section { width: 25%; display: flex; flex-direction: column; gap: 18px; }
#ups-simulator-game .ups-card { background: #111726; padding: 20px; border-radius: 12px; text-align: center; cursor: pointer; border: 2px solid #1a233a; transition: 0.3s; }
#ups-simulator-game .ups-card:hover { border-color: #33d2ff; }
#ups-simulator-game .ups-card.active { border-color: #33d2ff; box-shadow: 0 0 12px rgba(51, 210, 255, 0.5); }
#ups-simulator-game .ups-image { width: 100%; max-width: 150px; margin: 0 auto; display: block; }
#ups-simulator-game .ups-name { margin-top: 10px; font-size: 16px; color: #fff; }
#ups-simulator-game .ups-meta { font-size: 13px; color: #8fa7c6; margin-top: 4px; }

/* Center Panel & Dropzone */
#ups-simulator-game .center-panel { width: 40%; display: flex; flex-direction: column; gap: 20px; }
#ups-simulator-game #dropzone { background: #111726; padding: 20px; border-radius: 12px; border: 2px solid #1a233a; }

/* Device Cards */
#ups-simulator-game .device-section { width: 25%; display: flex; flex-direction: column; gap: 18px; }
#ups-simulator-game .device-card { background: #111726; padding: 18px; border-radius: 12px; cursor: pointer; border: 2px solid #1a233a; text-align: center; transition: 0.3s; color: #fff; }
#ups-simulator-game .device-card:hover { border-color: #00ffaa; box-shadow: 0 0 10px rgba(0, 255, 170, 0.4); }

/* Selected Items */
#ups-simulator-game #selected-devices .sel-item { background: #162032; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
#ups-simulator-game .del-btn { background: #ff3d3d; border: none; color: white; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: 0.2s; }
#ups-simulator-game .del-btn:hover { background: #ff1a1a; }

/* Runtime Box */
#ups-simulator-game .runtime-box { margin-top: 20px; padding: 22px; border-radius: 14px; background: linear-gradient(135deg, #0f172a, #12203a); border: 1px solid #27405f; text-align: center; }
#ups-simulator-game .runtime-title { font-size: 15px; color: #9ccfff; margin-bottom: 6px; }
#ups-simulator-game .runtime-value { font-size: 38px; font-weight: bold; color: #4fe3ff; }
#ups-simulator-game .runtime-note { font-size: 12px; color: #9fb7d8; margin-top: 6px; }

/* Guide Box */
#ups-simulator-game .guide-box { background: #111726; border: 1px solid #1f2a44; border-radius: 14px; padding: 22px; line-height: 2; font-size: 14px; color: #fff; }
#ups-simulator-game .guide-box h3 { margin-top: 0; color: #33d2ff; }
#ups-simulator-game .guide-box ol { padding-right: 20px; color: #9fb7d8; margin-bottom: 0; }

/* Responsive Game Section */
@media (max-width: 1000px) {
    #ups-simulator-game .game-inner-container { flex-direction: column; gap: 25px; }
    #ups-simulator-game .ups-section,
    #ups-simulator-game .center-panel,
    #ups-simulator-game .device-section { width: 100%; }
    #ups-simulator-game .device-card,
    #ups-simulator-game .ups-card { font-size: 15px; }
    #ups-simulator-game .runtime-value { font-size: 34px; }
    #ups-simulator-game { padding: 25px; }
}
/* استایل کارت دستگاهی که قبلاً انتخاب شده است */
#ups-simulator-game .device-card.already-selected {
    opacity: 0.5;
    border-color: #27405f;
    cursor: not-allowed;
}
#ups-simulator-game .device-card.already-selected:hover {
    box-shadow: none;
    border-color: #27405f;
}
.compact-products-cta {
  width: 100%;
  padding: 48px 16px;
  background:
    radial-gradient(circle at top right, rgba(20,184,166,.18), transparent 30%),
    linear-gradient(135deg,#07111f 0%,#0f172a 55%,#111827 100%);
}

.compact-products-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 22px;
}

.cta-product-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-product-card {
  min-height: 220px;
  max-height: 400px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);

  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 20px;
}

.cta-product-card img {
  width: 105px;
  max-height: 150px;
  object-fit: contain;
}

.cta-product-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.cta-product-content p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.cta-product-content strong {
  color: #5eead4;
  font-size: 20px;
  font-weight: 900;
}

.cta-product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 110px;
}

.cta-product-actions a {
  text-align: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: .25s ease;
}

.btn-buy {
  background: #ff2d2d;
  color: #fff;
}

.btn-buy:hover {
  background: #ff4444;
  transform: translateY(-2px);
}

.btn-consult {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.btn-consult:hover {
  background: rgba(255,255,255,.16);
}

.product-desc-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #dbe4ee;
  font-size: 14px;
  line-height: 1.9;
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .compact-products-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .cta-product-card {
    grid-template-columns: 80px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .cta-product-card img {
    width: 78px;
  }

  .cta-product-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .cta-product-actions a {
    flex: 1;
  }

  .product-desc-box {
    font-size: 13px;
  }
}
/* ===== Safari iOS Mobile Fix ===== */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  .header {
    position: sticky !important;
    top: 0;
    z-index: 99999;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateZ(0);
  }

  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
  }

  .header-logo-wrap,
  .header-logo-text,
  .header-actions {
    min-width: 0;
  }

  .header-brand-name,
  .header-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 8px 14px !important;
  }

  .hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 28px !important;
    align-items: flex-start !important;
  }

  .hero .container > div {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    align-items: stretch !important;
  }

  .hero .container > div > div {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .hero .container > div > div:first-child {
    height: auto !important;
    aspect-ratio: 340 / 500;
    max-height: 460px;
  }

  .hero .container > div > div:first-child > div {
    height: 100% !important;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    transform: translateZ(0);
  }

  .hero-content {
    max-width: 100% !important;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    line-height: 1.45 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 2 !important;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-cta-group {
    width: 100%;
    margin-bottom: 0 !important;
  }

  .hero-cta-group .btn {
    width: 100%;
  }
}