/* ================================================================
 * 超级管理员资金划转页
 * ============================================================== */

#super-funds-transfer-entry[hidden] { display: none !important; }

.funds-transfer-nav .nav-title { flex: 1; }
.funds-transfer-refresh {
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}
.funds-transfer-refresh:active { background: var(--bg-hover); }
.funds-transfer-refresh:disabled,
.funds-swap-button:disabled,
.funds-direction button:disabled { cursor: not-allowed; opacity: 0.55; }

.funds-transfer-body { padding: 16px 16px 28px; }
.funds-transfer-admin {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 3px 14px;
    color: var(--text-secondary);
    font-size: 12px;
}
.funds-transfer-admin .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}
.funds-transfer-label {
    display: block;
    margin: 0 3px 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 650;
}
.funds-transfer-account {
    width: 100%;
    min-height: 52px;
    margin-bottom: 17px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    background: var(--bg-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1c1e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: var(--shadow-card);
    appearance: none;
    -webkit-appearance: none;
}
.funds-transfer-account:disabled {
    color: var(--text-muted);
    opacity: 1;
}

.funds-balance-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
    align-items: center;
    min-height: 150px;
    margin-bottom: 20px;
    padding: 18px 12px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-lg) + 4px);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}
.funds-wallet {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.funds-wallet-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 11px;
    background: rgba(89, 104, 239, 0.09);
    color: var(--accent-blue);
}
.funds-wallet-icon .icon { width: 18px; height: 18px; }
.funds-wallet-name {
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 11px;
}
.funds-wallet strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.funds-wallet small {
    margin-top: 2px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}
.funds-swap-button {
    width: 44px;
    height: 44px;
    justify-self: center;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(89, 104, 239, 0.24);
    cursor: pointer;
}
.funds-swap-button:active { transform: scale(0.95); }
.funds-swap-button .icon { width: 18px; height: 18px; }

.funds-direction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: var(--radius-lg);
    background: #e9edf6;
}
.funds-direction button {
    min-height: 44px;
    padding: 8px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.funds-direction button[aria-pressed="true"] {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(48, 61, 112, 0.08);
}

.funds-amount-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.funds-amount-head > span {
    margin: 0 3px 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}
.funds-amount-box {
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}
.funds-amount-box input {
    min-width: 0;
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 650;
}
.funds-amount-box input::placeholder { color: #adb5c5; }
.funds-amount-box > span {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
}
.funds-amount-box button {
    min-width: 48px;
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    border-radius: 9px;
    background: rgba(89, 104, 239, 0.09);
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 650;
}
.funds-amount-box input:disabled,
.funds-amount-box button:disabled { cursor: not-allowed; opacity: 0.62; }

.funds-transfer-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 13px 3px 18px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.55;
}
.funds-transfer-note .icon {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 1px;
    color: var(--accent-blue);
}
.funds-transfer-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--accent-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 10px 22px rgba(89, 104, 239, 0.20);
}
.funds-transfer-submit:disabled {
    background: #a6b0ec;
    cursor: not-allowed;
    box-shadow: none;
}
.funds-transfer-pending {
    padding-top: 10px;
    color: var(--text-muted);
    text-align: center;
    font-size: 10px;
}

#confirm-msg { white-space: pre-line; }

@media (max-width: 360px) {
    .funds-transfer-body { padding-inline: 12px; }
    .funds-balance-card {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        padding-inline: 8px;
    }
    .funds-wallet strong { font-size: 18px; }
    .funds-swap-button { width: 40px; height: 40px; }
}
