* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #aaa;
    font-size: 1.1rem;
}

.tagline a {
    color: #64ffda;
    text-decoration: none;
}

.tagline a:hover {
    text-decoration: underline;
}

section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

section h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #64ffda;
}

/* API Instructions */
.api-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.step {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #64ffda;
}

.step h3 {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.step code {
    display: block;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #64ffda;
    word-break: break-all;
}

.auth-note {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.slot {
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slot-number {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.slot h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.slot .price {
    font-size: 1.25rem;
    color: #64ffda;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.slot .design {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.slot .quantity {
    font-size: 0.8rem;
    color: #888;
}

.empty-slot {
    opacity: 0.5;
    border-color: rgba(255, 100, 100, 0.3);
}

.sold-out {
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    padding: 2rem 0;
}

/* Purchases List */
.purchases-list {
    max-height: 300px;
    overflow-y: auto;
}

.purchase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.purchase .buyer {
    color: #64ffda;
    font-weight: 500;
}

.purchase .bought {
    color: #666;
}

.purchase .item-name {
    color: #fff;
    font-weight: 500;
}

.purchase .time {
    color: #555;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Stats */
.stats-display {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #64ffda;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.stat.popular .stat-value {
    font-size: 1rem;
    color: #ffd93d;
}

/* Utilities */
.loading, .empty {
    text-align: center;
    color: #666;
    padding: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-size: 0.85rem;
}

footer a {
    color: #64ffda;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.75rem;
    color: #555;
    margin: 0.5rem 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}
