/* ══════════════════════════════════════════════════════════════════════
   SIGNALS PAGE — sg-* prefix · uses base.css tokens
   (Fonts loaded globally by base.css)
   ══════════════════════════════════════════════════════════════════════ */

:root { --c-warn: #f59e0b; }

/* Tab system (.tb-tabs · .tb-tab · .tb-tab-count · .tb-pane) lives in base.css */

.tb-tab-count.hidden { display: none; }

/* Live-price flash — pulses briefly when LTP/pct refreshes via tb-live-prices.js */

.tb-live-flash {
    animation: tb-live-flash 0.8s ease-out;
    border-radius: 4px;
}

@keyframes tb-live-flash {
    0%   { background: rgba(245,158,11,.22); }
    100% { background: transparent; }
}

/* Heatmap pane — full-bleed iframe (page-specific override) */

.tb-pane-heatmap {
    padding: 0;
    margin: 0;
}

.tb-pane-heatmap.active {
    display: block;
}

.sg-heatmap-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 480px;
    border: 0;
    background: #06070c;
}

@media (max-width: 900px) {
    .sg-heatmap-frame { height: calc(100vh - 180px); }
}

/* ═════════════════════════════════════════════════════════
   PANE: JUST FLIPPED
   ═════════════════════════════════════════════════════════ */

.sg-hero {
    position: relative; overflow: hidden;
    padding: 40px 32px 48px;
    cursor: pointer;
}

.sg-hero-bell, .sg-hero-open {
    position: absolute; top: 24px;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.72);
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}

.sg-hero-bell { right: 24px; }

.sg-hero-open { right: 84px; }

.sg-hero-bell:hover, .sg-hero-open:hover { background: rgba(0,0,0,.6); color: #fff; }

.sg-hero-bell:active { transform: scale(.95); }

.sg-hero-open:active { transform: scale(.95); }

.sg-hero-open:hover svg { transform: translateX(2px); }

.sg-hero-bell svg { width: 22px; height: 22px; }

.sg-hero-open svg { width: 20px; height: 20px; transition: transform .15s ease; }

.sg-hero-bell .bell-fill { display: none; }

.sg-hero-bell.active {
    color: var(--c-warn);
    background: rgba(245,158,11,.18);
    border-color: rgba(245,158,11,.5);
}

.sg-hero-bell.active .bell-line { display: none; }

.sg-hero-bell.active .bell-fill { display: block; }

@media (max-width: 600px) {
    .sg-hero-bell, .sg-hero-open { top: 16px; width: 42px; height: 42px; }
    .sg-hero-bell { right: 16px; }
    .sg-hero-open { right: 68px; }
    .sg-hero-bell svg { width: 20px; height: 20px; }
    .sg-hero-open svg { width: 18px; height: 18px; }
}

.sg-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(229,9,26,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229,9,26,.025) 1px, transparent 1px);
    background-size: 56px 56px; pointer-events: none;
}

.sg-hero::after {
    content: ''; position: absolute; right: -120px; top: -160px;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(229,9,26,.14), transparent 60%);
    pointer-events: none;
}

/* Mood-tinted hero atmosphere — flip to green when bullish */

.sg-hero.bull::before {
    background-image:
        linear-gradient(rgba(22,199,132,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,199,132,.025) 1px, transparent 1px);
}

.sg-hero.bull::after {
    background: radial-gradient(circle, rgba(22,199,132,.14), transparent 60%);
}

.sg-hero-inner { position: relative; z-index: 1; }

.sg-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 13px;
    background: rgba(229,9,26,.10); border: 1px solid rgba(229,9,26,.32);
    border-radius: 100px;
    font-family: 'DM Mono', monospace; font-size: 11px;
    font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: #ff5764;
    margin-bottom: 20px;
}

.sg-hero-eyebrow-dot { width: 7px; height: 7px; background: var(--c-red); border-radius: 50%; box-shadow: 0 0 10px rgba(229,9,26,.7); animation: tb-pulse 1.8s ease-in-out infinite; }

