/* Launch Analytics - Bloomberg Terminal Theme */

/* Bloomberg Terminal Header Navigation */
.main-content-full {
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    padding-bottom: 40px; /* Space for status bar */
}

.main-content-full .container {
    max-width: 100%;
    padding: 0 24px;
    margin: 0;
}

/* Fix body scroll */
body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

.terminal-header {
    background: #000;
    border-bottom: 2px solid var(--primary-dark);
    padding: 16px 24px 12px;
    margin-bottom: 24px;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.terminal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

.logo-text {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-separator {
    color: var(--primary-dark);
    opacity: 0.5;
}

.page-title {
    color: var(--primary-bright);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.terminal-nav-tabs {
    display: flex;
    gap: 2px;
    background: rgba(16, 185, 129, 0.05);
    padding: 4px;
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: #000;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 80px;
}

.nav-tab:hover:not(.disabled) {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-dark);
}

.nav-tab.active {
    background: var(--primary-dark);
    border-color: var(--primary);
    position: relative;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--primary-bright);
}

.nav-tab.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tab-key {
    color: #ffa500;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-family: 'IBM Plex Mono', monospace;
}

.nav-tab.active .tab-key {
    color: #ffcc00;
}

.tab-label {
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
}

.nav-tab.active .tab-label {
    color: var(--primary-bright);
    font-weight: 600;
}

.terminal-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    font-style: italic;
    opacity: 0.8;
}

/* Bloomberg Terminal Real-time Insights Layout */
.bloomberg-realtime-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 16px;
    margin-bottom: 24px;
    min-height: 400px;
}

/* Market Depth Ladder */
.market-depth-ladder {
    background: var(--surface);
    border: 1px solid var(--primary-dark);
    padding: 0;
    font-family: 'IBM Plex Mono', monospace;
}

.ladder-header {
    background: var(--surface-light);
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    letter-spacing: 0.05em;
}

.ladder-title {
    margin-bottom: 8px;
    text-align: center;
}

.ladder-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    justify-content: center;
}

.day-info {
    color: var(--text-secondary);
}

.progress-bar {
    width: 120px;
    height: 4px;
    background: var(--background);
    border: 1px solid var(--grid);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--primary);
    font-weight: 600;
}

.ladder-content {
    padding: 4px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ladder-row {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    padding: 2px 4px;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--grid);
    cursor: pointer;
    transition: all 0.1s ease;
}

.ladder-row:hover {
    background: var(--surface-light);
}

.ladder-row.current-hour {
    background: rgba(59, 130, 246, 0.1);
    border-left: 2px solid var(--primary);
}

/* Future hours styling */
.ladder-row.future-hour {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.ladder-row.future-hour .ladder-hour {
    color: #666;
}

.ladder-bar.pending {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        var(--grid) 10px,
        var(--grid) 20px
    );
    border: 1px dashed var(--grid);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-text {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Completion badge */
.completion-badge {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 4px;
}

.ladder-fill.partial-data,
.profile-bar.partial-data {
    position: relative;
    opacity: 0.85;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.completion-indicator {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--text-secondary);
    background: var(--background);
    padding: 1px 4px;
    border-radius: 2px;
    opacity: 0.8;
}

.ladder-hour {
    color: var(--text-secondary);
    text-align: left;
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.ladder-bar {
    position: relative;
    height: 16px;
    background: var(--background);
    overflow: hidden;
}

.ladder-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transition: width 0.3s ease;
}

.ladder-value {
    text-align: right;
    color: var(--primary);
    font-weight: 600;
}

.ladder-row.high .ladder-fill {
    background: linear-gradient(90deg, var(--danger), var(--warning));
}

.ladder-row.optimal .ladder-fill {
    background: linear-gradient(90deg, var(--success), var(--primary-light));
    animation: pulse-bar 2s infinite;
}

@keyframes pulse-bar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Metric Grid */
.metric-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.metric-grid-cell {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px;
    position: relative;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s ease;
}

.metric-grid-cell:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.2);
}

.metric-grid-cell.flash {
    animation: flash-cell 0.5s ease;
}

@keyframes flash-cell {
    0% { background: var(--surface); }
    50% { background: var(--primary-dark); }
    100% { background: var(--surface); }
}

.cell-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.cell-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 5px var(--primary);
    margin-bottom: 4px;
}

.cell-change {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cell-change.positive {
    color: var(--success);
}

.cell-change.positive::before {
    content: '↑ ';
}

.cell-change.negative {
    color: var(--danger);
}

.cell-change.negative::before {
    content: '↓ ';
}

.cell-status {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--background);
    border-radius: 2px;
    display: inline-block;
    text-transform: uppercase;
}

.cell-status.optimal {
    color: var(--success);
    border: 1px solid var(--success);
}

