﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Unified Onboarding Checkout Styles
 * Professional, conversion-optimized checkout flow with cinematic amber theme
 */

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
    /* Color Palette - Cinematic Amber Theme */
    --checkout-primary: #c9a962;
    --checkout-primary-light: #d4b974;
    --checkout-primary-dark: #b8973f;
    --checkout-secondary: #2d1f14;
    --checkout-success: #10b981;
    --checkout-success-light: #34d399;
    --checkout-error: #ef4444;
    --checkout-warning: #f59e0b;
    
    /* Backgrounds */
    --checkout-bg-body: #faf9f7;
    --checkout-bg-card: #ffffff;
    --checkout-bg-muted: #f5f4f1;
    --checkout-bg-accent: rgba(201, 169, 98, 0.08);
    
    /* Text Colors */
    --checkout-text-primary: #1a1815;
    --checkout-text-secondary: #4a473f;
    --checkout-text-muted: #706c64;
    --checkout-text-light: #a09a8f;
    
    /* Borders */
    --checkout-border: #e4e2dc;
    --checkout-border-light: #f1f0ed;
    --checkout-border-focus: #c9a962;
    
    /* Shadows */
    --checkout-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --checkout-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --checkout-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --checkout-shadow-focus: 0 0 0 4px rgba(201, 169, 98, 0.15);
    
    /* Typography */
    --checkout-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --checkout-font-serif: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing */
    --checkout-space-xs: 0.25rem;
    --checkout-space-sm: 0.5rem;
    --checkout-space-md: 1rem;
    --checkout-space-lg: 1.5rem;
    --checkout-space-xl: 2rem;
    --checkout-space-2xl: 3rem;
    --checkout-space-3xl: 4rem;
    
    /* Border Radius */
    --checkout-radius-sm: 6px;
    --checkout-radius-md: 10px;
    --checkout-radius-lg: 16px;
    --checkout-radius-xl: 24px;
    --checkout-radius-full: 9999px;
    
    /* Transitions */
    --checkout-transition-fast: 0.15s ease;
    --checkout-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --checkout-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BASE STYLES
   ======================================== */
.onboarding-checkout-body {
    font-family: var(--checkout-font-sans);
    background: var(--checkout-bg-body);
    color: var(--checkout-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--checkout-primary);
    color: var(--checkout-secondary);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.onboarding-checkout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--checkout-border-light);
    transition: all var(--checkout-transition);
}

.onboarding-checkout-header.scrolled {
    box-shadow: var(--checkout-shadow-md);
}

.onboarding-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--checkout-space-md) var(--checkout-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--checkout-space-lg);
}

.onboarding-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.onboarding-logo-img {
    height: 32px;
    width: auto;
}

.onboarding-exit-link {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-sm);
    padding: var(--checkout-space-sm) var(--checkout-space-md);
    border-radius: var(--checkout-radius-full);
    color: var(--checkout-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--checkout-transition-fast);
    flex-shrink: 0;
}

.onboarding-exit-link:hover {
    background: var(--checkout-bg-muted);
    color: var(--checkout-text-primary);
    text-decoration: none;
}

/* Header Product Context */
.header-product-context {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-md);
    flex: 1;
    justify-content: center;
}

.header-product-info {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-md);
}

.header-product-name {
    font-family: var(--checkout-font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--checkout-text-primary);
    margin: 0;
}

.header-product-price {
    font-weight: 600;
    color: var(--checkout-primary-dark);
}

.header-product-price .original-price {
    text-decoration: line-through;
    color: var(--checkout-text-muted);
    font-weight: 400;
    margin-right: var(--checkout-space-xs);
}

.header-product-price .sale-price {
    color: var(--checkout-success);
}

/* Header Stepper */
.header-stepper {
    display: none;
}

@media (min-width: 768px) {
    .header-stepper {
        display: flex;
        align-items: center;
        gap: var(--checkout-space-sm);
    }
}

.header-step {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-xs);
    font-size: 0.75rem;
    color: var(--checkout-text-muted);
}

.header-step.active {
    color: var(--checkout-primary-dark);
    font-weight: 600;
}

.header-step.completed {
    color: var(--checkout-success);
}

.header-step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--checkout-bg-muted);
    color: var(--checkout-text-muted);
}

.header-step.active .header-step-number {
    background: var(--checkout-primary);
    color: var(--checkout-secondary);
}

