/* ============================================================================
   SEMANTIC ANALYSIS STYLES
   ============================================================================ */

.semantic-analysis-container {
    padding: 5px;
    max-width: 100%;
    overflow-x: scroll;
}

/* Header Section */
.semantic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.semantic-title h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    color: #fff;
}

.semantic-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.semantic-stats {
    display: flex;
    gap: 16px;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #4CC9F0;
}

/* Control Bar */
.semantic-controls {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.semantic-input {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    min-width: 200px;
}

.semantic-input:focus {
    outline: none;
    border-color: #4CC9F0;
    background: rgba(255, 255, 255, 0.08);
}

.semantic-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.semantic-select:focus {
    outline: none;
    border-color: #4CC9F0;
}

.semantic-select option {
    background: #1a1a2e;
    color: #fff;
}

.btn-primary,
.btn-secondary,
.btn-accent {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-primary {
    background: #4CC9F0;
    color: #000;
}

.btn-primary:hover {
    background: #3ab5dc;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Toolbar */
.semantic-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.filter-controls input[type="range"] {
    width: 120px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 6px;
}

.btn-view-toggle {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-view-toggle.active {
    background: rgba(76, 201, 240, 0.2);
    color: #4CC9F0;
}

.btn-view-toggle:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.arima-stock-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}


/* Stock Pills */
.semantic-stock-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.stock-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 16px;
    font-size: 12px;
    color: #4CC9F0;
}

.pill-symbol {
    font-weight: 600;
}

.pill-remove {
    background: rgba(239, 71, 111, 0.2);
    border: none;
    color: #EF476F;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.pill-remove:hover {
    background: #EF476F;
    color: #fff;
}

.no-stocks {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding: 12px;
}

/* Loading */
.semantic-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}



.semantic-loading p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Placeholder */
.semantic-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.semantic-placeholder h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 20px;
}

