/* ==========================================================================
   Deposit popup — opens from the RON row's Deposit button in the profile
   dropdown (profile-dropdown.js -> handleDeposit()).
   Namespaced "axm-dep-" for the parts unique to this modal. Reuses the
   .axm-login-overlay / .axm-login-modal-simple / .axm-login-header /
   .axm-login-tabs / .axm-login-body / .axm-login-panel shell from
   login.css so it looks and behaves like the same family of popup, and
   reuses the .axm-login-deposit-* primitives already defined there
   (amount, qr, address row, timer, status row, spinner).
   ========================================================================== */

/* ---- Method switcher (Contract vs Direct Send) ---- */
/* Visually identical to .axm-login-tabs but semantically distinct, so it
   gets its own class in case the two ever need to diverge. */

.axm-dep-methods {
    display: flex;
    gap: 6px;
    padding: 14px 16px 0;
}

.axm-dep-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dark, #888);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Changa', sans-serif;
}

.axm-dep-method i {
    font-size: 15px;
}

.axm-dep-method:hover {
    color: var(--text-light, #ADBCDD);
    background: rgba(255, 255, 255, 0.04);
}

.axm-dep-method.active {
    color: var(--primary-accent, #EB4A57);
    background: var(--bg-dark-4);
}

/* ---- Shared blurb / recipient banner ---- */

.axm-dep-recipient {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-dark-4);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.axm-dep-recipient > i {
    font-size: 14px;
    color: var(--secondary-accent, #35D07F);
    flex-shrink: 0;
}

.axm-dep-recipient-text {
    min-width: 0;
    flex: 1;
}

.axm-dep-recipient-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dark, #888);
    margin-bottom: 2px;
}

.axm-dep-address-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark-4);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.axm-dep-recipient-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.axm-dep-recipient-copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    padding: 0;
    color: var(--text-dark, #888);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.axm-dep-recipient-copy-btn:hover {
    color: var(--text-white, #fff);
}

.axm-dep-recipient-copy-btn.copied {
    color: var(--text-white, #fff);
}

.axm-dep-recipient-address {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-white, #fff);
    word-break: break-all;
    min-width: 0;
    flex: 1;
}

/* ---- Contract-call panel: amount input ---- */

.axm-dep-amount-field {
    margin-bottom: 14px;
}

.axm-dep-amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.axm-dep-amount-input {
    width: 100%;
    padding: 13px 60px 13px 14px;
    background: var(--bg-dark-6, #0E0F16);
    border: 1px solid var(--border-color, #2e2820);
    border-radius: 10px;
    color: var(--text-white, #fff);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Changa', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
    /* remove native number spinners so the layout stays clean */
    -moz-appearance: textfield;
}

.axm-dep-amount-input::-webkit-outer-spin-button,
.axm-dep-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.axm-dep-amount-input:focus {
    border-color: var(--primary-accent, #EB4A57);
}

.axm-dep-amount-input::placeholder {
    color: #555;
}

.axm-dep-amount-suffix {
    position: absolute;
    right: 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dark, #888);
    pointer-events: none;
}

.axm-dep-amount-quick {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.axm-dep-quick-btn {
    flex: 1;
    padding: 6px 0;
    border-radius: 8px;
	border: none;
    background: var(--bg-dark-4);
    color: var(--text-light, #ADBCDD);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Changa', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}

.axm-dep-quick-btn:hover {
    border-color: var(--primary-accent, #EB4A57);
    color: var(--text-white, #fff);
}

/* ---- Shared small field label (Amount, Continue with) ---- */

.axm-dep-field-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dark, #888);
    margin-bottom: 6px;
}

.axm-dep-continue-label {
    margin-top: 4px;
}

/* ---- Continue-with wallet list (Contract flow) ---- */
/* Matches .axm-login-wallet-list / .axm-login-wallet-option from login.css
   so both popups' wallet pickers look and behave the same. Clicking an
   option connects that wallet and signs the deposit transaction in the
   same motion — no separate "Connect" step, no separate submit button. */

.axm-dep-wallet-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.axm-dep-wallet-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-dark-4, #0E0F16);
    border-radius: 12px;
    border: none;
    outline: none;
    appearance: none;
    color: var(--text-white, #fff);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Changa', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, transform 0.15s ease;
}

.axm-dep-wallet-box img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
}

.axm-dep-wallet-box i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--primary-accent, #EB4A57);
    flex-shrink: 0;
}

.axm-dep-wallet-box:hover:not(:disabled) {
    transform: translateY(-4px);
}

.axm-dep-wallet-box:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.axm-dep-wallet-box.connecting {
    color: var(--primary-accent, #EB4A57);
}

.axm-dep-wallet-scanning,
.axm-dep-wallet-empty {
    text-align: center;
    font-size: 12px;
    color: var(--text-dark, #888);
    padding: 10px 0;
}

/* ---- Error text (Contract flow) ---- */

.axm-dep-error {
    display: none;
    font-size: 11.5px;
    color: var(--primary-accent, #EB4A57);
    margin-top: 4px;
}

.axm-dep-error.show {
    display: block;
}

/* ---- Direct-send panel tweaks ---- */
/* Reuses .axm-login-deposit-qr-wrap / -qr / -address-row / -address from
   login.css. This just adds the "waiting for on-chain confirmation"
   footer state specific to the direct-send flow. */

.axm-dep-waiting {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-dark, #888);
    margin-top: 4px;
}

.axm-dep-waiting.show {
    display: flex;
}

/* ---- Confirmation / success state ---- */

.axm-dep-success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 4px;
}

.axm-dep-success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(53, 208, 127, 0.12);
    color: var(--secondary-accent, #35D07F);
    font-size: 22px;
    margin-bottom: 14px;
}

.axm-dep-success-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-white, #fff);
    margin-bottom: 6px;
}

.axm-dep-success-sub {
    font-size: 12px;
    color: var(--text-dark, #888);
    line-height: 1.5;
    margin-bottom: 18px;
}

.axm-dep-success-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--currency-blue, #4CC2FF);
    text-decoration: none;
}

.axm-dep-success-link:hover {
    color: var(--currency-blue-dark, #1E9BE0);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .axm-dep-method {
        font-size: 9.5px;
    }
    .axm-dep-method i {
        font-size: 14px;
    }
}