html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
}

/* ── Login page ────────────────────────────────────── */
.login-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* ── App shell ─────────────────────────────────────── */
.app-shell {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ── Exchange tab bar ──────────────────────────────── */
.exchange-tab-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.exchange-tab-bar {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #dee2e6;
    background: #fff;
    padding: 0 0.5rem;
}

.exchange-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
    transition: color 0.15s, border-color 0.15s;
}

.exchange-tab:hover {
    color: #0d6efd;
}

.exchange-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    font-weight: 600;
}

/* ── Asset sub-tab bar ─────────────────────────────── */
.asset-subtab-container {
    padding: 1rem;
}

.asset-subtab-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.asset-subtab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.3rem 0.5rem 0.3rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #495057;
    transition: background 0.15s, color 0.15s;
}

.asset-subtab:hover {
    background: #e9ecef;
}

.asset-subtab.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

/* ── Add tab button ────────────────────────────────── */
.add-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.add-tab-btn:hover {
    color: #0d6efd;
}

.add-tab-btn-sm {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
}

/* ── Setup views ───────────────────────────────────── */
.exchange-tab-panel {
    min-height: 300px;
}

.exchange-setup-view,
.asset-setup-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.setup-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.75rem;
}

.setup-label {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.credentials-form {
    border-top: 1px solid #e9ecef;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

/* ── Tab close button ──────────────────────────────── */
.tab-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0 0.1rem;
    font-size: 1rem;
    line-height: 1;
    color: #adb5bd;
    cursor: pointer;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}

.tab-close-btn:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.tab-close-btn-sm {
    font-size: 0.85rem;
}

/* ── Searchable select ─────────────────────────────── */
.ss-wrapper {
    position: relative;
}

.ss-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    box-shadow: var(--shadow-2);
}

/* ── Search combo (button-triggered dropdown) ──────── */
.sc-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sc-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sc-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-sub {
    color: var(--fg-2);
    font-weight: 400;
    margin-left: 5px;
    font-size: 12px;
}

.sc-coin {
    flex-shrink: 0;
    border-radius: 50%;
}

.sc-search-row {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sc-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--fg-1);
    padding: 4px 0;
}

.sc-opts {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.sc-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: var(--fg-1);
    transition: background 100ms;
}

.sc-opt.sc-active,
.sc-opt:hover {
    background: var(--surface-sunk);
}

.sc-opt-text {
    flex: 1;
    min-width: 0;
}

.sc-opt-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg-1);
}

.sc-opt-sub {
    font-size: 12px;
    color: var(--fg-2);
    margin-top: 1px;
}

/* ── Numeric input (percent / currency / multiplier) ─ */
.ni-wrap {
    position: relative;
}

.ni-inp {
    width: 100%;
}

.ni-fix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--fg-2);
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    user-select: none;
    line-height: 1;
}

.ni-fix-l { left: 10px; }
.ni-fix-r { right: 10px; }

.ni-scrub-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    color: var(--fg-2);
    opacity: 0.5;
    z-index: 1;
    transition: opacity 120ms, background 120ms;
}

.ni-scrub-handle:hover {
    opacity: 1;
    background: color-mix(in oklab, var(--ink-800) 8%, transparent);
}

.ss-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--fg-1);
    font-family: inherit;
}

.ss-option:hover {
    background: var(--surface-sunk);
}

.ss-option.selected {
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 500;
}

.ss-option.highlighted,
.ss-option.highlighted:hover {
    background: var(--ink-800);
    color: var(--sand-50);
}

.ss-no-results {
    padding: 8px 12px;
    color: var(--fg-3);
    font-size: 13px;
    font-style: italic;
}

/* ── Asset workspace ───────────────────────────────── */
.asset-workspace {
    padding: 0.5rem 0;
}

/* ── Portfolio panel ───────────────────────────────── */
.portfolio-panel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.portfolio-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.portfolio-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom-width: 1px;
    padding: 0.25rem 0.5rem;
}

.portfolio-table td {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border: none;
}

/* ── Strategy cards ────────────────────────────────── */
.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.strategy-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.15s;
    overflow: hidden;
}

.strategy-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.strategy-card.expanded {
    border-color: #0d6efd;
}

