/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Elements */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: -1;
}

/* Main Container */
.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #00a8ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #00a8ff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(0,255,136,0.2);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #00ff88;
}

.save-badge {
    background: rgba(0,255,136,0.2);
    color: #00ff88;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid #00a8ff;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #00a8ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-size: 2.5rem;
    margin: 20px 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.features {
    list-style: none;
    margin-bottom: 30px;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features i {
    color: #00ff88;
}

.select-plan-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #00a8ff;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-plan-btn:hover {
    background: #0088cc;
    transform: translateY(-2px);
}

/* Payment Section */
.payment-section {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.payment-summary {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
}

.plan-details,
.total-amount {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.payment-methods h2 {
    margin-bottom: 20px;
}

.payment-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.payment-option.active {
    background: #00a8ff;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
}

.payment-form input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pay-now-btn {
    width: 100%;
    padding: 15px;
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.pay-now-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 5rem;
    color: #00ff88;
    margin-bottom: 30px;
}

.goto-dashboard-btn {
    margin-top: 30px;
    padding: 15px 30px;
    background: #00a8ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.goto-dashboard-btn:hover {
    background: #0088cc;
    transform: translateY(-2px);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .payment-options {
        flex-direction: column;
    }
}