/* 1. 색상 변수 설정 (PC 버전의 테마 컬러를 재사용합니다) */
:root {
    --bg-color: #0B0D10;
    --panel-bg: #14171C;
    --text-main: #E8E6DF;
    --text-muted: #8B8D93;
    --gold-main: #f1c52e;
    --gold-dim: #7A6420;
    --up-color: #4E9F6E;
    --down-color: #C4514A;
}

/* 2. 브라우저 기본 여백 없애기 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* 3. 모바일 앱 스타일 기본 배경 설정 */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    
    /* 웹페이지 끝에서 스크롤이 튕기는 현상을 막아 진짜 앱처럼 느껴지게 합니다 */
    overscroll-behavior-y: none;
    /* 터치했을 때 나타나는 반투명한 파란색 하이라이트 박스를 숨깁니다 */
    -webkit-tap-highlight-color: transparent; 
}

/* =========================================
   4. 앱 화면(Screen) 공통 설정
========================================= */
.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 40px 20px 20px;
    width: 100%;
}

/* =========================================
   5. 인트로 화면 세부 디자인
========================================= */
/* 로고 영역 */

.intro-logo {
    text-align: center;
}
.logo-img {
    width: 80px; /* 로고의 크기입니다. 원하시는 대로 숫자를 바꿔보세요 */
    height: auto;
    margin: 0 auto 5px; /* 로고를 가운데 정렬하고 아래쪽 여백을 줍니다 */
    display: block;
}
.intro-logo h2 { font-size: 20px; margin-bottom: 2px; font-weight: 600; }
.logo-sub { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 5px; }
.logo-sub .dot { width: 6px; height: 6px; background: var(--gold-main); border-radius: 50%; }

/* 메인 카피 */
.intro-title {
    text-align: center; font-size: 26px; font-weight: 500; line-height: 1.3;
}
.gold-text { color: var(--gold-main); font-weight: 700; }


/* 중앙 코인 그래픽 영역 */

.intro-graphic {
    flex: 1; /* 위아래 남는 공간을 모두 차지하도록 합니다 */
    width: calc(100% + 40px);
    margin: 20px 0; 
    margin-left: -20px;
    padding: 0;
    overflow: hidden; 
    
    /* 💡 핵심 수정: 내부 이미지가 이 박스를 기준으로 꽉 찰 수 있도록 기준점(relative)을 잡아줍니다. (display: flex 관련 설정은 지웁니다) */
    position: relative; 
    display: block;
}

/* 실제 이미지 */
.intro-img {
    /* 💡 핵심 수정: 빈틈이 생기지 않도록 기준점(부모 박스)의 상단 좌측부터 강제로 100% 채웁니다. */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    
    /* 이미지 비율을 유지하면서 모자란 공간 없이 꽉 채웁니다. */
    object-fit: cover; 
    object-position: center; 
    
    filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.2)); 
}