.sg-hero-eyebrow-tick { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255,87,100,.35); color: rgba(255,255,255,.5); }

/* Bull variant — flips the eyebrow palette to green */

.sg-hero-eyebrow.bull {
    background: rgba(22,199,132,.10);
    border-color: rgba(22,199,132,.32);
    color: var(--c-green);
}

.sg-hero-eyebrow.bull .sg-hero-eyebrow-dot {
    background: var(--c-green);
    box-shadow: 0 0 10px rgba(22,199,132,.7);
}

.sg-hero-eyebrow.bull .sg-hero-eyebrow-tick {
    border-left-color: rgba(22,199,132,.35);
}

.sg-hero-sym {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(76px, 14vw, 180px);
    line-height: .82; letter-spacing: .005em;
    color: var(--c-text1); margin: 0; padding: 0;
}

.sg-hero-name {
    margin-top: 14px;
    font-family: 'DM Mono', monospace; font-size: 12px;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--c-text3);
}

.sg-hero-name .dot { color: var(--c-red); margin: 0 10px; }

.sg-hero-pricerow {
    display: flex; align-items: baseline; gap: 22px;
    margin: 28px 0 18px;
}

.sg-hero-price {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: 72px; line-height: 1;
    color: var(--c-text1); letter-spacing: .01em;
}

.sg-hero-price .currency { color: var(--c-text3); font-size: 40px; margin-right: 4px; }

.sg-hero-pct {
    font-family: 'DM Mono', monospace; font-weight: 700; font-size: 20px;
    padding: 5px 12px; border-radius: 8px;
}

.sg-hero-pct.up   { color: var(--c-green); background: rgba(22,199,132,.12); }

.sg-hero-pct.down { color: #ff8f8f;        background: rgba(229,9,26,.12); }

/* ═════ HERO BAND — extra-large ═════ */

/* Visible tick lines (1-2px) — non-interactive, the zone above captures hover */

/* Hover zones: 5 tiled regions over the band, one per level. Transparent. */

@keyframes sg-ping { 0%,100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.25); opacity: 0; } }

/* ═════ HERO TRADE PLAN — R:R tier + lifecycle state + sell-50% guidance ═════
   Sits below the band-floor cells. Mirrors the drawer's strategy note but
   scaled up to the hero's editorial Bebas/DM Mono register. State-tinted
   left bar carries the lifecycle color from band → plan in one glance. */

.sg-hero-plan {
    margin-top: 26px;
    padding: 22px 24px 20px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
    border-left: 3px solid rgba(255,255,255,.12);
    border-radius: 14px;
    backdrop-filter: blur(2px);
}

.sg-hero-plan.state-awaiting { border-left-color: var(--c-green); background: rgba(22,199,132,.035); }

.sg-hero-plan.state-achieved { border-left-color: var(--c-green); background: rgba(22,199,132,.06); }

.sg-hero-plan.state-noplan   { border-left-color: var(--c-warn);  background: rgba(245,158,11,.035); }

.sg-hero-plan-row {
    display: flex; align-items: stretch; gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* R:R chip — Bebas Neue value, DM Mono labels */

.sg-hero-rr {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
}

.sg-hero-rr-lbl {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--c-text3);
}

.sg-hero-rr-val {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: 32px; line-height: 1; letter-spacing: .03em;
    color: var(--c-text1);
}

.sg-hero-rr-tag {
    font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 100px;
    border: 1px solid rgba(255,255,255,.14);
    color: var(--c-text2);
}

.sg-hero-rr.tier-strong .sg-hero-rr-val,
.sg-hero-rr.tier-strong .sg-hero-rr-tag {
    color: var(--c-green);
    border-color: rgba(22,199,132,.4);
    background: rgba(22,199,132,.1);
}

