/* الحاوية الرئيسية */
.nph-hosting-plan-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* قسم التفاصيل */
.nph-hosting-plan-details {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 35px;
}

/* شبكة العرض */
.nph-hosting-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* عنصر التفاصيل (الكارد) */
.nph-hosting-plan-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nph-hosting-plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

/* التسمية مع الأيقونات */
.nph-hosting-plan-label {
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 1.1em;
}

/* القيمة */
.nph-hosting-plan-value {
    color: #475569;
    font-size: 1em;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
}

/* الروابط داخل القيمة */
.nph-hosting-plan-value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

.nph-hosting-plan-value a:hover {
    color: #ffffff;
    background: #007bff;
    text-decoration: none;
}

/* كارد الإحالة المنفصل */
.nph-hosting-plan-affiliate-card {
    grid-column: 1 / -1; /* يمتد عبر كامل الشبكة */
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nph-hosting-plan-affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

/* زر الإحالة */
.nph-hosting-plan-affiliate-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.nph-hosting-plan-affiliate-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    color: #ffffff;
}

/* الأيقونات */
.nph-plan-icon-provider_name::before { content: "\f1ad"; font-family: "Font Awesome 6 Free"; color: #007bff; }
.nph-plan-icon-first_year_price::before { content: "\f155"; font-family: "Font Awesome 6 Free"; color: #2ecc71; }
.nph-plan-icon-renewal_price::before { content: "\f155"; font-family: "Font Awesome 6 Free"; color: #e63946; }
.nph-plan-icon-free_domain::before { content: "\f0ac"; font-family: "Font Awesome 6 Free"; color: #ff6b6b; }
.nph-plan-icon-allowed_websites::before { content: "\f0c5"; font-family: "Font Awesome 6 Free"; color: #7209b7; }
.nph-plan-icon-email_accounts::before { content: "\f0e0"; font-family: "Font Awesome 6 Free"; color: #f4a261; }
.nph-plan-icon-bandwidth::before { content: "\f362"; font-family: "Font Awesome 6 Free"; color: #457b9d; }
.nph-plan-icon-control_panel::before { content: "\f085"; font-family: "Font Awesome 6 Free"; color: #f72585; }
.nph-plan-icon-automatic_backups::before { content: "\f019"; font-family: "Font Awesome 6 Free"; color: #ffbe0b; }
.nph-plan-icon-free_ssl::before { content: "\f023"; font-family: "Font Awesome 6 Free"; color: #00b67a; }
.nph-plan-icon-monthly_visits::before { content: "\f201"; font-family: "Font Awesome 6 Free"; color: #636e72; }
.nph-plan-icon-inodes::before { content: "\f15b"; font-family: "Font Awesome 6 Free"; color: #e76f51; }
.nph-plan-icon-refund_timeframe::before { content: "\f017"; font-family: "Font Awesome 6 Free"; color: #fb5607; }
.nph-plan-icon-affiliate_link::before { content: "\f0c1"; font-family: "Font Awesome 6 Free"; color: #ffd60a; }
.nph-plan-icon-monthly_price::before { content: "\f155"; font-family: "Font Awesome 6 Free"; color: #2ecc71; }
.nph-plan-icon-setup_fee::before { content: "\f0d6"; font-family: "Font Awesome 6 Free"; color: #e63946; }
.nph-plan-icon-root_access::before { content: "\f084"; font-family: "Font Awesome 6 Free"; color: #7209b7; }
.nph-plan-icon-managed::before { content: "\f013"; font-family: "Font Awesome 6 Free"; color: #f72585; }
.nph-plan-icon-dedicated_ip::before { content: "\f2db"; font-family: "Font Awesome 6 Free"; color: #457b9d; }
.nph-plan-icon-virtualization_type::before { content: "\f0c2"; font-family: "Font Awesome 6 Free"; color: #52b788; }
.nph-plan-icon-processor::before { content: "\f2db"; font-family: "Font Awesome 6 Free"; color: #ff6b6b; }
.nph-plan-icon-processor_cores::before { content: "\f0e8"; font-family: "Font Awesome 6 Free"; color: #007bff; }
.nph-plan-icon-processor_speed::before { content: "\f0e7"; font-family: "Font Awesome 6 Free"; color: #e63946; }
.nph-plan-icon-memory_amount::before { content: "\f538"; font-family: "Font Awesome 6 Free"; color: #2ecc71; }
.nph-plan-icon-memory_ecc::before { content: "\f2ea"; font-family: "Font Awesome 6 Free"; color: #f4a261; }
.nph-plan-icon-hard_type::before { content: "\f0a0"; font-family: "Font Awesome 6 Free"; color: #ffbe0b; }
.nph-plan-icon-hard_capacity::before { content: "\f0a0"; font-family: "Font Awesome 6 Free"; color: #00b67a; }
.nph-plan-icon-uplink::before { content: "\f0c5"; font-family: "Font Awesome 6 Free"; color: #636e72; }
.nph-plan-icon-payment_methods::before { content: "\f09d"; font-family: "Font Awesome 6 Free"; color: #e76f51; }
.nph-plan-icon-operating_systems::before { content: "\f17c"; font-family: "Font Awesome 6 Free"; color: #fb5607; }
.nph-plan-icon-snapshot::before { content: "\f030"; font-family: "Font Awesome 6 Free"; color: #ffd60a; }
.nph-plan-icon-backup::before { content: "\f019"; font-family: "Font Awesome 6 Free"; color: #f72585; }
.nph-plan-icon-locations::before { content: "\f3c5"; font-family: "Font Awesome 6 Free"; color: #007bff; }

/* قسم المواقع */
.nph-hosting-plan-locations {
    flex-direction: column;
    align-items: flex-start;
}

.nph-hosting-plan-locations-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    width: 100%;
}

.nph-hosting-plan-locations-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    color: #475569;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    position: relative;
    padding-left: 20px;
}

.nph-hosting-plan-locations-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* دعم RTL */
[dir="rtl"] .nph-hosting-plan-container {
    text-align: right;
}

[dir="rtl"] .nph-hosting-plan-item {
    text-align: right;
}

[dir="rtl"] .nph-hosting-plan-locations {
    align-items: flex-end;
}

[dir="rtl"] .nph-hosting-plan-locations-list li {
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .nph-hosting-plan-locations-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .nph-hosting-plan-affiliate-card {
    text-align: center;
}

/* الاستجابة */
@media (max-width: 768px) {
    .nph-hosting-plan-grid {
        grid-template-columns: 1fr;
    }
    .nph-hosting-plan-details {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .nph-hosting-plan-container {
        padding: 15px;
    }
    .nph-hosting-plan-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    [dir="rtl"] .nph-hosting-plan-item {
        align-items: flex-start;
    }
    .nph-hosting-plan-affiliate-btn {
        font-size: 1em;
        padding: 10px 20px;
    }
}