.coin-page {
    padding-top: 60px;
}
.coin-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.coin-hero {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.coin-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.coin-header-text {
    flex: 1;
}
.coin-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}
.coin-header p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 0;
}
.coin-refresh {
    background: #3b82f6;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.coin-refresh:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.coin-refresh:active {
    transform: translateY(0);
}
.coin-refresh svg {
    width: 14px;
    height: 14px;
}
.coin-search {
    position: relative;
    width: 100%;
}
.coin-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 48px 14px 48px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    background: #f8fafc;
}
.coin-search input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.coin-search input::placeholder {
    color: #a0aec0;
}
.coin-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #a0aec0;
    pointer-events: none;
}
.coin-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}
.coin-search-clear:hover {
    background: #cbd5e0;
}
.coin-search-clear.visible {
    display: flex;
}
.coin-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.coin-table {
    width: 100%;
    border-collapse: collapse;
}
.coin-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
.coin-table th {
    padding: 12px 16px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}
.coin-table th:first-child,
.coin-table th:nth-child(2) {
    text-align: left;
}
.coin-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}
.coin-table tbody tr:hover {
    background: #f8fafc;
}
.coin-table tbody tr:last-child {
    border-bottom: none;
}
.coin-table td {
    padding: 12px 16px;
    text-align: right;
    font-size: 13px;
    color: #2d3748;
    white-space: nowrap;
}
.coin-table td:first-child {
    text-align: left;
    width: 50px;
}
.coin-table td:nth-child(2) {
    text-align: left;
}
.coin-rank {
    font-size: 13px;
    color: #a0aec0;
    font-weight: 500;
}
.coin-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
}
.coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coin-icon.fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
}
.coin-info {
    display: flex;
    flex-direction: column;
}
.coin-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a8cd9;
    text-decoration: none;
    transition: color 0.2s;
}
.coin-name:hover {
    color: #1576bc;
    text-decoration: underline;
}
.coin-symbol {
    font-size: 12px;
    color: #a0aec0;
}
.coin-price {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}
.coin-change {
    font-size: 13px;
    font-weight: 500;
}
.coin-change.up {
    color: #22c55e;
}
.coin-change.down {
    color: #ef4444;
}
.coin-change.up-bg {
    background: #dcfce7;
}
.coin-change.down-bg {
    background: #fee2e2;
}
.coin-volume {
    color: #718096;
}
.coin-marketcap {
    color: #718096;
}
.coin-flow {
    font-size: 12px;
}
.coin-flow.positive {
    color: #22c55e;
}
.coin-flow.negative {
    color: #ef4444;
}
.coin-loading {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 14px;
}
.coin-load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    font-size: 14px;
    background: #1a8cd9;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.coin-load-more:hover {
    background: #1576bc;
}
.coin-load-more:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}
.coin-load-more.hidden {
    display: none;
}
@media (max-width: 768px) {
    .coin-hero {
        padding: 20px;
        border-radius: 12px;
    }
    .coin-header {
        flex-direction: column;
        gap: 16px;
    }
    .coin-header h1 {
        font-size: 22px;
    }
    .coin-header p {
        font-size: 13px;
    }
    .coin-search input {
        padding: 12px 44px 12px 44px;
        font-size: 14px;
    }
    .coin-search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
    .coin-table {
        display: block;
        overflow-x: auto;
    }
    .coin-table-wrapper {
        overflow-x: auto;
    }
}
