* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    direction: rtl;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.payment-container {
    max-width: 48rem;
    margin: 0 auto;
}

.payment-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-header {
    background: linear-gradient(to left, #059669, #047857);
    color: white;
    padding: 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    width: 2rem;
    height: 2rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-subtitle {
    margin-top: 0.5rem;
    color: #d1fae5;
    font-size: 0.95rem;
}

.payment-body {
    padding: 1.5rem;
}

.step-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.step-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.step-number.active {
    background: #d1fae5;
    color: #047857;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
}

.form-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.slider-wrapper {
    margin-top: 1rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 30px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.slider-track {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: background 0.3s ease;
    border-radius: 30px;
}

.slider-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
}

.slider-button:active {
    cursor: grabbing;
}

.slider-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #94a3b8;
    stroke-width: 2.5;
}

.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.verification-success {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
}

.success-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.5;
}

.verification-section {
    margin-top: 1rem;
}

.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #059669;
}

.btn-payment {
    background: linear-gradient(to left, #10b981, #059669);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-payment:hover:not(:disabled) {
    background: linear-gradient(to left, #059669, #047857);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-payment:disabled {
    background: linear-gradient(to left, #cbd5e1, #94a3b8);
}

.btn-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.alert {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke-width: 2.5;
    margin-top: 0.125rem;
}

.alert-success .alert-icon {
    color: #059669;
}

.alert-error .alert-icon {
    color: #dc2626;
}

.alert-title {
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.25rem;
}

.alert-message {
    color: #047857;
    margin-top: 0.25rem;
}

.alert-error p {
    color: #991b1b;
}

.amount-section {
    margin-top: 1rem;
}

.currency-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.currency-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #f1f5f9;
    color: #334155;
}

.currency-btn:hover {
    background: #e2e8f0;
}

.currency-btn.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.amount-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .amount-inputs {
        grid-template-columns: 1fr 1fr;
    }
}

.exchange-rate {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

.exchange-rate p {
    font-size: 0.875rem;
    color: #475569;
}

.footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }

    .payment-header {
        padding: 1rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .payment-body {
        padding: 1rem;
    }
}