/* 분석 스케줄 박스 */
.schedule-box {
    background-color: var(--panel-bg);
    border-radius: 16px; padding: 20px; width: 100%; margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.schedule-title { font-size: 13px; margin-bottom: 16px; font-weight: 600; color: var(--text-main); }
.time-slots { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.slot {
    background-color: #1A1E24;
    padding: 10px 4px; border-radius: 8px; font-size: 10px; text-align: center;
    flex: 1; font-weight: 500; color: var(--text-muted);
}
.slot span { display: block; font-size: 16px; margin-bottom: 6px; }
.schedule-desc { font-size: 11px; color: var(--gold-dim); line-height: 1.4; text-align: left; }

/* 하단 액션 버튼 영역 (버튼 간격 등 유지) */
.action-buttons { width: 100%; display: flex; flex-direction: column; gap: 12px; }

/* 두 번째 서브 버튼 (Explore Features) 설정 유지 */
.btn-secondary {
    width: 100%; padding: 16px; border-radius: 30px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--gold-dim); background: transparent; color: var(--gold-dim); 
    cursor: pointer; text-align: center; transition: 0.2s;
}
.btn-secondary:active { background: rgba(201, 162, 39, 0.1); }

/* 메인 액션 버튼 (3D 입체 효과 적용) */
.btn-primary {
    width: 100%; 
    padding: 16px; 
    border-radius: 30px; 
    font-size: 16px; 
    font-weight: 700;
    border: none; 
    cursor: pointer; 
    text-align: center; 
    color: #0B0D10;
    
    /* 1. 배경 그라데이션 (위에서 아래로 빛을 받는 느낌) */
    background: linear-gradient(180deg, #FADF87 0%, #C9A227 45%, #9E7A17 100%);
    
    /* 2. 3D 입체 그림자 효과 */
    box-shadow: 
        0px 6px 0px #715509, 
        0px 10px 15px rgba(0, 0, 0, 0.4), 
        inset 0px 2px 2px rgba(255, 255, 255, 0.6), 
        inset 0px -2px 5px rgba(0, 0, 0, 0.1);

    /* 누를 때 애니메이션 속도 */
    transition: all 0.1s ease;
}

/* 버튼을 클릭/터치했을 때 (눌리는 효과) */
.btn-primary:active {
    transform: translateY(6px); 
    box-shadow: 
        0px 0px 0px #715509, 
        0px 2px 5px rgba(0, 0, 0, 0.4), 
        inset 0px 2px 2px rgba(255, 255, 255, 0.6),
        inset 0px -2px 5px rgba(0, 0, 0, 0.1);
}


/* =========================================
   6. 최초 스플래시(대기) 화면 설정
========================================= */
#splash-screen {
    position: fixed; /* 기존 화면 위에 붕 띄워서 덮습니다 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* 완전한 검정색 바탕 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* 화면의 가장 맨 위에 오도록 설정 */
    transition: opacity 0.5s ease-out; /* 0.5초 동안 부드럽게 사라지는 애니메이션 */
}

/* 스플래시 화면의 중앙 로고 크기 및 애니메이션 적용 */
.splash-logo {
    width: 240px; 
    height: auto;
    
    /* 💡 핵심 추가: 'pulse-glow'라는 애니메이션을 1.5초 동안, 무한 반복(infinite), 번갈아가며(alternate) 실행합니다. */
    animation: pulse-glow 1.5s infinite alternate ease-in-out;
}

/* 💡 동적 애니메이션 만드는 방법 (심장 박동 + 황금빛 그림자) */
@keyframes pulse-glow {
    0% {
        transform: scale(0.95); /* 원래 크기보다 아주 살짝 작게 시작 */
        filter: drop-shadow(0 0 10px rgba(241, 197, 46, 0.1)); /* 빛 번짐 약하게 */
    }
    100% {
        transform: scale(1.05); /* 원래 크기보다 살짝 커짐 (두근!) */
        filter: drop-shadow(0 0 30px rgba(241, 197, 46, 0.7)); /* 황금빛 빛 번짐 강하게 */
    }
}

/* 자바스크립트가 2초 뒤에 이 클래스를 붙여주면 화면이 투명해집니다 */
.fade-out {
    opacity: 0;
    pointer-events: none; /* 투명해졌을 때 클릭 방지 */
}

/* =========================================
   7. 메인 앱 화면 & 하단 네비게이션 설정
========================================= */
/* 숨김 처리용 클래스 */
.hidden { display: none !important; }

#main-app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#content-area {
    flex: 1; /* 남는 세로 공간을 모두 차지합니다 */
    overflow-y: auto; /* 내용이 길어지면 스크롤 생성 */
    padding-bottom: 80px; /* 네비게이션 바에 가려지지 않게 여백 추가 */
}

/* 하단 고정 네비게이션 바 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: var(--panel-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    /* 아이폰 하단 홈 바(스와이프 영역)와 겹치지 않게 보호하는 최신 CSS 마법 */
    padding-bottom: env(safe-area-inset-bottom); 
}

/* 개별 탭 버튼 */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    width: 20%;
    cursor: pointer;
    gap: 4px;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: 0.2s ease;
}

.nav-item .label {
    font-size: 10px;
    font-weight: 500;
}

/* 현재 선택된(활성화된) 탭의 디자인 */
.nav-item.active {
    color: var(--gold-main);
}
.nav-item.active svg {
    stroke: var(--gold-main);
    transform: translateY(-2px); /* 살짝 위로 떠오르는 효과 */
}

