/* Modern Crypto Payment Modal Styles */
.crypto-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.25);
    max-width: 450px;
    width: 85vw;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.crypto-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 18px 50px 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.crypto-header-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.crypto-header-text h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.crypto-header-text p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

.crypto-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
    z-index: 10;
}

.crypto-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.crypto-modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.crypto-step {
    min-height: auto;
}

.crypto-step-content {
    padding: 24px 20px 20px 20px;
}

/* Step 1 - Amount Input */
.amount-input-section {
    margin-bottom: 32px;
}

.amount-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-align: center;
}

.amount-input-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    z-index: 2;
}

.amount-input {
    width: 100%;
    padding: 24px 20px 24px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.amount-input:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), 0 2px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.quick-amounts {
    margin-bottom: 32px;
}

.quick-amounts-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-align: center;
}

.quick-amounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quick-amount-btn {
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quick-amount-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.quick-amount-btn:active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.payment-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
}

/* Step 2 - Payment */

.payment-status {
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-icon {
    width: 24px;
    height: 24px;
    border: 3px solid #f59e0b;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.status-text span {
    font-weight: 600;
    color: #92400e;
    font-size: 1rem;
    line-height: 1.4;
    white-space: nowrap;
}

.countdown {
    font-size: 0.9rem;
    color: #d97706;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.payment-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-field {
    margin-bottom: 20px;
}

.payment-field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.field-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.field-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-input.mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.8rem;
}

.field-input.amount {
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

.copy-btn {
    padding: 12px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.copy-btn.success {
    background: #10b981;
}

.copy-btn.success:hover {
    background: #059669;
}

.payment-warning {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.4;
}

/* Footer */
.crypto-modal-footer {
    padding: 18px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.crypto-btn {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.crypto-btn.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.crypto-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}

.crypto-btn.primary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.crypto-btn.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.crypto-btn.secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.crypto-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.crypto-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile responsiveness */
@media (max-width: 640px) {
    .crypto-modal-content {
        width: 96vw;
        margin: 8px auto;
        border-radius: 20px;
        max-height: 96vh;
    }

    .crypto-modal-header {
        padding: 24px 20px;
    }

    .crypto-header-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .crypto-header-text h3 {
        font-size: 1.3rem;
    }

    .crypto-header-text p {
        font-size: 0.85rem;
    }

    .crypto-step-content {
        padding: 28px 20px 20px 20px;
    }

    .amount-input {
        font-size: 1.5rem;
        padding: 20px 16px 20px 42px;
    }

    .currency-symbol {
        left: 18px;
        font-size: 1.15rem;
    }

    .amount-value {
        font-size: 1.75rem;
    }

    .quick-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-amount-btn {
        padding: 16px 8px;
        font-size: 0.9rem;
    }

    .crypto-modal-footer {
        padding: 20px;
        gap: 10px;
    }

    .crypto-btn {
        padding: 16px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .crypto-modal-content {
        width: 98vw;
        margin: 4px auto;
        border-radius: 16px;
    }

    .crypto-step-content {
        padding: 24px 16px 16px 16px;
    }

    .amount-input {
        font-size: 1.4rem;
        padding: 18px 14px 18px 38px;
    }

    .currency-symbol {
        left: 16px;
        font-size: 1.1rem;
    }

    .quick-amounts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .crypto-btn {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .crypto-modal-content {
        width: 85vw;
        max-width: 520px;
    }
}