.cell-status.good {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cell-status.moderate {
    color: var(--warning);
    border: 1px solid var(--warning);
}

.cell-status.poor {
    color: var(--danger);
    border: 1px solid var(--danger);
}

.cell-sparkline {
    position: absolute;
    bottom: 4px;
    right: 4px;
    opacity: 0.5;
}

/* Volume Profile */
.volume-profile {
    background: var(--surface);
    border: 1px solid var(--primary-dark);
    padding: 0;
    font-family: 'IBM Plex Mono', monospace;
}

.profile-header {
    background: var(--surface-light);
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    letter-spacing: 0.05em;
}

.profile-title {
    margin-bottom: 8px;
    text-align: center;
}

.profile-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    justify-content: center;
}

.profile-content {
    padding: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.profile-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.7rem;
    padding: 2px 4px;
    transition: all 0.1s ease;
}

.profile-row.current-hour {
    background: rgba(59, 130, 246, 0.1);
    border-left: 2px solid var(--primary);
}

.profile-row.future-hour {
    opacity: 0.4;
}

.profile-bar-container.pending {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        var(--grid) 10px,
        var(--grid) 20px
    );
    border: 1px dashed var(--grid);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-label {
    min-width: 80px;
    color: var(--text-secondary);
    text-align: left;
    padding-left: 5px;
    white-space: nowrap;
    overflow: hidden;
}

.profile-bar-container {
    flex: 1;
    height: 12px;
    background: var(--background);
    position: relative;
    border: 1px solid var(--grid);
}

.profile-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transition: width 0.3s ease;
}

.profile-value {
    margin-left: 8px;
    color: var(--primary);
    font-weight: 600;
    min-width: 40px;
}

/* Activity Score Gauge */
.activity-score-gauge {
    background: var(--surface);
    border: 1px solid var(--primary-dark);
    padding: 0;
    margin-bottom: 16px;
    font-family: 'IBM Plex Mono', monospace;
    overflow: visible;
    min-height: 250px;
}

.gauge-header {
    background: var(--surface-light);
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gauge-formula {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 400;
}

.data-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-badge.live {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    border: 1px solid #ff3333;
    animation: pulse-live 2s infinite;
}

/* Inline LIVE badge in metric cells */
.cell-value .data-badge.live {
    font-size: 8px;
    padding: 1px 4px;
    margin-left: 5px;
    vertical-align: baseline;
}

/* Inline variance indicator */
.variance-inline {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.8;
    font-weight: normal;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.activity-score-gauge .gauge-container {
    padding: 20px;
    min-height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.gauge-display {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 200px;
    overflow: visible;
}

.score-gauge {
    width: 100%;
    height: 200px;
    display: block;
    overflow: visible;
}

.gauge-marks {
    fill: var(--text-secondary);
    font-size: 9px;
    font-family: 'IBM Plex Mono', monospace;
}

.gauge-mark {
    dominant-baseline: middle;
}

.gauge-value-display {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-main-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--primary);
    line-height: 1;
}

.gauge-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--background);
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.gauge-status.optimal {
    color: var(--success);
    border: 1px solid var(--success);
}

.gauge-status.good {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.gauge-status.moderate {
    color: var(--warning);
    border: 1px solid var(--warning);
}

.gauge-status.poor {
    color: var(--danger);
    border: 1px solid var(--danger);
}

.gauge-variance {
    margin-top: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.variance-label {
    color: var(--text-secondary);
    font-weight: 400;
}

.variance-value {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.variance-value.positive {
    color: var(--success);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--success);
}

.variance-value.negative {
    color: var(--danger);
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--danger);
}

.variance-value.neutral {
    color: var(--text-secondary);
    background: var(--background);
    border: 1px solid var(--border);
}

.gauge-components {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--background);
    border: 1px solid var(--grid);
    border-radius: 4px;
}

.component-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 80px;
}

.component-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.component-weight {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Top Performers Ticker */
.top-performers-ticker {
    background: var(--surface);
    border: 1px solid var(--primary-dark);
    padding: 12px;
    overflow: hidden;
    position: relative;
    font-family: 'IBM Plex Mono', monospace;
}

.performers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    height: 60px;
}

.performer-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 255, 0, 0.02);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.performer-cell:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.3);
}

.performer-header {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.performer-icon {
    width: 12px;
    height: 12px;
    stroke: var(--primary);
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.performer-cell:hover .performer-icon {
    color: var(--primary-bright);
    opacity: 1;
    filter: drop-shadow(0 0 3px var(--primary));
}

.performer-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.performer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s ease;
}

.performer-link:hover {
    color: var(--primary-bright);
}

.performer-pp {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--primary-dark);
    transition: all 0.2s ease;
}

