* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body {
    color: #e2e8f0;
    font-family: 'Pretendard', sans-serif;
    padding: 20px;
}
.wrap {
    margin: 40px;
}
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a3458;
}
.panel {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* 도넛 */
.donut-box {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}
.donut-svg { transform: rotate(-90deg); }
.donut-svg circle { cursor: pointer; transition: opacity 0.15s; }
.donut-svg circle:hover { opacity: 0.8; }
.donut-center {
    position: absolute;
    top: 0; left: 0;
    width: 220px; height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.donut-center .label {
    font-size: 12px;
    color: #94a3b8;
}
.donut-center .value {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
}
.donut-tooltip {
    position: absolute;
    background: #1e293b;
    border: 1px solid #2a3458;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #fff;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    z-index: 10;
}

/* 정보 테이블 */
.info-table {
    border-collapse: collapse;
    flex: 1;
    min-width: 280px;
}
.info-table th,
.info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e293b;
    font-size: 15px;
}
.info-table th {
    color: #94a3b8;
    font-weight: normal;
    text-align: left;
    width: 220px;
}
.info-table td {
    color: #fff;
    text-align: right;
}
.info-table td.plus { color: #10b981; }
.info-table td.minus { color: #f43f5e; }

/* 관리 신호 블록 */
.signal-panel {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.signal-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
}
.signal-card .signal-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.signal-card .signal-value {
    display: flex;
    width: 220px;
    height: 220px;
    justify-content: center;
    align-items: center;
    border: 20px solid #1a1f3a;
    border-radius: 50%;
    font-size: 60px;
    font-weight: 700;
    gap: 8px;
    flex-direction: column;
}

.signal-card .signal-value span {
    font-size: 20px;
    color: #94a3b8;
    margin-top: -10px;
}
.watch-badge {
    background: #000;
    color: #f43f5e;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #f43f5e;
}
.star-icon {
    font-size: 20px;
}


/* 보유 종목 리스트 */
.holding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #1e293b;
}
.holding-icon {

}
.holding-icon img {
    width: 40px;
    height: 40px;
}


.holding-icon {
    flex: 2;
}
.holding-name {
    flex: 7;
    display: flex;
    align-items: center;
}
.holding-symbol {
    font-size: 23px;
    margin-right: 15px;
}
.holding-korean {
    font-size: 12px;
}
.holding-data, .holding-list {
    flex: 3;
    text-align: right;
}

/* 차트 */
.chart-box {
    height: 300px;
    margin-bottom: 40px;
}
.chart-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.chart-btn {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #2a3458;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.chart-btn.active,
.chart-btn:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* 분봉 차트 슬라이더 컨트롤 */
.minute-ctrl {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.ctrl-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ctrl-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #2a3458;
    outline: none;
    cursor: pointer;
}
.ctrl-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: grab;
    border: 2px solid #0f172a;
    transition: background 0.15s;
}
.ctrl-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    background: #60a5fa;
}
.ctrl-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: grab;
    border: 2px solid #0f172a;
}
.ctrl-minmax {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.ctrl-minmax:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}