* { margin:0; padding:0; box-sizing:border-box; }
body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: -apple-system, 'Pretendard', sans-serif;
}

.header {
    display: flex;
    align-items: center;
    background: #000;
    border-bottom: 1px solid #1e293b;
    padding: 15px 40px;
}

.header_left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 50px;
    font-weight: 700;
}
.header_left img {
    width: 80px;
}

.container {
    margin: 0 auto;
    padding: 20px 40px;
}

.price_info {
    display: flex;
    align-items: center;
    background: #1a1f3a;
    border: 1px solid #2a3458;
    padding: 20px 40px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.price_info img {
    width: 60px;
    height: 60px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.controls input[type="date"] {
    background: #1e293b;
    border: 1px solid #2a3458;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
}
.btn-refresh {
    background: #2a3458;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.btn-refresh:hover {
    background: #334155;
}

.price-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 1px solid #2a3458;
    margin-left: 20px;
    padding-left: 20px;
}
.coin-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.symbol-name {
    font-size: 23px;
    font-weight: 600;
    color: #94a3b8;
}
.current-price {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.change-info {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}
.up   { 
    color: #10b981; 
}
.down { 
    color: #f43f5e; 
}
.flat { 
    color: #94a3b8; 
}

.sub-info {
    gap: 20px;
    font-size: 12px;
    color: #64748b;
    text-align: right;
}
.sub-info span { 
    color: #94a3b8;
 }

.chart-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    background: #1a1f3a;
    padding: 20px;
    border: 1px solid #2a3458;
    border-radius: 4px;
}
.chart-wrap canvas {
    background: #040b1b;
    width: 100% !important;
    height: 100% !important;
    padding: 20px;
    border: 1px solid #2a3458;
    border-radius: 4px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 12px;
    height: 3px;
    border-radius: 1px;
}
.legend-dot.dashed {
    border-top: 2px dashed;
    background: none;
    height: 0;
    width: 12px;
}

.base-time {
    text-align: right;
    font-size: 11px;
    color: #475569;
    margin-top: 8px;
}

.direction-box {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid #1e293b;
}
.dir-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dir-label {
    font-size: 12px;
    color: #64748b;
}
.dir-arrow {
    font-size: 13px;
    font-weight: 600;
}
.dir-arrow.up   { 
    color: #10b981; 
}
.dir-arrow.down { 
    color: #f43f5e; 
}
.dir-arrow.flat { 
    color: #94a3b8; 
}