*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0f172a;
    color: #cbd5e1;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.cl_wrap {
    margin: 0 auto;
    padding: 40px;
}

.cl_title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.cl_title p:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
}
.cl_title p:last-child {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.Title_Img img {
    width: 80px;
    border: 5px solid #57638b;
    border-radius: 50%;
}

/* 상단 설정 메뉴*/
.Top_Line {
    display: flex;
}

.cl_count {
    margin: 10px 10px 0px 0px;
}
.cl_quick {
    margin-left: auto;
}

.cl_search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.cl_search input {
    background: #040b1b;
    border: 1px solid #2a3458;
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}
.cl_search input::placeholder { color: #475569; }
.cl_search button {
    background: #040b1b;
    border: 1px solid #2a3458;
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.cl_search button:hover { background: #040b1b; }
.cl_search a {
    padding: 8px 12px;
    background: #040b1b;
    border: 1px solid #2a3458;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
}

.cl_count {
    color: #475569;
    font-size: 13px;
    margin-bottom: 10px;
    padding-left: 4px;
}

.cl_quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.cl_quick a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #040b1b;
    border: 1px solid #2a3458;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}
.cl_quick a:hover { 
    background: #1f58db; 
    color: #fff; 
    transition: background 0.7s;
}

.cl_table {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #2a3458;
    background: #070b24;
    border-radius: 7px;
}

.cl_table thead tr {
    
}
.cl_table th {
    background: #040b1b;
    border-radius: 7px 7px 0 0;
    padding: 20px;
    text-align: right;
    color: #ddd;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #2a3458;
}
.cl_table th:first-child { text-align: left; }
.cl_table th:nth-child(2),
.cl_table th:nth-child(3) { text-align: left; }

.cl_table tbody tr {
    border-bottom: 1px solid #30365a;
    cursor: pointer;
    transition: background 0.15s;
}
.cl_table tbody tr:last-child td { border-bottom: none; }
.cl_table tbody tr:hover { background: #162445; }

.cl_table td {
    padding: 10px 20px;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    border-bottom: 1px solid #2a3458;
}
.cl_table td:first-child { text-align: left; }
.cl_table td:nth-child(2) { text-align: left; color: #94a3b8; }
.cl_table td:nth-child(3) { text-align: left; }

.cl_sym {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cl_sym img { border-radius: 50%; }
.cl_market { color: #64748b; font-size: 11px; display: block; }
.cl_symbol { color: #e2e8f0; font-weight: 600; font-size: 14px; }

/* 미니차트 셀 */
.cl_minichart {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cl_minichart_name {
    white-space: nowrap;
}
canvas.minichart {
    display: block;
}

.up { color: #00ff00; }
.dn { color: #ff0000; }

.cl_paging {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cl_paging a {
    display: inline-block;
    padding: 6px 12px;
    background: #0e1521;
    border: 1px solid #2a3458;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}
.cl_paging a:hover { background: #162445; }
.cl_paging a.active {
    background: #162445;
    border-color: #388eff;
    color: #e2e8f0;
    font-weight: 700;
}