:root {
    --ink: #173156;
    --muted: #5f7494;
    --bg: #F6FFFE;
    --card: #fff;
    --brand: #42C6B6;
    --chip-warn-bg: #fff2f0;
    --chip-warn-bd: #ffb3ab;
    --chip-warn-ink: #7a1d10;
}

body {
    background: var(--bg);
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
}

.brand {
    color: var(--ink);
}

.card {
    border-radius: clamp(20px, 2vw, 20px);
}

.card-body {
    padding: 32px !important;
}

.muted {
    color: var(--muted);
}

/* KV list */
.kv {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.kv-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    background: #F3F7FA;
    border-radius: clamp(20px, 2vw, 20px);
    padding: 12px;
}

.kv-row .k {
    font-weight: 500;
    color: var(--muted);
}

.kv-row .v {
    font-weight: 700;
    word-break: break-word;
}

@media(max-width:719.98px) {
    .kv-row {
        grid-template-columns: 1fr;
        gap: 6px
    }

    .kv-row .k {
        font-weight: 600;
        font-size: 13px
    }

    .kv-row .v {
        font-weight: 600;
        font-size: 16px;
        overflow-wrap: anywhere
    }
}

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff2f0;
    border: 1px solid #ffb3ab;
    color: #7a1d10;
    border-radius: clamp(20px, 2vw, 20px);
    padding: 12px 14px;
    font-size: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: clamp(20px, 2vw, 20px);
    font-size: 12px;
}

.chip-warning {
    background: var(--chip-warn-bg);
    border: 1px solid var(--chip-warn-bd);
    color: var(--chip-warn-ink);
}

#bankRoot>* {
    background: #fff;
    border-radius: clamp(20px, 2vw, 20px);
    box-shadow: 0 6px 18px rgba(23, 49, 86, .06);
    overflow: hidden;
    margin-top: 18px;
}

.acc-title {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    line-height: 1.25;
}

.acc-inner {
    padding: 6px 20px 18px;
}

.acc-inner .kv {
    padding: 0;
    border-top: none;
}

.acc-inner .chip-warning {
    display: block;
    padding: 10px 12px;
    border-radius: clamp(20px, 2vw, 20px);
    margin: 0 0 10px 0;
}

.kv-row.is-ref {
    background: #FFF7E6;
    border: 1px dashed #FFD18C;
}

/* FX block */
.fx-card {
    background: #fff;
    border-radius: clamp(20px, 2vw, 20px);
    box-shadow: 0 10px 30px rgba(23, 49, 86, .08);
    overflow: hidden;
}

.fx-card__body {
    padding: 20px 20px;
}

.fx-label {
    display: block;
    margin: .25rem 0 .35rem;
    font-weight: 600;
    color: var(--ink);
}

.fx-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #D9E3EE;
    border-radius: clamp(20px, 2vw, 20px);
    padding: 10px 12px;
    background: #fff;
}

.fx-input input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
}

.fx-input input[readonly] {
    color: var(--ink);
}

.fx-ccy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: #fff;
    border-left: 1px solid #E4EEF7;
    padding-left: 12px;
    height: 32px;
    border-radius: clamp(20px, 2vw, 20px);
    cursor: pointer;
    font-weight: 700
}

.fx-flag {
    font-size: 18px;
    line-height: 1
}

.fx-top-rate {
    font-weight: 700;
    color: #184b18
}

/* Result-only box (centered) */
.fx-resultbox {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF4F9;
    border-radius: clamp(20px, 2vw, 20px);
    padding: 16px;
    margin-top: 12px;
}

.fx-result-only {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.fx-footer {
    color: var(--muted);
}

/* Dropdown destino (floating) */
.fx-dd {
    position: fixed;
    z-index: 2000;
    background: #fff;
    border: 1px solid #D9E3EE;
    border-radius: clamp(20px, 2vw, 20px);
    box-shadow: 0 8px 24px rgba(23, 49, 86, .12);
    padding: 6px;
    display: none;
    gap: 4px;
}

.fx-dd.open {
    display: grid;
}

.fx-dd button {
    border: 0;
    background: #fff;
    padding: 8px 10px;
    border-radius: clamp(20px, 2vw, 20px);
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.fx-dd button:hover {
    background: #F3F7FA;
}

/* nuevo */
.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 0;
    /* left y right iguales */
}

.acc-header .acc-title {
    padding: 0;
    margin: 0;
}

/* color del placeholder en ambos inputs */
.fx-input input::placeholder {
    color: #9fb0c3;
    opacity: 1;
}

/* cuando el resultado está "vacío" lo muestro gris */
.fx-input input.is-empty {
    color: #9fb0c3;
}

.fx-result-only.is-empty {
    color: #9fb0c3;
}

/* opcional: transición suave */
.fx-input input,
.fx-result-only {
    transition: color .15s ease;
}

.howto {
    background: #F3F7FA;
    border: 1px solid #E4EEF7;
    border-radius: clamp(20px, 2vw, 20px);
    padding: 12px 16px;
}

.howto-title {
    font-weight: 700;
    color: var(--ink);
}

.howto-list {
    margin: 0;
    padding-left: 1.2rem;
    /* numeración ordenada */
    display: grid;
    gap: .25rem;
}

.howto-list li {
    margin: 0;
    color: var(--ink);
}

.howto-list li::marker {
    font-weight: 800;
    color: var(--brand);
    /* números en color marca */
}

@media(max-width:719.98px) {
    .howto {
        padding: 10px 12px;
    }
}

/* opcional: ya que es un <a>, esto da feedback visual */
.btn.disabled,
.btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: .65;
    cursor: not-allowed;
}

/* Placeholder más chico en "Amount in AUD" */
#fxAmount::placeholder {
    font-size: 24px;
    /* antes se veía del tamaño del input (22px) */
}

/* Compatibilidad amplia (Safari/Firefox/Edge viejos) */
#fxAmount::-webkit-input-placeholder {
    font-size: 24px;
}

#fxAmount::-moz-placeholder {
    font-size: 24px;
}

#fxAmount:-ms-input-placeholder {
    font-size: 24px;
}

#fxAmount::-ms-input-placeholder {
    font-size: 24px;
}

/* Opcional: en móviles, aún más chico */
@media (max-width: 720px) {

    #fxAmount::placeholder,
    #fxAmount::-webkit-input-placeholder,
    #fxAmount::-moz-placeholder,
    #fxAmount:-ms-input-placeholder,
    #fxAmount::-ms-input-placeholder {
        font-size: 13px;
    }
}

#fxAmount.locked {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Ajuste suave para inputs bloqueados al estilo bank-info */
.fx-input input.locked {
    background: #f3f7fa !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.fx-input input.locked::placeholder {
    color: #9aa3af;
}