.header-step.completed .header-step-number {
    background: var(--checkout-success);
    color: white;
}

.header-step-connector {
    width: 24px;
    height: 2px;
    background: var(--checkout-border);
}

.header-step.completed + .header-step-connector,
.header-step-connector.completed {
    background: var(--checkout-success);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.onboarding-checkout-main {
    flex: 1;
    padding-top: 80px;
    padding-bottom: var(--checkout-space-3xl);
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--checkout-space-lg);
}

.checkout-container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--checkout-space-lg);
}

.checkout-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--checkout-space-lg);
}

/* ========================================
   STEPPER COMPONENT
   ======================================== */
.checkout-stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-bottom: var(--checkout-space-2xl);
    padding: var(--checkout-space-lg) 0;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 160px;
}

.checkout-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: var(--checkout-border);
    transition: background var(--checkout-transition);
}

.checkout-step.completed:not(:last-child)::after {
    background: var(--checkout-success);
}

.checkout-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--checkout-bg-card);
    border: 2px solid var(--checkout-border);
    color: var(--checkout-text-muted);
    transition: all var(--checkout-transition);
    position: relative;
    z-index: 1;
}

.checkout-step.active .checkout-step-icon {
    background: var(--checkout-primary);
    border-color: var(--checkout-primary);
    color: var(--checkout-secondary);
    box-shadow: var(--checkout-shadow-focus);
}

.checkout-step.completed .checkout-step-icon {
    background: var(--checkout-success);
    border-color: var(--checkout-success);
    color: white;
}

.checkout-step-label {
    margin-top: var(--checkout-space-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--checkout-text-muted);
    text-align: center;
    transition: color var(--checkout-transition);
}

.checkout-step.active .checkout-step-label {
    color: var(--checkout-text-primary);
    font-weight: 600;
}

.checkout-step.completed .checkout-step-label {
    color: var(--checkout-success);
}

/* Mobile Stepper */
@media (max-width: 768px) {
    .checkout-stepper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: var(--checkout-space-md) 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .checkout-step {
        flex-direction: column;
        width: auto;
        min-width: 60px;
        flex: 0 0 auto;
    }
    
    .checkout-step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .checkout-step-label {
        font-size: 0.7rem;
        margin-top: var(--checkout-space-xs);
        white-space: nowrap;
    }
    
    .checkout-step:not(:last-child)::after {
        display: block;
        position: absolute;
        top: 16px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
        height: 2px;
        background: var(--checkout-border-light);
    }
    
    .checkout-step.completed:not(:last-child)::after {
        background: var(--checkout-success);
    }
    
    .checkout-step.active:not(:last-child)::after {
        background: linear-gradient(90deg, var(--checkout-primary), var(--checkout-border-light));
    }
}

/* ========================================
   CARDS
   ======================================== */
.checkout-card {
    background: var(--checkout-bg-card);
    border: 1px solid var(--checkout-border);
    border-radius: var(--checkout-radius-lg);
    padding: var(--checkout-space-xl);
    margin-bottom: var(--checkout-space-lg);
    box-shadow: var(--checkout-shadow-sm);
    transition: all var(--checkout-transition);
}

.checkout-card:hover {
    box-shadow: var(--checkout-shadow-md);
}

.checkout-card-header {
    margin-bottom: var(--checkout-space-lg);
    padding-bottom: var(--checkout-space-md);
    border-bottom: 1px solid var(--checkout-border-light);
}

.checkout-card-title {
    font-family: var(--checkout-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--checkout-text-primary);
    margin: 0 0 var(--checkout-space-xs) 0;
}

.checkout-card-subtitle {
    font-size: 0.9375rem;
    color: var(--checkout-text-muted);
    margin: 0;
}

.checkout-card-compact {
    padding: var(--checkout-space-lg);
}

/* ========================================
   FORM STYLES
   ======================================== */
.checkout-form-group {
    margin-bottom: var(--checkout-space-lg);
}

.checkout-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--checkout-text-primary);
    margin-bottom: var(--checkout-space-sm);
}

.checkout-form-label .required {
    color: var(--checkout-error);
    margin-left: 2px;
}