.performer-link:hover .performer-pp {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.performer-name {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.performer-stats {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Live badge for trending */
.live-badge {
    display: inline-block;
    padding: 2px 4px;
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    font-size: 8px;
    border-radius: 2px;
    font-weight: 600;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .performers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    align-items: center;
    margin-right: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feed-time {
    color: var(--text-secondary);
    margin-right: 8px;
}

.feed-event {
    padding: 2px 6px;
    border-radius: 2px;
    margin-right: 8px;
}

.feed-event.launch {
    background: rgba(255, 204, 0, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.feed-event.graduated {
    background: rgba(0, 255, 0, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.feed-event.rugged {
    background: rgba(255, 0, 0, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.feed-event.volume {
    background: rgba(0, 204, 255, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.feed-details {
    color: var(--text-primary);
}

/* Bloomberg Terminal Clock */
.bloomberg-clock {
    position: fixed;
    top: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--primary-dark);
    padding: 8px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.2);
}

.clock-bracket {
    color: var(--primary-dark);
    font-weight: 700;
}

.clock-time {
    color: var(--primary-light);
    text-shadow: 0 0 5px var(--primary);
    font-weight: 600;
}

/* Global Time Range Selector - Apple Minimalist with 4px Grid */
.global-time-selector {
    margin-top: 24px; /* 6*4px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.segmented-control {
    display: inline-flex;
    background: var(--background);
    border-radius: 8px; /* 2*4px */
    padding: 4px; /* 1*4px */
    border: none;
}

.segment-background {
    display: none; /* Remove sliding background */
}

.segment-btn {
    padding: 8px 20px; /* 2*4px, 5*4px */
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px; /* 2*4px */
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
}

.segment-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.segment-btn.active {
    background: var(--surface-light);
    color: var(--primary-light);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px var(--primary);
}

.segment-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.segment-text {
    display: none; /* Hide secondary text for cleaner look */
}

/* Removed hint section - no longer needed */

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px; /* 6*4px */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Day Progress in header */
.day-progress-container {
    display: flex;
    align-items: center;
}

.day-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-inline {
    width: 100px;
    height: 6px;
    background: var(--background);
    border: 1px solid var(--grid);
    position: relative;
    border-radius: 3px;
}

.progress-fill-inline {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-value {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.section-header h2,
.section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
    margin: 0;
}

/* Real-time Section - Bloomberg Terminal Style */
.realtime-section {
    background: var(--surface);
    padding: 32px;
    border-radius: 0;
    margin-bottom: 32px;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.05);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
    padding: 6px 12px; /* 1.5*4px, 3*4px */
    background: var(--surface-light);
    border: none;
    border-radius: 12px; /* 3*4px */
    font-size: 0.75rem;
    position: relative;
    overflow: visible;
}

.live-dot-container {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: 3;
    animation: pulse-green 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--primary);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px var(--primary-light);
    }
}

/* Remove expanding rings for minimalist design */
.live-ring,
.live-ring-2 {
    display: none;
}

.live-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    text-shadow: 0 0 5px var(--primary);
}

/* Hero Metric Layout - 4px Grid */
.realtime-hero {
    display: grid;
    grid-template-columns: 280px 1fr; /* 70*4px */
    gap: 48px; /* 12*4px */
    margin: 32px 0; /* 8*4px */
    align-items: center;
}

/* Circular Gauge */
.hero-gauge {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.circular-gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-gauge circle {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 4;
    filter: drop-shadow(0 0 5px var(--primary));
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    font-family: 'IBM Plex Mono', monospace;
    text-shadow: 0 0 15px var(--primary);
}

.gauge-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px; /* 2*4px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gauge-status {
    margin-top: 8px; /* 2*4px */
    padding: 4px 12px; /* 1*4px, 3*4px */
    background: var(--background);
    border-radius: 20px; /* 5*4px */
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.gauge-status.poor {
    color: var(--danger);
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid var(--danger);
}

.gauge-status.moderate {
    color: var(--warning);
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid var(--warning);
}

.gauge-status.good {
    color: var(--primary);
    background: rgba(0, 204, 0, 0.1);
    border: 1px solid var(--primary);
}

.gauge-status.optimal {
    color: var(--success);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--success);
    text-shadow: 0 0 5px var(--success);
}

/* Hero Details */
.hero-details {
    flex: 1;
}

.hero-details h3 {
    font-size: 1.125rem;
    margin-bottom: 24px; /* 6*4px */
    color: var(--text-primary);
}

.condition-grid {
    display: flex;
    flex-direction: column;
    gap: 16px; /* 4*4px */
    margin-bottom: 24px; /* 6*4px */
}

.condition-item {
    display: flex;
    align-items: flex-start;
    gap: 16px; /* 4*4px */
    margin-bottom: 4px; /* 1*4px */
}

.condition-label {
    min-width: 120px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 2px;
}

.condition-wrapper {
    flex: 1;
    position: relative;
}

.condition-bar {
    width: 100%;
    height: 2px;
    background: var(--grid);
    border-radius: 0;
    overflow: visible;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 204, 0, 0.1);
}

.condition-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Average marker - vertical line */
.condition-avg-marker {
    position: absolute;
    top: -3px;
    width: 1px;
    height: 8px;
    background: var(--text-secondary);
    opacity: 0.4;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Max marker - vertical line with different style */
.condition-max-marker {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 12px;
    background: var(--danger);
    opacity: 0.5;
    transition: left 0.5s ease;
    z-index: 2;
    border-left: 1px dashed var(--danger);
}

/* Current position marker - simplified dot */
.condition-current-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.condition-current-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* Value labels container */
.condition-values {
    position: relative;
    height: 20px; /* 5*4px */
    margin-top: 4px; /* 1*4px */
}

/* Average value label */
.condition-avg-value {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: left 0.5s ease;
}

.condition-avg-value .value-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.condition-avg-value .value-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Current value label */
.condition-current-value {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: left 0.5s ease;
}

.condition-current-value .value-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.condition-current-value .value-label {
    font-size: 0.6rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Max value label */
.condition-max-value {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: left 0.5s ease;
}

.condition-max-value .value-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--danger);
}

.condition-max-value .value-label {
    font-size: 0.6rem;
    color: var(--danger);
    opacity: 0.7;
}

.condition-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#competition-fill {
    background: linear-gradient(90deg, var(--danger), var(--primary));
    box-shadow: 0 0 10px currentColor;
}

#volume-fill {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    box-shadow: 0 0 10px var(--primary);
}

#success-fill {
    background: linear-gradient(90deg, var(--primary), var(--success));
    box-shadow: 0 0 10px var(--success);
}

.live-ticker {
    padding: 12px; /* 3*4px */
    background: var(--background);
    border-radius: 8px; /* 2*4px */
    border: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ticker-icon {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    opacity: 0.5;
    stroke-width: 1.5;
}

/* Supporting Metrics - Two Row Layout with 4px Grid */
.realtime-metrics-container {
    margin-top: 32px; /* 8*4px */
}

.metrics-row {
    display: grid;
    gap: 16px; /* 4*4px */
    margin-bottom: 16px; /* 4*4px */
}

/* Primary row with 3 cards */
.primary-row {
    grid-template-columns: 2fr 1.2fr 1.2fr;
}

/* Secondary row with 2 small cards positioned */
.secondary-row {
    grid-template-columns: repeat(4, 1fr);
}


/* Base metric card styling - Bloomberg Terminal */
.metric-card {
    background: var(--surface);
    border-radius: 0;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 204, 0, 0.2);
}

/* Large metric card (Launches) - 4px Grid */
.large-metric {
    padding: 24px; /* 6*4px */
    display: flex;
    flex-direction: column;
    gap: 16px; /* 4*4px */
}

/* Medium metric cards (Graduated, Volume) - 4px Grid */
.medium-metric {
    padding: 20px; /* 5*4px */
    display: flex;
    flex-direction: column;
    gap: 12px; /* 3*4px */
}

/* Small metric cards (bottom row) - 4px Grid */
.small-metric {
    padding: 16px; /* 4*4px */
    display: flex;
    align-items: center;
    gap: 12px; /* 3*4px */
}

/* Metric header with icon */
.metric-header {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* 3*4px */
}

.metric-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    flex-shrink: 0;
}

.metric-icon i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0.8;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px var(--primary));
}

