.sy_wrap {
    margin: 0 auto;
    padding: 24px 40px 60px;
    color: #e2e8f0;
}

/* 상단 타이틀 영역 */
.sy_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.sy_left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sy_left p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}
.sy_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.sy_search {
    display: flex;
}
.sy_search input {
    background: #1e293b;
    border: 1px solid #2a3458;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 200px;
}
.sy_search input:focus {
    border-color: #388eff;
    width: 220px;
}
.sy_search input::placeholder {
    color: #94a3b8;
}
.sy_search input:hover {
    border-color: #388eff;
    width: 220px;
}
.sy_search button {
    background: #388eff;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.sy_search button:hover {
    background: #0d60cc;
    transition: background 0.3s;
}
.sy_count {
    font-size: 13px;
    color: #94a3b8;
}
.Title_Img img {
    width: 80px;
    border: 5px solid #57638b;
    border-radius: 50%;
    margin-right: 20px;
}
/* 퀵카드 5종목 */
.sy_quick_cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.qcard {
    position: relative;
    overflow: hidden;
    background: #040b1b;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 14px;
    text-decoration: none;
    color: #e2e8f0;
    display: block;
    transition: 0.5s;
}
.qcard:hover {
    margin: -10px 0px;
    transition: 0.5s;
    background: #000;
    border: 1px solid #388eff;
}
.qcard_head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.qcard_head div {
    display: flex;
    flex-direction: column;
}
.qcard_symbol {
    font-weight: 700;
    font-size: 15px;
}
.qcard_name {
    font-size: 11px;
    color: #94a3b8;
}
.qminichart {
    width: 100%;
    height: 48px;
    display: block;
    margin-bottom: 8px;
}
.qcard_info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
}
.qcard_price {
    font-size: 16px;
    font-weight: 700;
    color: aqua;
}
.qcard_vol {
    color: #94a3b8;
    width: 100%;
    text-align: right;
}

/* 정렬 메뉴 */
.sy_sort_menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 4px;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}
.sy_sort_btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #1e293b;
    border: 1px solid #2a3458;
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}
.sy_sort_btn:hover {
    background: #0d60cc;
    border-color: #0d60cc;
    color: #fff;
    transition: 0.3s;
}
.sy_sort_btn.active {
    background: #0d60cc;
    border-color: #0d60cc;
    color: #fff;
    font-weight: 700;
}

/* 카드 그리드 */
.sy_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.sy_card {
    position: relative;
    overflow: hidden;
    background: #161a38;
    border: 1px solid #2a3458;
    border-radius: 4px;
    padding: 20px;
    text-decoration: none;
    color: #e2e8f0;
    display: block;
}
.sy_card:hover {
    background: #040b1b;
    border-color: #388eff;
    transition: 0.5s;
}
.sy_card:hover .sy_card_body span {
    color: #fff;
    transition: 0.3s;
}
.sy_card_head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.sy_card_head div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sy_card_symbol {
    font-weight: 700;
    font-size: 13px;
}
.sy_card_name {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
canvas.minichart {
    width: 100%;
    height: 44px;
    display: block;
    margin-bottom: 6px;
}
.sy_card_price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.sy_card_now {
    font-size: 22px;
    font-weight: 700;
    color: aqua;
}
.sy_card_rate {
    font-size: 15px;
    font-weight: 700;
}
.sy_card_body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: #94a3b8;
}
.sy_card_body div {
    display: flex;
    justify-content: space-between;
}
.sy_card_body span:last-child {
    color: #cbd5e1;
}

.up { color: #00ff00; }
.dn { color: #ff0000; }

.sy_empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #475569;
    padding: 40px 0;
}

/* 실시간 가격 변동 플래시 오버레이 — 카드 본체와 분리하여 hover 효과와 충돌 방지 */
.flash-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}
.flash-overlay.flash-up {
    background: rgba(0, 255, 0, 0.35);
    animation: flashFade 0.8s ease forwards;
}
.flash-overlay.flash-down {
    background: rgba(255, 0, 0, 0.35);
    animation: flashFade 0.8s ease forwards;
}
@keyframes flashFade {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* 페이징 */
.sy_paging {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sy_paging a {
    padding: 6px 12px;
    background: #1e293b;
    border: 1px solid #2a3458;
    border-radius: 4px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
}
.sy_paging a.active {
    background: #388eff;
    border-color: #388eff;
    color: #fff;
    font-weight: 700;
}
.sy_paging a:hover {
    background: #0d60cc;
    border-color: #0d60cc;
    color: #fff;
    transition: 0.5s;
}

/* 반응형 */
@media (max-width: 1400px) {
    .sy_grid { grid-template-columns: repeat(5, 1fr); }
    .sy_quick_cards { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .sy_grid { grid-template-columns: repeat(3, 1fr); }
    .sy_quick_cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .sy_grid { grid-template-columns: repeat(2, 1fr); }
    .sy_quick_cards { grid-template-columns: repeat(2, 1fr); }
}