.semantic-placeholder p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Grid View */
.semantic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.trajectory-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.trajectory-card:hover {
    border-color: rgba(76, 201, 240, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.symbol-large {
    font-size: 20px;
    font-weight: bold;
    color: #4CC9F0;
}

.price-current {
    font-size: 16px;
    color: #fff;
}

.card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Trend Section */
.trend-section {
    margin-bottom: 16px;
}

.trend-indicator {
    padding: 12px;
    border-radius: 6px;
}

.trend-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.trend-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}



.metric-value {
    font-size: 16px;
    font-weight: bold;
}

/* Forecast Section */
.forecast-section {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 209, 102, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 209, 102, 0.2);
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.forecast-mini-chart {
    height: 60px;
    width: 100%;
}

.mini-chart-svg {
    width: 100%;
    height: 100%;
}

/* Signals Section */
.signal-section {
    margin-bottom: 16px;
}

.primary-signal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.primary-signal.buy {
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.primary-signal.sell {
    background: rgba(239, 71, 111, 0.15);
    border: 1px solid rgba(239, 71, 111, 0.3);
}

.signal-type {
    font-weight: bold;
    color: #fff;
}

.signal-reason {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.signal-strength {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Patterns Section */
/* Patterns Section - Real Manipulation Patterns */
.patterns-section {
    margin-bottom: 16px;
}

.patterns-section.manipulation {
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 71, 111, 0.1);
    border: 1px solid rgba(239, 71, 111, 0.3);
    border-radius: 6px;
}

.patterns-section.manipulation .patterns-header {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #EF476F;
}

.patterns-header {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.patterns-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Real manipulation pattern cards */
.pattern-card {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 4px solid;
}

.pattern-card.manipulation {
    border-left-color: #EF476F;
}

.pattern-card.pinning {
    border-left-color: #FFD166;
}

.pattern-card.liquidation {
    border-left-color: #FF6B6B;
}

.pattern-card.critical {
    background: rgba(239, 71, 111, 0.2);
    border-left-width: 6px;
}

.pattern-card.high {
    background: rgba(255, 209, 102, 0.15);
}

.pattern-name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #fff;
}

.pattern-details {
    font-size: 11px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.pattern-evidence {
    font-size: 10px;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 4px;
    color: #FFD166;
}

.pattern-confidence {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
}

/* Old generic badge style (kept for backward compat) */
.pattern-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.pattern-badge.bullish {
    background: rgba(6, 214, 160, 0.15);
    color: #06D6A0;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.pattern-badge.bearish {
    background: rgba(239, 71, 111, 0.15);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.3);
}

/* Levels Section */
.levels-section {
    margin-bottom: 16px;
}

.levels-header {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.level-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 11px;
}

.level-item  > .level-type {
    color: rgba(21, 20, 20, 0.7);
}

.semantic-grid >.trajectory-card >.metrics-grid > .metric-box > .metric-value{
    color: rgba(228, 227, 227, 0.7);
}

.level-price {
    font-weight: 600;
    color: #4CC9F0;
}

/* Card Footer */
.card-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-card-action {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4CC9F0;
}

/* Table View */
.semantic-table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.semantic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.semantic-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.semantic-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.semantic-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.semantic-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.08);
}

.semantic-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.semantic-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.semantic-table td {
    padding: 12px 5px;
    color: #fff;
}

.symbol-cell strong {
    color: #4CC9F0;
    font-size: 14px;
}

.table-strength-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.table-strength-fill {
    height: 100%;
    border-radius: 3px;
}

.confidence-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.volatility-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.volatility-badge.low {
    background: rgba(6, 214, 160, 0.15);
    color: #06D6A0;
}

.volatility-badge.moderate {
    background: rgba(255, 209, 102, 0.15);
    color: #FFD166;
}

.volatility-badge.high {
    background: rgba(239, 71, 111, 0.15);
    color: #EF476F;
}

.signal-count {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-right: 4px;
}

.signal-count.buy {
    background: rgba(6, 214, 160, 0.15);
    color: #06D6A0;
}

.signal-count.sell {
    background: rgba(239, 71, 111, 0.15);
    color: #EF476F;
}

.signal-count.neutral {
    color: rgba(255, 255, 255, 0.3);
}

.btn-table-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 4px;
    transition: all 0.2s;
}