.metric-info {
    flex: 1;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-sublabel {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Metric body */
.metric-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1.2;
    font-family: 'IBM Plex Mono', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.medium-metric .metric-value {
    font-size: 1.75rem;
}

.metric-change {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px; /* 1*4px */
}

.metric-change.positive {
    color: var(--primary);
}

.metric-change.negative {
    color: var(--danger);
}

/* Sparkline - 4px Grid */
.metric-sparkline {
    margin-top: 8px; /* 2*4px */
    height: 40px; /* 10*4px */
    opacity: 0.8;
}

/* Small metrics styling */
.small-metric-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 4px;
    flex-shrink: 0;
}

.small-metric-icon i {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    opacity: 0.5;
    stroke-width: 1.5;
}

.small-metric-content {
    flex: 1;
    min-width: 0;
}

.small-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
}

.small-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .realtime-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .primary-row {
        grid-template-columns: 1fr;
    }
    
    .secondary-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .secondary-row {
        grid-template-columns: 1fr;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .medium-metric .metric-value {
        font-size: 1.5rem;
    }
}

/* Range Indicator Styles */
.range-indicator {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.range-bar {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(245, 158, 11, 0.2) 50%, 
        rgba(34, 197, 94, 0.2) 100%);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: visible;
}

.range-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--danger) 0%, 
        var(--warning) 50%, 
        var(--success) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.range-avg-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--text-secondary);
    opacity: 0.6;
    transition: left 0.5s ease;
    z-index: 1;
}

