/**
 * Golden Hosting Services - New Card Style
 * تصميم جديد كامل لكارت الخدمة
 */

/* ========================================
   Tabs Navigation - التابات
======================================== */

.ghs-tabs-navigation {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e7eb;
    background: #fff;
    padding: 0 20px;
    border-radius: 8px 8px 0 0;
}

.ghs-tab-link {
    padding: 15px 30px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.ghs-tab-link:hover {
    color: #3b82f6;
    background: #f3f4f6;
}

.ghs-tab-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #eff6ff;
}

/* Recharge Button */
.ghs-recharge-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
}

.ghs-recharge-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Wallet History Section */
.ghs-wallet-history-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ghs-wallet-history-section h2 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
}

.ghs-wallet-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ghs-wallet-balance-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
}

.wallet-amount {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
}

/* Transactions Table */
.ghs-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ghs-transactions-table thead {
    background: #f9fafb;
}

.ghs-transactions-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.ghs-transactions-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.ghs-transactions-table tbody tr:hover {
    background: #f9fafb;
}

.transaction-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.transaction-badge.transaction-credit {
    background: #d1fae5;
    color: #065f46;
}

.transaction-badge.transaction-debit {
    background: #fee2e2;
    color: #991b1b;
}

.amount-credit {
    color: #059669;
    font-weight: 600;
}

.amount-debit {
    color: #dc2626;
    font-weight: 600;
}