.checkout-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--checkout-font-sans);
    color: var(--checkout-text-primary);
    background: var(--checkout-bg-card);
    border: 2px solid var(--checkout-border);
    border-radius: var(--checkout-radius-md);
    transition: all var(--checkout-transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.checkout-form-control:focus {
    outline: none;
    border-color: var(--checkout-border-focus);
    box-shadow: var(--checkout-shadow-focus);
}

.checkout-form-control.is-valid {
    border-color: var(--checkout-success);
}

.checkout-form-control.is-invalid {
    border-color: var(--checkout-error);
}

.checkout-form-control::placeholder {
    color: var(--checkout-text-light);
}

/* Input with Icon */
.checkout-input-wrapper {
    position: relative;
}

.checkout-input-wrapper .checkout-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--checkout-text-muted);
    pointer-events: none;
}

.checkout-input-wrapper .checkout-form-control {
    padding-left: 2.75rem;
}

.checkout-input-wrapper .checkout-input-action {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--checkout-text-muted);
    cursor: pointer;
    transition: color var(--checkout-transition-fast);
}

.checkout-input-wrapper .checkout-input-action:hover {
    color: var(--checkout-text-primary);
}

/* Form Help Text */
.checkout-form-help {
    font-size: 0.8125rem;
    color: var(--checkout-text-muted);
    margin-top: var(--checkout-space-xs);
}

.checkout-form-error {
    font-size: 0.8125rem;
    color: var(--checkout-error);
    margin-top: var(--checkout-space-xs);
    display: flex;
    align-items: center;
    gap: var(--checkout-space-xs);
}

/* Password Strength */
.checkout-password-strength {
    margin-top: var(--checkout-space-sm);
}

.checkout-password-strength-bar {
    height: 4px;
    background: var(--checkout-border);
    border-radius: var(--checkout-radius-full);
    overflow: hidden;
}

.checkout-password-strength-fill {
    height: 100%;
    width: 0;
    transition: all var(--checkout-transition);
    border-radius: var(--checkout-radius-full);
}

.checkout-password-strength-fill.weak { width: 25%; background: var(--checkout-error); }
.checkout-password-strength-fill.fair { width: 50%; background: var(--checkout-warning); }
.checkout-password-strength-fill.good { width: 75%; background: var(--checkout-primary); }
.checkout-password-strength-fill.strong { width: 100%; background: var(--checkout-success); }

.checkout-password-strength-text {
    font-size: 0.75rem;
    margin-top: var(--checkout-space-xs);
    color: var(--checkout-text-muted);
}

/* Checkbox */
.checkout-checkbox-group {
    margin-bottom: var(--checkout-space-md);
}

.checkout-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--checkout-space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--checkout-text-secondary);
}

.checkout-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--checkout-border);
    border-radius: var(--checkout-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--checkout-transition-fast);
    margin-top: 2px;
}

.checkout-checkbox-custom i {
    font-size: 0.625rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--checkout-transition-fast);
}

.checkout-checkbox-input:checked + .checkout-checkbox-custom {
    background: var(--checkout-primary);
    border-color: var(--checkout-primary);
}

.checkout-checkbox-input:checked + .checkout-checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.checkout-checkbox-input:focus + .checkout-checkbox-custom {
    box-shadow: var(--checkout-shadow-focus);
}

.checkout-checkbox-text {
    line-height: 1.5;
}

.checkout-checkbox-text a {
    color: var(--checkout-primary-dark);
    text-decoration: none;
}

.checkout-checkbox-text a:hover {
    text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */
.checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--checkout-space-sm);
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--checkout-font-sans);
    border-radius: var(--checkout-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--checkout-transition);
    border: 2px solid transparent;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-btn-primary {
    background: linear-gradient(135deg, var(--checkout-primary) 0%, var(--checkout-primary-light) 100%);
    color: var(--checkout-secondary);
    border-color: var(--checkout-primary);
}

.checkout-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
    text-decoration: none;
    color: var(--checkout-secondary);
}

.checkout-btn-secondary {
    background: var(--checkout-bg-card);
    color: var(--checkout-text-primary);
    border-color: var(--checkout-border);
}

.checkout-btn-secondary:hover:not(:disabled) {
    background: var(--checkout-bg-muted);
    border-color: var(--checkout-primary);
    text-decoration: none;
    color: var(--checkout-text-primary);
}

.checkout-btn-success {
    background: linear-gradient(135deg, var(--checkout-success) 0%, var(--checkout-success-light) 100%);
    color: white;
    border-color: var(--checkout-success);
}

.checkout-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    color: white;
}

.checkout-btn-outline {
    background: transparent;
    color: var(--checkout-text-primary);
    border-color: var(--checkout-border);
}