.range-avg-line::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-secondary);
}

.range-avg-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--text-secondary);
}

.range-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--background);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: left 0.5s ease;
    z-index: 2;
}

.range-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    position: relative;
}

.range-min, .range-max {
    color: var(--text-secondary);
    font-weight: 500;
}

.range-min {
    color: var(--danger);
}

.range-max {
    color: var(--success);
}

.range-avg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.7rem;
    white-space: nowrap;
    transition: left 0.5s ease;
    background: var(--background);
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.range-current {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.7rem;
    white-space: nowrap;
    transition: left 0.5s ease;
}

/* Info Tooltip Styles */
.info-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 8px; /* 2*4px */
    cursor: pointer;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
}

.info-tooltip-trigger:hover {
    opacity: 0.8;
}

.info-icon {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    opacity: 0.4;
    transition: all 0.2s ease;
    stroke-width: 1.5;
}

.info-tooltip-trigger:hover .info-icon {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Info Card Modal Backdrop */
.info-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.info-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; /* 100*4px */
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--surface);
    border: none;
    border-radius: 12px; /* 3*4px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px; /* 4*4px, 5*4px */
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.info-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px; /* 1*4px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* 1*4px */
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-close-btn:hover {
    background: var(--background);
}

.close-icon {
    width: 16px; /* 4*4px */
    height: 16px; /* 4*4px */
    color: var(--text-secondary);
    opacity: 0.6;
    stroke-width: 1.5;
}

.info-card-content {
    padding: 16px; /* 4*4px */
}

.info-metric {
    margin-bottom: 1rem;
}

.info-metric:last-child {
    margin-bottom: 0;
}

.metric-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.metric-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.metric-hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.8;
}

.formula-box {
    background: var(--background);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
}

.formula-line {
    color: var(--text-secondary);
    line-height: 1.4;
}

.formula-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.formula-result {
    color: var(--primary);
    font-weight: 600;
}

.info-footer {
    padding: 0.75rem 1rem;
    background: var(--background);
    border-top: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
}

/* Gauge Indicator Styles (old style - different context) */
.old-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

.gauge {
    margin-bottom: 0.5rem;
}

#gauge-needle {
    transition: transform 0.5s ease-in-out;
}

.gauge-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.gauge-label {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: var(--background);
}

