/* ===== SUBSCRIPTION PAGE ===== */

.subscription-page {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: #0a0a0a;
}

.subscription-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.page-title i {
    color: #ffd700;
    font-size: 38px;
}

.page-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===== Coupon Section ===== */
.coupon-section {
    margin-bottom: 60px;
}

.coupon-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(178, 7, 16, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.coupon-card:hover {
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.coupon-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e50914, #b20710);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    flex-shrink: 0;
}

.coupon-content {
    flex: 1;
}

.coupon-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.coupon-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.coupon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

/* ===== Plans Section ===== */
.plans-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 40px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.loading-plans {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 20px;
}

.loading-plans .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-plans p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Plan Card ===== */
.plan-card {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    padding: 35px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.featured {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 184, 0, 0.05));
}

.plan-card.featured::before {
    content: "الأكثر شعبية";
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #e50914;
}

.price-currency {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.plan-duration {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 0 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-features li i {
    color: #4caf50;
    font-size: 18px;
}

.plan-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.plan-card.featured .plan-btn {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #000;
}

.plan-card.featured .plan-btn:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* ===== Features Section ===== */
.features-section {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-3px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(178, 7, 16, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #e50914;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.feature-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* ===== Coupon Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: #e50914;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px 25px;
}

.modal-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0 0 25px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 10px;
}

.form-group label i {
    color: #e50914;
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #e50914;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.coupon-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.coupon-info i {
    color: #17a2b8;
    font-size: 16px;
}

/* ===== Spinner ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .subscription-page {
        padding: 70px 15px 30px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-title i {
        font-size: 28px;
    }
    
    .page-description {
        font-size: 16px;
    }
    
    .coupon-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}
