* {
    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;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(240, 165, 0, 0.3);
}

.header h1 {
    font-size: 3rem;
    color: #f0a500;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(240, 165, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 165, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #f0a500;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Section headers */
.my-achievements-section,
.catalog-section {
    margin-bottom: 3rem;
}

.my-achievements-section h2,
.catalog-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f0a500;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Achievement Card */
.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.achievement-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 165, 0, 0.5);
}

.achievement-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.achievement-card .target {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0.75rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f0a500, #ff6b35);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0a500 !important;
    margin-bottom: 0.75rem !important;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-take {
    background: transparent;
    border: 2px solid #f0a500;
    color: #f0a500;
}

.btn-take:hover {
    background: #f0a500;
    color: #1a1a2e;
}

.btn-progress {
    background: #f0a500;
    color: #1a1a2e;
    font-size: 1.2rem;
    padding: 0.6rem 2rem;
}

.btn-progress:hover {
    background: #ff6b35;
    transform: scale(1.05);
}

/* Completed State */
.achievement-card.completed {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.completed-badge {
    display: inline-block;
    background: #4ade80;
    color: #1a1a2e;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.85rem;
}

.footer p {
    margin: 0.3rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 250px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}