.gauge-label.poor {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.gauge-label.moderate {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.gauge-label.favorable {
    color: #84cc16;
    background: rgba(132, 204, 22, 0.1);
}

.gauge-label.optimal {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

/* Analytics Row - 4px Grid */
.analytics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px; /* 8*4px */
    margin-bottom: 32px; /* 8*4px */
}

/* Competition Section - 4px Grid */
.competition-section,
.success-section {
    background: var(--surface);
    padding: 24px; /* 6*4px */
    border-radius: 12px; /* 3*4px */
}

.time-selector {
    display: flex;
    gap: 8px; /* 2*4px */
}

.time-btn {
    padding: 6px 12px; /* 1.5*4px, 3*4px */
    background: var(--background);
    border: none;
    border-radius: 8px; /* 2*4px */
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-btn:hover {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

.time-btn.active {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

.heatmap-container {
    height: 300px; /* 75*4px */
    margin: 24px 0; /* 6*4px */
}

.sweet-spots {
    margin-top: 24px; /* 6*4px */
    padding-top: 24px; /* 6*4px */
    border-top: 1px solid var(--border);
}

.sweet-spots h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px; /* 4*4px */
}

.spots-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 2*4px */
}

.spot-item {
    display: flex;
    justify-content: space-between;
    padding: 8px; /* 2*4px */
    background: var(--background);
    border-radius: 8px; /* 2*4px */
    font-size: 0.875rem;
}

.spot-time {
    font-weight: 600;
}

.spot-launches {
    color: var(--text-secondary);
}

/* Success Section - 4px Grid */
.success-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px; /* 4*4px */
    margin-bottom: 24px; /* 6*4px */
}

.metric-card {
    display: flex;
    flex-direction: column;
    padding: 16px; /* 4*4px */
    background: var(--background);
    border-radius: 8px; /* 2*4px */
    border: none;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.chart-container {
    height: 200px; /* 50*4px */
    margin: 16px 0; /* 4*4px */
}

.risk-levels {
    margin-top: 24px; /* 6*4px */
    padding-top: 24px; /* 6*4px */
    border-top: 1px solid var(--border);
}

.risk-levels h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px; /* 4*4px */
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* 15*4px */
    gap: 8px; /* 2*4px */
}

.risk-item {
    padding: 8px; /* 2*4px */
    text-align: center;
    border-radius: 8px; /* 2*4px */
    font-size: 0.75rem;
}

.risk-item.low {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.risk-item.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.risk-item.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Recommendations Subsection in Predictive - 4px Grid */
.recommendations-section {
    margin-top: 40px; /* 10*4px */
    padding-top: 32px; /* 8*4px */
    border-top: 1px solid var(--border);
}

.recommendations-title {
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px; /* 6*4px */
    color: var(--text-primary);
}

.recommendations-title .section-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0.6;
    stroke-width: 1.5;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px; /* 6*4px */
}

.recommendation-card {
    background: var(--background);
    padding: 24px; /* 6*4px */
    border-radius: 12px; /* 3*4px */
    border: none;
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.recommendation-card.danger::before {
    background: var(--danger);
}

.recommendation-card.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.recommendation-card.success::before {
    background: var(--success);
}

.recommendation-card.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.02) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 12px; /* 3*4px */
    margin-bottom: 16px; /* 4*4px */
}

.recommendation-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.recommendation-card.danger .recommendation-icon {
    color: var(--danger);
}

.recommendation-card.success .recommendation-icon {
    color: var(--success);
}

.recommendation-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.avoid-list,
.alt-windows {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 2*4px */
}

.avoid-item,
.alt-window {
    padding: 12px; /* 3*4px */
    background: var(--surface);
    border-radius: 8px; /* 2*4px */
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
}

.avoid-item {
    border-left: 2px solid var(--danger);
}

.avoid-item::before {
    content: '×';
    color: var(--danger);
    font-weight: bold;
    font-size: 1.1rem;
}

.alt-window {
    border-left: 2px solid var(--success);
}

.alt-window::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Predictive Section - Bloomberg Terminal Style */
.predictive-section {
    background: var(--surface);
    padding: 32px;
    border-radius: 0;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    position: relative;
}

.predictive-section.bloomberg-terminal {
    background: var(--background);
    border: 1px solid var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.05);
}

/* Terminal Status Badges */
.terminal-status {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge {
    padding: 4px 8px;
    background: var(--surface);
    border: 1px solid var(--primary-dark);
    font-family: 'IBM Plex Mono', monospace;
}

/* Phase 2: Live Ticker Bar */
.ticker-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px;
    margin: 16px 0;
    overflow: hidden;
    position: relative;
    height: 32px;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: scroll-ticker 30s linear infinite;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes scroll-ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-separator {
    color: var(--primary-dark);
}

/* Phase 2: Countdown Timer */
.optimal-countdown {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--primary);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: 'IBM Plex Mono', monospace;
    text-shadow: 0 0 10px var(--primary);
    min-width: 120px;
}

/* Bloomberg Grid Layout */
.bloomberg-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.bloomberg-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Bloomberg Panels */
.bloomberg-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0;
    position: relative;
}

.panel-header {
    background: var(--surface-light);
    padding: 8px 12px;
    border-bottom: 1px solid var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

/* Phase 1: Forecast Chart Styling */
.forecast-panel .forecast-container {
    padding: 16px;
    height: 300px;
    background: var(--background);
    position: relative;
}

.forecast-panel .forecast-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.3;
    pointer-events: none;
}

/* Phase 1: Heatmap Matrix */
.heatmap-container {
    padding: 16px;
    background: var(--background);
    min-height: 200px;
    display: grid;
    grid-template-columns: 40px repeat(24, 1fr);
    grid-template-rows: repeat(8, 25px);
    gap: 1px;
    font-size: 0.7rem;
    font-family: 'IBM Plex Mono', monospace;
}

