@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --border: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --text-tertiary: #57606a;
    --green: #3fb950;
    --red: #f85149;
    --yellow: #d29922;
    --blue: #58a6ff;
    --purple: #bc8cff;
    --orange: #ff9f4a;
}

body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 100%;
    padding: 0 1rem;
}

.side-ad {
    width: 160px;
    min-height: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 120px;
}

.side-ad-content {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.side-ad-placeholder {
    width: 120px;
    height: 500px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.main-content {
    flex: 1;
    max-width: 1400px;
}

.top-ad {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.top-ad-placeholder {
    height: 90px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    width: 200px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--blue);
}

.sort-group {
    display: flex;
    gap: 0.3rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 0.2rem;
}

.sort-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.sort-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.sort-btn.active {
    background: var(--blue);
    color: white;
}

.stats-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    padding: 0 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.stat-value.up { color: var(--green); }
.stat-value.down { color: var(--red); }

.container {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
}

.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
}

thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 0.6rem 0.4rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 0.7rem;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid var(--border);
}

td:first-child {
    color: var(--text-tertiary);
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: var(--bg-tertiary);
}

.coin-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.coin-symbol {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 60px;
}

.coin-name {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

.price {
    font-weight: 600;
    color: var(--text-primary);
}

.change {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.change.up {
    color: var(--green);
    background: rgba(63, 185, 80, 0.1);
}

.change.down {
    color: var(--red);
    background: rgba(248, 81, 73, 0.1);
}

/* ========================================
   RSI 스타일 수정 - 폰트 가시성 개선
   ======================================== */
.rsi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
}

.rsi-item {
    text-align: center;
    padding: 0.2rem 0.15rem;
    border-radius: 3px;
    font-size: 0.65rem;
}

.rsi-label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.55rem;
    margin-bottom: 0.1rem;
}

.rsi-value {
    font-weight: 700;
}

.rsi-oversold {
    background: rgba(63, 185, 80, 0.2);
    color: var(--green);
}

.rsi-overbought {
    background: rgba(248, 81, 73, 0.2);
    color: var(--red);
}

/* RSI 중립 - 폰트색 밝게! */
.rsi-neutral {
    background: var(--bg-tertiary);
    color: var(--text-primary);  /* 변경: text-secondary → text-primary */
}

.rsi-neutral .rsi-value {
    color: var(--text-primary);  /* 숫자 더 밝게 */
}

.indicator-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.indicator-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
}

.indicator-label {
    color: var(--text-tertiary);
    min-width: 50px;
}

.indicator-value {
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
}

.badge.golden {
    background: rgba(63, 185, 80, 0.2);
    color: var(--green);
}

.badge.dead {
    background: rgba(248, 81, 73, 0.2);
    color: var(--red);
}

.badge.squeeze {
    background: rgba(210, 153, 34, 0.2);
    color: var(--yellow);
}

.badge.breakout {
    background: rgba(88, 166, 255, 0.2);
    color: var(--blue);
}

.badge.high-vol {
    background: rgba(255, 159, 74, 0.2);
    color: var(--orange);
}

.volume-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.volume-graph {
    width: 50px;
    height: 14px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: width 0.3s;
}

.price-position {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
}

.position-bar {
    width: 50px;
    height: 6px;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
    border-radius: 2px;
    position: relative;
}

.position-marker {
    position: absolute;
    width: 2px;
    height: 10px;
    background: white;
    top: -2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.momentum-cell {
    display: flex;
    gap: 0.3rem;
}

.momentum-badge {
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
}

.momentum-badge.surge {
    background: rgba(63, 185, 80, 0.2);
    color: var(--green);
}

.momentum-badge.dump {
    background: rgba(248, 81, 73, 0.2);
    color: var(--red);
}

.week52-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.65rem;
}

.week52-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
}

.week52-label {
    color: var(--text-tertiary);
    min-width: 32px;
}

.week52-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.65rem;
}

.week52-diff {
    font-size: 0.6rem;
    color: var(--text-tertiary);
}

.week52-status {
    margin-top: 0.2rem;
    text-align: center;
}

.badge.new-high {
    background: rgba(248, 81, 73, 0.2);
    color: var(--red);
}

.badge.near-low {
    background: rgba(88, 166, 255, 0.2);
    color: var(--blue);
}

/* ========================================
   이동평균선 스타일 수정 - 고정 너비
   ======================================== */
.ma-grid {
    display: flex;
    flex-direction: row;  /* 가로 배치 */
    gap: 0.5rem;
    font-size: 0.65rem;
}

.ma-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 38px;  /* 고정 너비 */
}

.ma-label {
    color: var(--text-tertiary);
    font-size: 0.6rem;
}

.ma-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-primary);
}

.ma-position {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 700;
    min-width: 24px;  /* 고정 너비 */
    text-align: center;
}

.ma-position.above {
    background: rgba(63, 185, 80, 0.15);
    color: var(--green);
}

.ma-position.below {
    background: rgba(248, 81, 73, 0.15);
    color: var(--red);
}

/* ========================================
   볼린저밴드 스타일 수정 - 가로 배치
   ======================================== */
