/* Add-funds modal — visual port of customer's bidding AddFundsModal
 * (Front/bidding/sass/features/_add-funds-modal.scss). Standalone
 * CSS (no SCSS toolchain on tutoriage.com) with tokens inlined:
 *   color-text         #616161
 *   color-text-muted   #64748b
 *   color-border       #e2e8f0
 *   color-border-hover #cbd5e1
 *   color-accent       #15aceb  (tutoriage brand cyan)
 *   color-error        #ef4444
 *   shadow             0 6px 16px rgba(78,115,255,.24)
 */

.bidding-add-funds__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .45);
    animation: bidding-add-funds-fade .2s ease-out;
}

@keyframes bidding-add-funds-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bidding-add-funds__card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 32px 32px 28px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 6px 16px rgba(78, 115, 255, .24), 0 24px 48px rgba(15, 23, 42, .20);
    animation: bidding-add-funds-pop .2s ease-out;
}

@keyframes bidding-add-funds-pop {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.bidding-add-funds__close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.bidding-add-funds__close:hover {
    background: rgba(15, 23, 42, .06);
    color: #475569;
}
.bidding-add-funds__close svg {
    width: 16px;
    height: 16px;
    display: block;
}

.bidding-add-funds__head {
    margin-bottom: 20px;
    padding-right: 28px;
}

.bidding-add-funds__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #1e293b;
    text-align: left;
    text-transform: none;
}

.bidding-add-funds__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.bidding-add-funds__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bidding-add-funds__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bidding-add-funds__label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.bidding-add-funds__input {
    display: inline-flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.bidding-add-funds__input:hover:not(:focus-within) {
    border-color: #cbd5e1;
}
.bidding-add-funds__input:focus-within {
    border-color: #15aceb;
    box-shadow: 0 0 0 3px rgba(21, 172, 235, .18);
}
.bidding-add-funds__input.has-error {
    border-color: #ef4444;
}
.bidding-add-funds__input.has-error:focus-within {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}

.bidding-add-funds__input-prefix {
    margin-right: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
    flex: none;
}

.bidding-add-funds__input-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
}
.bidding-add-funds__input-control::placeholder {
    color: #64748b;
    font-weight: 500;
}

.bidding-add-funds__error {
    padding-left: 14px;
    font-size: 12px;
    color: #ef4444;
}

.bidding-add-funds__terms {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #64748b;
}

.bidding-add-funds__link {
    color: #15aceb;
    text-decoration: none;
}
.bidding-add-funds__link:hover {
    text-decoration: underline;
}

.bidding-add-funds__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.bidding-add-funds__cancel,
.bidding-add-funds__submit {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 40px;
    padding: 0 22px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.bidding-add-funds__cancel {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.bidding-add-funds__cancel:hover {
    background: #475569;
    border-color: #475569;
    color: #fff;
}

.bidding-add-funds__submit {
    min-width: 120px;
    background: #15aceb;
    border: 1px solid #15aceb;
    color: #fff;
}
.bidding-add-funds__submit:hover {
    background: #fff;
    color: #15aceb;
}
.bidding-add-funds__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .bidding-add-funds__card {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        padding: 20px 16px 16px;
    }
    .bidding-add-funds__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .bidding-add-funds__actions .bidding-add-funds__cancel,
    .bidding-add-funds__actions .bidding-add-funds__submit {
        width: 100%;
    }
}