.checkout-btn-outline:hover:not(:disabled) {
    background: var(--checkout-bg-muted);
    text-decoration: none;
    color: var(--checkout-text-primary);
}

.checkout-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.checkout-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.checkout-btn-block {
    width: 100%;
}

/* Button Loading State */
.checkout-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   SOCIAL LOGIN BUTTONS
   ======================================== */
.checkout-social-section {
    margin-bottom: var(--checkout-space-lg);
}

.checkout-social-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--checkout-space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--checkout-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--checkout-space-md);
}

.checkout-social-header i {
    color: var(--checkout-primary);
    font-size: 1rem;
}

.checkout-social-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--checkout-space-sm);
}

.checkout-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--checkout-space-sm);
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--checkout-radius-md);
    border: 2px solid var(--checkout-border);
    background: var(--checkout-bg-card);
    color: var(--checkout-text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--checkout-transition-fast);
}

.checkout-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--checkout-shadow-md);
    text-decoration: none;
    color: var(--checkout-text-primary);
}

.checkout-social-btn.google:hover {
    border-color: #ea4335;
    background: rgba(234, 67, 53, 0.04);
}

.checkout-social-btn.apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

.checkout-social-btn.apple:hover {
    background: #1a1a1a;
    color: #fff;
}

.checkout-social-btn.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.04);
}

.checkout-social-btn svg,
.checkout-social-btn i {
    width: 20px;
    height: 20px;
    font-size: 1.25rem;
}

/* Divider */
.checkout-divider {
    display: flex;
    align-items: center;
    margin: var(--checkout-space-lg) 0;
    color: var(--checkout-text-muted);
}

.checkout-divider::before,
.checkout-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--checkout-border);
}

.checkout-divider span {
    padding: 0 var(--checkout-space-md);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.checkout-product-card {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-md);
    padding: var(--checkout-space-md);
    background: var(--checkout-bg-accent);
    border-radius: var(--checkout-radius-md);
    margin-bottom: var(--checkout-space-lg);
}

.checkout-product-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--checkout-radius-md);
    background: linear-gradient(135deg, var(--checkout-primary), var(--checkout-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--checkout-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.checkout-product-info {
    flex: 1;
    min-width: 0;
}

.checkout-product-name {
    font-family: var(--checkout-font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--checkout-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-product-meta {
    font-size: 0.8125rem;
    color: var(--checkout-text-muted);
    margin: 0;
}

.checkout-product-price {
    font-weight: 600;
    color: var(--checkout-text-primary);
    white-space: nowrap;
}

.checkout-product-price .original {
    text-decoration: line-through;
    color: var(--checkout-text-muted);
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: var(--checkout-space-xs);
}

.checkout-product-price .sale {
    color: var(--checkout-success);
}

/* ========================================
   UPLOAD AREA
   ======================================== */
.checkout-upload-area {
    border: 2px dashed var(--checkout-border);
    border-radius: var(--checkout-radius-lg);
    padding: var(--checkout-space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--checkout-transition);
    background: var(--checkout-bg-card);
}

.checkout-upload-area:hover,
.checkout-upload-area.dragover {
    border-color: var(--checkout-primary);
    background: var(--checkout-bg-accent);
}

.checkout-upload-area.has-file {
    border-style: solid;
    border-color: var(--checkout-success);
    background: rgba(16, 185, 129, 0.04);
}

.checkout-upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--checkout-bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--checkout-space-md);
    color: var(--checkout-primary);
    font-size: 1.5rem;
    transition: all var(--checkout-transition);
}

.checkout-upload-area:hover .checkout-upload-icon {
    background: var(--checkout-primary);
    color: var(--checkout-secondary);
    transform: scale(1.1);
}

.checkout-upload-title {
    font-family: var(--checkout-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--checkout-text-primary);
    margin: 0 0 var(--checkout-space-xs) 0;
}

.checkout-upload-text {
    font-size: 0.9375rem;
    color: var(--checkout-text-muted);
    margin: 0 0 var(--checkout-space-md) 0;
}

/* File Info Display */
.checkout-file-info {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-md);
    padding: var(--checkout-space-md);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--checkout-success);
    border-radius: var(--checkout-radius-md);
    margin-top: var(--checkout-space-md);
}