.sg-hero-rr.tier-strong .sg-hero-rr-val { background: transparent; }

.sg-hero-rr.tier-fair  .sg-hero-rr-tag { color: var(--c-text1); border-color: rgba(255,255,255,.22); }

.sg-hero-rr.tier-weak  .sg-hero-rr-val,
.sg-hero-rr.tier-weak  .sg-hero-rr-tag {
    color: var(--c-warn);
    border-color: rgba(245,158,11,.36);
    background: rgba(245,158,11,.1);
}

.sg-hero-rr.tier-weak  .sg-hero-rr-val { background: transparent; }

/* State pill */

.sg-hero-state {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
    font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-text2);
    margin-left: auto;
}

.sg-hero-state.state-achieved,
.sg-hero-state.state-awaiting { color: var(--c-green); border-color: rgba(22,199,132,.32); }

.sg-hero-state.state-noplan   { color: var(--c-warn);  border-color: rgba(245,158,11,.32); }

.sg-hero-state-icon {
    font-size: 14px;
    line-height: 1;
}

.sg-hero-state.state-awaiting .sg-hero-state-icon { animation: tb-pulse 1.8s ease-in-out infinite; }

/* Strategy body text — editorial */

.sg-hero-plan-body {
    font-size: 15px; line-height: 1.55;
    color: var(--c-text2);
}

.sg-hero-plan-body strong { color: var(--c-text1); font-weight: 700; }

.sg-hero-plan-numbers {
    display: block;
    margin-top: 8px;
    font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-text3);
}

/* ═════ "ALSO TODAY" mini-strip below hero ═════ */

.sg-also {
    position: relative; z-index: 1;
    margin: 36px 0 40px;
    padding: 0 32px;
}

.sg-also-head {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 14px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: .2em; text-transform: uppercase; color: var(--c-text3);
}

.sg-also-head strong { color: var(--c-text2); font-weight: 600; }

.sg-also-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

.sg-also-card {
    display: block;
    background: var(--c-bg2);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}

.sg-also-card:hover { border-color: var(--c-border2); transform: translateY(-1px); }

.sg-also-card-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}

.sg-also-card-sym {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: 24px; letter-spacing: .04em; line-height: 1;
    color: var(--c-text1);
}

.sg-also-card-meta {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--c-text3);
}

.sg-also-card-pct {
    font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 700;
}

.sg-also-card-pct.up { color: var(--c-green); }

.sg-also-card-pct.down { color: #ff8f8f; }

/* ═════════════════════════════════════════════════════════
   PANE: MY STOCKS — magazine grid
   ═════════════════════════════════════════════════════════ */

.sg-watch {
    padding: 32px 32px 48px;
    position: relative;
}

.sg-watch-inner { }

.sg-meta-strip {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 22px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: .2em; text-transform: uppercase; color: var(--c-text3);
}

.sg-meta-strip strong { color: var(--c-text2); font-weight: 600; }

.sg-meta-strip .pulse-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-green); margin-right: 4px;
    box-shadow: 0 0 8px rgba(22,199,132,.6);
    animation: tb-pulse 1.8s ease-in-out infinite;
}

.sg-meta-link {
    margin-left: auto;
    color: var(--c-warn);
    text-decoration: none;
    transition: color .15s ease;
}

.sg-meta-link:hover { color: #fbbf24; }

/* (sg-watch-card-* removed — My Stocks now uses tape-row layout) */

/* ═════ Empty state for My Stocks tab (logged-out / no favs) ═════ */

.sg-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 80px 24px;
    min-height: 360px;
}

.sg-empty-icon {
    font-size: 56px; line-height: 1;
    color: var(--c-warn);
    text-shadow: 0 0 28px rgba(245,158,11,.55);
    margin-bottom: 24px;
}

.sg-empty-h {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: .03em; line-height: 1;
    color: var(--c-text1);
    margin: 0 0 14px;
}

