.bybit-box { max-width: 1200px; background: #fff; padding: 32px; margin-top: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.input-field,
.select-field {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
    box-sizing: border-box;
}
.input-field:focus,
.select-field:focus { border-color: #f7a600; outline: none; box-shadow: 0 0 0 2px rgba(247,166,0,0.2); }
/* Hiệu ứng khi disable ô nhập (ví dụ Order ID) */
.input-field:disabled,
.select-field:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #e0e0e0;
    opacity: 0.85;
}
.btn-submit { background: #f7a600; color: white; border: none; padding: 16px 20px; cursor: pointer; font-size: 17px; border-radius: 4px; width: 100%; }
.btn-submit:hover { background: #e69500; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }
.notice-box { padding: 15px; margin-bottom: 20px; border-left: 4px solid #ccc; border-radius: 4px; }
.notice-box.success { background: #e7f5ea; border-color: #4caf50; color: #0d5e12; }
.notice-box.error   { background: #ffebee; border-color: #f44336; color: #b71c1c; }
.notice-box.warning { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: #333; font-size: 16px; }
.account-info { background: #f8f9fa; padding: 16px; border-radius: 4px; margin-bottom: 20px; display: none; font-size: 15px; }
.account-info.show { display: block; }
.account-info p { margin: 6px 0; }
.account-info strong { color: #333; }
.loading { display: none; color: #666; font-style: italic; padding: 10px 0; }
.loading.show { display: block; }

/* Step indicator */
.step-indicator {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}
.step {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    background: linear-gradient(135deg, #f2f4f7, #e5e7eb);
    border-radius: 10px;
    color: #666;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.18s ease;
    min-height: 70px;
}
.step .step-number {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.step .step-text {
    font-size: 13px;
    margin-top: 4px;
    font-weight: 600;
}
.step.active {
    background: linear-gradient(135deg, #ffb347, #ff9500);
    color: #fff;
    border-color: #ff9f2f;
    box-shadow: 0 8px 18px rgba(255,149,0,0.25);
}
.step.completed {
    background: linear-gradient(135deg, #4caf50, #3b8f3f);
    color: #fff;
    border-color: #3f9f4a;
    box-shadow: 0 8px 18px rgba(76,175,80,0.22);
}
.step:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.step:last-child { margin-right: 0; }
.step-number { display: block; font-size: 18px; font-weight: bold; }
.step-text { font-size: 12px; }

.proxy-status { padding: 15px; border-radius: 4px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.proxy-status.checking { background: #e3f2fd; border-left: 4px solid #2196f3; color: #1565c0; }
.proxy-status.success  { background: #e7f5ea; border-left: 4px solid #4caf50; color: #0d5e12; }
.proxy-status.error    { background: #ffebee; border-left: 4px solid #f44336; color: #b71c1c; }
.proxy-status.warning  { background: #fff3e0; border-left: 4px solid #ff9800; color: #e65100; }
.proxy-status .spinner { width: 20px; height: 20px; border: 3px solid #ccc; border-top-color: #2196f3; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-recheck { background: #2196f3; color: white; border: none; padding: 6px 15px; border-radius: 4px; cursor: pointer; font-size: 12px; margin-left: auto; }
.btn-recheck:hover { background: #1976d2; }
.box-divider { margin: 28px 0 20px; border-top: 1px solid #eee; padding-top: 18px; }
.small-muted { color: #777; font-size: 13px; }
.nav-tab-wrapper { margin-bottom: 15px; }
.info-card { background: #f3f6fb; padding: 14px; border-radius: 6px; margin-top: 10px; border: 1px solid #dce4f2; display: none; }
.info-card p { margin: 4px 0; font-size: 14px; }
.btn-secondary { background: #2196f3; color: #fff; border: none; padding: 10px 14px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn-secondary:disabled { background: #b0c4de; cursor: not-allowed; }
.bybit-side-buy { color: #0d8f2b; font-weight: 700; }
.bybit-side-sell { color: #c62828; font-weight: 700; }

/* Compact proxy status footer */
.proxy-status.proxy-status-compact {
    font-size: 12px;
    padding: 10px 12px;
    margin-top: 12px;
    margin-bottom: 0;
}
.proxy-status.proxy-status-compact .spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

/* Release confirm bar - refined */
#releaseConfirmBar {
    display: none;
    margin-top: 14px;
    padding: 16px 16px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15,23,42,0.10);
}
#releaseConfirmBar h4 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.1px;
}
.release-compare {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.release-card {
    background: #f7f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 11px 9px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}
.release-card h5 {
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}
.release-card p {
    margin: 3px 0;
    font-size: 13px;
    color: #2f3640;
    line-height: 1.4;
}
.release-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}
.release-actions .btn-primary {
    background: linear-gradient(135deg, #ffaf38, #ff8f00);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255,143,0,0.24);
    transition: all 0.12s ease;
    min-width: 150px;
    text-align: center;
}
.release-actions .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,143,0,0.3); }
.release-actions .btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s ease;
    min-width: 90px;
    text-align: center;
}
.release-actions .btn-secondary:hover { background: #eef2f7; }
#rc_sell_card p, #rc_buy_card p { margin: 3px 0; }

/* Accounts list card */
#accountsListCard {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 14px 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
#accountsListCard h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}
#accountsListItems .account-item {
    font-size: 13.5px;
    color: #2f3640;
    line-height: 1.5;
}
#accountsCacheInfo {
    margin-top: 8px;
    font-size: 12.5px;
    color: #667085;
}
#accountsRefreshRow {
    margin-top: 10px;
}
#btnRefreshAccounts {
    background: #eef6ff;
    color: #0b6cbd;
    border: 1px solid #c7defc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s ease;
    width: auto;
}
#btnRefreshAccounts:hover {
    background: #dcecff;
    border-color: #b5d4fa;
}

/* Footer proxy/role area tidy & muted (compacter) */
.proxy-status.proxy-status-compact {
    font-size: 11.8px;
    padding: 8px 10px;
    margin-top: 10px;
    margin-bottom: 2px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #3a4759;
    border-left-width: 3px;
    border-left-color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.proxy-status.proxy-status-compact.success {
    border-left-color: #22c55e;
    color: #166534;
}
.proxy-status.proxy-status-compact .spinner {
    width: 12px;
    height: 12px;
    border-width: 2px;
}
#proxyMessage { margin: 0; font-size: 11.8px; line-height: 1.4; }
#btnRecheck {
    background: #eef2f7;
    color: #475467;
    border: 1px solid #e2e8f0;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 11.8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
}
#btnRecheck:hover { background: #e2e8f0; }

/* Role badge compact */
#roleBadge {
    display: inline-block;
    margin-top: 2px;
    font-size: 11.8px;
    font-weight: 700;
    color: #475467;
    padding: 5px 9px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

/* Action buttons done state */
#btnCheckOrder.btn-done,
#btnScanHistory.btn-done {
    background: linear-gradient(135deg, #4caf50, #3f9142) !important;
    border-color: #3f9142 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(76,175,80,0.22);
}
#btnCheckOrder.btn-done:hover,
#btnScanHistory.btn-done:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(76,175,80,0.26);
}