#App_Coin {
    background: #161e30;
    color: #e6e6e6;
    padding-bottom: 50px;
    font-family: -apple-system, sans-serif;
}

.Coin_Title {
    display: flex;
    background: #040b1b;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #5d6488;
}
.Coin_Img {
    display: flex;
    align-items: center;
    
}
.Coin_Img img {
    border-radius: 5px;
}
.Coin_Name {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
}

.Coin_Search {
    margin: 0px 10px 3px 10px;
}
.Coin_Search input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #5d6488;
    background: #040b1b;
    color: #e6e6e6;
    font-size: 14px;
}
.Coin_Search input::placeholder {
    color: #777;
}

/* ===== 헤더 ===== */
h1 {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid #5d6488;
    background: #09173a;
    padding: 10px;
    margin: 0px 0px 10px 0px;
}

h1 img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
h1 span {
    font-size: 16px;
    font-weight: bold;
}
h1 label {
    font-size: 13px;
    font-weight: normal;
    color: #94a3b8;
}

/* ===== 버튼 ===== */
.button_right {
    display: flex;
    margin-left: auto;
    gap: 6px;
}
.btn_style {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    border: 1px solid #5d6488;
    background: #040b1b;
    font-size: 12px;
    cursor: pointer;
    padding: 0px;
}
.btn_style2 {
    width: 33px;
    height: 33px;
    border-radius: 4px;
    border: 1px solid #0033ac;
    background: #004cff;
    padding: 0px;
}
.btn_style img {
    filter: grayscale(100%);
    margin-top: 2px;
}
.btn_style2 img {
    margin-top: 2px;
}
.btn_style:hover {
    border: 1px solid #0033ac;
    background: #004cff;
    transition: background-color 0.7s ease;
}
.btn_style:hover img {
    filter: grayscale(0%);
    transition: filter 0.7s ease;
}

.Coin_List {
    background: #0b0f19;
    border-top: 1px solid #1f242f;
    padding: 0px 10px;
}

.coin_row {
    display: grid;
    grid-template-columns: 36px 1fr 90px 64px 70px;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-bottom: 1px solid #29303f;
    font-size: 13px;
}

.coin_icon img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
}

.coin_name {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.coin_symbol {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}
.coin_kname {
    font-size: 11px;
    color: #8a8f9c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin_price {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.coin_rate {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.coin_rate.rise { color: #00ff00; }
.coin_rate.fall { color: #ff0000; }
.coin_rate.flat { color: #aaa; }

.coin_volume {
    text-align: right;
    font-size: 11px;
    color: #8a8f9c;
}

.flash-up {
    background-color: rgba(0, 255, 0, 0.35) !important;
}
.flash-down {
    
    background-color: rgba(255, 77, 79, 0.35) !important;
}

.Coin_Loading {
    text-align: center;
    padding: 14px;
    color: #666;
    font-size: 12px;
}




/* ===== 정렬 버튼 (coin.css 하단에 추가) ===== */
.Coin_Sort {
    display: flex;
    gap: 6px;
    padding: 6px 12px 8px;
}

.sort-btn {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #5d6488;
    background: #040b1b;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.sort-btn:active  { border-color: #3b82f6; color: #e2e8f0; }
.sort-btn.active  { border-color: #3b82f6; color: #fff; }
.sort-btn .arrow  { font-size: 11px; min-width: 10px; text-align: center; }
a.sort-btn {
    text-decoration: none;
}