/* CSS العام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body.vip-plans-page {
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.plans-bg {
    position: relative;
    padding: 80px 20px 100px; /* تقليل المسافة السفلية ليكون الفوتر قريباً */
    background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
    overflow: hidden;
    flex: 1;
}

/* خلفية ذهبية مع أنماط هندسية */
.gold-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(120, 100, 50, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(120, 100, 50, 0.05) 0%, transparent 20%),
        linear-gradient(45deg, transparent 49%, rgba(200, 160, 70, 0.05) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(200, 160, 70, 0.05) 50%, transparent 51%);
    background-size: 300px 300px;
    z-index: 0;
}

.gold-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(200, 160, 70, 0.1) 0%, transparent 60%);
    z-index: 0;
}

/* قسم العنوان */
.plans-title-section {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    z-index: 2;
}

.plans-title-label {
    display: inline-block;
    background: linear-gradient(90deg, #d4af37, #f9e076, #d4af37);
    color: #0a0a0a;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: goldShine 3s infinite;
}

@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.plans-title-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #d4af37, #f9e076, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.plans-title-section p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* حاوية البطاقات */
.plans-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    z-index: 2;
}

/* تصميم البطاقات للحواسيب والأجهزة اللوحية */
.plans-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

/* بطاقات الخطط */
.plan-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(90, 90, 90, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transform-origin: center;
    margin-bottom: 20px; /* مسافة أسفل البطاقة */
}

.plan-card:hover {
    transform: translateY(-15px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.popular-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #d4af37, #f9e076, #d4af37);
    color: #0a0a0a;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    animation: goldShine 3s infinite;
}

.plan-icon {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon i {
    font-size: 40px;
    color: #f9e076;
    z-index: 2;
}

.gold-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f9e076;
    letter-spacing: 1px;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price .price {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(to right, #d4af37, #f9e076, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: textShine 3s linear infinite;
}

.plan-price .period {
    font-size: 16px;
    color: #b0b0b0;
    display: block;
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: right;
    padding: 0 10px;
}

.plan-features li {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(90, 90, 90, 0.3);
    color: #d0d0d0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: #f9e076;
    font-size: 14px;
}

.plan-btn {
    background: linear-gradient(135deg, #d4af37, #f9e076);
    color: #0a0a0a;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.plan-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f9e076, #d4af37);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.plan-btn:hover:before {
    opacity: 1;
}

/* مؤشر التمرير للهواتف فقط */
.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #d4af37;
    font-size: 14px;
    opacity: 0.7;
    animation: bounce 2s infinite;
    display: none; /* مخفي بشكل افتراضي */
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* تصميم متجاوب */
@media (max-width: 1200px) {
    .plans-title-section h1 {
        font-size: 3rem;
    }
    
    .plan-card {
        min-width: 250px;
    }
}

@media (max-width: 900px) {
    .plans-title-section h1 {
        font-size: 2.5rem;
    }
    
    .plan-card {
        min-width: 220px;
    }
}

/* تصميم الهواتف - التمرير الأفقي */
@media (max-width: 768px) {
    .plans-bg {
        padding: 60px 0 80px; /* تقليل المسافة السفلية للهواتف */
    }
    
    .plans-title-section h1 {
        font-size: 2rem;
    }
    
    .plans-cards {
        display: flex;
        gap: 30px;
        padding: 20px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 30px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .plans-cards::-webkit-scrollbar {
        display: none;
    }
    
    .plan-card {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
        transform-origin: center;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    /* تأثيرات البطاقات على الهواتف */
    .plan-card.center {
        transform: scale(1);
        border: 2px solid;
        border-image: linear-gradient(45deg, #d4af37, #f9e076, #d4af37);
        border-image-slice: 1;
        z-index: 3;
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    }
    
    .plan-card.left, .plan-card.right {
        transform: scale(0.85);
        opacity: 0.7;
        z-index: 2;
        filter: blur(2px);
    }
    
    .plan-card.left {
        transform-origin: right center;
    }
    
    .plan-card.right {
        transform-origin: left center;
    }
    
    .plan-price .price {
        font-size: 36px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .plan-features li {
        font-size: 14px;
    }
    
    .plan-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .plans-title-section h1 {
        font-size: 1.8rem;
    }
    
    .plan-card {
        flex: 0 0 95%;
        min-width: 95%;
        max-width: 95%;
    }
    
    .plan-icon {
        width: 70px;
        height: 70px;
    }
    
    .plan-icon i {
        font-size: 30px;
    }
    
    .scroll-indicator {
        font-size: 12px;
    }
}
