.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #003828;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    color: #333;
    transform: scale(1.15);
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.steps-indicator::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.step-dot.active {
    background: linear-gradient(135deg, #1f7d4a 0%, #0e5c31 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 125, 74, 0.4);
}

.step-dot.completed {
    background: #1dd75f;
    color: #fff;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1f7d4a;
    box-shadow: 0 0 8px rgba(31, 125, 74, 0.2);
}

.form-input::placeholder {
    color: #999;
}

.seller-select-container {
    position: relative;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.bank-option {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
}

.bank-option:hover {
    border-color: #1f7d4a;
    background: #f9f9f9;
}

.bank-option.selected {
    border-color: #1f7d4a;
    background: #f0fdf4;
}

.bank-logo {
    width: 50px;
    height: 35px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}

.bank-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1f7d4a;
    transition: 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: #1f7d4a;
    box-shadow: 0 0 12px rgba(31, 125, 74, 0.3);
}

.otp-input.filled {
    background: #f0fdf4;
}

.otp-timer {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 15px 0;
}

.otp-timer.warning {
    color: #e74c3c;
}

.resend-otp {
    text-align: center;
    margin-top: 15px;
}

.resend-btn {
    background: none;
    border: none;
    color: #1f7d4a;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
    transition: 0.2s;
}

.resend-btn:hover:not(:disabled) {
    color: #0e5c31;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 28px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    padding: 12px 32px;
    background: linear-gradient(135deg, #1f7d4a 0%, #0e5c31 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 4px 12px rgba(31, 125, 74, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 125, 74, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-container {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f7d4a;
    margin-bottom: 10px;
}

.success-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.error-message {
    background: #fff5f5;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 12px 14px;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: 0.3s;
}

.strength-fill.weak {
    width: 33%;
    background: #e74c3c;
}

.strength-fill.medium {
    width: 66%;
    background: #f39c12;
}

.strength-fill.strong {
    width: 100%;
    background: #1dd75f;
}

.strength-text {
    font-size: 12px;
    color: #999;
}

@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        padding: 20px;
        max-width: 100%;
    }

    .modal-title {
        font-size: 18px;
    }

    .bank-grid {
        grid-template-columns: 1fr;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

.bank-grid::-webkit-scrollbar {
    width: 5px;
}

.bank-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.bank-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.bank-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}