.btn-table-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4CC9F0;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-dialog {
    background: #1a1a2e;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-dialog.large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}




.signals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.signal-detail.buy {
    background: rgba(6, 214, 160, 0.1);
    border-left: 3px solid #06D6A0;
}

.signal-detail.sell {
    background: rgba(239, 71, 111, 0.1);
    border-left: 3px solid #EF476F;
}

/* Error Message */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.error-message span {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-message p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ============================================================================
   OPTIONS TRAJECTORY STYLES
   ============================================================================ */

/* Dual Forecast */
.dual-forecast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.forecast-track {
    padding: 12px;
    border-radius: 6px;
    border: 2px solid;
}

.forecast-track.classic {
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
}

.forecast-track.options {
    background: rgba(255, 209, 102, 0.1);
    border-color: rgba(255, 209, 102, 0.3);
}

.track-label {
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.track-value {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.track-target {
    font-size: 11px;
    opacity: 0.8;
}

/* Single Forecast */
.single-forecast {
    padding: 12px;
    text-align: center;
    background: rgba(76, 201, 240, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
}

.no-options-note {
    font-size: 10px;
    opacity: 0.6;
    text-align: center;
}

/* Options Pressure */
.options-pressure {
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.pressure-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 6px;
}

.pressure-indicator.bullish .pressure-value {
    color: #06D6A0;
    font-weight: bold;
}

.pressure-indicator.bearish .pressure-value {
    color: #EF476F;
    font-weight: bold;
}

.pressure-indicator.neutral .pressure-value {
    color: #FFD166;
    font-weight: bold;
}

.max-pain-info {
    font-size: 10px;
    opacity: 0.7;
    text-align: center;
}

/* Options Signals */
.options-signals {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.options-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 209, 102, 0.1);
    border-left: 3px solid #FFD166;
    border-radius: 4px;
    font-size: 10px;
}

.options-signal .sig-icon {
    font-size: 14px;
}

.options-signal.contrarian-buy {
    background: rgba(6, 214, 160, 0.1);
    border-left-color: #06D6A0;
}

.options-signal.contrarian-sell {
    background: rgba(239, 71, 111, 0.1);
    border-left-color: #EF476F;
}

.options-signal.warning {
    background: rgba(239, 71, 111, 0.15);
    border-left-color: #EF476F;
    font-weight: 600;
}

/* Institutional Tactics */
.institutional-tactics {
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 71, 111, 0.1);
    border: 1px solid rgba(239, 71, 111, 0.3);
    border-radius: 6px;
}

.tactics-header {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #EF476F;
}

.tactic-item {
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 6px;
}

.tactic-item:last-child {
    margin-bottom: 0;
}

.tactic-item.critical {
    border-left: 3px solid #EF476F;
}

.tactic-item.high {
    border-left: 3px solid #FFD166;
}

.tactic-item.medium {
    border-left: 3px solid #4CC9F0;
}

.tactic-name {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
}

.tactic-desc {
    font-size: 10px;
    opacity: 0.8;
}

/* Detail Modal Options Styles */
.trajectory-comparison {
    margin-bottom: 20px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comparison-header h5 {
    margin: 0;
    font-size: 14px;
}

.comparison-summary {
    font-size: 12px;
}

.options-metrics {
    margin-top: 20px;
}

.options-metrics h5 {
    margin: 16px 0 12px 0;
    font-size: 14px;
    color: #FFD166;
}

.metric-group {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.metric-group strong {
    display: block;
    margin-bottom: 8px;
    color: #4CC9F0;
    font-size: 12px;
}

.pressure-factors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pressure-factor {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.factor-name {
    font-size: 11px;
    font-weight: 600;
    grid-column: 1;
}

.factor-impact {
    font-size: 14px;
    font-weight: bold;
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
}

.factor-desc {
    font-size: 10px;
    opacity: 0.7;
    grid-column: 1;
}

.institutional-tactics-detail {
    margin-top: 20px;
}

.institutional-tactics-detail h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #EF476F;
}

.tactic-card {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

.tactic-card.critical {
    background: rgba(239, 71, 111, 0.15);
    border-left-color: #EF476F;
}

.tactic-card.high {
    background: rgba(255, 209, 102, 0.15);
    border-left-color: #FFD166;
}

.tactic-card.medium {
    background: rgba(76, 201, 240, 0.15);
    border-left-color: #4CC9F0;
}

.tactic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tactic-name {
    font-weight: bold;
    font-size: 12px;
}

.tactic-severity {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.tactic-description {
    font-size: 11px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.tactic-impact {
    font-size: 10px;
    opacity: 0.8;
    font-style: italic;
}

.tactic-impact strong {
    color: #FFD166;
}

/* Responsive Design */
@media (max-width: 768px) {
    .semantic-grid {
        grid-template-columns: 1fr;
    }
    
    .semantic-controls,
    .semantic-toolbar {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .semantic-input {
        flex: 1;
        min-width: 150px;
    }
}

/* ===================================
   TRADE FLOW ANALYSIS STYLES
   Add these styles to semantic-styles.css
   =================================== */

.trade-flow-section {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 12px;
}

.trade-flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(76, 201, 240, 0.3);
}

.trade-flow-header.critical {
    border-bottom-color: rgba(239, 71, 111, 0.5);
}

.trade-flow-header.high {
    border-bottom-color: rgba(255, 165, 0, 0.5);
}

.tf-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #E0E0E0;
}

.tf-icon {
    font-size: 20px;
}

.tf-score-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.tf-score-badge.critical {
    background: rgba(239, 71, 111, 0.2);
    border: 2px solid #EF476F;
}

.tf-score-badge.high {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #FFA500;
}

.tf-score-badge.medium {
    background: rgba(255, 214, 10, 0.2);
    border: 2px solid #FFD60A;
}

.score-value {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

.score-label {
    font-size: 14px;
    opacity: 0.7;
}

.severity-tag {
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Forecast Adjustment Section */
.forecast-adjustment-section {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(239, 71, 111, 0.1);
    border: 2px solid #EF476F;
    border-radius: 8px;
}

.adjustment-header {
    font-size: 14px;
    font-weight: 600;
    color: #EF476F;
    margin-bottom: 12px;
}

.adjustment-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.adj-track {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    text-align: center;
}

.adj-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
}

.adj-value {
    font-size: 20px;
    font-weight: 700;
}

.adj-arrow {
    font-size: 24px;
    color: #EF476F;
}

.adjustment-reason {
    font-size: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.reason-label {
    font-weight: 600;
    color: #FFD60A;
}


/* Institutional Footprint */
.institutional-footprint {
    margin-bottom: 16px;
}

.footprint-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(118, 75, 162, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.footprint-indicator.dominant {
    background: rgba(239, 71, 111, 0.2);
    border: 2px solid #EF476F;
}

.footprint-indicator.heavy {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #FFA500;
}

.footprint-level {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.footprint-score {
    font-size: 13px;
    opacity: 0.7;
}

.footprint-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 13px;
}

.metric-icon {
    font-size: 16px;
}

/* Manipulation Patterns */
.manipulation-patterns {
    margin-bottom: 16px;
}

.patterns-header {
    font-size: 14px;
    font-weight: 600;
    color: #EF476F;
    margin-bottom: 10px;
}

.patterns-grid {
    display: grid;
    gap: 8px;
}

.pattern-badge {
    padding: 10px;
    background: rgba(239, 71, 111, 0.1);
    border-left: 4px solid #EF476F;
    border-radius: 6px;
}

.pattern-badge.critical {
    background: rgba(239, 71, 111, 0.15);
    border-left-color: #EF476F;
}

.pattern-badge.high {
    background: rgba(255, 165, 0, 0.15);
    border-left-color: #FFA500;
}

.pattern-badge.medium {
    background: rgba(255, 214, 10, 0.15);
    border-left-color: #FFD60A;
}

.pattern-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.pattern-message {
    font-size: 12px;
    opacity: 0.85;
}

/* Trading Strategies */
.trading-strategies {
    margin-bottom: 16px;
}

.strategies-header {
    font-size: 14px;
    font-weight: 600;
    color: #4CC9F0;
    margin-bottom: 10px;
}

.strategies-list {
    display: grid;
    gap: 8px;
}

.strategy-item {
    padding: 10px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 6px;
}

.strategy-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.strategy-type {
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    color: #FFFFFF;
}

.strategy-confidence {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(6, 214, 160, 0.2);
    color: #06D6A0;
    border-radius: 4px;
}

.strategy-description {
    font-size: 11px;
    opacity: 0.8;
}

/* Trade Flow Signals */
.trade-flow-signals {
    display: grid;
    gap: 6px;
}

.tf-signal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid;
}

.tf-signal.warning {
    border-left-color: #EF476F;
    background: rgba(239, 71, 111, 0.1);
}

.tf-signal.sell {
    border-left-color: #EF476F;
    background: rgba(239, 71, 111, 0.08);
}

.tf-signal.buy {
    border-left-color: #06D6A0;
    background: rgba(6, 214, 160, 0.08);
}

.tf-signal.neutral {
    border-left-color: #FFD60A;
    background: rgba(255, 214, 10, 0.08);
}

.tf-signal.info {
    border-left-color: #4CC9F0;
    background: rgba(76, 201, 240, 0.08);
}

.tf-signal-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
}

.tf-signal-reason {
    flex: 1;
    font-size: 12px;
    margin: 0 10px;
    opacity: 0.9;
}

.tf-signal-strength {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .adjustment-comparison {
        flex-direction: column;
    }
    
    .adj-arrow {
        transform: rotate(90deg);
    }
    
    .footprint-metrics {
        grid-template-columns: 1fr;
    }
}