/* Payment Page Styles */
.payment-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0A0B1A 0%, #1A1B3A 50%, #0A0B1A 100%);
    position: relative;
    overflow-x: hidden;
}

.payment-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(100, 52, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 52, 191, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.payment-container {
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
}

.payment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.payment-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6434BF, #8B5CF6, #6434BF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.price-card:hover::before,
.price-card.selected::before {
    transform: scaleX(1);
}

.price-card.featured {
    border-color: rgba(100, 52, 191, 0.3);
    box-shadow: 0 20px 40px rgba(100, 52, 191, 0.2);
}

.price-card.selected {
    border-color: #6434BF;
    box-shadow: 0 0 30px rgba(100, 52, 191, 0.4);
    transform: translateY(-5px);
}

.save-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.price-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.price-features i {
    color: #10B981;
    font-size: 0.9rem;
    width: 16px;
}

.price-features i.fa-star {
    color: #F59E0B;
}

.payment-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6434BF 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-btn.featured {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.payment-btn:hover::before {
    left: 100%;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 52, 191, 0.4);
}

.payment-btn.featured:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Payment Form */
.payment-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.payment-form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-form-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.selected-plan {
    color: #6434BF;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #6434BF;
    box-shadow: 0 0 0 3px rgba(100, 52, 191, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.stripe-input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stripe-input:focus-within {
    border-color: #6434BF;
    box-shadow: 0 0 0 3px rgba(100, 52, 191, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

#card-errors {
    color: #EF4444;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.payment-submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #6434BF 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.payment-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 52, 191, 0.4);
}

.payment-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.payment-security i {
    color: #10B981;
}

/* Promo Code Styles */
.form-group {
    position: relative;
}

.apply-promo-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #6434BF 0%, #8B5CF6 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.apply-promo-btn:hover {
    background: linear-gradient(135deg, #5A2BA6 0%, #7C3AED 100%);
    transform: translateY(-50%) translateY(-1px);
}

#promo-code {
    padding-right: 80px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .payment-container {
        padding: 5rem 1rem 2rem 1rem;
    }
    
    .payment-header h1 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .price-card {
        padding: 2rem 1.5rem;
    }
    
    .payment-form-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .payment-form-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .payment-container {
        padding: 4rem 1rem 1rem 1rem;
    }
    
    .payment-header h1 {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .payment-form-card {
        padding: 1.5rem 1rem;
    }
}
