:root {
    --bg-dark: #05080c;
    --bg-card: #0e121b;
    --primary: #F0B90B;
    --accent: #00f3ff;
    --text-white: #ffffff;
    --text-muted: #8b9bb4;
    --border: #1e2636;
    --success: #0ecb81;
    --danger: #ff4d4d;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #0b101a;
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ret-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.ret-btn:hover {
    color: var(--primary);
}

.container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.val {
    font-size: 24px;
    font-weight: 700;
}

.change {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.up {
    color: var(--success);
}

.down {
    color: var(--danger);
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.table-head {
    display: flex;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.list-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: 14px;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
    margin-right: 12px;
}

.rank {
    width: 30px;
    color: var(--text-muted);
}

.name {
    flex: 1;
    font-weight: 600;
}

.price {
    width: 100px;
    text-align: right;
}

.pct {
    width: 80px;
    text-align: right;
}

.mcap {
    width: 120px;
    text-align: right;
    color: var(--text-muted);
}

@media(max-width: 1000px) {

    .grid-stats,
    .main-grid {
        grid-template-columns: 1fr;
    }
}