/**
 * Boost Grid panel styles — NEW FILE (main gamma_scalper.css untouched).
 * Token-only colours: reuses the gamma page CSS variables.
 */

#boost-panel {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    background: var(--bg-card, #1a1a2e);
}

/* ---- sub-tabs: Boost Grid | Option Band ------------------------------- */
.boost-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border, #333);
    padding-bottom: 10px;
}

.boost-tab {
    background: transparent;
    color: var(--text-secondary, #475569);
    border: 1px solid var(--border, #333);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.boost-tab:hover {
    color: var(--text-primary, #0f172a);
    border-color: var(--text-secondary, #475569);
}

.boost-tab.active {
    background: var(--bg-input, #12121f);
    color: var(--text-primary, #0f172a);
    border-color: var(--accent, #6c5ce7);
}

.boost-tab .badge {
    display: inline-block;
    min-width: 1.5em;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: var(--accent, #6c5ce7);
    color: #fff;
    text-align: center;
}

.boost-tab .badge-zero {
    background: var(--text-muted, #94a3b8);
}

.boost-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.boost-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.boost-head .boost-note {
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
}

#boost-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 10px;
}

#boost-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#boost-form label {
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
}

#boost-form select,
#boost-form input {
    background: var(--bg-input, #f8fafc);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    padding: 8px 10px;
    min-width: 180px;
}

/* ---- Option Band form: compact single-row combo ----------------------- */
#oh-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.oh-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    width: 100%;
}

#oh-form .form-group {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#oh-form .form-group label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

#oh-form .form-group select,
#oh-form .form-group input {
    width: auto;
    padding: 7px 9px;
    font-size: 0.85rem;
}

#oh-form #oh-account { min-width: 130px; max-width: 170px; }
#oh-form #oh-expiry  { min-width: 118px; max-width: 140px; }
#oh-form #oh-side    { min-width: 88px;  }
#oh-form #oh-strike  { min-width: 110px; max-width: 140px; }
#oh-form #oh-lots    { width: 76px; }
#oh-form #oh-steps   { width: 76px; }

/* Delta-extension checkbox (2026-09-30) — ½ Δ only. */
.oh-ext-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
}
.oh-ext-toggle input { accent-color: var(--accent, #2563eb); }

/* Hedge mode toggle (2026-09-29): ½ Δ (lots/2) vs 1:1 (lots). */
.oh-mode-toggle { display: inline-flex; }
.oh-mode-btn {
    padding: 7px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color, #cbd5e1);
    background: var(--bg-secondary, #ffffff);
    color: var(--text-secondary, #475569);
    cursor: pointer;
}
.oh-mode-btn:first-child { border-radius: 6px 0 0 6px; }
.oh-mode-btn:last-child  { border-radius: 0 6px 6px 0; margin-left: -1px; }
.oh-mode-btn.oh-mode-on {
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
    color: #fff;
}

#oh-form .btn-small,
#oh-form .btn-primary {
    padding: 7px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
}

#boost-form select option {
    background: var(--bg-secondary, #ffffff);
    color: var(--text-primary, #0f172a);
}

#boost-form input {
    min-width: 120px;
}

#boost-validation {
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 1.2em;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.boost-config-card {
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
    background: var(--bg-input, #12121f);
}

.boost-config-card.boost-err {
    border-color: var(--red, #e5484d);
}

.boost-err-text {
    color: var(--red, #e5484d);
}

.boost-config-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.boost-config-line {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary, #475569);
}

.boost-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.boost-pos-long { color: var(--green, #2bd576); font-weight: 700; }
.boost-pos-short { color: var(--orange, #f5a524); font-weight: 700; }
.boost-pos-flat { color: var(--text-muted, #94a3b8); }