.sg-empty-p {
    font-family: var(--font-body); font-size: 15px;
    color: var(--c-text2); line-height: 1.55;
    max-width: 44ch;
    margin: 0 0 28px;
}

.sg-empty-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    background: var(--c-red); color: #fff;
    border: none; border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}

.sg-empty-cta:hover {
    background: #c8071a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(229,9,26,.45);
}

/* ═════════════════════════════════════════════════════════
   PANE: ALL STOCKS
   ═════════════════════════════════════════════════════════ */

.sg-tape {
    padding: 32px 32px 56px;
    position: relative;
}

.sg-tape-inner { }

.sg-tape-filters {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sg-tape-pill.cat {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: 14px; letter-spacing: .08em;
    padding: 7px 16px; text-transform: uppercase;
}

/* Thin vertical divider between filter groups */

.sg-tape-divider {
    width: 1px; height: 20px;
    background: var(--c-border2);
    margin: 0 6px;
    flex-shrink: 0;
}

@media (max-width: 700px) { .sg-tape-divider { display: none; } }

.sg-tape-pill {
    padding: 8px 15px;
    border: 1px solid var(--c-border2);
    background: rgba(255,255,255,.03);
    border-radius: 100px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
    color: var(--c-text2); cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.sg-tape-pill:hover { color: var(--c-text1); border-color: var(--c-text3); }

/* Default active state (used by category pills) — neutral white */

.sg-tape-pill.active { background: var(--c-text1); color: var(--c-bg); border-color: var(--c-text1); }

/* Attribute pills get their semantic color when active so the row never goes all-white */

.sg-tape-pill.active[data-filter="bullish"] {
    background: var(--c-green); color: #08090d; border-color: var(--c-green);
    box-shadow: 0 0 14px rgba(22,199,132,.35);
}

.sg-tape-pill.active[data-filter="bearish"] {
    background: var(--c-red); color: #fff; border-color: var(--c-red);
    box-shadow: 0 0 14px rgba(229,9,26,.4);
}

.sg-tape-pill.active[data-filter="opp"] {
    background: var(--c-blue2); color: #08090d; border-color: var(--c-blue2);
    box-shadow: 0 0 14px rgba(91,143,249,.35);
}

.sg-tape-pill.active[data-filter="fresh"] {
    background: var(--c-warn); color: #08090d; border-color: var(--c-warn);
    box-shadow: 0 0 14px rgba(245,158,11,.4);
}

/* Hide the inner dot when the attribute pill is filled — bg color carries the meaning */

.sg-tape-pill[data-filter].active .dot { display: none; }

.sg-tape-pill .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    margin-right: 6px; vertical-align: middle;
}

.sg-tape-pill .dot.all   { background: var(--c-text3); }

.sg-tape-pill .dot.bull  { background: var(--c-green); }

.sg-tape-pill .dot.bear  { background: #ff5764; }

.sg-tape-pill .dot.fresh { background: var(--c-warn); box-shadow: 0 0 6px rgba(245,158,11,.7); }

.sg-tape-pill .dot.opp   { background: var(--c-blue2); box-shadow: 0 0 6px rgba(91,143,249,.7); }

.sg-tape-search {
    margin-left: auto; position: relative;
    flex: 1; max-width: 320px;
}

.sg-tape-search input {
    width: 100%; padding: 9px 14px 9px 38px;
    border: 1px solid var(--c-border2); background: rgba(255,255,255,.03);
    border-radius: 100px; color: var(--c-text1);
    font-family: 'DM Mono', monospace; font-size: 12px; outline: none;
}

.sg-tape-search input::placeholder { color: var(--c-text3); }

.sg-tape-search input:focus { border-color: var(--c-text2); background: rgba(255,255,255,.05); }

.sg-tape-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--c-text3); pointer-events: none;
}

.sg-tape-list {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--c-border);
}

