/* ============================================================================
   Stripe Checkout Modal - Transport-Börse
   ============================================================================ */

.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.checkout-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.1);
    animation: slideUp 0.4s ease;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-header h2 i {
    color: #00d4ff;
}

.checkout-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkout-close:hover {
    background: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Amount Display */
.checkout-info {
    margin-bottom: 24px;
}

.checkout-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.checkout-amount .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.checkout-amount .value {
    color: #00d4ff;
    font-size: 1.6rem;
    font-weight: 700;
}

.checkout-escrow-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
}

.checkout-escrow-info i {
    color: #2ed573;
    font-size: 1.2rem;
    margin-top: 2px;
}

.checkout-escrow-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Loading */
.checkout-loading {
    text-align: center;
    padding: 40px 0;
}

.checkout-loading p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    font-size: 0.9rem;
}

/* Stripe Payment Element */
#payment-element {
    margin: 20px 0;
    min-height: 200px;
}

/* Error */
.checkout-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ff4757;
    font-size: 0.9rem;
    margin: 12px 0;
}

/* Submit Button */
.checkout-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 16px;
}

.checkout-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.checkout-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer badges */
.checkout-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.checkout-badges span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkout-badges i {
    font-size: 0.8rem;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Responsive */
@media (max-width: 600px) {
    .checkout-modal {
        padding: 20px;
        margin: 10px;
        border-radius: 16px;
    }
    
    .checkout-amount .value {
        font-size: 1.3rem;
    }
    
    .checkout-badges {
        gap: 10px;
    }
}

/* ============================================================================
   Payment Success Page Styles
   ============================================================================ */

.payment-success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.payment-success-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(46, 213, 115, 0.15);
    border: 2px solid #2ed573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #2ed573;
    animation: scaleIn 0.5s ease;
}

.payment-success-card h1 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.payment-success-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.escrow-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions a {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
}

.success-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================================================
   Onboarding Styles (Speditions-Onboarding)
   ============================================================================ */

.onboarding-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.onboarding-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.onboarding-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.onboarding-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.onboarding-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.step-number.active {
    background: #00d4ff;
    color: #ffffff;
}

.step-number.done {
    background: #2ed573;
    color: #ffffff;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.onboarding-form label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.onboarding-form input,
.onboarding-form select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.onboarding-form input:focus,
.onboarding-form select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.onboarding-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.onboarding-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}
