    :root {
    --bg-color: #020617; 
    --card-bg: #040b1b;
    --border-color: #2a3458;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #38bdf8;
    --up-color: #10b981;
    --down-color: #f43f5e;
}

body { 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0f172a;
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

    @keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

h2 { 
    font-size: 65px !important;
    font-weight: 800; 
    letter-spacing: -0.05em; 
    margin: 0px 0px 0px 20px !important; 
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.H2_label {
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-left: 20px;
}
#top-bar { 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    background: var(--card-bg);
    padding: 10px 25px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.selector-group { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

select {
    padding: 10px 16px; 
    background: #1e293b; 
    color: #fff;
    border: 1px solid #334155; 
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    appearance: none;
}
select:hover { border-color: var(--accent-blue); }

#volInfo { 
    font-size: 64px; 
    margin: 20px 0; 
    font-weight: 800; 
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#chart { 
    width: 100%; 
    height: 300px; 
    border-radius: 5px;
    overflow: hidden;
    cursor: grab;
}
#chart:active {
  /* 클릭해서 누르고 있는 상태: 움켜쥔 손 모양 */
  cursor: grabbing; 
}

.Chart_Block {
    border: 1px solid #2a3458;
    border-radius: 5px;
    background: #1a1f3a;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.Chart_Box {
    border: 1px solid #2a3458;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.switch-wrapper { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { display: none; }
.slider {
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: #334155; 
    transition: .4s; 
    border-radius: 35px;
}
.slider:before {
    position: absolute; 
    content: ""; 
    height: 20px; 
    width: 20px;
    left: 3px; 
    bottom: 3px; 
    background: white; 
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(24px); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
    


/* 정보 패널 */
#infoPanel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 12px 0;
}
.info-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-card .label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.info-card .value {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #94a3b8;
}
.info-card .sub {
    font-size: 11px;
    color: #475569;
}
.val-plus  { color: #10b981 !important; }
.val-minus { color: #f43f5e !important; }
.val-neu   { color: #dfdfdf !important; }

/* 실시간 순유입 카드 강조 */
.info-card.realtime {
    border: 1px solid #334155;
    background: #040b1b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

#info-realtime-net, #info-net {
    font-size: 35px;
    font-weight: 900;
}

/* 아이프레임 : 이벤트 */
.Iframe_Bcx {
    display: flex;
    gap: 10px; /* 블록 사이의 간격 */
    
}
.Iframe_Bcx .Iframe_Block {
    flex: 1; /* 두 블록이 동일한 비율(1:1)로 공간을 나눠 가짐 */
}

/* 버튼 */
.Chart_Button {
    border: 1px solid #2a3458;
    background: #040b1b;
    border-radius: 4px;
    color: #ccc;
    padding: 8px 16px;
    margin: 0px 0px 5px 3px;
}

.Chart_Button:hover {
    background: #1e293b;
    border-color: var(--accent-blue);
    color: #fff;
}

/* 설명 섹션 */
.Page_Help {
    border: 1px solid #2a3458;
    border-radius: 4px;
    background: #040b1b;
    color: #ccc;
    margin-top: 10px;
    padding: 10px 30px;
}
.vol-desc-wrap {
    margin: 15px 0 0 0;
    display: none;
    flex-direction: column;
    gap: 20px;
}
.vol-desc-block {
    background: #0b1427;
    border: 1px solid #2a3458;
    border-radius: 8px;
    padding: 18px 22px;
}
.vol-desc-title {
    font-size: 14px !important;
    font-weight: bold;
    color: #38bdf8;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.vol-desc-title i {
    color: #09f750;
}
.vol-desc-block p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.8;
}
.vol-desc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.vol-desc-list li {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
    padding-left: 12px;
    border-left: 2px solid #1e293b;
}
.vol-desc-key {
    font-weight: bold;
    color: #cbd5e1;
}
.vol-desc-key.bid  { color: #10b981; }
.vol-desc-key.ask  { color: #f43f5e; }
.vol-desc-key.plus { color: #10b981; }