/* =====================================================
   استایل‌های مشترک صفحات سرور مجازی (VPS)
   سروهاست - sarvhost.com
   ===================================================== */

/* ===== بردکرامب هیرو ===== */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.hero-breadcrumb a:hover {
    color: #fff;
}

.hero-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* ===== گرادیانت متن ===== */
.text-gradient {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white {
    color: #fff !important;
}

.text-light {
    color: rgba(255,255,255,0.8) !important;
}

/* =====================================================
   کارت‌های پلن — ۴ تایی
   ===================================================== */
.plans-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

/* کارت پلن */
.plan-card-v2 {
    background: #fff;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.15);
    border-color: var(--primary);
}

/* پرفروش */
.plan-card-v2.popular {
    border: 3px solid var(--primary);
    box-shadow: 0 15px 40px rgba(57, 73, 171, 0.2);
    transform: scale(1.03);
    z-index: 2;
}

.plan-card-v2.popular:hover {
    transform: scale(1.03) translateY(-8px);
}

/* سازمانی */
.plan-card-v2.enterprise {
    border: 2px solid #f59e0b;
}

.plan-card-v2.enterprise:hover {
    border-color: #f59e0b;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.15);
}

/* نوار بالای کارت */
.card-ribbon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.plan-card-v2.enterprise .card-ribbon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* هدر کارت */
.card-head {
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.card-tier {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

/* قیمت */
.card-price {
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.price-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    font-family: var(--font-num);
}

.price-cur {
    font-size: 0.85rem;
    color: #64748b;
}

.price-per {
    font-size: 0.75rem;
    color: #94a3b8;
}

.price-dollar {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--light);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.plan-card-v2.enterprise .price-dollar {
    background: #fef3c7;
    color: #d97706;
}

/* مشخصات */
.card-specs {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
    flex: 1;
}

.card-specs li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}

.card-specs li:last-child {
    border-bottom: none;
}

.card-specs .ic {
    width: 26px;
    font-size: 1rem;
    flex-shrink: 0;
}

.card-specs .lbl {
    flex: 1;
    color: #64748b;
}

.card-specs .val {
    color: #1e293b;
    font-weight: 700;
}

/* تگ‌های ویژگی */
.card-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 15px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.card-tags span {
    font-size: 0.72rem;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
}

/* دکمه سفارش */
.card-btn {
    display: block;
    margin: 15px;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f1f5f9;
    color: var(--primary-dark);
}

.card-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.25);
}

.plan-card-v2.popular .card-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 5px 20px rgba(26, 35, 126, 0.3);
}

.plan-card-v2.popular .card-btn:hover {
    box-shadow: 0 12px 35px rgba(26, 35, 126, 0.4);
}

.plan-card-v2.enterprise .card-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
}

.plan-card-v2.enterprise .card-btn:hover {
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

/* =====================================================
   ویژگی‌های مشترک پلن‌ها
   ===================================================== */
.common-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, var(--light), #C5CAE9);
    border-radius: 16px;
}

.common-features .feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.common-features .feat svg {
    width: 18px;
    height: 18px;
    color: #059669;
}

/* =====================================================
   ویژگی‌ها — گرید ۳ تایی
   ===================================================== */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-box {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.12);
    border-color: var(--primary);
}

.feature-icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light), #C5CAE9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon {
    font-size: 2.2rem;
}

.feature-box h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.feature-box p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   سکشن تاریک (دیتاسنتر)
   ===================================================== */
.section-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 50%, var(--primary) 100%);
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-badge-light {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===== دیتاسنتر گرید ===== */
.dc-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.dc-main-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.dc-flag {
    font-size: 4rem;
    margin-bottom: 15px;
}

.dc-main-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.dc-main-card p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

.dc-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.dc-stat {
    text-align: center;
}

.dc-stat-num {
    display: block;
    font-family: var(--font-num);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbbf24;
}

.dc-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.dc-specs-card,
.dc-certs-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
}

.dc-specs-card h4,
.dc-certs-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.dc-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-specs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dc-specs-list li:last-child {
    border-bottom: none;
}

.spec-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}

.spec-title {
    flex: 1;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.spec-val {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* گواهینامه‌ها */
.certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cert-item {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.cert-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.cert-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =====================================================
   سیستم‌عامل‌ها
   ===================================================== */
.os-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.os-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.os-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.12);
}

.os-logo {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.os-card h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 5px;
}

.os-versions {
    font-size: 0.75rem;
    color: #64748b;
}

/* =====================================================
   موارد استفاده
   ===================================================== */
.usecases-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.usecase-box {
    background: linear-gradient(135deg, #f8fafc, #fff);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.usecase-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.1);
    border-color: var(--primary);
}

.usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.usecase-box h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.usecase-box p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.usecase-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--light), #C5CAE9);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =====================================================
   جدول مقایسه با رقبا
   ===================================================== */
.compare-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(26, 35, 126, 0.1);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 700px;
}

