@charset "utf-8";
    :root {
        --bg-main: #020617;
        --bg-card: #0f172a;
        --bg-hover: #1e293b;
        --border: #1e293b;
        --text-main: #e2e8f0;
        --text-dim: #94a3b8;
        --accent: #fbbf24;
        --up: #22c55e;
        --down: #ef4444;
    }

    body { background-color: var(--bg-main) !important; color: var(--text-main); font-family: 'Inter', sans-serif; margin: 0; padding: 0; }
    
    .shadow-section { width: 100%; padding: 25px 20px; box-sizing: border-box; margin-bottom: 30px; border-bottom: 2px solid var(--border); transition: transform 0.3s; }
    
    .header-area { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 15px; padding-bottom: 15px; }
    .title-group { display: flex; align-items: center; gap: 12px; }
    .title { font-size: 1.4rem; margin: 0; font-weight: 700; letter-spacing: -0.5px; }
    
    .t-usdt { color: var(--up); }
    .t-usd-d { color: #38bdf8; }
    .t-spot { color: #a855f7; }

    .btn-ctrl { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
    .btn-ctrl:hover { color: var(--text-main); border-color: var(--accent); background: var(--bg-hover); }

    .search-box-wrapper { position: relative; }
    .search-box { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-main); padding: 8px 12px 8px 35px; border-radius: 6px; width: 180px; outline: none; font-size: 0.85rem; transition: 0.2s; }
    .search-box:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1); }
    .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 0.8rem; }

    .list-header { display: flex; padding: 12px 10px; background: rgba(15, 23, 42, 0.5); font-weight: 700; color: var(--text-dim); font-size: 0.75rem; border-bottom: 2px solid var(--border); text-align: right; text-transform: uppercase; }
    .ticker-row { display: flex; padding: 12px 10px; border-bottom: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; text-align: right; align-items: center; cursor: pointer; transition: background 0.2s, transform 0.1s; position: relative; }
    .ticker-row:hover { background-color: var(--bg-hover); transform: scale(1.002); }

    @keyframes flash-up { from { background: rgba(34, 197, 94, 0.2); } to { background: transparent; } }
    @keyframes flash-down { from { background: rgba(239, 68, 68, 0.2); } to { background: transparent; } }
    .up-flash { animation: flash-up 0.8s; }
    .down-flash { animation: flash-down 0.8s; }

    .col-fav { width: 3%; text-align: center; color: #475569; font-size: 1.1rem; }
    .col-fav.on { color: var(--accent); text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
    .col-s  { width: 8%; text-align: left; font-weight: 700; color: var(--text-main); } 
    .col-p  { width: 9%; color: var(--text-main); font-weight: 500; } 
    .col-d1 { width: 9%; border-left: 1px solid var(--border); } 
    .col-r1 { width: 7%; } 
    .col-d2 { width: 9%; border-left: 1px solid var(--border); color: var(--text-dim); } 
    .col-r2 { width: 7%; } 
    .col-v  { width: 9%; color: var(--accent); } 
    .col-h  { width: 8%; color: var(--up); opacity: 0.8; } 
    .col-l  { width: 8%; color: var(--down); opacity: 0.8; } 
    .col-h52 { width: 10%; color: var(--up); font-weight: 700; border-left: 1px solid var(--border); } 
    .col-l52 { width: 10%; color: var(--down); font-weight: 700; }

    .up { color: var(--up) !important; } .down { color: var(--down) !important; }
    .loading-text { font-size: 0.7rem; color: var(--text-dim); animation: pulse 1.5s infinite; }
    @keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

    .pagination { margin-top: 25px; display: flex; gap: 6px; justify-content: center; padding-bottom: 20px; }
    .pg-btn { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); padding: 6px 12px; cursor: pointer; border-radius: 6px; font-size: 0.8rem; font-weight: 600; transition: 0.2s; }
    .pg-btn:hover { background: var(--bg-hover); }
    .pg-btn.active { background: var(--accent); color: var(--bg-main); border-color: var(--accent); }

    .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
    .modal-content { background: var(--bg-card); border: 1px solid var(--border); width: 780px; max-height: 95vh; padding: 30px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); position: relative; display: flex; flex-direction: column; overflow: hidden; }
    .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
    .modal-title-group { display: flex; align-items: center; gap: 15px; }
    .coin-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-main); padding: 4px; border: 1px solid var(--border); }
    .modal-title { font-size: 1.8rem; color: var(--accent); font-weight: 800; }
    .close-btn { background: none; border: none; color: var(--text-dim); font-size: 1.6rem; cursor: pointer; transition: 0.2s; }
    .close-btn:hover { color: var(--down); transform: rotate(90deg); }
    
    .detail-container { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; flex-shrink: 0; }
    .detail-section { background: var(--bg-main); padding: 15px; border-radius: 12px; border: 1px solid var(--border); }
    .sec-title { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
    .detail-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
    .detail-val { color: var(--text-main); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
    .highlight-val { color: var(--accent); font-size: 1.2rem; }

    .modal-btns { display: flex; gap: 12px; margin-bottom: 15px; flex-shrink: 0; }
    .m-btn { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-main); cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
    .m-btn:hover { background: var(--accent); color: var(--bg-main); border-color: var(--accent); }
    
    .modal-chart { width: 100%; height: 320px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); flex-grow: 1; }

    #global-loader { position: fixed; top: 93px; left: 700px; z-index: 10000; background: var(--bg-card); padding: 10px 15px; border-radius: 50px; border: 1px solid var(--accent); display: none; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; color: var(--accent); }

    /* 전체 스크롤바 스타일 */
    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: #020617; }
    ::-webkit-scrollbar-thumb { background: #30363d; border-radius: 6px; border: 2px solid #0d1117; }
    ::-webkit-scrollbar-thumb:hover { background: #8b949e; } 