.mta-exchange{
    width:100%;
    margin:24px 0;
}

.mta-exchange-card,
.mta-rates-board{
    background:#0f172a;
    color:#fff;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:8px;
    box-shadow:0 16px 36px rgba(15,23,42,0.24);
}

.mta-exchange-card{
    width:100%;
    padding:18px;
}

.mta-exchange-top,
.mta-rates-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

.mta-exchange-top{
    margin-bottom:18px;
}

.mta-exchange-top h2,
.mta-rates-header h2{
    margin:0;
    color:#fff;
    font-size:22px;
    line-height:1.15;
}

.mta-exchange h2,
.mta-exchange h3,
.mta-rates-board h2,
.mta-rates-board h3{
    color:#fff;
}

.mta-kicker{
    display:block;
    margin-bottom:4px;
    color:#facc15;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

.mta-live-dot{
    width:10px;
    height:10px;
    background:#22c55e;
    border-radius:50%;
    animation:mtaPulse 1.2s infinite;
}

.mta-live-pill,
.mta-rates-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    color:#bbf7d0;
    font-size:12px;
    font-weight:800;
}

@keyframes mtaPulse{
    0%{opacity:1}
    50%{opacity:.35}
    100%{opacity:1}
}

.mta-exchange-controls{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 42px minmax(0,1.2fr);
    gap:10px;
    align-items:end;
}

.mta-exchange label,
.mta-rates-tools label{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:0;
}

.mta-exchange label span,
.mta-rates-tools label span{
    color:rgba(255,255,255,0.72);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}

.mta-amount,
.mta-rates-amount,
.mta-rates-search,
.mta-exchange select{
    width:100%;
    padding:14px 12px;
    color:#fff;
    background:#111827;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:8px;
    font-size:16px;
    outline:none;
}

.mta-swap{
    width:42px;
    height:42px;
    color:#fff;
    background:#e10600;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}

.mta-swap:hover{
    transform:rotate(180deg);
}

.mta-result{
    display:grid;
    gap:4px;
    margin-top:18px;
    padding:16px;
    background:#111827;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:8px;
}

.mta-result span{
    color:rgba(255,255,255,0.72);
    font-size:13px;
}

.mta-result strong{
    color:#fff;
    font-size:24px;
    line-height:1.2;
}

.mta-exchange-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
    margin-top:12px;
    color:rgba(255,255,255,0.66);
    font-size:12px;
}

.mta-exchange.is-compact{
    margin:16px 0 0;
}

.mta-exchange.is-compact .mta-exchange-card{
    padding:14px;
    box-shadow:none;
}

.mta-exchange.is-compact .mta-exchange-controls{
    grid-template-columns:1fr;
}

.mta-exchange.is-compact .mta-swap{
    justify-self:start;
}

.mta-exchange.is-compact .mta-result strong{
    font-size:20px;
}

.mta-rates-board{
    margin:32px 0;
    padding:24px;
}

.mta-rates-header{
    margin-bottom:20px;
}

.mta-rates-header p{
    max-width:640px;
    margin:8px 0 0;
    color:rgba(255,255,255,0.72);
}

.mta-rates-tools{
    display:grid;
    grid-template-columns:minmax(0,240px) minmax(0,1fr);
    gap:12px;
    margin-bottom:18px;
}

.mta-rates-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.mta-rate-card{
    display:grid;
    gap:14px;
    padding:16px;
    background:#111827;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:8px;
}

.mta-rate-card strong{
    display:block;
    color:#fff;
    font-size:20px;
}

.mta-rate-card span,
.mta-rate-card small,
.mta-rates-footer{
    color:rgba(255,255,255,0.68);
}

.mta-rate-value{
    display:block;
    color:#fff;
    font-size:22px;
}

.mta-rate-converted{
    margin:0;
    color:#bbf7d0;
    font-weight:800;
}

.mta-rates-footer{
    margin-top:18px;
    font-size:12px;
}

@media(max-width:900px){
    .mta-exchange-controls,
    .mta-rates-tools{
        grid-template-columns:1fr;
    }

    .mta-swap{
        justify-self:start;
    }

    .mta-rates-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .mta-rates-header{
        flex-direction:column;
    }
}

@media(max-width:600px){
    .mta-exchange-card,
    .mta-rates-board{
        padding:16px;
    }

    .mta-exchange-top{
        align-items:flex-start;
        flex-direction:column;
    }

    .mta-rates-grid{
        grid-template-columns:1fr;
    }
}

@media (prefers-reduced-motion: reduce){
    .mta-live-dot{
        animation:none;
    }
}
