@charset "utf-8";
    :root {
        --bg-color: #0f172a;
        --card-bg: #0f172a;
        --border-color: rgba(255, 255, 255, 0.08);
        --accent-blue: #38bdf8;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --pos-color: #4ade80;
        --neg-color: #f87171;
        --usdt-yellow: #facc15;
        --usdt-red: #ef4444;
    }
    body {
        background: var(--bg-color);
        color: var(--text-main);
        font-family: 'Inter', sans-serif;
        margin: 0; 
        padding: 0;
        width: 100%; 
        box-sizing: border-box;
        min-height: 100vh;
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .reveal {
        opacity: 0; 
        visibility: hidden; 
        padding: 40px 50px;
    }
    header { 
        overflow: hidden;
        margin-bottom: 20px; 
    }
    header div { 
        float: left;
    }
    header div img { 
        margin: 0px 20px;
    }
    h1 { 
        font-weight: 900; 
        font-size: 45px; 
        letter-spacing: -0.05em; 
        margin: 0; 
        display: flex; 
        align-items: center; 
        gap: 12px; 
    }
    h1 i { color: var(--accent-blue); }
    #updated {
        float: right;
        color: var(--text-muted); 
        font-size: 12px; 
        font-weight: 600;
        background: rgba(255,255,255,0.05); 
        padding: 6px 12px;
        border-radius: 4px; 
        border: 1px solid var(--border-color);
    }
    .table-container {
        background: var(--card-bg); 
        border-radius: 5px;
        border: 1px solid var(--border-color); 
        overflow-x: auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
    table { 
        width: 100%; 
        border-collapse: collapse; 
        font-size: 13px; 
        white-space: nowrap; 
    }
    th {
        background: #040b1b; color: var(--text-muted);
        font-weight: 700; text-transform: uppercase; font-size: 10px;
        letter-spacing: 0.05em; padding: 12px 8px;
        border-bottom: 1px solid var(--border-color); text-align: center;
    }
    th.main-col { color: #fff; background: #040b1b; }
    td {
        padding: 14px 8px; border-bottom: 1px solid var(--border-color);
        font-family: 'JetBrains Mono', monospace; font-weight: 500;
        text-align: center;
    }
    .pos { color: var(--pos-color); font-weight: 800; }
    .neg { color: var(--neg-color); font-weight: 800; }
    .yellow { background: var(--usdt-yellow) !important; color: #000 !important; font-weight: 800; }
    .redrow { background: var(--usdt-red) !important; color: #fff !important; font-weight: 800; }
    .yellow td, .redrow td { border-bottom-color: rgba(0,0,0,0.1); }
    .yellow .pos, .yellow .neg, .redrow .pos, .redrow .neg { color: inherit; }
    tr:hover:not(.yellow):not(.redrow):not(.k3):not(.k5):not(.k7):not(.k10):not(.kn3):not(.kn5):not(.kn7):not(.kn10) { background: rgba(255,255,255,0.02); }
    .coin-name { font-family: 'Inter', sans-serif; font-weight: 900; color: #fff; text-align: left; padding-left: 20px; }
    .yellow .coin-name, .redrow .coin-name { color: inherit; }

/* ── 김프/역프 단계별 행 색상 ── */
.k3   { background: #2a2000 !important; color: #fde68a !important; }
.k5   { background: #fde047 !important; color: #000    !important; font-weight: 800; }
.k7   { background: #f97316 !important; color: #fff    !important; font-weight: 800; }
.k10  { background: #ef4444 !important; color: #fff    !important; font-weight: 800; }
.kn3  { background: #0f1e3a !important; color: #93c5fd !important; }
.kn5  { background: #1d4ed8 !important; color: #fff    !important; font-weight: 800; }
.kn7  { background: #1e3a8a !important; color: #bfdbfe !important; font-weight: 800; }
.kn10 { background: #0c0f1e !important; color: #818cf8 !important; font-weight: 800; }
.k3 td,.k5 td,.k7 td,.k10 td,.kn3 td,.kn5 td,.kn7 td,.kn10 td { border-bottom-color: rgba(0,0,0,0.15); }
.k3 .pos,.k3 .neg,.k5 .pos,.k5 .neg,.k7 .pos,.k7 .neg,.k10 .pos,.k10 .neg,
.kn3 .pos,.kn3 .neg,.kn5 .pos,.kn5 .neg,.kn7 .pos,.kn7 .neg,.kn10 .pos,.kn10 .neg { color: inherit; }
.k3 .coin-name,.k5 .coin-name,.k7 .coin-name,.k10 .coin-name,
.kn3 .coin-name,.kn5 .coin-name,.kn7 .coin-name,.kn10 .coin-name { color: inherit; }

/* ── 페이지 활용법 ── */
.usage-guide {
    margin-top: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px; padding: 20px 24px;
}
.usage-title {
    font-size: 13px; 
    font-weight: 700; 
    color: var(--accent-blue);
    letter-spacing: 0.04em; 
    margin-bottom: 14px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.usage-body { display: flex; flex-direction: column; gap: 8px; }
.usage-item {
    font-size: 12px; 
    color: var(--text-muted); 
    line-height: 1.7;
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    flex-wrap: wrap;
}
.usage-tag {
    background: rgba(56,189,248,0.1); 
    color: var(--accent-blue);
    font-weight: 700; 
    font-size: 11px; 
    padding: 2px 8px; 
    border-radius: 3px;
    white-space: nowrap; 
    margin-top: 2px;
}
.badge {
    display: inline-block; 
    font-size: 10px; 
    font-weight: 700;
    padding: 1px 7px; 
    border-radius: 3px; 
    margin: 2px 2px;
}
.badge.k3  { background: #2a2000; color: #fde68a; }
.badge.k5  { background: #fde047; color: #000; }
.badge.k7  { background: #f97316; color: #fff; }
.badge.k10 { background: #ef4444; color: #fff; }
.badge.kn3 { background: #0f1e3a; color: #93c5fd; border: 1px solid #1d4ed8; }
.badge.kn5 { background: #1d4ed8; color: #fff; }
.badge.kn7 { background: #1e3a8a; color: #bfdbfe; }
.badge.kn10 { background: #0c0f1e; color: #818cf8; border: 1px solid #4f46e5; }
    @media (max-width: 1200px) {
        h1 { font-size: 20px; }
        th, td { padding: 10px 4px; font-size: 11px; }
    }

/* ── 로딩 오버레이 ── */
#loading-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-color);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
}
.loading-ring {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-txt {
    color: var(--text-muted); 
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 0.2em; 
    font-family: 'Inter', sans-serif;
}

/* ── 히어로 패널 ── */
.hero-wrap {
    display: flex; gap: 0;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-color);
    border-radius: 4px; 
    margin-bottom: 20px; 
    overflow: hidden;
}
.pct-dec { color: #94ebb5; font-size: 0.6em; }
.hero-block {
    padding: 24px 28px;
    border-right: 1px solid var(--border-color);
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}
.hero-block:last-child { border-right: none; flex: 1; }
.hero-ticker {
    font-size: 56px; 
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    color: #fff; 
    letter-spacing: -0.04em; line-height: 1;
}
.hero-pct {
    font-size: 56px; font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1; transition: color 0.1s;
}
.hero-pct.pos { color: var(--pos-color); }
.hero-pct.neg { color: var(--neg-color); }
.hero-pct-label {
    font-size: 10px; 
    font-weight: 700; l
    etter-spacing: 0.1em;
    color: var(--text-muted); 
    margin-top: 6px; 
    text-transform: uppercase;
}
.hero-price-lbl {
    font-size: 10px; 
    color: var(--text-muted); 
    font-weight: 600;
    letter-spacing: 0.04em; 
    text-transform: uppercase; 
    margin-bottom: 4px;
}
.hero-price-lbl em { font-style: normal; color: var(--accent-blue); }
.hero-price-val {
    font-family: 'JetBrains Mono', monospace; 
    font-size: 22px; font-weight: 800;
    color: #fff;
}
.hero-bar-block { gap: 14px; }
.hero-bar-header { display: flex; align-items: center; gap: 10px; }
.bar-edge {
    font-size: 11px; 
    color: var(--text-muted); 
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}
.hero-bar-track {
    flex: 1; 
    height: 20px; 
    position: relative;
    background: rgba(255,255,255,0.07); 
    border-radius: 4px;
}
.hero-bar-fill {
    position: absolute; 
    top: 3px; bottom: 3px; 
    transition: left 0.1s ease, width 0.1s ease, background 0.1s ease;
}
.hero-bar-zero {
    position: absolute; 
    left: 20%; top: 0; 
    bottom: 0;
    width: 2px;
     background: rgba(255,255,255,0.4); 
     z-index: 1;
}
.hero-bar-legend { display: flex; gap: 20px; }
.hero-bar-legend span {
    display: flex; 
    align-items: center; 
    gap: 6px;
    font-size: 11px; 
    color: var(--text-muted);
}
.legend-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
@media (max-width: 900px) {
    .hero-wrap { flex-wrap: wrap; }
    .hero-block { min-width: 50%; box-sizing: border-box; }
    .hero-ticker, .hero-pct { font-size: 40px; }
}