body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #1a2b1f;
    color: #1a2b1f;
}

.market-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 0 32px;
    height: 64px;
    box-shadow: 0 2px 8px #e2b64922;
}

.market-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c1a149;
}

.market-nav {
    display: flex;
    gap: 24px;
}

.market-nav a {
    color: #0d2b21;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}

.market-nav a.active,
.market-nav a:hover {
    background: #e2b64922;
    color: #c1a149;
}

.market-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.market-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2b649;
    background: #fff;
}

.market-main {
    padding: 32px 4vw;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.market-row-cards {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.market-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px #e2b64922;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.market-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.market-card-value.up {
    color: #16a34a;
    font-weight: 700;
}

.market-card-value.down {
    color: #dc2626;
    font-weight: 700;
}

.material-icons.up {
    color: #16a34a;
}

.material-icons.down {
    color: #dc2626;
}

.market-row-table {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px #e2b64922;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.market-table-controls {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
}

#market-search {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2b64955;
    font-size: 1rem;
}

#market-filter {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2b64955;
    font-size: 1rem;
}

.market-table-wrapper {
    overflow-x: auto;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
}

.market-table th,
.market-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #f0e9d9;
    font-size: 1rem;
}

.market-table th {
    background: #f8f8f8;
    color: #c1a149;
    font-weight: 700;
}

.market-table td.up {
    color: #16a34a;
}

.market-table td.down {
    color: #dc2626;
}

.tradable {
    color: #16a34a;
    font-weight: 600;
}

.not-tradable {
    color: #dc2626;
    font-weight: 600;
}

.market-action-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.98rem;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.market-action-btn.buy {
    background: #16a34a;
    color: #fff;
}

.market-action-btn.sell {
    background: #dc2626;
    color: #fff;
}

.market-action-btn.swap {
    background: #c1a149;
    color: #fff;
}

.market-action-btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}


/* Responsive */

@media (max-width: 1000px) {
    .market-row-cards {
        flex-direction: column;
        gap: 12px;
    }
    .market-card {
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .market-navbar {
        flex-direction: column;
        height: auto;
        padding: 0 8px;
        gap: 8px;
    }
    .market-main {
        padding: 12px 2vw;
        gap: 18px;
    }
    .market-row-table {
        padding: 12px 4px;
    }
    .market-table-controls {
        flex-direction: column;
        gap: 8px;
    }
}