/* AIWallet - BNB Wallet Theme Styles */
/* Binance-inspired dark crypto interface */

:root {
    --bnb-yellow: #F0B90B;
    --bnb-gold: #F3BA2F;
    --bnb-bg: #0B0E11;
    --bnb-bg2: #1E2329;
    --bnb-bg3: #2B3139;
    --bnb-text: #EAECEF;
    --bnb-text2: #848E9C;
    --bnb-text3: #5E6673;
    --bnb-green: #0ECB81;
    --bnb-red: #F6465D;
    --accent: #F0B90B;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(240,185,11,0.5);
    outline-offset: 2px;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Custom scrollbar - BNB theme */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(240,185,11,0.35) rgba(30,35,41,0.5);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30,35,41,0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(240,185,11,0.5), rgba(240,185,11,0.25));
    border-radius: 9999px;
    border: 2px solid rgba(0,0,0,0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(240,185,11,0.7), rgba(240,185,11,0.4));
}

/* Selection color */
::selection {
    background: rgba(240,185,11,0.25);
    color: #fff;
}

/* BNB Glass effects */
.glass {
    background: rgba(30,35,41,0.6);
    border: 1px solid rgba(240,185,11,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.glass:hover {
    border-color: rgba(240,185,11,0.2);
    background: rgba(30,35,41,0.8);
}
.glass-soft {
    background: linear-gradient(180deg, rgba(30,35,41,0.7) 0%, rgba(30,35,41,0.4) 100%);
    border: 1px solid rgba(240,185,11,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Orb backgrounds */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: rgba(240,185,11,0.15); top: -200px; left: -200px; opacity: 0.2; }
.orb-2 { width: 500px; height: 500px; background: rgba(243,186,47,0.1); bottom: -150px; right: -150px; opacity: 0.15; }

/* Navigation blur */
.nav-blur {
    background: rgba(11,14,17,0.92) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* BNB Buttons */
.btn-bnb {
    background: var(--bnb-yellow);
    color: #0B0E11;
    font-weight: 700;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-bnb:hover {
    background: var(--bnb-gold);
    box-shadow: 0 0 30px rgba(240,185,11,0.3);
    transform: scale(1.03);
}
.btn-bnb:active {
    transform: scale(0.98);
}
.btn-bnb-outline {
    background: transparent;
    color: var(--bnb-yellow);
    font-weight: 600;
    border: 1.5px solid var(--bnb-yellow);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-bnb-outline:hover {
    background: rgba(240,185,11,0.1);
    box-shadow: 0 0 20px rgba(240,185,11,0.15);
    transform: scale(1.03);
}

/* Word input fields - BNB style */
.word-input {
    transition: all 0.2s, transform 0.15s ease-out;
    background: rgba(30,35,41,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--bnb-text);
}
.word-input:focus {
    border-color: rgba(240,185,11,0.5);
    background: rgba(240,185,11,0.05);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240,185,11,0.1);
}
.word-input.valid {
    border-color: rgba(14,203,129,0.4);
    background: rgba(14,203,129,0.06);
}
.word-input.invalid {
    border-color: #F6465D;
    background: rgba(246,70,93,0.08);
}

/* Token & icon styles */
.token-icon {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

.icon-btn {
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(240,185,11,0.08);
    border: 1px solid rgba(240,185,11,0.15);
    color: var(--bnb-yellow);
    transition: all 0.2s;
}
.icon-btn:hover {
    background: rgba(240,185,11,0.15);
    border-color: rgba(240,185,11,0.3);
    box-shadow: 0 0 20px rgba(240,185,11,0.1);
}

/* Token row */
.token-row {
    transition: all 0.2s;
    border-radius: 12px;
}
.token-row:hover {
    background: rgba(240,185,11,0.04);
}

/* Deposit modal */
.deposit-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.deposit-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal animations */
.modal-pop {
    animation: modalPop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Badge animations */
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.x2-badge, .apy-badge {
    position: absolute;
    top: -8px;
    right: -24px;
    padding: 2px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(240,185,11,0.45);
    background: rgba(240,185,11,0.2);
    color: var(--bnb-yellow);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(240,185,11,0.24);
    animation: badgePulse 1.9s ease-in-out infinite;
}

/* Wallet switch button */
.wallet-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(240,185,11,0.15);
    background: rgba(240,185,11,0.05);
    color: var(--bnb-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.wallet-switch-btn:hover {
    background: rgba(240,185,11,0.1);
    border-color: rgba(240,185,11,0.3);
}

/* Wallet list */
.wallet-list-row {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(30,35,41,0.6);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.wallet-list-row:hover {
    background: rgba(240,185,11,0.08);
    border-color: rgba(240,185,11,0.2);
}
.wallet-list-row.active {
    border-color: rgba(240,185,11,0.5);
    background: rgba(240,185,11,0.06);
}

.wallet-dot {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    background: rgba(240,185,11,0.15);
    border: 1px solid rgba(240,185,11,0.3);
    color: var(--bnb-yellow);
}

/* Wallet switch modal */
.wallet-switch-modal {
    width: min(520px, 96vw);
    max-width: 96vw;
    border-radius: 24px;
    border: 1px solid rgba(240,185,11,0.1);
    background:
        radial-gradient(120% 140% at 20% -20%, rgba(240,185,11,0.06) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, var(--bnb-bg2) 0%, var(--bnb-bg) 100%);
    box-shadow: 0 40px 100px rgba(0,0,0,0.7);
    padding: 14px;
    max-height: min(86vh, 740px);
    overflow: auto;
}

/* AI Button */
.ai-btn {
    background: var(--bnb-yellow);
    color: var(--bnb-bg);
    font-weight: 700;
    border: none;
    transition: all 0.2s;
}
.ai-btn:hover {
    background: var(--bnb-gold);
    box-shadow: 0 0 25px rgba(240,185,11,0.25);
}

/* Chain pill */
.chain-pill {
    background: rgba(240,185,11,0.08);
    border: 1px solid rgba(240,185,11,0.15);
    color: var(--bnb-text2);
    transition: all 0.2s;
}
.chain-pill:hover, .chain-pill.active {
    background: rgba(240,185,11,0.15);
    border-color: rgba(240,185,11,0.3);
    color: var(--bnb-yellow);
}

/* Send modal styles */
.send-input {
    background: var(--bnb-bg2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--bnb-text);
    transition: all 0.2s;
}
.send-input:focus {
    border-color: rgba(240,185,11,0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240,185,11,0.08);
}

.send-toggle-btn {
    background: rgba(30,35,41,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--bnb-text2);
    transition: all 0.2s;
}
.send-toggle-btn.active, .send-toggle-btn:hover {
    background: rgba(240,185,11,0.1);
    border-color: rgba(240,185,11,0.3);
    color: var(--bnb-yellow);
}

/* AI trading styles */
.ai-input {
    background: var(--bnb-bg2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--bnb-text);
}
.ai-input:focus {
    border-color: rgba(240,185,11,0.4);
    outline: none;
}

.ai-select {
    background: var(--bnb-bg2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--bnb-text);
}

/* Token avatar */
.token-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.token-avatar-main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.token-avatar-chain {
    position: absolute;
    bottom: -2px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bnb-bg);
}

/* Deposit styles */
.deposit-name { font-size: 18px; font-weight: 800; color: var(--bnb-text); }
.deposit-address-label { color: var(--bnb-text2); font-size: 12px; }
.deposit-badge {
    background: rgba(240,185,11,0.1);
    border: 1px solid rgba(240,185,11,0.2);
    color: var(--bnb-yellow);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 8px;
}

/* Asset action */
.asset-action-btn {
    background: var(--bnb-bg2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--bnb-text);
    transition: all 0.2s;
}
.asset-action-btn:hover {
    background: rgba(240,185,11,0.08);
    border-color: rgba(240,185,11,0.2);
}
.asset-action-btn.primary {
    background: var(--bnb-yellow);
    color: var(--bnb-bg);
    border: none;
}
.asset-action-btn.primary:hover {
    background: var(--bnb-gold);
}

.asset-action-title { font-size: 17px; font-weight: 800; color: var(--bnb-text); }
.asset-action-sub { font-size: 12px; color: var(--bnb-text2); }
.asset-stat { text-align: center; }
.asset-stat-label { font-size: 11px; color: var(--bnb-text3); }
.asset-stat-value { font-size: 13px; font-weight: 700; color: var(--bnb-text); }
.asset-action-stats { display: grid; gap: 8px; }

/* Bonus button wrap */
.bonus-btn-wrap {
    position: relative;
    display: inline-flex;
}

/* Deposit single/address */
.deposit-single { padding: 16px; }
.deposit-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bnb-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 14px;
}
.deposit-coin-note { font-size: 13px; color: var(--bnb-text2); }

/* Send styles */
.send-title { font-weight: 800; color: var(--bnb-text); }
.send-subtitle { font-size: 12px; color: var(--bnb-text2); }
.send-hint { font-size: 12px; color: var(--bnb-text3); }
.send-error { font-size: 12px; color: var(--bnb-red); }
.send-submit {
    background: var(--bnb-yellow);
    color: var(--bnb-bg);
    font-weight: 700;
    transition: all 0.2s;
}
.send-submit:hover:not(:disabled) {
    background: var(--bnb-gold);
    box-shadow: 0 0 20px rgba(240,185,11,0.2);
}
.send-submit:disabled {
    background: var(--bnb-bg3);
    color: var(--bnb-text3);
    cursor: not-allowed;
}
.send-max-btn {
    background: rgba(240,185,11,0.1);
    border: 1px solid rgba(240,185,11,0.2);
    color: var(--bnb-yellow);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}
.send-max-btn:hover {
    background: rgba(240,185,11,0.2);
}

/* AI trading */
.ai-list { list-style: none; padding: 0; }
.ai-chart { border-radius: 12px; }

/* Word count button */
.word-count-btn {
    transition: all 0.2s;
    border-radius: 12px;
}
.word-count-btn.active, .word-count-btn:hover {
    border-color: rgba(240,185,11,0.4) !important;
    background: rgba(240,185,11,0.1) !important;
    color: var(--bnb-yellow) !important;
}

/* Glow effects */
@keyframes yellowGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(240,185,11,0.15); }
    50% { box-shadow: 0 0 40px rgba(240,185,11,0.3); }
}
.glow-yellow {
    animation: yellowGlow 3s ease-in-out infinite;
}