.sg-tape-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1.2fr) 92px minmax(0, 1.2fr) 90px 40px 14px;
    align-items: center;
    gap: 22px;
    padding: 18px 8px;
    border-bottom: 1px solid var(--c-border);
    text-decoration: none; color: inherit;
    transition: background .15s ease, padding .15s ease;
    position: relative;
}

.sg-tape-row-block { min-width: 0; }

.sg-tape-row-fullname {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--c-text3);
    letter-spacing: .04em;
    margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sg-tape-row-sig {
    font-family: 'DM Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    white-space: nowrap;
}

.sg-tape-row-sig.up   { color: var(--c-green); }

.sg-tape-row-sig.down { color: var(--c-red); }

.sg-tape-row:hover { background: rgba(255,255,255,.02); padding-left: 18px; padding-right: 0; }

.sg-tape-dot { width: 8px; height: 8px; border-radius: 50%; justify-self: center; }

.sg-tape-dot.up { background: var(--c-green); box-shadow: 0 0 8px rgba(22,199,132,.6); }

.sg-tape-dot.down { background: var(--c-red);  box-shadow: 0 0 8px rgba(229,9,26,.6); }

.sg-tape-row-sym {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: 30px; line-height: 1; color: var(--c-text1); letter-spacing: .04em;
}

.sg-tape-row-name {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--c-text3); margin-top: 4px;
}

.sg-tape-row-name .fresh-tag {
    color: var(--c-warn); margin-left: 8px;
    padding: 1px 6px; border: 1px solid rgba(245,158,11,.4);
    border-radius: 4px; font-size: 8px; letter-spacing: .2em;
}

.sg-tape-row-name .cheaper-tag {
    color: var(--c-green); margin-left: 8px;
    padding: 1px 6px; border: 1px solid rgba(22,199,132,.4);
    border-radius: 4px; font-size: 8px; letter-spacing: .2em;
}

/* Tape band cell — keeps the premium visual; tooltip explains in plain language */

.sg-tape-row-band { padding: 0 8px; }

.sg-tape-row-band[data-tooltip] {
    position: relative;
    cursor: help;
}