.checkout-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--checkout-radius-sm);
    background: var(--checkout-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.checkout-file-details {
    flex: 1;
    min-width: 0;
}

.checkout-file-name {
    font-weight: 600;
    color: var(--checkout-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-file-size {
    font-size: 0.8125rem;
    color: var(--checkout-text-muted);
}

.checkout-file-remove {
    padding: var(--checkout-space-sm);
    background: none;
    border: none;
    color: var(--checkout-text-muted);
    cursor: pointer;
    transition: color var(--checkout-transition-fast);
}

.checkout-file-remove:hover {
    color: var(--checkout-error);
}

/* ========================================
   SUCCESS ANIMATION
   ======================================== */
.checkout-success-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--checkout-space-xl);
    position: relative;
}

.checkout-success-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--checkout-success), var(--checkout-success-light));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-success-icon {
    font-size: 3rem;
    color: white;
    animation: checkDraw 0.5s ease 0.3s forwards;
    opacity: 0;
}

.checkout-success-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 3px solid var(--checkout-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringExpand 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes successScale {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes checkDraw {
    0% { opacity: 0; transform: scale(0) rotate(-45deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes ringExpand {
    0% { width: 120px; height: 120px; opacity: 1; }
    100% { width: 200px; height: 200px; opacity: 0; }
}

/* ========================================
   TIMELINE
   ======================================== */
.checkout-timeline {
    position: relative;
    padding-left: var(--checkout-space-xl);
}

.checkout-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--checkout-border);
}

.checkout-timeline-item {
    position: relative;
    padding-bottom: var(--checkout-space-lg);
}

.checkout-timeline-item:last-child {
    padding-bottom: 0;
}

.checkout-timeline-icon {
    position: absolute;
    left: calc(-1 * var(--checkout-space-xl));
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 1;
    background: var(--checkout-bg-muted);
    color: var(--checkout-text-muted);
}

.checkout-timeline-item.completed .checkout-timeline-icon {
    background: var(--checkout-success);
    color: white;
}

.checkout-timeline-item.active .checkout-timeline-icon {
    background: var(--checkout-primary);
    color: var(--checkout-secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(201, 169, 98, 0); }
}

.checkout-timeline-content {
    padding-left: var(--checkout-space-sm);
}

.checkout-timeline-title {
    font-weight: 600;
    color: var(--checkout-text-primary);
    margin-bottom: var(--checkout-space-xs);
}

.checkout-timeline-text {
    font-size: 0.875rem;
    color: var(--checkout-text-muted);
}

.checkout-timeline-item.pending .checkout-timeline-title,
.checkout-timeline-item.pending .checkout-timeline-text {
    opacity: 0.6;
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.checkout-share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--checkout-space-md);
}

.checkout-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all var(--checkout-transition);
    border: none;
    cursor: pointer;
}

.checkout-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--checkout-shadow-lg);
}