/* =========================================
   8. 홈 화면 (대시보드) 세부 디자인
========================================= */
/* 탭 콘텐츠 기본 설정 (향후 탭 전환을 위해) */
.tab-content { display: none; padding: 20px; }
.tab-content.active { display: block; }

/* 공통 색상 클래스 */
.up { color: var(--up-color) !important; }
.down { color: var(--down-color) !important; }

/* 상단 티커 (현재 가격) */
/* =========================================
   8-1. 홈 화면: 종합 시세 보드 디자인
========================================= */
.market-board { padding: 16px 20px; }

/* 세션, 고가/저가, 시간 영역 (모바일 겹침 방지 구조) */
.market-status-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.market-status-row.high-low-row { justify-content: center; background: rgba(0,0,0,0.2); padding: 6px; border-radius: 6px; margin-bottom: 12px; }
.session { display: flex; align-items: center; gap: 6px; }
.session .dot { width: 6px; height: 6px; background: var(--up-color); border-radius: 50%; box-shadow: 0 0 5px var(--up-color); }
.high-low { display: flex; gap: 12px; align-items: center; }
.high-low b { color: var(--text-main); font-weight: 600; font-family: monospace; }
.divider-v { width: 1px; height: 10px; background: rgba(255,255,255,0.1); }
.utc-time { font-family: monospace; }

/* 가로 구분선 */
.divider-h { width: 100%; height: 1px; background: rgba(255,255,255,0.05); margin: 12px 0; }
.divider-h.dashed { background: transparent; border-top: 1px dashed rgba(255,255,255,0.1); }

/* 시세 행(Row) 공통 레이아웃 (좌-중-우 3단 배열) */
.price-row { display: flex; align-items: center; justify-content: space-between; }

/* 1. 좌측: 종목명 */
.p-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.p-name { font-size: 13px; font-weight: 700; color: var(--text-main); }
.p-name .dim { color: var(--text-muted); font-weight: 500; font-size: 11px; }
.p-sub { font-size: 11px; color: var(--text-muted); }

/* 2. 중앙: 현재가 */
.p-price { flex: 1; text-align: center; font-size: 22px; font-weight: 700; color: var(--text-main); font-family: monospace; letter-spacing: -0.5px; }

/* 3. 우측: 등락 수치 */
.p-change { flex: 1; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; font-family: monospace; line-height: 1.3; }


/* 섹션 타이틀 */
.section-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 12px; margin-top: 10px; }

/* 모바일 공통 카드 디자인 */
.m-card {
    background-color: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

/* 카드 상단 공통 (뱃지와 시간) */
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.time { font-size: 11px; color: var(--text-muted); }
/* Base Badge Style */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Directional & Confidence Colors */
.badge.long {
    background-color: #e6f4ea;
    color: #137333;
}

.badge.short {
    background-color: #fce8e6;
    color: #c5221f;
}

.badge.medium, .badge.neutral {
    background-color: #f1f3f4;
    color: #5f6368;
}

/* 시그널 카드 - 가격 그리드 */
.price-grid { display: flex; justify-content: space-between; margin-bottom: 16px; }
.price-item { display: flex; flex-direction: column; gap: 4px; }
.price-item .label { font-size: 11px; color: var(--text-muted); }
.price-item .value { font-size: 15px; font-weight: 700; font-family: monospace; color: var(--text-main); }

/* 시그널 카드 - 진행 상태 바 (손절~목표) */
.progress-bar { width: 100%; height: 6px; background: linear-gradient(90deg, var(--down-color) 0%, rgba(255,255,255,0.1) 50%, var(--up-color) 100%); border-radius: 3px; position: relative; margin-bottom: 10px; }
.progress-fill { position: absolute; top: -3px; width: 4px; height: 12px; background: var(--gold-main); border-radius: 2px; box-shadow: 0 0 5px var(--gold-main); }
.target-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); font-family: monospace; }

