/* Membership Modal Styles */
.membership-modal {
    max-width: 900px !important;
    width: 95% !important;
}

.membership-plans {
    padding: 1rem;
}

.plans-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plans-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #E31E24;
}

.plans-header p {
    color: #666;
    font-size: 1.1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border-color: #E31E24;
    transform: scale(1.05);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #E31E24, #cc1b20);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.plan-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.2rem;
    color: #6b7280;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #E31E24;
}

.interval {
    font-size: 1rem;
    color: #6b7280;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: #10b981;
    font-size: 0.875rem;
}

.select-plan-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-plan-btn:hover {
    background: #e5e7eb;
}

.select-plan-btn.primary {
    background: linear-gradient(135deg, #E31E24, #cc1b20);
    color: white;
}

.select-plan-btn.primary:hover {
    background: linear-gradient(135deg, #cc1b20, #b91c1c);
}

.security-info {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 2rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.security-badge i {
    color: #10b981;
}

.security-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Membership Management Styles */
.membership-management {
    padding: 1rem;
}

.management-header {
    text-align: center;
    margin-bottom: 2rem;
}

.management-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #E31E24;
}

.management-header p {
    color: #666;
    font-size: 1.1rem;
}

.current-plan-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.plan-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-status-header h4 {
    margin: 0;
    color: #1f2937;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.current-plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.plan-info h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E31E24;
    margin-bottom: 0.5rem;
}

.expires-at {
    color: #6b7280;
    font-size: 0.9rem;
}

.plan-features-mini h6 {
    margin-bottom: 1rem;
    color: #374151;
}

.plan-features-mini ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features-mini li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.management-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #E31E24, #cc1b20);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #cc1b20, #b91c1c);
}

.action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.action-btn.secondary:hover {
    background: #e5e7eb;
}

.management-info {
    text-align: center;
}

.info-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 2rem;
}

.info-card h5 {
    margin-bottom: 1rem;
    color: #9a3412;
}

.info-card p {
    color: #c2410c;
    margin-bottom: 1.5rem;
}

.support-btn {
    background: #ea580c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.support-btn:hover {
    background: #dc2626;
}

/* Membership Badge Styles */
.membership-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.membership-badge.active {
    background: linear-gradient(135deg, #E31E24, #cc1b20);
    color: white;
}

/* Card Input Styles */
.card-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.card-input-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-payment-btn {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.process-payment-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #E31E24, #cc1b20);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.process-payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-modal {
        width: 95% !important;
        max-height: 95vh;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card.recommended {
        transform: none;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .current-plan-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .management-actions {
        flex-direction: column;
    }
    
    .plan-status-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .plans-header h3 {
        font-size: 1.5rem;
    }
    
    .management-header h3 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
}