.heatmap-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--grid);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.heatmap-cell:hover {
    border-color: var(--primary);
    z-index: 10;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.heatmap-label {
    background: var(--surface);
    color: var(--text-secondary);
    border: none;
    font-weight: 600;
}

.heatmap-cell.low { background: #001100; color: #004400; }
.heatmap-cell.medium { background: #003300; color: #00AA00; }
.heatmap-cell.high { background: #006600; color: #00FF00; }
.heatmap-cell.optimal { 
    background: #00AA00; 
    color: #000000;
    font-weight: bold;
    animation: pulse-optimal 2s infinite;
}

@keyframes pulse-optimal {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 15px var(--primary-light); }
}

.heatmap-cell.current {
    border: 2px solid var(--primary-light);
    animation: blink-border 1s infinite;
}

@keyframes blink-border {
    0%, 100% { border-color: var(--primary-light); }
    50% { border-color: transparent; }
}

.update-time {
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.forecast-container {
    height: 300px; /* 75*4px */
    margin: 32px 0; /* 8*4px */
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 50*4px */
    gap: 24px; /* 6*4px */
}

.prediction-card {
    background: var(--background);
    padding: 24px; /* 6*4px */
    border-radius: 8px; /* 2*4px */
    border: none;
}

.prediction-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px; /* 4*4px */
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 8px; /* 2*4px */
    font-size: 1.25rem;
    font-weight: 700;
}

.next-window {
    display: flex;
    flex-direction: column;
    gap: 4px; /* 1*4px */
}

.window-time {
    font-size: 1.5rem;
    font-weight: 700;
}

.window-eta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.confidence-meter {
    position: relative;
    height: 30px;
    background: var(--surface);
    border-radius: 15px;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--danger) 0%, var(--warning) 50%, var(--success) 100%);
    transition: width 0.5s ease;
}

.confidence-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Performance Section - 4px Grid */
/* Performance Section - Bloomberg Terminal Style */
.performance-section.bloomberg-terminal {
    background: #000;
    border: 1px solid var(--primary-dark);
    padding: 20px;
    font-family: 'IBM Plex Mono', monospace;
}

.performance-matrix-container {
    margin: 20px 0;
    color: var(--primary);
}

.matrix-title {
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
}

.matrix-header {
    text-align: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    letter-spacing: 2px;
}

.matrix-footer {
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1;
    margin-top: 10px;
}

/* Activity Heat Map */
.activity-heatmap-container {
    margin: 20px 0;
    color: var(--primary);
    font-family: 'IBM Plex Mono', monospace;
    background: #000;
    padding: 15px;
    border: 1px solid var(--primary-dark);
}

.heatmap-border {
    color: var(--primary-dark);
    font-size: 10px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.heatmap-header {
    text-align: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    letter-spacing: 2px;
}

.heatmap-grid {
    padding: 10px 0;
    font-size: 11px;
}

.heatmap-row {
    display: flex;
    align-items: center;
    height: 20px;
    margin: 2px 0;
}

.row-label {
    width: 30px;
    color: var(--primary);
    font-weight: 600;
    text-align: right;
    padding-right: 10px;
}

.hour-labels, .heat-blocks, .launch-values, .grad-values {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.5px;
    white-space: pre;
}

.hour-labels {
    color: var(--primary-dark);
    font-size: 10px;
}

.heat-blocks {
    font-size: 14px;
    line-height: 1;
}

.launch-values {
    color: var(--text-secondary);
    font-size: 10px;
}

.grad-values {
    color: var(--text-secondary);
    font-size: 10px;
}

/* Heat block colors */
.heat-low {
    color: #0a4a2a;
}

.heat-med {
    color: #0f7938;
}

.heat-high {
    color: #10b981;
}

.heat-peak {
    color: #34d399;
}

.heatmap-legend {
    text-align: center;
    padding: 10px 0 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.legend-item {
    letter-spacing: 1px;
}

.heatmap-recommendation {
    text-align: center;
    padding: 10px 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.heatmap-recommendation #optimal-window {
    color: var(--success);
}

.heatmap-recommendation #avoid-window {
    color: var(--danger);
}

/* Composite Performance Chart */
.composite-chart-container {
    margin: 20px 0;
    background: #000;
    border: 2px solid var(--primary-dark);
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-dark);
}

.chart-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'IBM Plex Mono', monospace;
}

.chart-timeframe {
    color: var(--primary-dark);
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 1px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

#compositeChart {
    max-width: 100%;
    height: 100% !important;
}

.chart-recommendation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid var(--primary-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

#composite-optimal {
    color: var(--success);
}

#composite-avoid {
    color: var(--danger);
}

.chart-recommendation .separator {
    color: var(--primary-dark);
}

.performance-matrix {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
}

.performance-matrix thead th {
    color: var(--primary);
    font-weight: 600;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--primary-dark);
}

.performance-matrix tbody td {
    padding: 8px;
    text-align: center;
    color: var(--text-primary);
    border-right: 1px solid rgba(0, 255, 0, 0.1);
}

.performance-matrix .metric-label {
    text-align: left;
    color: var(--primary);
    font-weight: 600;
    border-right: 1px solid var(--primary-dark);
    padding-right: 15px;
}

.performance-matrix .daily-avg {
    background: rgba(0, 255, 0, 0.05);
    border-left: 1px solid var(--primary-dark);
    font-weight: 600;
}

.matrix-row:hover {
    background: rgba(0, 255, 0, 0.02);
}

.matrix-row.launches td:not(.metric-label) {
    color: #00ff88;
}

.matrix-row.grad-rate td:not(.metric-label) {
    color: #ffaa00;
}