/* AI 요약 카드 */
.ai-badge { font-size: 11px; font-weight: 700; color: #0B0D10; background: linear-gradient(135deg, #F4D77B 0%, #C9A227 100%); padding: 4px 8px; border-radius: 6px; }
.summary-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.btn-text { font-size: 13px; color: var(--gold-main); font-weight: 600; cursor: pointer; text-align: right; }

/* 푸시 알림 버튼 */
.btn-push { width: 100%; background-color: #5865F2; color: white; border: none; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3); transition: 0.2s; }
.btn-push:active { transform: scale(0.98); }

/* =========================================
   9. AI 분석 탭 (상세 리포트) 디자인
========================================= */
.ai-report-header { text-align: center; margin-bottom: 24px; }
.report-title { font-size: 20px; font-weight: 700; color: var(--gold-main); margin-bottom: 4px; }
.report-time { font-size: 12px; color: var(--text-muted); font-family: monospace; }

/* 분석 카드 공통 */
.analysis-card { padding: 18px; margin-bottom: 16px; }

/* 카드 상단 헤더 & 시각화 바 */
.a-card-header { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 14px; margin-bottom: 14px; }
.title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.title-row .num { 
    background: var(--gold-main); color: #0B0D10; 
    font-size: 10px; font-weight: 700; font-family: monospace;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.title-row h3 { font-size: 15px; font-weight: 600; flex: 1; color: var(--text-main); }

/* 배지 색상 추가 */
.badge.medium { background: rgba(201, 162, 39, 0.15); color: var(--gold-main); border: 1px solid rgba(201, 162, 39, 0.3); }

/* 비율 시각화(Bias) 게이지 바 */
.bias-track { width: 100%; height: 6px; background: rgba(196, 81, 74, 0.3); /* 기본 하락(Red) 배경 */ border-radius: 3px; overflow: hidden; position: relative; margin-bottom: 6px; }
.bias-fill { height: 100%; position: absolute; left: 0; top: 0; border-radius: 3px; transition: 1s ease-out; }
.bias-fill.long-bias { background: var(--up-color); } /* 상승(Green) 채움 */
.bias-fill.short-bias { background: var(--down-color); width: 100% !important; right: 0; left: auto; }
.bias-fill.gold-bias { background: var(--gold-main); }
.bias-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); font-family: monospace; }

/* 카드 본문 텍스트 (가독성 극대화) */
.a-card-body .desc { font-size: 13px; line-height: 1.6; color: #B0B3B8; margin-bottom: 12px; }
.a-card-body .desc:last-child { margin-bottom: 0; }
.a-card-body b { color: var(--text-main); font-weight: 600; }
.a-card-body b.up { color: var(--up-color); }
.a-card-body b.down { color: var(--down-color); }

/* 데이터 그리드 (1번 영역용) */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; margin-bottom: 14px; }
.data-grid .label { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.data-grid .value { display: block; font-size: 13px; font-weight: 600; color: var(--gold-main); font-family: monospace; }

/* 서브 섹션 (5번 영역용) */
.sub-section { margin-bottom: 14px; }
.sub-section h4 { font-size: 12px; color: var(--gold-main); margin-bottom: 6px; font-weight: 600; }
.sub-section:last-child { margin-bottom: 0; }

/* 리스트형 텍스트 (6번 영역용) */
.ta-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ta-list li { font-size: 13px; line-height: 1.5; color: #B0B3B8; position: relative; padding-left: 12px; }
.ta-list li::before { content: "•"; position: absolute; left: 0; color: var(--gold-main); }


/* =========================================
   10. 시그널 탭 (Signal Center) 디자인
========================================= */

/* 1. Signal Alignment 영역 */
.alignment-box { background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; margin-bottom: 12px; }
.align-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.align-row:last-child { margin-bottom: 0; }
.a-label { font-size: 12px; color: var(--text-main); font-weight: 500; flex: 0 0 110px; }
.a-bar-track { flex: 1; height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; }
.a-bar-fill { height: 100%; border-radius: 5px; transition: 1s ease; }
.short-bg { background: var(--down-color); box-shadow: 0 0 10px rgba(196, 81, 74, 0.4); }
.long-bg { background: var(--up-color); box-shadow: 0 0 10px rgba(78, 159, 110, 0.4); }

.alignment-result { text-align: center; padding: 12px; border: 1px dashed rgba(255,255,255,0.1); border-radius: 8px; font-size: 13px; color: var(--text-muted); background: rgba(255,255,255,0.02); }
.sync-icon { display: inline-block; animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* 2. Active Trigger 영역 */
.trigger-grid { display: flex; flex-direction: column; gap: 12px; }
.t-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.t-row:last-child { border-bottom: none; padding-bottom: 0; }
.t-label { font-size: 12px; color: var(--text-muted); }
.t-value { font-size: 14px; font-weight: 600; color: var(--text-main); font-family: monospace; }
.t-row.highlight { background: rgba(201, 162, 39, 0.05); padding: 12px; border-radius: 8px; border: 1px solid rgba(201, 162, 39, 0.2); }

/* 3. Trigger History 영역 (모바일 최적화 리스트) */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.h-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); padding: 14px; border-radius: 10px; }
.h-left { display: flex; align-items: center; gap: 12px; }
.h-info { display: flex; flex-direction: column; gap: 4px; }
.h-price { font-size: 14px; font-weight: 600; color: var(--text-main); font-family: monospace; }
.h-time { font-size: 10px; color: var(--text-muted); font-family: monospace; }
.h-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.h-profit { font-size: 15px; font-weight: 700; font-family: monospace; }
.h-result { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.h-result.success { background: rgba(78, 159, 110, 0.15); color: var(--up-color); border: 1px solid rgba(78, 159, 110, 0.3); }
.h-result.fail { background: rgba(196, 81, 74, 0.15); color: var(--down-color); border: 1px solid rgba(196, 81, 74, 0.3); }


/* =========================================
   11. 뉴스 탭 (News Center) 디자인
========================================= */

/* 모바일 토글 버튼 (해외 / 국내 전환) */
.news-toggle-wrapper { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 4px; margin-bottom: 24px; border: 1px solid rgba(255, 255, 255, 0.05); }
.news-toggle { display: flex; position: relative; }
.toggle-btn { flex: 1; padding: 12px 0; border: none; background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; transition: 0.3s ease; }
.toggle-btn.active { background: var(--panel-bg); color: var(--gold-main); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }

/* 뉴스 리스트 컨테이너 */
.news-list-container { display: none; flex-direction: column; gap: 12px; }
.news-list-container.active { display: flex; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* 개별 뉴스 아이템 */
.news-item { background: var(--panel-bg); padding: 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 8px; transition: background 0.2s; }
.news-item:active { background: rgba(255, 255, 255, 0.03); }

/* 뉴스 상단 정보 (출처, 시간) */
.news-meta { display: flex; justify-content: space-between; align-items: center; font-family: monospace; }
.news-meta .source { font-size: 12px; font-weight: 600; color: var(--gold-main); }
.news-meta .time { font-size: 11px; color: var(--text-muted); }

/* 뉴스 제목과 내용 */
.news-title { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.4; }
.news-desc { font-size: 12px; color: #B0B3B8; line-height: 1.5; }

/* =========================================
   12. 차트 탭 (Real-time Charts) 디자인
========================================= */

/* 차트 카드 기본 설정 */
.chart-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

/* 차트 상단 헤더 (제목 및 가격) */
.chart-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.c-title-area { display: flex; align-items: flex-start; gap: 10px; }
.c-title-area .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.c-title-area .dot.gold { background: var(--gold-main); box-shadow: 0 0 8px var(--gold-main); }
.c-title-area .dot.krw { background: var(--up-color); box-shadow: 0 0 8px var(--up-color); }

.c-titles h3 { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.c-titles p { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.c-price { font-size: 18px; font-weight: 700; font-family: monospace; }

/* 차트 툴바 (타임프레임 선택) */
.chart-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow-x: auto; }
.chart-toolbar button { background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.chart-toolbar button.active { background: rgba(255, 255, 255, 0.1); color: var(--text-main); }
.chart-toolbar .divider { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.1); margin: 0 4px; }
.chart-toolbar .icon-btn { font-size: 14px; }

/* 실제 차트가 들어갈 캔버스 영역 */
.chart-area { width: 100%; height: 260px; position: relative; background-color: #0d1015; }

/* 차트가 연결되기 전 보여질 임시 모눈종이(Grid) 패턴 */
.chart-placeholder { 
    width: 100%; height: 100%; 
    display: flex; align-items: center; justify-content: center; text-align: center;
    /* CSS로 그리는 마법의 격자무늬 패턴 */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}
.placeholder-text { font-size: 12px; color: rgba(255, 255, 255, 0.3); line-height: 1.6; }
.placeholder-text small { color: rgba(255, 255, 255, 0.2); }