.bb-grid {
    display: flex;
    flex-direction: row;  /* 가로 배치! */
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    flex-wrap: nowrap;
}

.bb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 35px;  /* 고정 너비 */
}

.bb-label {
    color: var(--text-tertiary);
    font-size: 0.55rem;
}

.bb-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.6rem;
    white-space: nowrap;
}

/* 볼린저밴드 상태 배지 */
.bb-status {
    margin-left: 0.3rem;
}

.strength-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.65rem;
}

.strength-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.strength-label {
    color: var(--text-tertiary);
    min-width: 32px;
}

.strength-value {
    font-weight: 700;
}

.strength-bar {
    width: 50px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-bar-buy {
    height: 100%;
    background: var(--green);
    transition: width 0.3s;
}

.strength-bar-sell {
    height: 100%;
    background: var(--red);
    transition: width 0.3s;
}

.price-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.price-range .high {
    color: var(--red);
}

.price-range .low {
    color: var(--blue);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.alert-banner {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid var(--yellow);
    padding: 0.8rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.alert-icon {
    color: var(--yellow);
    font-weight: 700;
}

/* 코인 아이콘 */
.coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.highlight-new {
    animation: pulse 2s ease-in-out 3;
}

@media (max-width: 1400px) {
    .rsi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .rsi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    table {
        font-size: 0.7rem;
    }
    
    .ma-grid, .bb-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 0;
    }

    .side-ad {
        display: none;
    }

    .top-ad {
        display: none;
    }

    .container {
        padding: 0.5rem;
    }

    .header {
        padding: 0.8rem;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0;
    }
    
    .logo {
        text-align: center;
    }

    .header-controls {
        flex-direction: column;
        gap: 0.6rem;
    }

    .search-box input {
        width: 100%;
    }

    .sort-group {
        width: 100%;
        justify-content: space-between;
    }

    .sort-btn {
        flex: 1;
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .rsi-filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .rsi-filter-btn {
        flex: 1;
        padding: 0.5rem 0.3rem;
        font-size: 0.65rem;
    }

    .stats-bar {
        padding: 0.6rem 0.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        padding: 0;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .stat-value {
        font-size: 0.75rem;
    }
    
    /* 모바일: info-bar */
    .info-bar {
        padding: 0.6rem 0.5rem;
    }
    
    .info-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0;
    }
    
    .fear-greed-container {
        width: 100%;
        min-width: auto;
    }
    
    .fg-bar, .fg-labels {
        width: 100%;
    }
    
    .alert-banner, .cross-alerts, .week52-alerts {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .alert-section, .cross-section, .w52-section {
        width: 100%;
        justify-content: flex-start;
    }

    /* ========================================
       모바일 카드 레이아웃
       ======================================== */
    .table-container {
        background: transparent;
        border: none;
    }

    table {
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0.5rem 0.8rem;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem;
    }

    tbody tr:hover {
        background: var(--bg-secondary);
    }

    /* 순위 - 우측 상단 */
    td:nth-child(1) {
        position: absolute;
        right: 1rem;
        top: 1rem;
        border: none;
        padding: 0;
        font-size: 0.7rem;
        color: var(--text-tertiary);
    }

    /* 종목 - 좌측 상단 */
    td:nth-child(2) {
        grid-column: 1;
        grid-row: 1;
        border: none;
        padding: 0;
    }

    td:nth-child(2) .coin-cell {
        gap: 0.5rem;
    }

    td:nth-child(2) .coin-symbol {
        font-size: 1rem;
        font-weight: 700;
    }

    td:nth-child(2) .coin-name {
        font-size: 0.7rem;
    }

    /* 현재가 - 우측 상단 */
    td:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
        border: none;
        padding: 0;
        text-align: right;
        font-size: 1.1rem;
        font-weight: 700;
        align-self: center;
    }

    /* 변동률 - 현재가 아래 */
    td:nth-child(4) {
        grid-column: 2;
        grid-row: 1;
        border: none;
        padding: 0;
        justify-self: end;
        align-self: end;
        margin-top: 1.5rem;
    }

    td:nth-child(4) .change {
        font-size: 0.85rem;
        padding: 0.2rem 0.5rem;
    }

    /* RSI - 2번째 줄 전체 */
    td:nth-child(5) {
        grid-column: 1 / -1;
        grid-row: 2;
        border: none;
        border-top: 1px solid var(--border);
        padding: 0.6rem 0 0 0;
        margin-top: 0.3rem;
    }

    td:nth-child(5) .rsi-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    td:nth-child(5) .rsi-item {
        padding: 0.3rem;
    }

    td:nth-child(5) .rsi-label {
        font-size: 0.6rem;
    }

    td:nth-child(5) .rsi-value {
        font-size: 0.85rem;
    }

    /* 이평선 */
    td:nth-child(6) {
        grid-column: 1;
        grid-row: 3;
        border: none;
        padding: 0;
    }

    td:nth-child(6)::before {
        content: "이평선";
        display: block;
        font-size: 0.6rem;
        color: var(--text-tertiary);
        margin-bottom: 0.2rem;
    }

    /* 볼린저밴드 */
    td:nth-child(7) {
        grid-column: 2;
        grid-row: 3;
        border: none;
        padding: 0;
    }

    td:nth-child(7)::before {
        content: "볼린저";
        display: block;
        font-size: 0.6rem;
        color: var(--text-tertiary);
        margin-bottom: 0.2rem;
    }

    /* 거래대금 */
    td:nth-child(8) {
        grid-column: 1;
        grid-row: 4;
        border: none;
        border-top: 1px solid var(--border);
        padding: 0.5rem 0 0 0;
    }

    td:nth-child(8)::before {
        content: "거래대금";
        display: block;
        font-size: 0.6rem;
        color: var(--text-tertiary);
        margin-bottom: 0.2rem;
    }

    td:nth-child(8) .volume-value {
        font-size: 0.9rem;
    }

    /* 가격위치 */
    td:nth-child(9) {
        grid-column: 2;
        grid-row: 4;
        border: none;
        border-top: 1px solid var(--border);
        padding: 0.5rem 0 0 0;
    }

    td:nth-child(9)::before {
        content: "일중위치";
        display: block;
        font-size: 0.6rem;
        color: var(--text-tertiary);
        margin-bottom: 0.2rem;
    }

    td:nth-child(9) .price-detail {
        gap: 0.2rem;
    }

    td:nth-child(9) .price-range {
        display: none;
    }

    td:nth-child(9) .position-bar {
        width: 100%;
    }

    /* 52주 - 숨김 (모바일 공간 절약) */
    td:nth-child(10) {
        display: none;
    }

    /* 이평선/볼린저 모바일 최적화 */
    .ma-grid {
        justify-content: flex-start;
    }

    .bb-grid {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .bb-status {
        width: 100%;
        margin-top: 0.2rem;
    }
}

/* ========================================
   V18 신규 기능 스타일
   ======================================== */

/* RSI 필터 버튼 */
.rsi-filter-group {
    display: flex;
    gap: 0.3rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 0.2rem;
}

.rsi-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}

.rsi-filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.rsi-filter-btn.active {
    background: var(--purple);
    color: white;
}

.rsi-filter-btn.oversold.active {
    background: var(--green);
}

.rsi-filter-btn.overbought.active {
    background: var(--red);
}

/* 정보 바 (공포탐욕 + 알림들) */
.info-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
}

.info-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* 공포탐욕 지수 */
.fear-greed-container {
    min-width: 180px;
    order: 1;
}

.fg-gauge {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fg-title {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.fg-bar {
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
    border-radius: 4px;
    position: relative;
}

.fg-fill {
    display: none;
}

.fg-marker {
    position: absolute;
    width: 3px;
    height: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 2px;
    top: -3px;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fg-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: var(--text-tertiary);
    width: 150px;
}

.fg-value {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.fg-number {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
}

.fg-text {
    font-size: 0.7rem;
    font-weight: 600;
}

/* 급등/급락 알림 배너 */
.alert-banner {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    order: 2;
}

.alert-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
}

.alert-section.surge {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.alert-section.dump {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.alert-icon {
    font-size: 1rem;
}

.alert-title {
    font-weight: 700;
    color: var(--text-secondary);
}

.alert-coins {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alert-coin {
    color: var(--text-primary);
}

.alert-section.surge .alert-coin b {
    color: var(--green);
}

.alert-section.dump .alert-coin b {
    color: var(--red);
}

/* 골든/데드크로스 알림 */
.cross-alerts {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    order: 3;
}

.cross-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
}

.cross-section.golden {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.cross-section.dead {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.cross-icon {
    font-size: 1rem;
}

.cross-title {
    font-weight: 700;
}

.cross-section.golden .cross-title {
    color: var(--green);
}

.cross-section.dead .cross-title {
    color: var(--red);
}

.cross-coins {
    color: var(--text-primary);
}

/* 52주 신고가/신저가 알림 */
.week52-alerts {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    order: 4;
}

.w52-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
}

.w52-section.high {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.w52-section.low {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.w52-icon {
    font-size: 1rem;
}

.w52-title {
    font-weight: 700;
}

.w52-section.high .w52-title {
    color: var(--red);
}

.w52-section.low .w52-title {
    color: var(--blue);
}

.w52-coins {
    color: var(--text-primary);
}

/* 테이블 내 골든/데드크로스 배지 */
.badge.golden {
    background: rgba(63, 185, 80, 0.2);
    color: var(--green);
    margin-left: 0.3rem;
}

.badge.dead {
    background: rgba(248, 81, 73, 0.2);
    color: var(--red);
    margin-left: 0.3rem;
}

/* ========================================
   더보기 버튼
   ======================================== */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.load-more-btn {
    background: transparent;
    border: none;
    color: var(--blue);
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.load-more-btn:hover {
    color: var(--purple);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .load-more-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* 푸터 */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin: 0.3rem 0;
}

.footer strong {
    color: var(--text-secondary);
}

.footer .contact a {
    color: var(--blue);
    text-decoration: none;
}

.footer .contact a:hover {
    text-decoration: underline;
}

.footer .copyright {
    margin-top: 0.8rem;
    font-size: 0.65rem;
}