

/* ── Locked teaser overlay (non-Pro preview) ───────────────────── */
.terminal-lock-wrap { position: relative; }

.terminal-locked #terminal-app {
    filter: blur(5px) saturate(0.85);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}
.terminal-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 24px 24px;
    background: radial-gradient(ellipse at center, rgba(7, 18, 14, 0.35) 0%, rgba(7, 18, 14, 0.72) 70%);
}
.terminal-lock-card {
    max-width: 420px;
    text-align: center;
    background: linear-gradient(160deg, rgba(20, 32, 27, 0.97), rgba(12, 22, 18, 0.97));
    border: 1px solid rgba(255, 214, 10, 0.35);
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 214, 10, 0.08);
}
.terminal-lock-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFD60A, #FFA000);
    color: #1a1300;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.terminal-lock-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #E8F5EC);
    margin-bottom: 10px;
}
.terminal-lock-sub {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary, #9DB3A6);
    margin-bottom: 20px;
}
.terminal-lock-cta {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFD60A, #FFA000);
    color: #1a1300;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 8px 24px rgba(255, 176, 0, 0.25);
}
.terminal-lock-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(255, 176, 0, 0.35);
}
.terminal-lock-note {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--text-muted, #6b7d72);
}
.terminal-preview-text {
    font-size: 0.85rem;
    color: var(--brand-gold);
    font-weight: 500;
}
.terminal-preview-text strong { font-weight: 700; }
.terminal-preview-cta {
    display: inline-block;
    margin-left: 12px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
    color: var(--on-bright);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s;
}
.terminal-preview-cta:hover {
    transform: translateY(-1px);
    color: var(--on-bright);
}

/* ── Section ──────────────────────────────────────────────────── */
.terminal-section {
    padding: 40px 0 60px;
}

/* ── Tab Nav ──────────────────────────────────────────────────── */
.terminal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.terminal-tabs::-webkit-scrollbar { display: none; }
.terminal-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.terminal-tab:hover { color: var(--text-secondary); }
.terminal-tab.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

/* ── Grid Layout ──────────────────────────────────────────────── */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}
.terminal-panel--sentiment { grid-column: span 3; }
.terminal-panel--watch     { grid-column: span 3; }
.terminal-panel--fund      { grid-column: span 3; }
.terminal-panel--telegram  { grid-column: span 3; }
.terminal-panel--news      { margin-top: 16px; }
.terminal-full { grid-column: 1 / -1; }

/* ── Panel Card ───────────────────────────────────────────────── */
.terminal-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
    position: relative;
}
.terminal-panel:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-neon);
}
.terminal-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.terminal-panel-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}
.terminal-preview-label {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--brand-gold);
    background: rgba(199, 154, 61, 0.1);
    border: 1px solid rgba(199, 154, 61, 0.25);
    padding: 1px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
body:not(.is-pro) .terminal-preview-label { display: inline-block; }

/* ── Watchlist Items ──────────────────────────────────────────── */
.terminal-watch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.terminal-watch-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}
.terminal-watch-item--active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}
.terminal-watch-ticker {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-gold);
    min-width: 56px;
}
.terminal-watch-price {
    margin-left: auto;
    text-align: right;
    font-family: var(--font-mono);
}
.terminal-watch-val { font-size: 0.88rem; font-weight: 700; }
.terminal-watch-change { font-size: 0.72rem; font-weight: 600; }

/* ── Sentiment Gauge ──────────────────────────────────────────── */
.terminal-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}
.terminal-gauge-svg { width: 240px; height: 160px; }
.terminal-gauge-score {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-top: -10px;
}
.terminal-gauge-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.terminal-gauge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
}
.terminal-driver-highlight {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border-left: 3px solid var(--brand-gold, #C79A3D);
    max-width: 260px;
}
.terminal-driver-highlight-icon {
    font-size: 0.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.terminal-driver-highlight-text {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-secondary, #9DB3A6);
}
.terminal-spider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 4px;
}

/* ── News Cards ───────────────────────────────────────────────── */
.terminal-news-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.terminal-news-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s;
}
.terminal-news-tab.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--brand-green);
    color: var(--brand-green);
}
.terminal-news-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.terminal-news-item:last-child { border-bottom: none; }
.terminal-news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.terminal-news-source {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--brand-cyan);
    background: rgba(52, 211, 153, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
}
.terminal-news-time { font-size: 0.7rem; color: var(--text-muted); }
.terminal-news-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.terminal-news-sentiment {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
}
.terminal-news-ticker-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-gold);
    background: rgba(199, 154, 61, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
}