.strategy-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.strategy-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strategy-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.strategy-description {
    font-size: 0.85rem;
}

.strategy-toggle {
    margin: 0;
    padding: 0;
}

.strategy-chevron {
    font-size: 1.2rem;
    color: #adb5bd;
    line-height: 1;
    transition: transform 0.2s;
    display: inline-block;
}

.strategy-chevron.open {
    transform: rotate(180deg);
}

.strategy-card-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.strategy-filters {
    padding: 0.5rem 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.filter-name {
    color: #495057;
}

.filter-params {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-param-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #6c757d;
    margin: 0;
}

.filter-param-input {
    width: 4rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
}

.filter-apply-btn {
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    background: transparent;
    color: #0d6efd;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.filter-apply-btn:hover:not(:disabled) {
    background: #0d6efd;
    color: #fff;
}

.filter-apply-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.strategy-form .form-text {
    font-size: 0.78rem;
}

.strategy-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #343a40;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.35rem;
}

.config-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: #fff;
}

.collapsible-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.collapsible-section-title:hover {
    color: #495057;
}

.collapsible-chevron {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
    display: inline-block;
    transform: rotate(-90deg);
}

.collapsible-chevron.open {
    transform: rotate(0deg);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.status-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
}

.status-label {
    font-size: 0.72rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

/* ── Live Status header/footer ───────────────────────── */
.live-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-status-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.live-status-phase-badge {
    font-size: 0.85rem;
    padding: 5px 10px;
}

.bg-awaiting-capital {
    background-color: #fd7e14 !important;
    color: #fff;
}

.live-status-current-price {
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #212529;
}

/* ── Price scale ───────────────────────────────────── */
.price-scale {
    position: relative;
    height: 136px;
}

.price-scale-track {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    height: 3px;
    background: #dee2e6;
    border-radius: 2px;
    z-index: 0;
}

/* Each marker spans the full container height; children are absolutely placed */
.price-scale-marker {
    position: absolute;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Default lane: both label and price below the dot */
.price-scale-name {
    position: absolute;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 14px;
}

.price-scale-dot {
    position: absolute;
    top: 53px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.price-scale-value {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #6c757d;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 13px;
}

/* Staggered lane: label and price above the dot */
.price-scale-marker.staggered .price-scale-name {
    top: 20px;
}

.price-scale-marker.staggered .price-scale-value {
    top: 36px;
}

/* Staggered2 lane: label and price further below the dot (clear of lane 0) */
.price-scale-marker.staggered2 .price-scale-name {
    top: 104px;
}

.price-scale-marker.staggered2 .price-scale-value {
    top: 118px;
}

.scale-dot-primary   { background: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,0.25); width: 14px; height: 14px; }
.scale-dot-danger    { background: #dc3545; box-shadow: 0 0 0 2px rgba(220,53,69,0.2); }
.scale-dot-success   { background: #198754; box-shadow: 0 0 0 2px rgba(25,135,84,0.2); }
.scale-dot-warning   { background: #fd7e14; box-shadow: 0 0 0 2px rgba(253,126,20,0.2); }
.scale-dot-info      { background: #0dcaf0; box-shadow: 0 0 0 2px rgba(13,202,240,0.2); }
.scale-dot-secondary { background: #6c757d; }
.scale-dot-peak      { background: #6f42c1; box-shadow: 0 0 0 2px rgba(111,66,193,0.2); }

/* ── Risk estimate ─────────────────────────────────── */
.risk-estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
}

.risk-estimate-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 600;
}

.risk-estimate-pct {
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
    margin-right: 0.35rem;
}

.risk-estimate-amount {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.modal-backdrop-inline {
    position: fixed;
    inset: 0;
    z-index: 1040;
}


.modal-backdrop-inline .modal {
    z-index: 1050;
}

.modal-backdrop-inline .modal-backdrop {
    z-index: 1040;
}

.strategy-info-btn {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid #adb5bd;
    background: transparent;
    color: #6c757d;
    font-size: 0.7rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}

.strategy-info-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

/* ── Candle chart ───────────────────────────────────── */
.candle-chart {
    width: 100%;
    height: 380px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}