.checkout-share-btn.twitter { background: #1da1f2; }
.checkout-share-btn.facebook { background: #1877f2; }
.checkout-share-btn.linkedin { background: #0077b5; }
.checkout-share-btn.copy { background: var(--checkout-primary); color: var(--checkout-secondary); }

/* ========================================
   ALERT / MESSAGE BOXES
   ======================================== */
.checkout-alert {
    padding: var(--checkout-space-md) var(--checkout-space-lg);
    border-radius: var(--checkout-radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--checkout-space-sm);
    margin-bottom: var(--checkout-space-lg);
}

.checkout-alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.checkout-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.checkout-alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.checkout-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.checkout-alert i {
    margin-top: 2px;
}

/* ========================================
   FOOTER
   ======================================== */
.onboarding-checkout-footer {
    background: var(--checkout-bg-card);
    border-top: 1px solid var(--checkout-border);
    padding: var(--checkout-space-xl) var(--checkout-space-lg);
    margin-top: auto;
}

.onboarding-footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.onboarding-footer-trust {
    display: flex;
    justify-content: center;
    gap: var(--checkout-space-xl);
    margin-bottom: var(--checkout-space-lg);
    flex-wrap: wrap;
}

.onboarding-footer-trust .trust-badge {
    display: flex;
    align-items: center;
    gap: var(--checkout-space-sm);
    color: var(--checkout-text-muted);
    font-size: 0.8125rem;
}

.onboarding-footer-trust .trust-badge i {
    color: var(--checkout-primary);
}

.onboarding-footer-links {
    margin-bottom: var(--checkout-space-md);
}

.onboarding-footer-links a {
    color: var(--checkout-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color var(--checkout-transition-fast);
}

.onboarding-footer-links a:hover {
    color: var(--checkout-primary);
}

.onboarding-footer-links .divider {
    margin: 0 var(--checkout-space-sm);
    color: var(--checkout-border);
}

.onboarding-footer-copyright {
    font-size: 0.75rem;
    color: var(--checkout-text-light);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.checkout-text-center { text-align: center; }
.checkout-text-right { text-align: right; }
.checkout-text-muted { color: var(--checkout-text-muted); }
.checkout-text-success { color: var(--checkout-success); }
.checkout-text-error { color: var(--checkout-error); }

.checkout-mb-0 { margin-bottom: 0; }
.checkout-mb-sm { margin-bottom: var(--checkout-space-sm); }
.checkout-mb-md { margin-bottom: var(--checkout-space-md); }
.checkout-mb-lg { margin-bottom: var(--checkout-space-lg); }
.checkout-mb-xl { margin-bottom: var(--checkout-space-xl); }

.checkout-mt-0 { margin-top: 0; }
.checkout-mt-sm { margin-top: var(--checkout-space-sm); }
.checkout-mt-md { margin-top: var(--checkout-space-md); }
.checkout-mt-lg { margin-top: var(--checkout-space-lg); }

.checkout-flex { display: flex; }
.checkout-flex-column { flex-direction: column; }
.checkout-items-center { align-items: center; }
.checkout-justify-center { justify-content: center; }
.checkout-justify-between { justify-content: space-between; }
.checkout-gap-sm { gap: var(--checkout-space-sm); }
.checkout-gap-md { gap: var(--checkout-space-md); }
.checkout-gap-lg { gap: var(--checkout-space-lg); }

/* Animation Classes */
.checkout-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.checkout-animate-delay-1 { animation-delay: 0.1s; }
.checkout-animate-delay-2 { animation-delay: 0.2s; }
.checkout-animate-delay-3 { animation-delay: 0.3s; }
.checkout-animate-delay-4 { animation-delay: 0.4s; }
.checkout-animate-delay-5 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .onboarding-header-container {
        padding: var(--checkout-space-sm) var(--checkout-space-md);
    }
    
    .onboarding-logo-img {
        height: 24px;
    }
    
    .header-product-context {
        display: none;
    }
    
    .onboarding-checkout-main {
        padding-top: 60px;
    }
    
    .checkout-container,
    .checkout-container-narrow,
    .checkout-container-wide {
        padding: 0 var(--checkout-space-md);
    }
    
    .checkout-card {
        padding: var(--checkout-space-lg);
    }
    
    .checkout-card-title {
        font-size: 1.25rem;
    }
    
    .checkout-upload-area {
        padding: var(--checkout-space-xl);
    }
    
    .checkout-success-animation {
        width: 100px;
        height: 100px;
    }
    
    .checkout-success-circle {
        width: 100px;
        height: 100px;
    }
    
    .checkout-success-icon {
        font-size: 2.5rem;
    }
    
    .onboarding-footer-trust {
        gap: var(--checkout-space-md);
    }
    
    .onboarding-footer-trust .trust-badge {
        flex: 0 0 45%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .checkout-btn-block-mobile {
        width: 100%;
    }
    
    .checkout-btn {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
    }
    
    .checkout-checkbox-custom {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }
    
    .checkout-social-buttons {
        gap: var(--checkout-space-sm);
    }
    
    .checkout-social-btn {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
    }
    
    .checkout-share-buttons {
        gap: var(--checkout-space-sm);
    }
    
    .checkout-share-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .upload-format-item {
        padding: 0.75rem;
        min-height: 44px;
    }
    
    .create-account-hero {
        display: none;
    }
    
    .create-account-form-section {
        width: 100%;
    }
    
    .mobile-product-summary {
        display: block;
        padding: var(--checkout-space-md);
        margin-bottom: var(--checkout-space-lg);
        background: var(--checkout-bg-card);
        border-radius: var(--checkout-radius-md);
        box-shadow: var(--checkout-shadow-sm);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .onboarding-checkout-header,
    .onboarding-checkout-footer,
    .checkout-stepper,
    .checkout-social-buttons,
    .checkout-share-buttons,
    .checkout-btn {
        display: none !important;
    }
    
    .onboarding-checkout-main {
        padding-top: 0;
    }
    
    .checkout-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
