/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    color: #f7931a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.85rem;
    color: #999;
}

.current-time {
    font-size: 0.95rem;
    font-weight: 600;
}

.current-time span {
    color: #00ff88;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
}

.last-update span,
.next-update span {
    color: #f7931a;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}



/* Alert Banner */
.alert-banner {
    background: #ff4444;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.alert-banner.warning {
    background: #ffc107;
    color: #000;
}

.alert-banner.info {
    background: #17a2b8;
    color: white;
}

.alert-banner.hidden {
    display: none;
}

.dismiss-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
}

.dismiss-btn:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Increased spacing for better visual hierarchy */
}

/* Section Dividers */
.main-content section {
    position: relative;
    padding: 40px 0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-content section:not(.price-section)::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #f7931a 50%, transparent 100%);
    opacity: 0.5;
}

.main-content section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(247, 147, 26, 0.1);
}

/* Price Section */
.price-section {
    text-align: center;
    margin-bottom: 20px;
}

.price-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: #f7931a;
    box-shadow: 0 16px 48px rgba(247, 147, 26, 0.2);
    background: linear-gradient(135deg, #1f1f1f 0%, #2f2f2f 100%);
}

.price-label {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.price-label::before {
    content: '₿';
    color: #f7931a;
    font-size: 1.3rem;
    font-weight: 700;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f7931a;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.4);
    letter-spacing: -1px;
    line-height: 1;
}

