* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #040b1b;
    color: #94a3b8;
    font-family: 'Arial', sans-serif;
}
.candles-buy-sell-vs {
    margin: 40px;
}
/* 상단 컨트롤 */
.controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    background: #040b1b;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 12px 24px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}
.controls_Title {
    font-size: 70px;
    font-weight: 900;
    color: #dfdfdf;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.market-select {
    background: #0e1521;
    border: 1px solid #1e293b;
    color: #38bdf8;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    outline: none;
}
.market-select option { background: #0e1521; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.btn-interval {
    background: #0e1521;
    border: 1px solid #1e293b;
    color: #64748b;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.btn-interval:hover { border-color: #38bdf8; color: #38bdf8; }
.btn-interval.active { background: #162445; border-color: #38bdf8; color: #38bdf8; }

.chart-section {
    background: #040b1b;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 20px 100px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

/* 헤더 */
.header {
    text-align: center;
    margin-bottom: 28px;
}
.title {
    font-size: 12px;
    color: #898e96;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}
.trade-price { font-size: 24px; font-weight: bold; color: #e2e8f0; }
.change-rate { font-size: 16px; font-weight: bold; }
.up   { color: #10b981; }
.down { color: #f43f5e; }
.flat { color: #94a3b8; }

/* 차트 */
.chart-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 400px;
    width: 100%;
}

.bar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

.bar {
    width: 100%;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bar-bid { background: #10b981; }
.bar-ask { background: #f43f5e; }

.bar-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    font-weight: 900;
    color: rgb(255, 255, 255, 0.9);
    pointer-events: none;
    white-space: nowrap;
}

.bar-label { 
    margin-top: 14px; 
    font-size: 16px; 
    font-weight: bold; 
    letter-spacing: 3px; 
}
.bar-label-bid { color: #10b981; }
.bar-label-ask { color: #f43f5e; }

.bar-value { margin-top: 8px; color: #cbd5e1; font-weight: bold; line-height: 1; text-align: center; }
.val-int { font-size: 26px; }
.val-dec { font-size: 13px; color: #475569; }

.divider { 
    width: 1px; height: 400px; 
    background: #1e293b; 
    flex-shrink: 0; 
}

/* 하단 통계 */
.stats-wrap {
    display: flex;
    gap: 40px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.stat-box { text-align: center; }
.stat-label { font-size: 11px; color: #334155; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.stat-value { font-size: 18px; font-weight: bold; color: #94a3b8; }
.stat-value.up   { color: #10b981; }
.stat-value.down { color: #f43f5e; }

/* 편향 지수 */
.bias-wrap {
    margin-top: 24px;
    text-align: center;
}
.bias-label { font-size: 11px; color: #334155; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.bias-value { font-size: 36px; font-weight: 900; }
.bias-desc  { font-size: 13px; margin-top: 6px; font-weight: bold; letter-spacing: 1px; }

.info { margin-top: 20px; font-size: 11px; color: #5e646d; letter-spacing: 2px; text-align: right;}

/* 설명 섹션 */
.desc-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.desc-block {
    background: #0b1427;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 18px 22px;
}
.desc-title {
    font-size: 15px;
    font-weight: bold;
    color: #38bdf8;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.desc-title i {
    color: #09f750;
    margin-right: 6px;
}
.desc-block p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.8;
}
.desc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.desc-list li {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
    padding-left: 12px;
    border-left: 2px solid #1e293b;
}
.desc-key {
    font-weight: bold;
    color: #cbd5e1;
}
.desc-key.bid { color: #10b981; }
.desc-key.ask { color: #f43f5e; }