.crypto-checkout {
    --primary-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --secondary-gradient: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --success-gradient: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --warning-gradient: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    --danger-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-light: #e9ecef;
    --border-color: #e0e0e0;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-muted: #95a5a6;
    
    --accent-primary: #3498db;
    --accent-secondary: #9b59b6;
    --accent-success: #2ecc71;
    --accent-warning: #f1c40f;
    --accent-danger: #e74c3c;
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crypto-checkout {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.crypto-checkout .checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
.crypto-checkout .checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.crypto-checkout .header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-checkout .brand-logo {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-md);
}

.crypto-checkout .brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.crypto-checkout .checkout-stepper {
    display: flex;
    gap: 4px;
}

.crypto-checkout .step {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.crypto-checkout .step.active {
    color: var(--text-primary);
    background: rgba(52, 152, 219, 0.05);
    border-color: var(--accent-primary);
}

.crypto-checkout .step.current {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: none;
}

/* Exchange Summary */
.crypto-checkout .exchange-summary {
    margin-bottom: 30px;
}

.crypto-checkout .exchange-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.crypto-checkout .exchange-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.crypto-checkout .exchange-from,
.crypto-checkout .exchange-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    width: 50%;
}

.crypto-checkout .currency-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.crypto-checkout .currency-icon {
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.crypto-checkout .currency-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.crypto-checkout .currency-details {
    display: flex;
    flex-direction: column;
}

.crypto-checkout .currency-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.crypto-checkout .currency-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.crypto-checkout .exchange-arrow {
    font-size: 32px;
    color: var(--accent-primary);
    opacity: 0.6;
}

/* Fee Info */
.crypto-checkout .fee-info {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.crypto-checkout .info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-checkout .info-icon {
    font-size: 20px;
    color: var(--accent-primary);
}

.crypto-checkout .fee-badge {
    background: var(--success-gradient);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.crypto-checkout .brand-highlight {
    font-weight: 700;
    color: var(--accent-primary);
}

/* Address Section */
.crypto-checkout .address-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.crypto-checkout .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-checkout .section-icon {
    font-size: 20px;
    color: var(--accent-primary);
}

.crypto-checkout .address-display {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 2px solid var(--border-color);
}

.crypto-checkout .address-value {
    flex: 1;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
    font-weight: 500;
}

.crypto-checkout .copy-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.crypto-checkout .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.crypto-checkout .copy-btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.crypto-checkout .copy-btn.outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

/* Payment Instructions */
.crypto-checkout .payment-instructions {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.crypto-checkout .instructions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.crypto-checkout .instructions-header h3 {
    font-size: 22px;
    margin: 0;
    color: var(--text-primary);
}

.crypto-checkout .header-icon {
    font-size: 24px;
    color: var(--accent-primary);
}

.crypto-checkout .instruction-card {
    background: white;
    border-radius: var(--radius-md);
}

.crypto-checkout .instruction-step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-primary);
}

.crypto-checkout .step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.crypto-checkout .step-content {
    flex: 1;
}

.crypto-checkout .step-content strong {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.crypto-checkout .step-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.crypto-checkout .highlight-amount {
    color: var(--accent-primary);
    font-weight: 700;
}

/* QR Code */
.crypto-checkout .qrcode-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.crypto-checkout .qrcode-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    padding: 15px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-primary);
}

.crypto-checkout .qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crypto-checkout .qrcode-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.crypto-checkout .qrcode-address code {
    flex: 1;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-primary);
    word-break: break-all;
    font-weight: 500;
}

/* Timer */
.crypto-checkout .payment-timer {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.crypto-checkout .timer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-checkout .timer-icon {
    font-size: 24px;
    color: var(--accent-warning);
}

.crypto-checkout .timer-display {
    text-align: center;
    margin-bottom: 20px;
}

.crypto-checkout .timer-countdown {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    color: var(--accent-warning);
}

.crypto-checkout .timer-label {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 10px;
}

.crypto-checkout .timer-progress {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.crypto-checkout .progress-bar {
    height: 100%;
    background: var(--warning-gradient);
    width: 100%;
    transition: width 1s linear;
}

.crypto-checkout .timer-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-warning);
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-warning);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Payment Status */
.crypto-checkout .payment-status {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.crypto-checkout .status-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.crypto-checkout .status-pulse {
    width: 20px;
    height: 20px;
    background: var(--accent-warning);
    border-radius: 50%;
    position: relative;
}

.crypto-checkout .status-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-warning);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.crypto-checkout .status-content {
    flex: 1;
}

.crypto-checkout .status-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.crypto-checkout .status-icon {
    font-size: 22px;
    color: var(--accent-warning);
}

.crypto-checkout .status-message {
    color: var(--text-secondary);
    font-size: 14px;
}

.crypto-checkout .status-loader img {
    width: 40px;
    height: 40px;
}

.crypto-checkout .transaction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.crypto-checkout .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crypto-checkout .info-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.crypto-checkout .info-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

/* Checkout Actions */
.crypto-checkout .checkout-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.crypto-checkout .action-btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.crypto-checkout .action-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.crypto-checkout .action-btn.secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.crypto-checkout .action-btn.danger {
    background: var(--danger-gradient);
    color: white;
}

.crypto-checkout .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.crypto-checkout .action-icon {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-checkout {
        padding: 10px;
    }
    
    .crypto-checkout .checkout-container {
        padding: 15px;
    }
    
    .crypto-checkout .checkout-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .crypto-checkout .checkout-stepper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .crypto-checkout .step {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .crypto-checkout .exchange-card {
        flex-direction: row;
        gap: 20px;
        padding: 15px;
    }
    
    .crypto-checkout .exchange-from,
    .crypto-checkout .exchange-to {
        width: 100%;
        justify-content: center;
    }
    
    .crypto-checkout .exchange-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .crypto-checkout .currency-info {
        text-align: center;
    }
    
    .crypto-checkout .address-display {
        flex-direction: column;
        gap: 12px;
    }
    
    .crypto-checkout .copy-btn {
        width: 10%;
        justify-content: center;
    }
    
    .crypto-checkout .checkout-actions {
        flex-direction: column;
    }
    
    .crypto-checkout .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .crypto-checkout .timer-countdown {
        font-size: 36px;
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .crypto-checkout .qrcode-wrapper {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .crypto-checkout .exchange-card,
    .crypto-checkout .payment-instructions,
    .crypto-checkout .payment-status {
        padding: 10px;
    }
    
    .crypto-checkout .currency-amount {
        font-size: 24px;
    }
    
    .crypto-checkout .timer-countdown {
        font-size: 28px;
        padding: 12px;
    }
    
    .crypto-checkout .instruction-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .crypto-checkout .transaction-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}