/* Risk-On/Risk-Off Meter Styles - PREMIUM v3.0 */

/* Container with Premium Shadow */
.risk-meter-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Premium Header with Glass Effect */
.risk-meter-header {
    position: relative;
    margin-bottom: 35px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: headerGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.header-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.risk-meter-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.risk-meter-subtitle {
    font-size: 13px;
    color: #7F8C8D;
    margin: 0;
    font-weight: 500;
}

.meter-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.meter-link:hover {
    color: #764ba2;
}

.meter-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.meter-link:hover::after {
    width: 100%;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1) 0%, rgba(72, 219, 131, 0.15) 100%);
    border-radius: 20px;
    border: 1.5px solid rgba(46, 213, 115, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #2ED573;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(46, 213, 115, 0.6);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.live-text {
    font-size: 11px;
    font-weight: 800;
    color: #2ED573;
    letter-spacing: 1px;
}

/* Gauge Section - PREMIUM DESIGN */
.risk-meter-gauge-section {
    margin-bottom: 45px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 50px 35px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.gauge-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    animation: gaugeGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gaugeGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.risk-gauge-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.risk-gauge {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

.gauge-segment {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: segmentAppear 1.2s ease-out;
}

@keyframes segmentAppear {
    from {
        opacity: 0;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

/* Enhanced segment hover effects */
.risk-off-segment:hover {
    filter: drop-shadow(0 0 12px rgba(233, 30, 140, 0.5));
    stroke-width: 38;
}

.neutral-segment:hover {
    filter: drop-shadow(0 0 12px rgba(158, 158, 158, 0.5));
    stroke-width: 38;
}

.risk-on-segment:hover {
    filter: drop-shadow(0 0 12px rgba(126, 211, 33, 0.5));
    stroke-width: 38;
}

/* Badge styling with animation */
.risk-off-badge rect,
.neutral-badge rect,
.risk-on-badge rect {
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
    transition: all 0.3s;
}

.risk-off-badge:hover rect,
.neutral-badge:hover rect,
.risk-on-badge:hover rect {
    filter: drop-shadow(0 4px 16px rgba(102, 126, 234, 0.5));
}

.gauge-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#gauge-needle {
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 120px 120px;
}

/* Icon hover effects with scale */
.risk-off-icon,
.neutral-icon,
.risk-on-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.risk-off-icon:hover,
.neutral-icon:hover,
.risk-on-icon:hover {
    transform: translate(0, -2px) scale(1.1);
}

.risk-off-icon circle:first-child,
.neutral-icon circle:first-child,
.risk-on-icon circle:first-child {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    transition: all 0.3s;
}

.risk-off-icon:hover circle:first-child {
    filter: drop-shadow(0 6px 20px rgba(233, 30, 140, 0.3));
}

.neutral-icon:hover circle:first-child {
    filter: drop-shadow(0 6px 20px rgba(158, 158, 158, 0.3));
}

.risk-on-icon:hover circle:first-child {
    filter: drop-shadow(0 6px 20px rgba(126, 211, 33, 0.3));
}

/* Score Display - PREMIUM DESIGN */
.risk-score-display {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3)) border-box;
    border-image-slice: 1;
    position: relative;
}

.score-container {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.score-value {
    font-size: 84px;
    font-weight: 900;
    color: #2C3E50;
    line-height: 1;
    letter-spacing: -3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scoreAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

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

.score-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: scorePulse 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes scorePulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.score-label {
    font-size: 20px;
    font-weight: 800;
    margin: 12px 0 8px 0;
    padding: 0;
    display: block;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: labelSlide 0.6s ease-out 0.3s both;
}

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

.score-label.risk-off {
    color: #E91E8C;
    text-shadow: 0 2px 12px rgba(233, 30, 140, 0.3);
}

.score-label.neutral {
    color: #9E9E9E;
    text-shadow: 0 2px 12px rgba(158, 158, 158, 0.3);
}

.score-label.risk-on {
    color: #7ED321;
    text-shadow: 0 2px 12px rgba(126, 211, 33, 0.3);
}

.score-description {
    font-size: 13px;
    color: #95A5A6;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 4px;
    opacity: 0.8;
    animation: labelSlide 0.6s ease-out 0.5s both;
}

/* History Section - PREMIUM */
.risk-history-section {
    margin-bottom: 45px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.risk-history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0.6;
}

.history-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon {
    color: #667eea;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.history-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    gap: 3px;
    background: rgba(248, 249, 250, 0.6);
    backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 14px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.history-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    min-height: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    animation: barGrow 0.8s ease-out;
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.history-bar:hover {
    opacity: 1;
    transform: scaleY(1.08);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px 8px 0 0;
}

.history-bar.risk-on {
    background: linear-gradient(to top, #7ED321 0%, #8FE83D 50%, #9FE651 100%);
    box-shadow: 0 0 8px rgba(126, 211, 33, 0.3);
}

.history-bar.risk-off {
    background: linear-gradient(to top, #E91E8C 0%, #FF2E9F 50%, #FF4BA6 100%);
    box-shadow: 0 0 8px rgba(233, 30, 140, 0.3);
}

.history-bar.neutral {
    background: linear-gradient(to top, #95A5A6 0%, #A8B5B6 50%, #B4C1C2 100%);
    box-shadow: 0 0 8px rgba(149, 165, 166, 0.3);
}

.chart-timestamp {
    text-align: right;
    font-size: 11px;
    color: #95A5A6;
    margin-top: 12px;
    font-style: italic;
    font-weight: 500;
}

/* Indicators Section - PREMIUM DESIGN */
.risk-indicators-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.risk-indicators-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0.6;
}

.indicators-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 25px 0;
}

.indicators-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    background: rgba(248, 249, 250, 0.5);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

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

/* Indicators List - PREMIUM SCROLLBAR */
.indicators-list-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px;
    max-height: 580px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.indicators-list-wrapper::-webkit-scrollbar {
    width: 10px;
}

.indicators-list-wrapper::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 10px;
}

.indicators-list-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.indicators-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
}

.indicators-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.indicator-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.indicator-item:hover::before {
    left: 100%;
}

.indicator-item:hover {
    background: linear-gradient(135deg, #F5F3FF 0%, #FAF9FF 100%);
    border-color: #667eea;
    transform: translateX(6px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.indicator-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #F5F3FF 0%, #FAF9FF 100%);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateX(6px);
}

.indicator-flag {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 800;
    color: white;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.indicator-item:hover .indicator-flag {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.indicator-name {
    font-weight: 700;
    color: #2C3E50;
    flex: 1;
    font-size: 13px;
}

.indicator-status {
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.indicator-status.risk-on {
    background: linear-gradient(135deg, #7ED321 0%, #8FE83D 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(126, 211, 33, 0.3);
}

.indicator-status.risk-off {
    background: linear-gradient(135deg, #E91E8C 0%, #FF2E9F 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(233, 30, 140, 0.3);
}

.indicator-status.neutral {
    background: linear-gradient(135deg, #95A5A6 0%, #A8B5B6 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.3);
}

/* Indicators Visualization - PREMIUM COLUMNS */
.indicators-visualization {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    min-height: 580px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.risk-off-column,
.risk-on-column,
.neutral-column {
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.risk-off-column {
    background: linear-gradient(180deg, 
        rgba(255, 0, 128, 0.95) 0%, 
        rgba(233, 30, 140, 0.9) 30%,
        rgba(233, 30, 140, 0.75) 60%, 
        rgba(233, 30, 140, 0.6) 100%);
}

.risk-off-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    pointer-events: none;
}

.neutral-column {
    background: linear-gradient(180deg, 
        rgba(176, 176, 176, 0.95) 0%, 
        rgba(158, 158, 158, 0.9) 50%, 
        rgba(138, 138, 138, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.neutral-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.05) 4px,
            rgba(255, 255, 255, 0.05) 8px
        );
    pointer-events: none;
}

.risk-on-column {
    background: linear-gradient(180deg, 
        rgba(143, 232, 61, 0.95) 0%, 
        rgba(126, 211, 33, 0.9) 30%,
        rgba(126, 211, 33, 0.75) 60%, 
        rgba(126, 211, 33, 0.6) 100%);
}

.risk-on-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    pointer-events: none;
}

.column-header {
    padding: 16px;
    text-align: center;
    font-weight: 900;
    font-size: 12px;
    color: white;
    letter-spacing: 1.2px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.risk-off-column .column-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.risk-on-column .column-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.column-value {
    color: white;
    font-weight: 900;
    font-size: 22px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 16px;
    border-radius: 28px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.column-scale {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.risk-off-dots,
.risk-on-dots {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding: 24px 14px;
    position: relative;
}

.indicator-dot {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
    animation: dotAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.indicator-dot:hover {
    transform: scale(1.35);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.indicator-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.indicator-dot.risk-off-dot::after {
    background: linear-gradient(135deg, #E91E8C 0%, #FF2E9F 100%);
    box-shadow: 0 0 12px rgba(233, 30, 140, 0.6);
}

.indicator-dot.risk-on-dot::after {
    background: linear-gradient(135deg, #7ED321 0%, #8FE83D 100%);
    box-shadow: 0 0 12px rgba(126, 211, 33, 0.6);
}

.indicators-timestamp {
    text-align: right;
    font-size: 11px;
    color: #95A5A6;
    margin-top: 12px;
    font-style: italic;
    font-weight: 500;
}

/* Currency Modal - PREMIUM GLASS MORPHISM */
.currency-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

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

.currency-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    font-weight: 700;
    color: #95A5A6;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.modal-close:hover {
    color: #2C3E50;
    transform: rotate(90deg) scale(1.1);
    background: rgba(233, 30, 140, 0.1);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.2);
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 28px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(90deg, #667eea, #764ba2);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-info-row:hover {
    background: rgba(245, 243, 255, 0.9);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.info-label {
    font-weight: 700;
    color: #7F8C8D;
    font-size: 14px;
}

.info-value {
    font-weight: 900;
    color: #2C3E50;
    font-size: 15px;
}

.info-value.positive {
    color: #7ED321;
    text-shadow: 0 2px 8px rgba(126, 211, 33, 0.2);
}

.info-value.negative {
    color: #E91E8C;
    text-shadow: 0 2px 8px rgba(233, 30, 140, 0.2);
}

/* Loading Overlay - PREMIUM */
.risk-meter-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    z-index: 1000;
}

.risk-meter-loading.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(102, 126, 234, 0.1);
    border-top: 6px solid #667eea;
    border-right: 6px solid #764ba2;
    border-radius: 50%;
    animation: premiumSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.2),
        inset 0 0 8px rgba(102, 126, 234, 0.1);
}

@keyframes premiumSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

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

/* Responsive Design - ENHANCED */
@media (max-width: 768px) {
    .risk-meter-container {
        padding: 24px;
        border-radius: 20px;
    }
    
    .risk-meter-header {
        padding: 16px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 14px;
    }
    
    .title-group {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .risk-meter-title {
        font-size: 22px;
    }
    
    .risk-meter-subtitle {
        font-size: 12px;
    }
    
    .live-indicator {
        align-self: center;
    }
    
    .score-value {
        font-size: 64px;
        letter-spacing: -2px;
    }
    
    .score-label {
        font-size: 17px;
    }
    
    .score-description {
        font-size: 12px;
    }
    
    .risk-meter-gauge-section {
        padding: 35px 24px;
    }
    
    .indicators-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .indicators-visualization {
        min-height: 450px;
        grid-template-columns: 1fr 60px 1fr;
    }
    
    .indicator-dot {
        width: 34px;
        height: 34px;
    }
    
    .indicator-dot::after {
        width: 14px;
        height: 14px;
    }
    
    .indicators-list-wrapper {
        max-height: 420px;
    }
    
    .history-chart {
        height: 120px;
        padding: 14px;
    }
    
    .modal-content {
        padding: 32px 24px;
        width: 94%;
    }
    
    .modal-title {
        font-size: 24px;
    }
}

/* Animations - PREMIUM EFFECTS */
.indicator-item {
    animation: fadeInSlide 0.5s ease-out;
}

.history-bar {
    animation: growUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes growUp {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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