.price-change {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.price-change.positive {
    color: #00ff88;
}

.price-change.negative {
    color: #ff4444;
}

.price-update-time {
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

/* Section Headers - Enhanced Typography Hierarchy */
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(247, 147, 26, 0.3);
    position: relative;
}

/* Enhanced section headers with icons */
h2:not(.peak-date-card h2) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-description {
    color: #999;
    font-size: 1rem;
    text-align: center;
    margin: -20px 0 30px 0;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Peak Date Section */
.peak-date-section {
    margin-top: 30px;
}

.peak-date-card {
    background: linear-gradient(135deg, #f7931a 0%, #ff9800 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid #f7931a;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.peak-date-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(247, 147, 26, 0.4);
    background: linear-gradient(135deg, #ff9800 0%, #f7931a 100%);
}

.peak-date-card h2 {
    color: #000;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.peak-date-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.peak-date-range {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.range-label {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    margin-right: 10px;
}

.range-value {
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Enhanced Prediction Cards */
.prediction-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.prediction-card:hover::before {
    left: 100%;
}

.prediction-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(247, 147, 26, 0.15);
}

.prediction-card.conservative:hover {
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.15);
}

.prediction-card.optimistic:hover {
    box-shadow: 0 20px 60px rgba(255, 68, 68, 0.15);
}

/* Enhanced Prediction Typography */
.prediction-price {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.prediction-card:hover .prediction-price {
    transform: scale(1.05);
    text-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

/* Peak Factors Section */
.peak-factors-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.peak-factors-section:hover {
    border-color: #444;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.factors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.factor-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.factor-item:hover {
    transform: translateX(12px) translateY(-2px);
    border-color: #f7931a;
    box-shadow: 0 8px 24px rgba(247, 147, 26, 0.25);
    background: linear-gradient(135deg, #2f2f2f 0%, #1f1f1f 100%);
}

.factor-item:hover .factor-rank {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.4);
}

.factor-item.loading {
    opacity: 0.6;
    animation: pulse 2s infinite;
}

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

.factor-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7931a 0%, #ff9800 100%);
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.factor-content {
    flex: 1;
}

.factor-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.factor-weight {
    color: #f7931a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.factor-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Predictions Section */
.prediction-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.prediction-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.prediction-card.primary {
    border-color: #f7931a;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%);
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.2);
}

.prediction-card.conservative {
    border-color: #00ff88;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a2a1a 100%);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
}

.prediction-card.optimistic {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.prediction-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary .confidence {
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
}

.conservative .confidence {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.optimistic .confidence {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.prediction-price {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    margin-bottom: 16px;
    text-align: center;
}

.primary .prediction-price {
    color: #f7931a;
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.4);
}

.conservative .prediction-price {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.optimistic .prediction-price {
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.prediction-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.detail-row .label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.detail-row .value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

/* Analysis and Metrics Sections */
.analysis-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.analysis-card,
.metric-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.analysis-card:hover,
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.metric-label {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #00ff88;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.metric-card .metric-value {
    color: #f7931a;
}

/* Info icons and descriptions for advanced indicators */
.info-icon {
    font-size: 0.8em;
    color: #4CAF50;
    cursor: help;
    margin-left: 5px;
    opacity: 0.8;
}

.metric-description {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-style: italic;
    line-height: 1.2;
}

/* Portfolio Allocation Widget */
.portfolio-allocation-container {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ATH Warning Banner */
.ath-warning-banner {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
    animation: pulse 2s infinite;
}

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

.ath-warning-banner .warning-icon {
    font-size: 1.4rem;
}

.ath-warning-banner .warning-text {
    flex: 1;
    font-size: 1rem;
}

.portfolio-allocation-container h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.allocation-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.allocation-bars {
    position: relative;
}

.allocation-bar-container {
    display: flex;
    height: 60px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.allocation-btc-bar {
    background: linear-gradient(135deg, #f7931a, #f9a825);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    position: relative;
}

.allocation-cash-bar {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: width 0.5s ease;
}

.allocation-percent {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.allocation-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.btc-label, .cash-label {
    font-weight: bold;
    font-size: 0.9rem;
}

.btc-label {
    color: #f7931a;
}

.cash-label {
    color: #4caf50;
}

.allocation-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allocation-strategy, .allocation-action {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    align-items: center;
}

.allocation-strategy .detail-value {
    font-weight: bold;
    color: #f7931a;
    font-size: 1.1rem;
}

.allocation-action .detail-value {
    color: rgba(255, 255, 255, 0.8);
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.allocation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.allocation-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.allocation-metric .metric-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.allocation-metric .metric-value {
    font-weight: bold;
    color: #ffffff;
}

#monthly-adjustment {
    color: #ff5252;
}

#monthly-adjustment.positive {
    color: #4caf50;
}

.rebalancing-schedule {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Two-column layout for BTC vs Altcoin schedules */
.schedule-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    min-height: 0; /* Allow shrinking */
    overflow: hidden; /* Prevent overall overflow */
}

.btc-schedule-column,
.alt-schedule-column {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btc-schedule-column {
    border-left: 3px solid #f7931a; /* Bitcoin orange */
}

.alt-schedule-column {
    border-left: 3px solid #627eea; /* Ethereum blue */
}

.schedule-column-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #ffffff;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btc-schedule .schedule-column-title {
    color: #f7931a;
}

.alt-schedule .schedule-column-title {
    color: #627eea;
}

/* iPad Pro and larger tablets */
@media (max-width: 1024px) and (min-width: 900px) {
    .schedule-columns {
        gap: 0.5rem;
    }
    
    .btc-schedule-column,
    .alt-schedule-column {
        padding: 0.4rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .schedule-column-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .schedule-list li {
        font-size: 0.7rem;
        padding: 0.2rem 0;
        line-height: 1.2;
        padding-left: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .schedule-list li:before {
        font-size: 0.6rem;
    }
}

/* Standard iPad and smaller tablets - stack columns */
@media (max-width: 899px) and (min-width: 769px) {
    .schedule-columns {
        grid-template-columns: 1fr; /* Stack on smaller tablets */
        gap: 1rem;
    }
    
    .btc-schedule-column,
    .alt-schedule-column {
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .schedule-column-title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }
    
    .schedule-list li {
        font-size: 0.65rem !important; /* Much smaller text for iPad */
        padding: 0.35rem 0;
        line-height: 1.3;
        padding-left: 1.8rem !important; /* More space for icons */
        margin-bottom: 0.15rem;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        max-width: calc(100% - 1.8rem); /* Account for left padding */
        white-space: normal;
        word-break: break-word;
    }
    
    .schedule-list li:before {
        font-size: 0.6rem;
        margin-right: 0.3rem;
        left: 0.5rem !important; /* Position icon properly */
        width: 1rem;
        text-align: center;
    }
    
    .allocation-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .rebalancing-schedule {
        padding: 0.5rem;
    }
    
    .schedule-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
}

/* Mobile responsive - stack columns */
@media (max-width: 768px) {
    .schedule-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btc-schedule-column,
    .alt-schedule-column {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .schedule-column-title {
        font-size: 1rem; /* Larger on mobile when stacked */
    }
    
    .schedule-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        line-height: 1.5;
        padding-left: 1rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
    }
}

.schedule-label {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.schedule-list li {
    padding: 0.4rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    padding-left: 2rem; /* More space for arrow icons */
    word-wrap: break-word;
    line-height: 1.4;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.schedule-list li:before {
    content: "→";
    position: absolute;
    left: 0.3rem;
    color: #f7931a;
    width: 1.2rem;
    text-align: left;
}

/* Enhanced styling for schedule disclaimers */
.schedule-list li:last-child {
    font-style: italic;
    color: #888;
    border-top: 1px solid rgba(255, 165, 0, 0.3);
    margin-top: 10px;
    padding-top: 10px;
    font-size: 0.85em;
}

.schedule-list li:last-child:before {
    content: "⚠️";
    color: #FFA500;
}

/* Highlight the complete exit target */
.schedule-list li:nth-last-child(3) {
    font-weight: bold;
    color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 4px;
    padding: 8px !important;
    margin: 8px 0 !important;
}

.schedule-list li:nth-last-child(3):before {
    content: "🎯";
    color: #f7931a;
}

/* Risk Assessment Gradient Bar */
.risk-gradient-container {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.risk-gradient-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-gradient-bar {
    width: 100%;
    height: 45px;
    border-radius: 25px;
    background: linear-gradient(90deg, 
        #4CAF50 0%,      /* Green - Low Risk */
        #8BC34A 12%,     /* Light Green */
        #CDDC39 25%,     /* Lime */
        #FFEB3B 37%,     /* Yellow */
        #FFC107 50%,     /* Amber */
        #FF9800 62%,     /* Orange */
        #FF5722 75%,     /* Deep Orange */
        #f44336 87%,     /* Red */
        #9C27B0 100%     /* Purple - Extreme Risk */
    );
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.risk-gradient-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    border-radius: 25px;
}

.risk-indicator {
    position: absolute;
    top: -7px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.3);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: #000;
    z-index: 3;
    cursor: default;
}

.risk-indicator::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #f0f0f0;
}

.risk-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}

.risk-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.risk-label.active {
    color: #f7931a;
    font-weight: bold;
}

.risk-score-display {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.risk-score-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #f7931a 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.risk-score-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-style: italic;
}

/* Cycle Progress Bar (matching Risk Assessment style) */
.cycle-progress-container {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cycle-progress-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cycle-progress-bar {
    width: 100%;
    height: 45px;
    border-radius: 25px;
    background: linear-gradient(90deg, 
        #4CAF50 0%,      /* Green - Early Cycle */
        #8BC34A 20%,     /* Light Green */
        #CDDC39 40%,     /* Lime - Mid Cycle */
        #FFEB3B 60%,     /* Yellow */
        #FF9800 80%,     /* Orange - Late Cycle */
        #f44336 100%     /* Red - Peak Zone */
    );
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.cycle-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    border-radius: 25px;
}

.cycle-indicator {
    position: absolute;
    top: -7px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f7931a 0%, #e67e22 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(247, 147, 26, 0.3);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    z-index: 3;
    cursor: default;
}

.cycle-indicator::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #e67e22;
}

.cycle-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}

.cycle-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    flex: 1;
}

.cycle-score-display {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.cycle-score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f7931a;
    margin-bottom: 5px;
}

.cycle-score-label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cycle-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-style: italic;
}

/* Backtest Widget Styles */
.backtest-widget-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.backtest-widget-container h2 {
    color: #fff;
    margin-bottom: 10px;
}

.backtest-update-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #888;
    font-size: 0.9rem;
}

.backtest-status {
    color: #4CAF50;
}

.backtest-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.backtest-tab {
    padding: 8px 20px;
    background: #333;
    color: #888;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.backtest-tab:hover {
    background: #444;
}

.backtest-tab.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.backtest-period-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #aaa;
}

.backtest-strategies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.strategy-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
}

.model-strategy {
    border-color: #4CAF50;
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.strategy-icon {
    font-size: 1.5rem;
}

.strategy-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.strategy-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strategy-metrics .metric {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.strategy-metrics .metric:last-child {
    border-bottom: none;
}

.strategy-metrics .metric-label {
    color: #888;
    font-size: 0.9rem;
}

.strategy-metrics .metric-value {
    color: #fff;
    font-weight: bold;
}

.backtest-comparison {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
}

.comparison-header h3 {
    color: #fff;
    margin-bottom: 20px;
}

.comparison-item {
    margin-bottom: 15px;
}

.comparison-label {
    color: #888;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comparison-bar-container {
    background: #333;
    border-radius: 6px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.comparison-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    transition: width 0.5s ease;
    min-width: 60px;
}

#model-vs-buyhold-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

#model-vs-dca-bar {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.comparison-value {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.backtest-recommendation {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #444;
}

.recommendation-icon {
    font-size: 2rem;
}

.recommendation-text h4 {
    color: #fff;
    margin: 0 0 10px 0;
}

.recommendation-text p {
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .backtest-strategies {
        grid-template-columns: 1fr;
    }
    
    .backtest-tabs {
        justify-content: space-around;
    }
    
    .backtest-tab {
        flex: 1;
        text-align: center;
    }
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #333;
    text-align: center;
}

.disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.disclaimer p {
    color: #ffc107;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

.footer-info {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-info p {
    margin: 5px 0;
}

/* Connection Status Indicators */
.connected {
    color: #00ff88;
}

.disconnected {
    color: #ff4444;
}

.loading {
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Flash animation for Bitcoin Dominance extreme alerts */
@keyframes flash {
    0%, 50% {
        opacity: 1;
        color: #ff4444;
    }
    25%, 75% {
        opacity: 0.3;
        color: #ff8888;
    }
}

/* Additional alert styling for Bitcoin Dominance */
.btc-dominance-signal .signal-strength {
    transition: all 0.3s ease;
}

.btc-dominance-signal .signal-strength[title*="EXTREME"] {
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

.btc-dominance-signal .signal-strength[title*="HIGH ALERT"] {
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

/* All-Time High Widget */
.ath-widget {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 16px;
    padding: 20px;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ath-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ath-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.ath-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ath-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ath-price-section {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.ath-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.ath-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.ath-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ath-metric {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.ath-metric-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.ath-metric-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.ath-metric-value.positive {
    color: #2ecc71;
}

.ath-metric-value.negative {
    color: #e74c3c;
}

.ath-progress-bar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    height: 35px;
    position: relative;
    overflow: hidden;
}

.ath-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    min-width: 50px;
}

.ath-progress-fill.at-ath {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.ath-progress-fill.near-ath {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.ath-progress-fill.far-ath {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.ath-progress-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Pullback Analysis Widget */
.pullback-widget {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 16px;
    padding: 20px;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pullback-widget.severity-low {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.pullback-widget.severity-medium {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.pullback-widget.severity-high {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.pullback-widget.severity-critical {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.pullback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pullback-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.pullback-depth {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.pullback-type {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.pullback-probabilities {
    margin: 20px 0;
}

.probability-bar {
    margin-bottom: 15px;
}

.prob-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.prob-bar-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.5s ease;
}

.prob-bar-fill.bull {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.prob-bar-fill.bear {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.prob-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
}

.pullback-advice {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.pullback-factors {
    margin-top: 20px;
}

.pullback-factors h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 1rem;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.factor-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.factor-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}

.factor-value {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffffff;
}

.factor-value.bullish {
    color: #2ecc71;
}

.factor-value.bearish {
    color: #e74c3c;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    /* Enhanced mobile typography */
    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .section-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* Mobile price display optimization */
    .price-value {
        font-size: 2.8rem;
    }
    
    .price-card {
        padding: 20px;
        margin: 0 5px;
        transform: none !important; /* Disable hover transforms on mobile */
    }
    
    /* Mobile section spacing */
    .main-content {
        gap: 40px;
    }
    
    .main-content section {
        padding: 20px 0;
    }
    
    .main-content section:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    /* Mobile peak factors optimization */
    .factor-item:hover {
        transform: translateY(-2px);
    }
    
    .factor-rank {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-right: 15px;
    }
    
    /* Mobile prediction cards */
    .prediction-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .prediction-card:hover {
        transform: none; /* Disable complex transforms on mobile */
    }
    
    .prediction-stack {
        gap: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-info {
        align-items: center;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .peak-date-card {
        padding: 20px;
    }
    
    .peak-date-value {
        font-size: 1.8rem;
    }
    
    .peak-date-card h2 {
        font-size: 1.2rem;
    }
    
    .range-value {
        font-size: 1rem;
    }
    
    .prediction-stack {
        gap: 15px;
    }
    
    .prediction-card {
        padding: 20px;
    }
    
    .prediction-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid,
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prediction-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .analysis-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .peak-date-card {
        padding: 15px;
    }
    
    .peak-date-value {
        font-size: 1.5rem;
    }
    
    .peak-date-card h2 {
        font-size: 1.1rem;
    }
    
    .range-value {
        font-size: 0.9rem;
    }
    
    .prediction-card {
        padding: 15px;
    }
    
    .prediction-price {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}

/* Smooth page load */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.loaded {
    opacity: 1;
}

/* Charts Section */
.charts-section {
    margin-top: 40px;
}

.charts-grid {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    color: #f7931a;
    font-size: 1.3rem;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.chart-btn.active {
    background: #f7931a;
    border-color: #f7931a;
    color: #000;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-container canvas {
    border-radius: 8px;
    max-width: 100%;
    height: auto !important;
}

@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .chart-container {
        height: 250px;
        padding: 5px;
    }
    
    .chart-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 200px;
        padding: 2px;
    }
    
    .chart-card {
        padding: 10px;
    }
    
    .chart-header h3 {
        font-size: 1.1rem;
    }
}

/* Peak Warning Styles */
.peak-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: warningPulse 2s infinite;
}

.peak-warning-low {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.peak-warning-moderate {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.peak-warning-high {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    border-color: #ff9800;
}

.peak-warning-critical {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    border-color: #f44336;
    animation: warningPulse 1s infinite;
}

@keyframes warningPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.peak-warning-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
}

.peak-warning-content h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 24px;
    text-align: center;
}

.peak-probability {
    text-align: center;
    margin: 20px 0;
}

.peak-probability-value {
    font-size: 72px;
    font-weight: bold;
    color: #f44336;
    display: block;
}

.peak-probability-label {
    font-size: 18px;
    color: #666;
    display: block;
    margin-top: 10px;
}

.peak-details {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.peak-detail-item {
    text-align: center;
}

.peak-detail-item .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.peak-detail-item span:not(.label) {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.peak-explanation {
    text-align: center;
    font-size: 16px;
    color: #444;
    margin-top: 15px;
    font-style: italic;
}

/* Market State Indicator */
.market-state-indicator {
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.market-state-indicator.bull {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border: 2px solid #4caf50;
}

.market-state-indicator.bear {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
}

.market-state-badge {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.market-state-confidence {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.market-state-description {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

/* Bottom Warning (similar to peak warning but for bear markets) */
.bottom-warning {
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.bottom-warning-low {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.bottom-warning-moderate {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
}

.bottom-warning-high {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-color: #e91e63;
}

.bottom-warning-extreme {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #9c27b0;
    animation: bottomPulse 2s infinite;
}

@keyframes bottomPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.bottom-warning-content h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 24px;
    text-align: center;
}

.bottom-probability {
    text-align: center;
    margin: 20px 0;
}

.bottom-probability-value {
    font-size: 72px;
    font-weight: bold;
    color: #4caf50;
    display: block;
}

.bottom-probability-label {
    font-size: 18px;
    color: #666;
    display: block;
    margin-top: 10px;
}

.bottom-details {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.bottom-detail-item {
    text-align: center;
}

.bottom-detail-item .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.bottom-detail-item span:not(.label) {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.bottom-explanation {
    text-align: center;
    font-size: 16px;
    color: #444;
    margin-top: 15px;
    font-style: italic;
}

/* QUICK WINS - New Indicator Styles */

/* VWAP */
.vwap-section {
    margin: 30px 0;
}

.vwap-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #333;
}

.vwap-values {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.vwap-item {
    text-align: center;
}

.vwap-label {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.vwap-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff00;
}

.vwap-signal {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
}

.signal-type {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.signal-action {
    display: block;
    color: #999;
}

/* Fibonacci */
.fibonacci-section {
    margin: 30px 0;
}

.fibonacci-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #333;
}

.fib-nearest {
    background: rgba(255,215,0,0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.fib-level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fib-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

.fib-price {
    font-size: 1.3rem;
    color: #fff;
}

.fib-type {
    padding: 5px 15px;
    background: #ffd700;
    color: #000;
    border-radius: 20px;
    font-weight: bold;
}

.fib-interpretation {
    text-align: center;
    color: #00ff00;
    font-size: 1.1rem;
}

/* Heat Map */
.heatmap-section {
    margin: 30px 0;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    border: 1px solid #333;
}

.heatmap-item {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.heatmap-label {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.heatmap-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.heatmap-status {
    display: block;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
}

/* Cycle Clock */
.cycle-clock-section {
    margin: 30px 0;
}

.cycle-clock-container {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cycle-clock {
    width: 200px;
    height: 200px;
}

.cycle-clock-svg {
    width: 100%;
    height: 100%;
}

.cycle-info {
    flex: 1;
}

.cycle-phase {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 10px;
}

.cycle-description {
    color: #999;
    margin-bottom: 10px;
}

.cycle-progress {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cycle-clock-container {
        flex-direction: column;
    }
    
    .heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive styles for peak warning */
@media (max-width: 768px) {
    .peak-probability-value,
    .bottom-probability-value {
        font-size: 56px;
    }
    
    .peak-details,
    .bottom-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .peak-warning,
    .bottom-warning {
        padding: 15px;
    }
    
    .market-state-indicator {
        padding: 10px;
    }
    
    .market-state-badge {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .peak-probability-value {
        font-size: 48px;
    }
    
    .peak-warning-icon {
        font-size: 36px;
    }
    
    .peak-warning-content h3 {
        font-size: 20px;
    }
}

/* Critical Peak Warning - When conservative target is below ATH */
.critical-peak-warning {
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: white;
    padding: 25px;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.5);
    animation: critical-pulse 1.5s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.critical-warning-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    animation: shake 0.5s ease-in-out infinite;
}

.critical-warning-title {
    font-size: 1.8em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.critical-warning-message {
    font-size: 1.15em;
    line-height: 1.6;
}

.critical-warning-detail {
    margin-top: 12px;
    font-size: 0.95em;
    opacity: 0.95;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes critical-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(255, 23, 68, 0.5);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(255, 23, 68, 0.7);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Exit Recommendation Banner */
.exit-recommendation-banner {
    color: white;
    padding: 20px;
    margin: 15px auto;
    max-width: 900px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    animation: critical-pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.exit-rec-icon {
    font-size: 2.2em;
    animation: shake 0.5s ease-in-out infinite;
}

.exit-rec-content {
    flex: 1;
}

.exit-rec-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exit-rec-percentage {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #ffeb3b;
}

.exit-rec-message {
    font-size: 1.1em;
    line-height: 1.5;
    opacity: 0.95;
}
/* Pi Cycle Progress Indicator - Perplexity Labs Phase 1 Enhancement */
.pi-cycle-card {
    position: relative;
}

.pi-cycle-progress-container {
    margin: 10px 0;
}

.pi-cycle-progress-bar {
    width: 100%;
    height: 24px;
    background: linear-gradient(90deg, #1a1a2e 0%, #2a2a3e 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pi-cycle-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41 0%, #ffff00 70%, #ff4141 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    position: relative;
}

.pi-cycle-progress-text {
    color: #0a0a15;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

.pi-cycle-timeline {
    font-size: 0.85rem;
    color: #ffff00;
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}

/* MVRV Validation Display */
.mvrv-validation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    font-size: 0.8em;
}

.mvrv-validation.high-confidence {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.mvrv-validation.medium-confidence {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.mvrv-validation.low-confidence {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.mvrv-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.mvrv-source {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75em;
    font-weight: 500;
}

.mvrv-source.real-data {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.mvrv-source.calculated {
    background: #e2e3e5;
    border-color: #6c757d;
    color: #495057;
}

.mvrv-context {
    font-weight: 600;
    margin-bottom: 4px;
}

.mvrv-rationale {
    font-style: italic;
    color: #6c757d;
}

/* Altcoin Predictions */
.altcoin-predictions-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid var(--border);
}

.altcoin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.altcoin-card {
    background: var(--background);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.altcoin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.altcoin-card.emergency {
    border-color: #ff4444;
    background: linear-gradient(135deg, var(--background) 0%, rgba(255, 68, 68, 0.05) 100%);
}

.altcoin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.altcoin-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.confidence-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.confidence-badge.critical {
    background: linear-gradient(135deg, #ff4444, #cc3333);
}

.altcoin-peak-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.altcoin-recommendation {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.altcoin-recommendation.emergency {
    color: #ff4444;
    font-weight: 600;
}

.altcoin-summary {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Bitcoin Dominance Card Styling */
.btc-dominance-card .btc-dominance-signal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(247, 147, 26, 0.2);
}

.btc-dominance-signal .signal-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.btc-dominance-signal .signal-strength {
    font-size: 0.85rem;
    font-weight: bold;
    transition: color 0.3s ease;
}


/* Data Sources Section */
.data-sources-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.data-sources-section h2 {
    text-align: center;
    color: #e8f4fd;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.data-sources-section .section-description {
    text-align: center;
    color: #bdc3c7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.data-source-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.data-source-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.data-source-item.primary-indicator {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.05);
}

.data-source-item.macro-indicator {
    border-color: rgba(52, 152, 219, 0.5);
    background: rgba(52, 152, 219, 0.05);
}

.data-source-item.secondary-indicator {
    border-color: rgba(241, 196, 15, 0.5);
    background: rgba(241, 196, 15, 0.05);
}

.data-source-item.tertiary-indicator {
    border-color: rgba(149, 165, 166, 0.5);
    background: rgba(149, 165, 166, 0.05);
}

.data-rank {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.data-info h3 {
    margin: 0 0 0.5rem 0;
    color: #e8f4fd;
    font-size: 1.1rem;
}

.data-weight {
    color: #3498db;
    font-weight: bold;
    font-size: 0.9rem;
}

.data-status {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #2ecc71;
}

.data-description {
    color: #bdc3c7;
    font-size: 0.85rem;
    line-height: 1.4;
}

.supporting-data {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.supporting-data h3 {
    color: #e8f4fd;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.supporting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.supporting-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e8f4fd;
}

.supporting-item .data-source {
    font-size: 0.8rem;
    color: #95a5a6;
    opacity: 0.8;
}

.data-quality-summary {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: center;
}

.quality-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.metric-value {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .data-sources-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
    
    .supporting-grid {
        grid-template-columns: 1fr;
    }
    
    .data-quality-summary {
        grid-template-columns: 1fr;
        margin: 2rem 0.5rem;
    }
    
    .data-sources-section {
        margin: 1rem 0;
        padding: 2rem 0;
    }
    
    .data-sources-section h2 {
        font-size: 1.5rem;
    }
}