.compare-table th,
.compare-table td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.compare-table th {
    background: #f8fafc;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: right;
    padding-right: 30px;
}

.compare-table tbody tr:hover {
    background: #f8fafc;
}

.compare-table .highlight-col {
    background: linear-gradient(180deg, rgba(57, 73, 171, 0.08), rgba(57, 73, 171, 0.03));
}

.compare-table th.highlight-col {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.our-badge {
    display: inline-block;
    margin-left: 5px;
}

.compare-table .check {
    color: #22c55e;
    font-weight: 700;
}

.compare-table .partial {
    color: #f59e0b;
}

.compare-table .cross {
    color: #ef4444;
}

.price-highlight {
    color: var(--primary);
    font-family: var(--font-num);
}

/* =====================================================
   سوالات متداول (FAQ)
   ===================================================== */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(57, 73, 171, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(57, 73, 171, 0.1);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(57, 73, 171, 0.15);
}

.faq-question {
    width: 100%;
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
    transition: all 0.3s ease;
    gap: 15px;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--light);
    border-radius: 50%;
    padding: 6px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: #475569;
    line-height: 1.9;
    font-size: 1rem;
    margin: 0;
}

/* =====================================================
   CTA (Call to Action)
   ===================================================== */
.section-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 50%, var(--primary) 100%);
    position: relative;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-box {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 0;
}

.cta-box h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* =====================================================
   ریسپانسیو
   ===================================================== */

/* تبلت بزرگ */
@media (max-width: 1200px) {
    .plans-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-card-v2.popular {
        transform: none;
    }
    
    .plan-card-v2.popular:hover {
        transform: translateY(-8px);
    }
}

/* تبلت */
@media (max-width: 1024px) {
    .features-grid-3,
    .usecases-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dc-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .os-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* موبایل */
@media (max-width: 768px) {
    /* پلن‌ها */
    .plans-grid-4 {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto 30px;
    }
    
    .price-num {
        font-size: 1.3rem;
    }
    
    /* ویژگی‌ها */
    .features-grid-3,
    .usecases-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .feature-box,
    .usecase-box {
        padding: 25px 20px;
    }
    
    /* سیستم‌عامل */
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .os-card {
        padding: 20px 10px;
    }
    
    .os-logo {
        font-size: 2rem;
    }
    
    /* دیتاسنتر */
    .dc-main-card {
        padding: 30px 20px;
    }
    
    .dc-flag {
        font-size: 3rem;
    }
    
    .dc-stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .dc-stat-num {
        font-size: 1.5rem;
    }
    
    .certs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* ویژگی‌های مشترک */
    .common-features {
        gap: 12px;
        padding: 20px 15px;
    }
    
    .common-features .feat {
        font-size: 0.8rem;
    }
    
    /* جدول مقایسه */
    .compare-table th,
    .compare-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.9rem;
    }
    
    /* CTA */
    .cta-box h2 {
        font-size: 1.4rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* بردکرامب */
    .hero-breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .plans-grid-4 {
        max-width: 100%;
    }
    
    .card-head {
        padding: 20px 15px 12px;
    }
    
    .card-name {
        font-size: 1.1rem;
    }
    
    .card-price {
        padding: 15px;
    }
    
    .card-specs {
        padding: 12px 15px;
    }
    
    .card-specs li {
        padding: 8px 0;
        font-size: 0.82rem;
    }
    
    .card-btn {
        margin: 12px;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .dc-specs-card,
    .dc-certs-card {
        padding: 20px 15px;
    }
}

/* =====================================================
   انیمیشن‌ها
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card-v2,
.feature-box,
.usecase-box,
.os-card {
    animation: fadeInUp 0.6s ease forwards;
}

.plan-card-v2:nth-child(1) { animation-delay: 0.1s; }
.plan-card-v2:nth-child(2) { animation-delay: 0.2s; }
.plan-card-v2:nth-child(3) { animation-delay: 0.3s; }
.plan-card-v2:nth-child(4) { animation-delay: 0.4s; }

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.15s; }
.feature-box:nth-child(3) { animation-delay: 0.2s; }
.feature-box:nth-child(4) { animation-delay: 0.25s; }
.feature-box:nth-child(5) { animation-delay: 0.3s; }
.feature-box:nth-child(6) { animation-delay: 0.35s; }