/* Reboot Mental Checkout - Premium Style */

:root {
    --reboot-primary: #6366f1;
    --reboot-primary-dark: #4f46e5;
    --reboot-success: #10b981;
    --reboot-dark: #0f172a;
    --reboot-gray: #64748b;
    --reboot-light: #f8fafc;
    --reboot-border: rgba(255, 255, 255, 0.1);
    --reboot-glass: rgba(255, 255, 255, 0.05);
    --reboot-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Container principal */
.reboot-checkout-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reboot-checkout-container {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(15, 15, 25, 0.98));
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--reboot-border);
    box-shadow: var(--reboot-shadow);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.reboot-checkout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--reboot-primary), #a855f7, var(--reboot-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header */
.checkout-header {
    text-align: center;
    margin-bottom: 32px;
}

.checkout-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.checkout-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.checkout-subtitle {
    color: var(--reboot-gray);
    font-size: 15px;
    margin: 0;
}

/* Pricing */
.checkout-pricing {
    text-align: center;
    padding: 24px;
    background: var(--reboot-glass);
    border-radius: 16px;
    border: 1px solid var(--reboot-border);
    margin-bottom: 24px;
}

.price-crossed {
    color: #ef4444;
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: 4px;
}

.price-current {
    color: white;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 28px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 4px;
}

.price-savings {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--reboot-success);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

/* Includes */
.checkout-includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.include-icon {
    color: var(--reboot-success);
    font-weight: bold;
}

/* Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-color: var(--reboot-primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-method {
    cursor: pointer;
}

.payment-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.payment-method.active .payment-method-content,
.payment-method:has(input:checked) .payment-method-content {
    border-color: var(--reboot-primary);
    background: rgba(99, 102, 241, 0.1);
    color: white;
}

.payment-icons svg {
    width: 24px;
    height: 24px;
}

/* Card Element */
.card-element-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.3s ease;
}

.card-element-container:focus-within {
    border-color: var(--reboot-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

#card-element {
    padding: 4px 0;
}

.card-errors {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

/* PayPal Container */
.paypal-container {
    min-height: 55px;
}

/* Submit Button */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--reboot-primary), var(--reboot-primary-dark));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-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;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

.checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Security */
.checkout-security {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 8px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.security-item svg {
    width: 14px;
    height: 14px;
}

/* Guarantee */
.checkout-guarantee {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
}

.guarantee-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.guarantee-text {
    flex: 1;
}

.guarantee-text strong {
    color: var(--reboot-success);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.guarantee-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Success Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.98), rgba(15, 15, 25, 1));
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--reboot-border);
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: white;
    font-size: 24px;
    margin: 0 0 12px 0;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.modal-email {
    color: var(--reboot-primary) !important;
    font-weight: 600;
    margin-top: 12px !important;
}

.modal-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--reboot-primary), var(--reboot-primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 540px) {
    .reboot-checkout-container {
        padding: 28px 24px;
        border-radius: 20px;
    }
    
    .checkout-title {
        font-size: 20px;
    }
    
    .price-current {
        font-size: 48px;
    }
    
    .checkout-includes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .checkout-security {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .checkout-guarantee {
        flex-direction: column;
        text-align: center;
    }
}

/* Light mode override (si le site est en mode clair) */
@media (prefers-color-scheme: light) {
    /* Garde le mode sombre pour le checkout - c'est plus premium */
}