.sg-tape-row-band[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: #1a1a1a; color: #fff;
    font-family: 'DM Mono', monospace; font-size: 11px;
    font-weight: 700; letter-spacing: .04em;
    padding: 7px 12px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .15s ease;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

.sg-tape-row-band[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%; transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
    pointer-events: none;
    opacity: 0; transition: opacity .15s ease;
    z-index: 20;
}

.sg-tape-row-band[data-tooltip]:hover::after,
.sg-tape-row-band[data-tooltip]:hover::before { opacity: 1; }

.sg-tape-row-pct { font-family: 'DM Mono', monospace; font-weight: 700; font-size: 18px; text-align: right; }

.sg-tape-row-pct.up { color: var(--c-green); }

.sg-tape-row-pct.down { color: #ff8f8f; }

/* Bell (alert) button — toggle adds/removes the stock from user's alerts list */

.sg-tape-fav {
    position: relative;
    background: none; border: none; cursor: pointer;
    color: var(--c-text3);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: color .15s ease, background .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sg-tape-fav:hover { color: var(--c-warn); background: rgba(245,158,11,.08); }

.sg-tape-fav[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%; transform: translateY(-50%);
    background: #1a1a1a; color: #fff;
    font-family: 'DM Mono', monospace; font-size: 11px;
    font-weight: 700; letter-spacing: .04em;
    padding: 7px 12px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .15s ease;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

.sg-tape-fav[data-tooltip]::before {
    content: '';
    position: absolute;
    right: calc(100% + 3px);
    top: 50%; transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1a1a1a;
    pointer-events: none;
    opacity: 0; transition: opacity .15s ease;
    z-index: 20;
}

.sg-tape-fav[data-tooltip]:hover::after,
.sg-tape-fav[data-tooltip]:hover::before { opacity: 1; }

.sg-tape-fav.active { color: var(--c-warn); }

.sg-tape-fav.active:hover { transform: scale(1.05); }

.sg-tape-fav svg { width: 18px; height: 18px; }

.sg-tape-fav .bell-fill { display: none; }

.sg-tape-fav.active .bell-fill { display: block; }

.sg-tape-fav.active .bell-line { display: none; }

.sg-tape-row-chev {
    color: var(--c-text3); font-size: 22px; line-height: 1;
    transition: transform .15s ease, color .15s ease;
}

.sg-tape-row:hover .sg-tape-row-chev { color: var(--c-text1); transform: translateX(4px); }

/* Empty state for tape when filters yield 0 rows */

.sg-tape-empty {
    text-align: center;
    padding: 60px 24px 40px;
    border: 1px dashed var(--c-border2);
    border-radius: 14px;
    background: var(--c-bg2);
}

.sg-tape-empty-icon {
    font-size: 36px; line-height: 1; color: var(--c-text3);
    margin-bottom: 12px;
}

.sg-tape-empty-h {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: 22px; letter-spacing: .04em;
    color: var(--c-text1); margin-bottom: 6px;
}

.sg-tape-empty-p {
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: .08em; color: var(--c-text3);
    line-height: 1.5; max-width: 36ch; margin: 0 auto;
}

/* ═════════════════════════════════════════════════════════
   STRATEGY PANE — plain-language playbook
   ═════════════════════════════════════════════════════════ */

.sg-strat {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.sg-strat-head {
    text-align: center;
    margin-bottom: 48px;
}

.sg-strat-head-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 11px;
    background: rgba(245,158,11,.10);
    border: 1px solid rgba(245,158,11,.32);
    border-radius: 100px;
}

.sg-strat-h {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    letter-spacing: .025em; line-height: 1;
    color: var(--c-text1); margin: 0 0 14px;
}

.sg-strat-sub {
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--c-text3); margin: 0;
}

.sg-strat-rule-1 {
    background: rgba(245,158,11,.04);
    border: 1px solid var(--c-warn);
    box-shadow: 0 0 0 1px var(--c-warn), 0 12px 32px rgba(245,158,11,.12);
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 56px;
    text-align: center;
}

.sg-strat-rule-h {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(28px, 4.5vw, 40px);
    letter-spacing: .02em; line-height: 1.05;
    color: var(--c-text1); margin: 8px 0 12px;
}

.sg-strat-rule-p {
    font-size: 14px; color: var(--c-text2);
    line-height: 1.55; margin: 0;
    max-width: 36ch; margin-left: auto; margin-right: auto;
}

.sg-strat-eyebrow {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--c-warn); margin-bottom: 14px;
}

.sg-strat-eyebrow.bull   { color: var(--c-green); }

.sg-strat-eyebrow.bear   { color: #ff5764; }

.sg-strat-eyebrow.purple { color: #b18cf8; }

.sg-strat-block { margin-bottom: 40px; }

.sg-strat-steps {
    list-style: none;
    padding: 0; margin: 0;
    counter-reset: step;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-bg2);
}

.sg-strat-steps li {
    position: relative;
    padding: 16px 20px 16px 60px;
    font-size: 15px; line-height: 1.5;
    color: var(--c-text1);
    border-bottom: 1px solid var(--c-border);
    counter-increment: step;
}

.sg-strat-steps li:last-child { border-bottom: none; }

.sg-strat-steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px; top: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--c-bg3);
    border: 1px solid var(--c-border2);
    color: var(--c-green);
    font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 800;
    text-align: center; line-height: 26px;
}

.sg-strat-bigline {
    font-family: 'Bebas Neue', var(--font-display);
    font-size: clamp(24px, 3.5vw, 32px);
    letter-spacing: .02em; line-height: 1.1;
    color: #ff5764; margin: 0;
    padding: 18px 24px;
    border-left: 3px solid #ff5764;
    background: rgba(229,9,26,.04);
    border-radius: 0 8px 8px 0;
}

.sg-strat-text {
    font-size: 15px; color: var(--c-text2);
    line-height: 1.7; margin: 0;
    padding: 18px 24px;
    background: rgba(139,92,246,.04);
    border-left: 3px solid #b18cf8;
    border-radius: 0 8px 8px 0;
}

.sg-strat-disclaimer-box {
    margin-top: 56px;
    padding: 24px 28px;
    border: 1px solid var(--c-border2);
    border-left: 3px solid var(--c-warn);
    border-radius: 0 12px 12px 0;
    background: rgba(245,158,11,.03);
}

.sg-strat-disclaimer-box .sg-strat-eyebrow {
    margin-bottom: 10px;
    color: var(--c-warn);
}

.sg-strat-disclaimer {
    font-family: var(--font-body); font-size: 13px;
    line-height: 1.65;
    color: var(--c-text2); margin: 0;
}

.sg-strat-disclaimer strong { color: var(--c-text1); font-weight: 700; }

.sg-strat-disclaimer em { color: var(--c-text1); font-style: normal; font-weight: 600; }

@media (max-width: 600px) {
    .sg-strat { padding: 32px 16px 56px; }
    .sg-strat-rule-1 { padding: 24px 18px; margin-bottom: 36px; }
    .sg-strat-steps li { padding: 14px 16px 14px 54px; font-size: 14px; }
}

/* Drawer chassis (.tb-drawer*) lives in css/base.css — drawer-system. */

/* ─── HEADER ─── */

/* ─── BODY ─── */

/* TOAST — fixed top-center, auto-dismiss, brand-amber for warnings */

.sg-toast-host {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 100;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    pointer-events: none;
}

.sg-toast {
    pointer-events: auto;
    display: flex; align-items: flex-start; gap: 12px;
    max-width: min(440px, 92vw);
    padding: 13px 18px;
    border: 1px solid rgba(245,158,11,.4);
    border-radius: 12px;
    background: rgba(20,16,8,.96);
    backdrop-filter: blur(8px);
    color: var(--c-text1);
    font-size: 14px; line-height: 1.4;
    box-shadow: 0 16px 36px rgba(0,0,0,.45);
    cursor: pointer;
    opacity: 0; transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
}

.sg-toast.in { opacity: 1; transform: translateY(0); }

.sg-toast-icon {
    flex: 0 0 auto;
    color: var(--c-warn);
    font-weight: 700;
}

/* BELL CARD — single-click alert toggle inside the drawer */

@keyframes tb-bell-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.85); }
}

/* LATE-ENTRY NOTE — shown when LTP has moved ≥ 3% past entry in trade direction */

/* GUEST CTA */

/* SECTION (equity / chart) */

/* Band inside drawer */

/* Trade grid */

/* Lock overlay (for sections in locked state) */

/* Performance link */

/* Big subscribe CTA at bottom */

/* Primary CTA (sign-in / pricing) */

/* ═════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .sg-hero-eyebrow { font-size: 10px; padding: 5px 11px; }
    .sg-hero-meta-rest { display: none; }   /* hide "· NSE · POWERED BY TRUSTYBULL" — keep just the company name */
    .sg-also-strip { grid-template-columns: 1fr; }
    /* Search bar wraps to its own row on mobile (flex-wrap on .sg-tape-filters) */
    .sg-tape-search { flex-basis: 100%; max-width: 100%; margin-left: 0; margin-top: 6px; }
    /* Hero plan: stack chip + state pill, full-width pill */
    .sg-hero-plan { padding: 18px 18px 16px; }
    .sg-hero-plan-row { gap: 10px; }
    .sg-hero-state { margin-left: 0; width: 100%; justify-content: center; }
    .sg-hero-rr-val { font-size: 28px; }
    .sg-hero-plan-body { font-size: 14px; }
}
