/* Custom Properties */
:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f29;
    --bg-card: #1e2329;
    --text-primary: #ffffff;
    --text-secondary: #b7bdc6;
    --text-muted: #848e9c;
    --border-color: #2b3139;
    --accent-bitcoin: #f7931a;
    --accent-success: #02c076;
    --accent-danger: #f84960;
    --accent-warning: #ffd700;
    --gray-zone: #6c757d;
    --blue-zone: #007bff;
    --green-zone: #198754;
    --red-zone: #dc3545;
}

/* Blue Zone Text Styling - High Specificity to Override Bootstrap */
p .blue-zone-text,
.text-white-50 .blue-zone-text,
span.blue-zone-text {
    color: #007bff !important;
    font-weight: 600;
}

/* Legacy fallback */
.blue-zone-text {
    color: #007bff !important;
    font-weight: 600;
}

/* CSS Debugging Classes - TODO: Remove after layout fix */
.debug-border {
    border: 2px solid red !important;
    background: rgba(255,0,0,0.1) !important;
}

.debug-heights {
    min-height: 200px !important;
    border: 1px dashed blue !important;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(45deg, var(--accent-bitcoin), var(--accent-warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Styles */
.crypto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crypto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

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

/* Dominance Gauge */
.dominance-container {
    text-align: center;
}

.gauge-wrapper {
    position: relative;
    margin: 2rem auto;
    max-width: 400px;
}

.gauge {
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

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

.gauge-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.gauge-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Phase Card */
.phase-card {
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.phase-name {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.phase-name.blue-zone {
    color: var(--blue-zone) !important;
}

.phase-name.green-zone {
    color: var(--green-zone) !important;
}

.phase-name.red-zone {
    color: var(--red-zone) !important;
}

.phase-name.gray-zone {
    color: var(--gray-zone) !important;
}

.risk-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.phase-advice {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Fear & Greed Index */
.fgi-container {
    text-align: center;
    position: relative;
}

.fgi-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.fgi-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.fgi-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

.fgi-scale-item {
    text-align: center;
    flex: 1;
}

.fgi-scale-item span {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
}

.fgi-scale-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fgi-indicator {
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    background: var(--accent-warning);
    border-radius: 50%;
    transition: left 0.5s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.extreme-fear { color: #f84960; }
.fear { color: #ff8c42; }
.neutral { color: #ffd700; }
.greed { color: #7cb342; }
.extreme-greed { color: #02c076; }

/* Alerts & Signals */
.alerts-container {
    min-height: 150px;
}

.loading-spinner {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.loading-spinner i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.signal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signal-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-bitcoin);
    transition: transform 0.2s ease;
    animation: slideIn 0.5s ease;
    color: var(--text-primary) !important;
}

.signal-list li:hover {
    transform: translateX(5px);
}

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

/* Phase Guide */
.phase-guide-item {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    background: var(--bg-secondary);
    height: 100%;
}

.phase-guide-item h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.phase-guide-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary) !important;
}

.gray-zone { border-left-color: var(--gray-zone); }
.blue-zone { border-left-color: var(--blue-zone); }
.green-zone { border-left-color: var(--green-zone); }
.red-zone { border-left-color: var(--red-zone); }

/* Auto-Rebalancer Styles */
.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    height: 100%;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.portfolio-item, .rule-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease;
}

.portfolio-item:hover, .rule-item:hover {
    border-color: var(--accent-bitcoin) !important;
    transform: translateY(-2px);
}

.portfolio-item.border-primary {
    border-color: var(--blue-zone) !important;
    background: rgba(52, 152, 219, 0.1);
}

.cursor-pointer {
    cursor: pointer;
}

.rule-details {
    font-size: 0.9rem;
}

/* Table improvements for trading history */
.table-dark {
    --bs-table-bg: var(--bg-secondary);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
}

.table-dark th {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.table-dark td {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Modal improvements */
.modal-content {
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.form-control {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-bitcoin);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
}

/* Status indicators */
.status-active {
    color: var(--green-zone);
}

.status-inactive {
    color: var(--text-muted);
}

/* Academy Styles */
.module-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease;
}

.module-item:hover {
    border-color: var(--accent-bitcoin) !important;
    transform: translateY(-2px);
}

.module-item.active {
    border-color: var(--blue-zone) !important;
    background: rgba(52, 152, 219, 0.1);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.achievement-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-item.unlocked {
    border-color: var(--green-zone);
    background: rgba(46, 204, 113, 0.1);
}

.feature-highlight {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-align: center;
}

.lesson-section {
    border-left: 3px solid var(--accent-bitcoin);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.phase-explanation {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color) !important;
}

.step-item {
    background: var(--bg-secondary) !important;
}

.emotion-scale {
    background: var(--bg-secondary) !important;
}

.scale-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.simulator-chart-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
}

.simulation-stats {
    background: var(--bg-secondary) !important;
}

.scenario-box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
}

.quiz-option {
    border: 1px solid var(--border-color) !important;
    text-align: left !important;
}

.quiz-option:hover {
    border-color: var(--accent-bitcoin) !important;
    background: rgba(255, 193, 7, 0.1) !important;
}

.answer-feedback {
    border: 1px solid var(--border-color);
}

.challenge-constraints {
    background: var(--bg-secondary) !important;
}

.portfolio-summary {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color);
}

.premium-notice, .pro-notice {
    border: 1px solid var(--border-color);
}

/* Toast notifications */
.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.toast-header {
    border-bottom: 1px solid var(--border-color);
}

/* Interactive elements */
.lesson-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Navigation improvements */
nav .btn {
    margin: 0.25rem;
}

@media (max-width: 768px) {
    nav .btn {
        margin-bottom: 0.5rem;
        width: auto;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .modal-lg {
        max-width: 90vw;
    }
}

/* Status Classes */
.status-error {
    color: var(--accent-danger);
}

.status-success {
    color: var(--accent-success);
}

.status-warning {
    color: var(--accent-warning);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .gauge-value {
        font-size: 2rem;
    }
    
    .fgi-value {
        font-size: 2.5rem;
    }
    
    .phase-name {
        font-size: 1.5rem;
    }
    
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .fgi-scale {
        padding: 0.75rem;
    }
    
    .fgi-scale-item span {
        font-size: 0.8rem;
    }
}

/* Strategy Cards and Analysis */
.strategy-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.strategy-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-bitcoin);
    transform: translateY(-2px);
}

.strategy-card.action-plan {
    border-left: 4px solid var(--accent-success);
    background: rgba(40, 167, 69, 0.1);
}

.strategy-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.strategy-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.strategy-content h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.strategy-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.strategy-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.strategy-content .highlight {
    color: var(--accent-bitcoin);
    font-weight: 600;
}

.strategy-content .risk-high {
    color: var(--accent-danger);
    font-weight: 600;
}

.strategy-content .risk-medium {
    color: var(--accent-warning);
    font-weight: 600;
}

.strategy-content .risk-low {
    color: var(--accent-success);
    font-weight: 600;
}

.strategy-details {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Action badges */
.action-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.action-badge.buy {
    background: rgba(40, 167, 69, 0.2);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.action-badge.sell {
    background: rgba(220, 53, 69, 0.2);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.action-badge.hold {
    background: rgba(255, 193, 7, 0.2);
    color: var(--accent-warning);
    border: 1px solid var(--accent-warning);
}

.action-badge.caution {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

/* Timeline indicators */
.timeline-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--accent-info);
}

.timeline-indicator.urgent {
    border-left-color: var(--accent-danger);
}

.timeline-indicator.moderate {
    border-left-color: var(--accent-warning);
}

.timeline-indicator.long-term {
    border-left-color: var(--accent-info);
}

/* Sentiment Gauge Styling */
.sentiment-gauge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.sentiment-gauge {
    position: relative;
    width: 280px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gauge-segment {
    stroke-linecap: round;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.gauge-segment.active {
    opacity: 1;
}

.gauge-segment.extreme-fear {
    stroke: #dc3545;
}

.gauge-segment.fear {
    stroke: #fd7e14;
}

.gauge-segment.neutral {
    stroke: #ffc107;
}

.gauge-segment.greed {
    stroke: #fd7e14;
}

.gauge-segment.extreme-greed {
    stroke: #28a745;
}

#gaugeNeedle {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.sentiment-gauge .gauge-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sentiment-gauge .gauge-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-bitcoin);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gauge value color states */
.sentiment-gauge .gauge-value.extreme-fear {
    color: #dc3545;
}

.sentiment-gauge .gauge-value.fear {
    color: #fd7e14;
}

.sentiment-gauge .gauge-value.neutral {
    color: #ffc107;
}

.sentiment-gauge .gauge-value.greed {
    color: #fd7e14;
}

.sentiment-gauge .gauge-value.extreme-greed {
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sentiment-gauge {
        width: 220px;
        height: 130px;
    }
    
    .sentiment-gauge .gauge-value {
        font-size: 2.5rem;
    }
    
    .sentiment-gauge .gauge-label {
        font-size: 1rem;
    }
}

/* Bitcoin Dominance Gauge Styling */
.dominance-gauge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.dominance-gauge {
    position: relative;
    width: 280px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dominance-gauge .gauge-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dominance-gauge .gauge-segment {
    stroke-linecap: round;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.dominance-gauge .gauge-segment.active {
    opacity: 1;
}

.dominance-gauge .gauge-segment.altseason {
    stroke: #28a745;
}

.dominance-gauge .gauge-segment.blue-zone {
    stroke: #17a2b8;
}

.dominance-gauge .gauge-segment.transition {
    stroke: #ffc107;
}

.dominance-gauge .gauge-segment.gray-zone {
    stroke: #6c757d;
}

.dominance-gauge .gauge-segment.winter {
    stroke: #dc3545;
}

#dominanceNeedle {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dominance-gauge .gauge-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.dominance-gauge .gauge-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-bitcoin);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dominance-gauge .gauge-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dominance value color states based on phase */
.dominance-gauge .gauge-value.altseason {
    color: #28a745;
}

.dominance-gauge .gauge-value.blue-zone {
    color: #17a2b8;
}

.dominance-gauge .gauge-value.transition {
    color: #ffc107;
}

.dominance-gauge .gauge-value.gray-zone {
    color: #6c757d;
}

.dominance-gauge .gauge-value.winter {
    color: #dc3545;
}

/* Responsive adjustments for dominance gauge */
@media (max-width: 768px) {
    .dominance-gauge {
        width: 220px;
        height: 130px;
    }
    
    .dominance-gauge .gauge-value {
        font-size: 2.5rem;
    }
    
    .dominance-gauge .gauge-label {
        font-size: 0.9rem;
    }
}
    
    .fgi-scale-item small {
        font-size: 0.7rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Chart Styles */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Mini gauge for dashboard */
.mini-gauge {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    position: relative;
}

/* Compact feature cards */
.feature-card.compact {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.feature-card.compact h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Compact alerts */
.alert.compact {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
    z-index: 10;
}

.chart-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.chart-stats {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-item h6 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-item span {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Chart responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.text-bitcoin {
    color: var(--accent-bitcoin);
}

.text-success {
    color: var(--accent-success);
}

.text-danger {
    color: var(--accent-danger);
}

.text-warning {
    color: var(--accent-warning);
}

/* Oracle (Phase 4) Styling */
.text-purple {
    color: #9b59b6 !important;
}

.prediction-metric {
    transition: all 0.3s ease;
}

.prediction-metric:hover {
    transform: translateY(-2px);
}

.metric-icon {
    opacity: 0.8;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.forecast-legend {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
}

.pattern-item {
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.pattern-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.pattern-score .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.phase-risk-item {
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.phase-risk-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.phase-risk-item.gray-zone {
    border-left: 4px solid #6c757d;
}

.phase-risk-item.blue-zone {
    border-left: 4px solid #3498db;
}

.phase-risk-item.green-zone {
    border-left: 4px solid #2ecc71;
}

.phase-risk-item.red-zone {
    border-left: 4px solid #e74c3c;
}

.risk-assets .badge {
    margin: 0.2rem;
    font-size: 0.75rem;
}

.metric-card {
    transition: all 0.3s ease;
}

.metric-card:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
}

.metric-trend {
    opacity: 0.8;
}

.premium-feature {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.premium-feature:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.premium-feature .btn {
    transition: all 0.3s ease;
}

.premium-feature .btn:hover {
    transform: scale(1.05);
}

/* Oracle Animations */
@keyframes pulse-oracle {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.metric-icon i {
    animation: pulse-oracle 2s ease-in-out infinite;
}

/* Oracle Gradient Text */
.text-gradient {
    background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Oracle Responsive Design */
@media (max-width: 768px) {
    .prediction-metric {
        margin-bottom: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .pattern-item {
        margin-bottom: 1rem;
    }
}

/* FOMO Shield (Phase 5) Styling */
.text-purple {
    color: #9b59b6 !important;
}

.shield-metric {
    transition: all 0.3s ease;
}

.shield-metric:hover {
    transform: translateY(-2px);
}

.shield-icon {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.shield-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.phase-lock-item {
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.phase-lock-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.greed-status {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.rule-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.template-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.range-container {
    position: relative;
}

.form-range {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-range::-webkit-slider-thumb {
    background-color: #ffc107;
    border: 2px solid #212529;
}

.form-range::-moz-range-thumb {
    background-color: #ffc107;
    border: 2px solid #212529;
}

.premium-feature {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.premium-feature:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.premium-feature .btn {
    transition: all 0.3s ease;
}

.premium-feature .btn:hover {
    transform: scale(1.05);
}

/* Shield Animations */
@keyframes shield-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.shield-icon.active i {
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes alert-glow {
    0% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.3); }
}

.alert-active {
    animation: alert-glow 2s ease-in-out infinite;
}

/* Shield Gradient Text */
.text-gradient-shield {
    background: linear-gradient(45deg, #e74c3c, #f39c12, #2ecc71, #3498db);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Shield Status Indicators */
.status-indicator {
    position: relative;
    display: inline-block;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 2px solid #212529;
    animation: status-blink 2s ease-in-out infinite;
}

.status-indicator.warning::after {
    background-color: #f39c12;
}

.status-indicator.danger::after {
    background-color: #e74c3c;
}

@keyframes status-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Shield Form Styling */
.form-select:focus,
.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Shield Table Styling */
.table-dark tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Shield Responsive Design */
@media (max-width: 768px) {
    .shield-metric {
        margin-bottom: 1.5rem;
    }
    
    .phase-lock-item,
    .rule-item,
    .template-item {
        margin-bottom: 1rem;
    }
    
    .premium-feature {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Shield Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.cursor-pointer {
    cursor: pointer;
}

/* Pricing Cards */
.pricing-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.pricing-card.featured {
    border: 2px solid #ffc107;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.pricing-card.featured:hover {
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.5);
}

.badge-popular {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.pricing-features .feature {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-features .feature:last-child {
    border-bottom: none;
}

/* Monthly Report Styles */
.report-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.report-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.altcoin-table {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.altcoin-table th {
    background: rgba(0,0,0,0.8);
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    font-size: 0.9rem;
}

.altcoin-table td {
    padding: 10px 8px;
    color: black;
    background: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 500;
}

.return-potential {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.return-high { background: #28a745; color: white; }
.return-medium { background: #ffc107; color: black; }
.return-low { background: #6c757d; color: white; }

.cap-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.cap-big { background: #007bff; color: white; }
.cap-mid { background: #28a745; color: white; }
.cap-small { background: #dc3545; color: white; }

/* CSS Grid Layout Solution - Fix for Trading Signals Overlap */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    grid-template-areas: 
        "chart sidebar"
        "signals signals";
}

.chart-area { 
    grid-area: chart; 
}

.sidebar-area { 
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signals-area { 
    grid-area: signals; 
    margin-top: 1rem;
}

/* Responsive Grid Layout */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "chart"
            "sidebar" 
            "signals";
        gap: 1rem;
    }
}

/* Trading Signals Height Optimization */
#tradingSignals {
    min-height: 60px;
    max-height: 120px;
    overflow-y: auto;
}

#tradingSignals .loading-spinner {
    padding: 20px 0;
    text-align: center;
}

/* Gary Halbert Section 4 - Monthly Reports Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.4); }
}

/* Monthly Reports Section Specific Styles */
.monthly-reports-section {
    position: relative;
    overflow: hidden;
}

.monthly-reports-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.countdown-timer .countdown-digit {
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 15px;
    margin: 0 5px;
    min-width: 60px;
    animation: glow 3s ease-in-out infinite;
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.report-preview-table {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.urgency-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 2px dashed #dc3545;
    border-radius: 15px;
    animation: pulse 3s ease-in-out infinite;
}

.secret-reveal-box {
    background: rgba(0,0,0,0.7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.statistics-banner {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Exit Strategy Styles */
.exit-component {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.exit-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.death-clock .fas {
    color: #dc3545;
}

.fire-alarm .fas {
    color: #fd7e14;
}

.sentiment-alarm .fas {
    color: #20c997;
}

.exit-status {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.status-text {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-indicator .badge {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
}

/* Trifecta Status Lights */
.trifecta-indicators {
    gap: 2rem;
}

.trifecta-light {
    text-align: center;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.trifecta-light.active {
    opacity: 1;
    transform: scale(1.1);
}

.trifecta-light .fas {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.death-light .fas {
    color: #dc3545;
}

.fire-light .fas {
    color: #fd7e14;
}

.sentiment-light .fas {
    color: #ffc107;
}

.death-light.active .fas {
    color: #dc3545;
    text-shadow: 0 0 10px #dc3545;
    animation: pulse-red 2s infinite;
}

.fire-light.active .fas {
    color: #fd7e14;
    text-shadow: 0 0 10px #fd7e14;
    animation: pulse-orange 2s infinite;
}

.sentiment-light.active .fas {
    color: #ffc107;
    text-shadow: 0 0 10px #ffc107;
    animation: pulse-yellow 2s infinite;
}

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

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

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

.trifecta-result .badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.exit-component.danger {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.exit-component.warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.exit-component.safe {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}
