.payment-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .payment-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
}

.payment-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.payment-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: #888888;
    font-size: 1.1rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.payment-form {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    flex-direction: column;
}

.payment-method:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.method-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.payment-method.active .method-icon {
    background: #ffffff;
    color: #000000;
}

.payment-method span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
}

.card-section {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.card-element-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: border-color 0.3s ease;
}

.card-element-container:focus-within {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

#card-element {
    padding: 0.25rem 0;
}

#card-errors {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.billing-section {
    margin-bottom: 2rem;
}

.input-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.input-row.three-col {
    grid-template-columns: 2fr 1fr 1fr;
}

.input-group input,
.input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.input-group input::placeholder {
    color: #666666;
}

.pay-button {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.pay-button:active {
    transform: translateY(0);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

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

.order-summary {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.summary-item {
    margin-bottom: 1.5rem;
}

.item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.item-info p {
    font-size: 0.875rem;
    color: #888888;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888888;
}

.badge svg {
    color: #ffffff;
}

#apple-section,
#google-section {
    display: none;
}

@media (max-width: 1024px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .payment-container {
        padding: 100px 0 60px;
    }
    
    .payment-content {
        padding: 0 1rem;
    }
    
    .payment-header h1 {
        font-size: 2rem;
    }
    
    .payment-form,
    .order-summary {
        padding: 1.5rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .input-row.two-col,
    .input-row.three-col {
        grid-template-columns: 1fr;
    }
}