.ghs-no-transactions {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.ghs-no-transactions p {
    font-size: 16px;
    margin: 0;
}

/* ========================================
   Service Card - البطاقة الرئيسية
======================================== */

.ghs-subscription-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ghs-subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* ========================================
   Card Header - رأس البطاقة
======================================== */

.ghs-card-header {
    /* Background controlled by Color Settings */
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ghs-card-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ghs-card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ghs-service-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ghs-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.ghs-status-badge.ghs-status-active {
    background: #10b981;
    color: #ffffff;
}

.ghs-status-badge.ghs-status-expired {
    background: #ef4444;
    color: #ffffff;
}

.ghs-status-badge.ghs-status-cancelled {
    background: #6b7280;
    color: #ffffff;
}

/* ========================================
   Domain Section - قسم الدومين
======================================== */

.ghs-domain-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.ghs-domain-section.has-domain {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ghs-domain-section.no-domain {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ghs-domain-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ghs-domain-icon-wrapper .ghs-icon {
    font-size: 28px;
}

.ghs-domain-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ghs-domain-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ghs-domain-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-all;
    margin-bottom: 8px;
}

.ghs-domain-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 6px;
}

.ghs-domain-type-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ========================================
   Card Body - محتوى البطاقة
======================================== */

.ghs-card-body {
    padding: 24px;
}

/* ========================================
   Specifications Grid - شبكة المواصفات
======================================== */

.ghs-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ghs-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ghs-spec-item:hover {
    background: #f3f4f6;
    transform: translateX(3px);
}

.ghs-spec-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ghs-spec-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ghs-spec-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.ghs-spec-value {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Dates Section - قسم التواريخ
======================================== */

.ghs-dates-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 16px;
}

.ghs-date-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.ghs-date-box.expiring {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ghs-date-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ghs-date-value {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.ghs-date-separator {
    color: #9ca3af;
    font-size: 20px;
    font-weight: 700;
}

/* ========================================
   Alert - تنبيه
======================================== */

.ghs-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ghs-alert-warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
}

.ghs-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ghs-alert-text {
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   Card Footer - تذييل البطاقة
======================================== */

.ghs-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    gap: 20px;
    flex-wrap: wrap;
}

.ghs-footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ghs-price-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ghs-price-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.ghs-price-value {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

/* ========================================
   Auto-Renewal Switch - مفتاح التجديد التلقائي
======================================== */

.ghs-auto-renewal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ghs-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.ghs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ghs-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.ghs-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .ghs-slider {
    background-color: #10b981;
}

input:checked + .ghs-slider:before {
    transform: translateX(22px);
}

.ghs-switch-label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   Action Buttons - أزرار الإجراءات
======================================== */

.ghs-footer-actions {
    display: flex;
    gap: 10px;
}

.ghs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ghs-btn-renew {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.ghs-btn-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.ghs-btn-details {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ghs-btn-details:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.ghs-btn-icon {
    font-size: 16px;
}

/* ========================================
   Responsive - التصميم المتجاوب
======================================== */

@media (max-width: 768px) {
    .ghs-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ghs-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .ghs-dates-section {
        flex-direction: column;
    }
    
    .ghs-date-separator {
        transform: rotate(90deg);
    }
    
    .ghs-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ghs-footer-left {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .ghs-footer-actions {
        width: 100%;
    }
    
    .ghs-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   Grid Layout - تخطيط الشبكة
======================================== */

.ghs-subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .ghs-subscriptions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Services Header & Status Filter
======================================== */

.ghs-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ghs-services-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.ghs-status-filter {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ghs-filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.ghs-filter-btn:hover {
    color: #3b82f6;
    background: #eff6ff;
    text-decoration: none;
}

.ghs-filter-btn.active {
    color: #ffffff;
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .ghs-services-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ghs-status-filter {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .ghs-filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ========================================
   Withdrawal Modal - نموذج السحب
======================================== */

.ghs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.ghs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.ghs-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.ghs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.ghs-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.ghs-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ghs-modal-close:hover {
    color: #333;
}

.ghs-modal-content form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.ghs-withdraw-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
    text-decoration: none;
}

.ghs-withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ghs-wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ========================================
   Wallet Section - قسم المحفظة المنفصل
======================================== */

.ghs-wallet-section {
    margin-top: 20px;
}

.ghs-wallet-section .ghs-wallet-card {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px;
    gap: 20px;
}

.ghs-wallet-section .ghs-stat-icon {
    font-size: 52px;
    margin-right: 25px;
    line-height: 1;
}

.ghs-wallet-section .ghs-stat-info {
    flex: 1;
}

.ghs-wallet-section .ghs-stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.ghs-wallet-section .ghs-stat-info p {
    margin: 0;
    font-size: 16px;
}

.ghs-wallet-section .ghs-wallet-actions {
    display: flex;
    gap: 15px;
    margin: 0;
    margin-left: auto;
    align-items: center;
    flex-shrink: 0;
}

/* تنسيق موحد للأزرار */
.ghs-wallet-section .ghs-recharge-btn,
.ghs-wallet-section .ghs-withdraw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 52px;
    padding: 0 30px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}

/* زر Recharge */
.ghs-wallet-section .ghs-recharge-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ghs-wallet-section .ghs-recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* زر Withdraw */
.ghs-wallet-section .ghs-withdraw-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.ghs-wallet-section .ghs-withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Responsive للمحفظة */
@media (max-width: 768px) {
    .ghs-wallet-section .ghs-wallet-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .ghs-wallet-section .ghs-stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .ghs-wallet-section .ghs-wallet-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        flex-direction: column;
    }
    
    .ghs-wallet-section .ghs-recharge-btn,
    .ghs-wallet-section .ghs-withdraw-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* ========================================
   Transaction Status Badges
======================================== */

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   Renewal Plans Modal - بوب اب التجديد
======================================== */

.ghs-renewal-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ghs-renewal-modal-content .ghs-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ghs-renewal-modal-content .ghs-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.ghs-renewal-modal-content .ghs-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ghs-renewal-modal-content .ghs-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#ghs-renewal-plans-container {
    padding: 30px;
}

.ghs-renewal-plans {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ghs-subscription-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-bottom: 10px;
}

.ghs-subscription-info .ghs-product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.ghs-subscription-info .ghs-current-end-date {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.ghs-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ghs-plan-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ghs-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ghs-plan-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.ghs-plan-card:hover::before {
    transform: scaleX(1);
}

/* Current plan styling */
.ghs-plan-card.ghs-plan-current {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.ghs-plan-card.ghs-plan-current::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(1);
}

.ghs-plan-card.ghs-plan-current .ghs-plan-price .ghs-amount {
    color: #10b981;
}

.ghs-plan-card.ghs-plan-current .ghs-select-plan-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ghs-plan-card.ghs-plan-current .ghs-select-plan-btn:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.ghs-plan-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.ghs-plan-price {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ghs-plan-price .ghs-currency {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
}

.ghs-plan-price .ghs-amount {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.ghs-select-plan-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.ghs-select-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ghs-select-plan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ghs-cancel-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ghs-cancel-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.ghs-error-message {
    padding: 20px;
    background: #fee2e2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
    font-weight: 600;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ghs-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .ghs-renewal-modal-content {
        width: 95%;
    }
    
    .ghs-renewal-modal-content .ghs-modal-header {
        padding: 20px;
    }
    
    .ghs-renewal-modal-content .ghs-modal-header h2 {
        font-size: 20px;
    }
    
    #ghs-renewal-plans-container {
        padding: 20px;
    }
}

/* ========================================
   Cart Item Details - تفاصيل المنتج في السلة
======================================== */

.woocommerce-cart-form .cart_item dl.variation {
    margin: 15px 0 0 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.woocommerce-cart-form .cart_item dl.variation dt,
.woocommerce-checkout-review-order dl.variation dt {
    font-weight: 700;
    color: #374151;
    margin: 8px 0 4px 0;
    font-size: 14px;
    display: block;
}

.woocommerce-cart-form .cart_item dl.variation dd,
.woocommerce-checkout-review-order dl.variation dd {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.woocommerce-cart-form .cart_item dl.variation dd:last-child,
.woocommerce-checkout-review-order dl.variation dd:last-child {
    margin-bottom: 0;
}

/* تنسيق خاص للعناوين الرئيسية */
.woocommerce-cart-form .cart_item dl.variation dt strong,
.woocommerce-checkout-review-order dl.variation dt strong {
    color: #111827;
    font-size: 15px;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 2px solid #3b82f6;
}

/* تنسيق الأسعار */
.woocommerce-cart-form .cart_item dl.variation dd .woocommerce-Price-amount,
.woocommerce-checkout-review-order dl.variation dd .woocommerce-Price-amount {
    font-weight: 700;
    color: #10b981;
    font-size: 15px;
}

/* فاصل بصري بين الأقسام */
.woocommerce-cart-form .cart_item dl.variation dt:not(:first-child),
.woocommerce-checkout-review-order dl.variation dt:not(:first-child) {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

/* تحسين عرض الدومين */
.woocommerce-cart-form .cart_item dl.variation dd p,
.woocommerce-checkout-review-order dl.variation dd p {
    margin: 0;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

/* Checkout page styling */
.woocommerce-checkout-review-order dl.variation {
    margin: 10px 0 0 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* تحسين عرض الإجمالي */
.woocommerce-cart-form .product-subtotal,
.woocommerce-checkout-review-order .product-total {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
}

/* RTL Support - دعم اللغة العربية */
.woocommerce-cart-form .cart_item dl.variation dd,
.woocommerce-checkout-review-order dl.variation dd {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

/* Keep price calculation readable in RTL */
.woocommerce-cart-form .cart_item dl.variation dd .woocommerce-Price-amount,
.woocommerce-checkout-review-order dl.variation dd .woocommerce-Price-amount {
    direction: ltr;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-cart-form .cart_item dl.variation {
        padding: 12px;
    }
    
    .woocommerce-cart-form .cart_item dl.variation dt,
    .woocommerce-cart-form .cart_item dl.variation dd {
        font-size: 13px;
    }
}
