/* =======================================================
   Market Center - Chart Panel
   ======================================================= */

.mc-chart-panel {
    padding: 14px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 12px;
}

.chart-header h2 {
    margin: 0;
    font-size: 24px;
}

.chart-header p {
    color: #9fb2c8;
    font-size: 12px;
    margin: 2px 0 7px;
}

.price {
    font-size: 30px;
    font-weight: 900;
}

.price span {
    font-size: 14px;
    margin-left: 10px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 16px;
}

.metrics small {
    display: block;
    color: #9fb2c8;
    font-size: 11px;
}

.metrics b {
    font-size: 13px;
}

.ranges {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 12px 0;
    font-size: 12px;
}

.ranges .active {
    background: var(--btfp-primary);
    padding: 5px 9px;
    border-radius: 6px;
}

.fake-chart {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 70px 45px;
}

.fake-chart svg {
    width: 100%;
    height: 320px;
    margin-top: 24px;
}

.chart-watermark {
    position: absolute;
    left: 18px;
    top: 16px;
    z-index: 2;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(2,8,23,.58);
    border: 1px solid rgba(96,165,250,.12);
    backdrop-filter: blur(8px);
}

.chart-watermark strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.chart-watermark span {
    display: block;
    color: #8fa6c2;
    font-size: 11px;
    margin-top: 3px;
}

.years {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 15px;
    display: flex;
    justify-content: space-between;
    color: #9fb2c8;
    font-size: 11px;
}

.real-chart {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 70px 45px;
    padding: 12px;
}

.real-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.indicator-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(2, 8, 23, .35);
    border: 1px solid rgba(148, 163, 184, .10);
}

.indicator-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent !important;
    border: 0 !important;
    color: #94a3b8 !important;
    padding: 4px 8px !important;
}

.indicator-toggle span {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(148, 163, 184, .60);
    background: transparent;
}

.indicator-toggle.active {
    color: #fff !important;
}

.indicator-toggle.close.active span {
    background: #22c55e;
    border-color: #22c55e;
}

.indicator-toggle.ema20.active span {
    background: #3b82f6;
    border-color: #3b82f6;
}

.indicator-toggle.ema50.active span {
    background: #f97316;
    border-color: #f97316;
}

.chart-fullscreen {
    position: fixed !important;
    inset: 14px;
    z-index: 9999;
    padding: 18px;
    overflow: auto;
}

.chart-fullscreen .real-chart {
    height: calc(100vh - 220px);
}

/* True chart fullscreen overlay */
.chart-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    padding: 26px 30px !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(30,64,175,.30), transparent 32%),
        linear-gradient(135deg, #06111f 0%, #020817 100%) !important;
    overflow: hidden !important;
}

.chart-fullscreen .real-chart {
    height: calc(100vh - 235px) !important;
}

.chart-fullscreen .chart-header {
    padding-bottom: 16px;
}

.chart-fullscreen .indicator-toggle-row {
    margin-bottom: 14px;
}

.mc-chart-panel:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    padding: 26px 30px !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(30,64,175,.30), transparent 32%),
        linear-gradient(135deg, #06111f 0%, #020817 100%) !important;
    overflow: hidden !important;
}

.mc-chart-panel:fullscreen .real-chart {
    height: calc(100vh - 235px) !important;
}
