body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 24px;
}

.currency-display {
    display: flex;
    gap: 20px;
}

.currency {
    background-color: #34495e;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timer {
    font-size: 0.8em;
    color: #bdc3c7;
}

nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 10px 20px;
    background-color: #34495e;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #2c3e50;
}

.nav-btn.active {
    background-color: #e74c3c;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #2c3e50;
    border-radius: 8px;
}

.tab-content.active {
    display: block;
}

.crate-container, .bundle-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.crate-card, .bundle-card {
    background-color: #34495e;
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.crate-info, .bundle-info {
    margin: 15px 0;
    color: #bdc3c7;
}

button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2ecc71;
}

button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 10px;
}

.item-card {
    background-color: #34495e;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.item-card:hover {
    border-color: #3498db;
}

.item-card.selected {
    border-color: #e74c3c;
    background-color: #2c3e50;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
}

.item-name {
    font-size: 0.9em;
    font-weight: bold;
    display: block;
}

.item-value {
    font-size: 0.8em;
    color: #f1c40f;
}

.trading-interface {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.trade-side {
    flex: 1;
    background-color: #34495e;
    padding: 15px;
    border-radius: 8px;
    min-height: 300px;
}

.trade-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 150px;
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
}

.small-grid .item-card {
    padding: 5px;
}

.small-grid .item-image {
    width: 50px;
    height: 50px;
}

.result-area {
    margin-top: 20px;
    padding: 20px;
    background-color: #2ecc71;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none;
}

.bundle-items {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.bundle-item-preview img {
    width: 50px;
    height: 50px;
}

/* Rarity Colors */
.rarity-common { border-bottom: 3px solid #bdc3c7; }
.rarity-uncommon { border-bottom: 3px solid #2ecc71; }
.rarity-rare { border-bottom: 3px solid #3498db; }
.rarity-legendary { border-bottom: 3px solid #e74c3c; }
.rarity-mythical { border-bottom: 3px solid #9b59b6; }
