.coinrf-futures-v1.coinrf-trade-popup-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgb(0 0 0 / 72%);
}
.coinrf-futures-v1 .coinrf-trade-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 10001 !important;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: min(540px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #41444b;
    border-radius: 8px !important;
    background: #202020 !important;
    color: #f7f7f7;
    box-shadow: 0 24px 70px rgb(0 0 0 / 48%);
    text-align: left;
}
.coinrf-futures-v1 .coinrf-trade-popup :is(button, input) { font-family: inherit; letter-spacing: 0; }
.coinrf-futures-v1 #down_menu_trans { width: min(720px, calc(100vw - 24px)); }
.coinrf-futures-v1 .coinrf-trade-popup > table {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-collapse: separate;
}
.coinrf-futures-v1 .coinrf-trade-popup > table > tbody > tr > td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.coinrf-futures-v1 .coinrf-trade-popup table { max-width: 100%; }
.coinrf-futures-v1 .coinrf-trade-popup table td[style*="border:2px solid #357ce1"] {
    border: 0 !important;
    background: transparent !important;
}
.coinrf-futures-v1 .coinrf-trade-popup table td[style*="background:#166ec5"]:not([onclick]) {
    border: 0 !important;
    background: transparent !important;
}
.coinrf-futures-v1 .coinrf-trade-popup table td[style*="height:40px"] { border-radius: 6px; }
.coinrf-futures-v1 .coinrf-trade-popup table td[align="center"][style*="font-size:1.2rem;height:40px"],
.coinrf-futures-v1 #down_menu_trans table td[align="center"][style*="font-size:1rem;height:40px"] {
    height: auto !important;
    padding: 0 36px 16px 0;
    border-bottom: 1px solid #41444b;
    color: #f7f7f7;
    font-size: 1.28rem !important;
    font-weight: 700;
    text-align: left;
}
.coinrf-futures-v1 .coinrf-trade-popup input.pop_btn_yes,
.coinrf-futures-v1 .coinrf-popup-primary {
    width: 100% !important;
    min-height: 46px;
    border: 0 !important;
    border-radius: 6px;
    background: #ffd83d !important;
    color: #181818 !important;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
}
.coinrf-futures-v1 .coinrf-trade-popup input.pop_btn_no,
.coinrf-futures-v1 .coinrf-popup-secondary {
    width: 100% !important;
    min-height: 46px;
    border: 1px solid #535353 !important;
    border-radius: 6px;
    background: #2b2b2b !important;
    color: #e5e5e5 !important;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
}
.coinrf-futures-v1 .coinrf-trade-popup input:disabled,
.coinrf-futures-v1 .coinrf-reset-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.coinrf-futures-v1 .coinrf-trade-popup input.pop_btn_yes:hover,
.coinrf-futures-v1 .coinrf-popup-primary:hover { background: #ffe475 !important; }
.coinrf-futures-v1 .coinrf-trade-popup input.pop_btn_no:hover,
.coinrf-futures-v1 .coinrf-popup-secondary:hover { border-color: #d4d4d4 !important; background: #363636 !important; }
.coinrf-futures-v1 .coinrf-popup-close {
    position: absolute;
    top: 16px;
    right: 17px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f7f7f7;
    font-size: 1.5rem;
    cursor: pointer;
}
.coinrf-futures-v1 .coinrf-popup-close:hover { color: #ffdc59; }
.coinrf-futures-v1 .coinrf-popup-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 22px;
}
.coinrf-futures-v1 .coinrf-popup-aux {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #5c5c5c;
    border-radius: 5px;
    background: #343434;
    color: #f5f5f5;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
.coinrf-futures-v1 .coinrf-popup-aux:hover { border-color: #ffd83d; }
.coinrf-futures-v1 :is(#down_menu_trans, #down_menu_iso) > h2 {
    margin: 0;
    padding: 0 42px 16px 0;
    border-bottom: 1px solid #41444b;
    color: #f7f7f7;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.3;
}
.coinrf-futures-v1 .coinrf-transfer-direction {
    margin: 18px 0 0;
    color: #ffd83d;
    font-size: 1.05rem;
    font-weight: 700;
}
.coinrf-futures-v1 #down_menu_trans .coinrf-popup-hint {
    margin: 16px 0 20px;
    color: #b8b8b8;
    font-size: 0.88rem;
    line-height: 1.5;
}
.coinrf-futures-v1 .coinrf-transfer-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}
.coinrf-futures-v1 .coinrf-transfer-wallet {
    display: grid;
    gap: 6px;
    min-width: 0;
    min-height: 100px;
    padding: 18px;
    border: 1px solid #505050;
    border-radius: 6px;
    background: #292929;
    color: #f7f7f7;
    text-align: left;
}
.coinrf-futures-v1 .coinrf-transfer-wallet small { color: #ffd83d; font-size: 0.76rem; font-weight: 700; }
.coinrf-futures-v1 #pop_trans_1 .coinrf-transfer-target { border-color: #46a88d; background: #193c34; }
.coinrf-futures-v1 #pop_trans_2 .coinrf-transfer-target { border-color: #ffd83d; background: #493b17; }
.coinrf-futures-v1 .coinrf-transfer-wallet span { color: #bcbcbc; font-size: 0.84rem; }
.coinrf-futures-v1 .coinrf-transfer-wallet strong { min-width: 0; overflow-wrap: anywhere; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.coinrf-futures-v1 .coinrf-transfer-switch {
    width: 42px;
    height: 42px;
    border: 1px solid #6b6b6b;
    border-radius: 50%;
    background: #343434;
    color: #ffd83d;
    font-size: 1rem;
    cursor: pointer;
}
.coinrf-futures-v1 #pop_trans_1 .coinrf-transfer-switch { border-color: #46a88d; background: #277b66; color: #fff; }
.coinrf-futures-v1 #pop_trans_2 .coinrf-transfer-switch { border-color: #ffd83d; background: #ffd83d; color: #202020; }
.coinrf-futures-v1 .coinrf-transfer-switch:hover { filter: brightness(1.12); }
.coinrf-futures-v1 .coinrf-transfer-label { display: block; margin: 24px 0 8px; color: #d4d4d4; font-size: 0.86rem; }
.coinrf-futures-v1 .coinrf-transfer-input {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 4px 5px 4px 12px;
    border: 1px solid #5c5c5c;
    border-radius: 6px;
    background: #292929;
}
.coinrf-futures-v1 .coinrf-transfer-input:focus-within { border-color: #ffd83d; }
.coinrf-futures-v1 .coinrf-transfer-input input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #f7f7f7;
    font-size: 1rem;
}
.coinrf-futures-v1 .coinrf-transfer-input span { color: #bcbcbc; font-size: 0.86rem; }
.coinrf-futures-v1 .coinrf-transfer-input .coinrf-popup-aux { flex: 0 0 auto; }
.coinrf-futures-v1 .coinrf-iso-body { padding-top: 18px; }
.coinrf-futures-v1 .coinrf-iso-balance { display: grid; gap: 8px; min-height: 110px; color: #b8b8b8; font-size: 0.84rem; }
.coinrf-futures-v1 .coinrf-iso-balance strong { color: #f7f7f7; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.coinrf-futures-v1 .coinrf-iso-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #535353 !important;
    border-radius: 6px;
    background: #292929 !important;
    color: #f7f7f7 !important;
    font-size: 1rem;
}
.coinrf-futures-v1 #down_menu_leverage #position_leverage_temp { color: #ffd83d !important; font-weight: 700; }
.coinrf-futures-v1 #down_menu_kyc input.btn_tx {
    min-height: 46px;
    border: 1px solid #535353;
    border-radius: 6px;
    background: #303030;
    color: #f7f7f7;
    cursor: pointer;
}
.coinrf-futures-v1 #down_menu_kyc input.btn_tx { border: 0; background: #ffd83d; color: #181818; }
html[color-scheme="light"] .coinrf-futures-v1 :is(#down_menu_trans, #down_menu_iso) { background: #fff !important; color: #202938; border-color: #cbd5e1; }
html[color-scheme="light"] .coinrf-futures-v1 :is(#down_menu_trans, #down_menu_iso) > h2 { color: #202938; border-color: #d5dbe5; }
html[color-scheme="light"] .coinrf-futures-v1 :is(#down_menu_trans, #down_menu_iso) .coinrf-popup-close { color: #657185; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-direction { color: #805400; }
html[color-scheme="light"] .coinrf-futures-v1 #down_menu_trans :is(.coinrf-popup-hint, .coinrf-transfer-label) { color: #657185; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-wallet { background: #f8fafc; color: #202938; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-wallet small { color: #805400; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-wallet span { color: #657185; }
html[color-scheme="light"] .coinrf-futures-v1 #pop_trans_1 .coinrf-transfer-target { border-color: #087443; background: #def3e9; }
html[color-scheme="light"] .coinrf-futures-v1 #pop_trans_2 .coinrf-transfer-target { border-color: #b8860b; background: #fff2c4; }
html[color-scheme="light"] .coinrf-futures-v1 #pop_trans_1 .coinrf-transfer-switch { background: #087443; color: #fff; border-color: #087443; }
html[color-scheme="light"] .coinrf-futures-v1 #pop_trans_2 .coinrf-transfer-switch { background: #f3ba2d; color: #202938; border-color: #b8860b; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-input { background: #fff; border-color: #cbd5e1; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-input input { color: #202938; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-input span { color: #657185; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-transfer-input .coinrf-popup-aux { background: #eef2f7; color: #202938; border-color: #cbd5e1; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-iso-balance { color: #657185; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-iso-balance strong { color: #202938; }
html[color-scheme="light"] .coinrf-futures-v1 .coinrf-iso-input { background: #f8fafc !important; color: #202938 !important; border-color: #cbd5e1 !important; }
html[color-scheme="light"] .coinrf-futures-v1 #down_menu_iso .coinrf-popup-secondary { background: #eef2f7 !important; color: #202938 !important; border-color: #cbd5e1 !important; }
.coinrf-futures-v1 #public_setup { position: fixed; inset: 0; z-index: 10001; background: rgb(0 0 0 / 72%); }
.coinrf-futures-v1 #public_setup .public_cex_container {
    width: min(540px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #41444b;
    border-radius: 8px;
    background: #202020;
    box-shadow: 0 24px 70px rgb(0 0 0 / 48%);
}
.coinrf-futures-v1 #public_setup .cex_img { padding: 0 36px 16px 0; border-bottom: 1px solid #41444b; color: #f7f7f7; font-weight: 700; text-align: left; }
.coinrf-futures-v1 #public_setup .cex_img ~ br { display: none; }
.coinrf-futures-v1 #public_setup .public_btn { margin-top: 22px; }
.coinrf-futures-v1 #public_setup .public_btn > div { min-width: 140px; width: auto; line-height: normal; border: 0; border-radius: 0; background: transparent; }
.coinrf-futures-v1 #public_setup input.pop_btn_no { min-height: 46px; padding: 0 16px; border: 1px solid #535353 !important; border-radius: 6px; background: #2b2b2b; color: #e5e5e5; cursor: pointer; }
.coinrf-futures-v1 #public_setup input[type="number"] { border: 1px solid #535353 !important; border-radius: 6px; background: #292929 !important; color: #f7f7f7 !important; }
.coinrf-futures-v1 #binance_futures_calculator .bfc_calculate { height: 46px; border-radius: 6px; background: #ffd83d; color: #181818; font-size: 0.94rem; }
.coinrf-futures-v1 #binance_futures_calculator .bfc_calculate:hover { background: #ffe475; }
.coinrf-futures-v1 .coinrf-reset-overlay { position: fixed; inset: 0; z-index: 10010; align-items: center; justify-content: center; padding: 12px; background: rgb(0 0 0 / 72%); }
.coinrf-futures-v1 .coinrf-reset-overlay:not([hidden]) { display: flex; }
.coinrf-futures-v1 .coinrf-reset-overlay[hidden] { display: none; }
.coinrf-futures-v1 .coinrf-reset-dialog { position: relative; width: min(540px, 100%); padding: 24px; border: 1px solid #41444b; border-radius: 8px; background: #202020; color: #f7f7f7; box-shadow: 0 24px 70px rgb(0 0 0 / 48%); text-align: left; }
.coinrf-futures-v1 .coinrf-reset-dialog h2 { margin: 0 40px 16px 0; padding-bottom: 16px; border-bottom: 1px solid #41444b; font-size: 1.28rem; line-height: 1.3; }
.coinrf-futures-v1 .coinrf-reset-dialog p { color: #b8b8b8; font-size: 0.9rem; line-height: 1.55; }
.coinrf-futures-v1 #coinrf_chart_reset_error { margin-top: 12px; color: #ff7878; }
.coinrf-futures-v1 .coinrf-reset-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.coinrf-futures-v1 #coinrf_chart_reset_open { color: #ffd83d; }