/* ── Fundamentals ─────────────────────────────────────────────── */
.terminal-fund-select {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-gold);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 14px;
}
.terminal-fund-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.terminal-fund-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.terminal-fund-label { font-size: 0.78rem; color: var(--text-muted); }
.terminal-fund-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}
.terminal-fund-meta {
    margin-top: 12px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Telegram Panel ───────────────────────────────────────────── */
.terminal-tg-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.terminal-tg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-tg-dot.connected {
    background: var(--brand-green);
    box-shadow: 0 0 8px var(--brand-green);
}
.terminal-tg-dot.disconnected { background: var(--brand-red); }
.terminal-tg-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.terminal-tg-alert-label { font-size: 0.82rem; color: var(--text-secondary); }
.terminal-tg-toggle {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.terminal-tg-toggle.on {
    background: var(--brand-green);
    border-color: var(--brand-green);
}
.terminal-tg-toggle-knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.terminal-tg-toggle.on .terminal-tg-toggle-knob {
    transform: translateX(18px);
}

/* ── Add Ticker Button ────────────────────────────────────────── */
.terminal-add-btn {
    width: 100%;
    padding: 10px;
    border: 1.5px dashed var(--border-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.terminal-add-btn:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}
.terminal-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.terminal-add-btn:disabled:hover {
    border-color: var(--border-strong);
    color: var(--text-muted);
}

/* ── Modal ────────────────────────────────────────────────────── */
.terminal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.terminal-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.terminal-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.terminal-modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.terminal-modal-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.terminal-modal-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 44px;
    transition: border-color 0.2s;
}
.terminal-modal-input:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(9, 171, 208, 0.18);
}
.terminal-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ── News title link + summary ──────────────────────────────── */
.terminal-news-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a.terminal-news-title:hover {
    color: var(--brand-cyan);
    text-decoration: underline;
}
.terminal-news-summary {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Keyword UI ─────────────────────────────────────────────── */
.terminal-kw-box { margin-bottom: 14px; }
.terminal-kw-input-row { display: flex; gap: 8px; }
.terminal-kw-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 38px;
}
.terminal-kw-input:focus { outline: none; border-color: var(--brand-cyan); }
.terminal-kw-input:disabled { opacity: 0.5; cursor: not-allowed; }
.terminal-kw-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }
.terminal-kw-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.terminal-kw-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.terminal-kw-presets-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 2px;
}
.terminal-kw-preset {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.terminal-kw-preset:hover:not(:disabled) {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background: rgba(9, 171, 208, 0.08);
}
.terminal-kw-preset:disabled { opacity: 0.5; cursor: not-allowed; }
.terminal-kw-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--brand-cyan);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 6px 3px 10px;
    border-radius: 999px;
}
.terminal-kw-del {
    background: none;
    border: none;
    color: var(--brand-cyan);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 2px;
}
.terminal-kw-del:hover { color: var(--neg); }