.matrix-row.volume td:not(.metric-label) {
    color: #00aaff;
}

/* Old performance section hidden */
.performance-section:not(.bloomberg-terminal) {
    display: none;
}

.filter-controls {
    display: flex;
    gap: 4px; /* 1*4px */
    background: var(--background);
    padding: 4px; /* 1*4px */
    border-radius: 8px; /* 2*4px */
}

.perf-filter-btn {
    padding: 8px 16px; /* 2*4px, 4*4px */
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px; /* 2*4px */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
}

.perf-filter-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.perf-filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Quick Stats - 4px Grid */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; /* 4*4px */
    margin: 24px 0; /* 6*4px */
}

.stat-card {
    background: var(--background);
    padding: 16px; /* 4*4px */
    border-radius: 12px; /* 3*4px */
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* 1*4px */
}

.stat-card.best::before {
    background: var(--success);
}

.stat-card.worst::before {
    background: var(--danger);
}

.stat-card.avg::before {
    background: var(--primary);
}

.stat-card.peak::before {
    background: var(--warning);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px; /* 1*4px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px; /* 1*4px */
}

.stat-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Hourly Cards Grid - 4px Grid */
.performance-grid-container {
    position: relative;
    margin: 32px 0; /* 8*4px */
}

.performance-grid {
    display: flex;
    gap: 16px; /* 4*4px */
    overflow-x: auto;
    padding-bottom: 16px; /* 4*4px */
    scroll-behavior: smooth;
}

.performance-grid::-webkit-scrollbar {
    height: 8px; /* 2*4px */
}

.performance-grid::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

.performance-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.performance-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.hour-card {
    min-width: 152px; /* 38*4px */
    background: var(--background);
    border-radius: 12px; /* 3*4px */
    padding: 16px; /* 4*4px */
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hour-card:hover {
    transform: translateY(-4px); /* -1*4px */
    background: var(--surface-light);
}

.hour-card.current {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.hour-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px; /* 3*4px */
}

.hour-volume {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px; /* 2*4px */
}

.volume-bar {
    height: 4px; /* 1*4px */
    background: var(--surface-light);
    border-radius: 2px;
    margin-bottom: 12px; /* 3*4px */
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.hour-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.hour-stat {
    display: flex;
    flex-direction: column;
    gap: 2px; /* 0.5*4px */
}

.hour-stat-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.hour-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.hour-stat-value.success {
    color: var(--success);
}

.hour-stat-value.danger {
    color: var(--danger);
}

.grid-scroll-hint {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--surface));
    padding: 8px 8px 8px 32px; /* 2*4px, 2*4px, 2*4px, 8*4px */
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px; /* 1*4px */
    pointer-events: none;
    animation: pulse 2s infinite;
}

/* Timeline Chart - 4px Grid */
.performance-timeline {
    margin-top: 32px; /* 8*4px */
    padding-top: 32px; /* 8*4px */
    border-top: 1px solid var(--border);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px; /* 6*4px */
}

.timeline-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.timeline-toggles {
    display: flex;
    gap: 4px; /* 1*4px */
    background: var(--background);
    padding: 4px; /* 1*4px */
    border-radius: 8px; /* 2*4px */
}

.timeline-toggle {
    padding: 6px 12px; /* 1.5*4px, 3*4px */
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px; /* 1*4px */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.timeline-toggle.active {
    background: var(--primary);
    color: white;
}

.timeline-chart-container {
    height: 252px; /* 63*4px */
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .analytics-row {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .realtime-grid {
        grid-template-columns: 1fr;
    }
    
    .predictions-grid {
        grid-template-columns: 1fr;
    }
}

/* Bottom Terminal Status Bar */
.terminal-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #000;
    border-top: 2px solid var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(16, 185, 129, 0.1);
}

.status-bar-left,
.status-bar-center,
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-bar-center .clock-time {
    color: var(--primary-bright);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 1px;
}

.status-bar-center .clock-bracket {
    color: var(--primary);
    opacity: 0.7;
}

.status-item {
    color: var(--primary);
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.status-item.shortcut-key {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.status-item.shortcut-key:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.status-separator {
    color: var(--primary-dark);
    opacity: 0.5;
    user-select: none;
}

#status-connection.status-good {
    color: var(--success);
    font-size: 0.8rem;
}

#status-connection.status-bad {
    color: var(--danger);
    font-size: 0.8rem;
}

#status-mode {
    color: var(--success);
    font-weight: 600;
}

#status-data-age {
    color: var(--primary-bright);
}

/* Adjust main content to account for status bar */
body {
    padding-bottom: 32px;
}

/* Animation for status updates */
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-item.updating {
    animation: statusPulse 1s ease-in-out infinite;
}