/**
 * BNB Wallet — Exchange UI layer
 * Binance-inspired: flat panels, live ticker, lighter visual weight.
 */

/* ── Market ticker (disabled — kept for reference) ── */

.aw-ticker {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 45;
    height: 32px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: rgba(11, 14, 17, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.aw-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bnb-yellow, #F0B90B);
    background: rgba(240, 185, 11, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.aw-ticker-label .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #0ECB81;
    box-shadow: 0 0 8px rgba(14, 203, 129, 0.6);
    animation: awLivePulse 2s ease-in-out infinite;
}
@keyframes awLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
.aw-ticker-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.aw-ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: awTickerScroll 38s linear infinite;
    padding-left: 12px;
}
.aw-ticker-inner:hover { animation-play-state: paused; }
@keyframes awTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.aw-tick-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #848E9C;
}
.aw-tick-item b { color: #EAECEF; font-weight: 700; }
.aw-tick-item .chg-up { color: #0ECB81; }
.aw-tick-item .chg-dn { color: #F6465D; }

/* ── Exchange panels (lighter than glass) ── */
.x-panel {
    background: #1E2329;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: border-color 0.2s ease;
}
.x-panel:hover { border-color: rgba(240, 185, 11, 0.12); }
.x-panel-soft {
    background: rgba(30, 35, 41, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

/* Dashboard balance hero — plain glass panel (no market strip / sparkline) */

/* Asset list header — exchange table feel */
.assets-table-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 0 12px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5E6673;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 6px;
}

/* Reduce global visual noise */
body.exchange-ui .orb { opacity: 0.06 !important; }
body.exchange-ui .glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(30, 35, 41, 0.75);
    border-color: rgba(255, 255, 255, 0.06);
}
body.exchange-ui .glass-soft {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ── Site footer (Binance-style) ── */
.aw-footer {
    background: #0B0E11;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px 28px;
    margin-top: auto;
}
.aw-footer-inner { max-width: 72rem; margin: 0 auto; }
.aw-footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px 24px;
    margin-bottom: 36px;
}
@media (max-width: 1024px) {
    .aw-footer-top { grid-template-columns: 1fr 1fr; }
}

body.exchange-ui .token-row {
    border: 1px solid transparent;
    padding: 10px 12px;
}
body.exchange-ui .token-row:hover {
    background: rgba(240, 185, 11, 0.04);
    border-color: rgba(240, 185, 11, 0.1);
}

@media (max-width: 520px) {
    .aw-footer-top { grid-template-columns: 1fr; gap: 28px; }
}
.aw-footer-brand p {
    font-size: 13px;
    line-height: 1.65;
    color: #5E6673;
    margin: 14px 0 16px;
    max-width: 280px;
}
.aw-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #0ECB81;
    background: rgba(14, 203, 129, 0.08);
    border: 1px solid rgba(14, 203, 129, 0.2);
}
.aw-footer-status .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #0ECB81;
    animation: awLivePulse 2s ease-in-out infinite;
}
.aw-footer-col h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #EAECEF;
    margin: 0 0 14px;
}
.aw-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aw-footer-col a {
    font-size: 13px;
    color: #848E9C;
    text-decoration: none;
    transition: color 0.15s ease;
}
.aw-footer-col a:hover { color: #F0B90B; }
.aw-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.aw-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #848E9C;
    background: rgba(30, 35, 41, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    transition: all 0.15s ease;
}
.aw-footer-social a:hover {
    color: #F0B90B;
    border-color: rgba(240, 185, 11, 0.25);
    background: rgba(240, 185, 11, 0.06);
}
.aw-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.aw-footer-bottom p {
    font-size: 12px;
    color: #5E6673;
    margin: 0;
}
.aw-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.aw-footer-legal a {
    font-size: 12px;
    color: #5E6673;
    text-decoration: none;
}
.aw-footer-legal a:hover { color: #F0B90B; }
.aw-footer-disclaimer {
    width: 100%;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.5;
    color: #5E6673;
    opacity: 0.85;
}

.theme-light .aw-ticker { background: rgba(255, 255, 255, 0.98); border-color: rgba(11, 14, 17, 0.06); }
.theme-light .aw-footer { background: #f5f5f5; border-color: rgba(11, 14, 17, 0.08); }
.theme-light .aw-footer-col h4 { color: #0B0E11; }
.theme-light .aw-footer-col a { color: #5E6673; }
.theme-light .x-panel, .theme-light .glass { background: #fff; border-color: rgba(11, 14, 17, 0.08); }