/* ── Analyst Consensus ──────────────────────────────────────── */
.terminal-consensus {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.terminal-consensus-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.terminal-consensus-rec { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.terminal-consensus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.terminal-consensus-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    background: var(--bg-input);
}
.terminal-consensus-bar .cs-buy { background: var(--pos); }
.terminal-consensus-bar .cs-hold { background: var(--brand-gold); }
.terminal-consensus-bar .cs-sell { background: var(--neg); }
.terminal-consensus-legend {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.terminal-consensus-legend .cs-buy { color: var(--pos); }
.terminal-consensus-legend .cs-hold { color: var(--brand-gold); }
.terminal-consensus-legend .cs-sell { color: var(--neg); }

/* ── Chart Container ──────────────────────────────────────────── */
.tc-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 8px;
    border-radius: 8px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tc-wrap #tc-chart {
    flex: 1;
    min-height: 0;
}
.tc-svg { cursor: crosshair; }

/* Tooltip */
.tc-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(13, 22, 19, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    pointer-events: none;
    backdrop-filter: blur(8px);
    min-width: 140px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
}
.tc-tt-date {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}
.tc-tt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.tc-tt-label {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.tc-tt-val {
    color: var(--text-primary);
    font-weight: 600;
}
.tc-tt-vol {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

/* SVG labels */
.tc-label {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: var(--text-muted);
    opacity: 0.7;
}
.tc-label-x {
    text-anchor: middle;
}
.tc-legend {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: var(--text-muted);
    opacity: 0.8;
}

/* Chart header */
.tc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    flex-shrink: 0;
}
.tc-chart-select {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: all 0.15s;
}
.tc-chart-select:hover { border-color: var(--brand-green); }
.tc-chart-select:focus { border-color: var(--brand-cyan); }
.tc-chart-select option { background: var(--bg-card); color: var(--text-primary); }
.tc-ticker {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-gold);
}
.tc-price {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}
.tc-price.up { color: var(--pos); }
.tc-price.down { color: var(--neg); }
.tc-change {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
}
.tc-change.up { color: var(--pos); }
.tc-change.down { color: var(--neg); }
.tc-date {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.tc-period-btns {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.tc-period-btn {
    padding: 3px 10px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.tc-period-btn:hover { border-color: var(--brand-green); color: var(--brand-green); }
.tc-period-btn.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--bg-page);
}

/* ── Dropdown (Layer & Period) ──────────────────────────────── */
.tc-dropdown {
    position: relative;
}
.tc-dropdown-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tc-dropdown-btn:hover { border-color: var(--brand-green); color: var(--brand-green); }
.tc-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 130px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 60;
}
.tc-dropdown-menu.show { display: block; }
.tc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
}
.tc-dropdown-item:hover { background: rgba(16, 185, 129, 0.08); }
.tc-dropdown-item input[type="checkbox"],
.tc-dropdown-item input[type="radio"] {
    accent-color: var(--brand-green);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

/* ── Expand / Collapse ──────────────────────────────────────── */
.tc-expand-btn {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.1);
    border: 1.5px solid var(--brand-green);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-green);
    line-height: 1;
    font-family: var(--font-sans);
}
.tc-expand-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}
.tc-expand-btn.expanded {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--neg);
    color: var(--neg);
}
.tc-expand-btn.expanded:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ── Expanded State ─────────────────────────────────────────── */
.tc-wrap.tc-expanded {
    position: fixed;
    inset: 40px 20px 20px;
    z-index: 99;
    height: auto !important;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.tc-wrap.tc-expanded .tc-resize-grip { display: none; }

/* ── Resize Grip ────────────────────────────────────────────── */
.tc-resize-grip {
    height: 12px;
    cursor: ns-resize;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.15s;
}
.tc-resize-grip:hover {
    border-top-color: var(--brand-green);
}

/* ── Smart Money Hit Area ───────────────────────────────────── */
.tc-sm-hit { cursor: pointer; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .terminal-panel--watch     { grid-column: span 6; }
    .terminal-panel--telegram  { grid-column: span 6; }
    .terminal-panel--sentiment { grid-column: span 6; }
    .terminal-panel--fund      { grid-column: span 6; }
}
@media (max-width: 960px) {
    .terminal-grid { grid-template-columns: 1fr; }
    .terminal-panel--watch,
    .terminal-panel--telegram,
    .terminal-panel--sentiment,
    .terminal-panel--fund { grid-column: auto; }
}
@media (max-width: 640px) {
    .terminal-section { padding: 20px 0 40px; }
    .terminal-panel { padding: 14px; }
    .terminal-fund-grid { grid-template-columns: 1fr; }
    .tc-tooltip {
        min-width: 110px;
        max-width: 180px;
        font-size: 0.65rem;
        padding: 6px 8px;
        line-height: 1.4;
    }
    .tc-tt-date { font-size: 0.6rem; }
    .tc-tt-label { font-size: 0.6rem; }
    .tc-tt-val { font-size: 0.65rem; }
}
