:root {
    --bg-color: #0b0f19;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #8b5cf6;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Effects */
.glass-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 242, 254, 0.1), transparent 40%);
    z-index: -2;
}

.circles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.circle-1 {
    width: 300px; height: 300px;
    background: var(--accent);
    top: -100px; right: -50px;
    animation: float 10s ease-in-out infinite alternate;
}

.circle-2 {
    width: 250px; height: 250px;
    background: var(--primary);
    bottom: 100px; left: -100px;
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin: 16px;
    border-radius: 16px;
}

.user-info {
    font-weight: 600;
    font-size: 1.1rem;
}

.stats-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

/* Main Content */
#app-content {
    flex: 1;
    padding: 0 16px 100px 16px;
    position: relative;
}

.view {
    position: absolute;
    top: 0; left: 16px; right: 16px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.view:not(.active) {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Play View */
.question-card {
    padding: 30px 24px;
    text-align: center;
    margin-top: 20px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    margin-bottom: 20px;
}

.question-card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.options-grid {
    display: grid;
    gap: 16px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.15);
}

/* Profile View */
.profile-card {
    padding: 24px;
    margin-top: 20px;
}

.profile-card h2 {
    margin-bottom: 12px;
}

.tribu-tag {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.tribu-tag span {
    color: var(--accent);
    font-weight: 600;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.mt-4 { margin-top: 24px; }
.mt-3 { margin-top: 16px; }

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 1s cubic-bezier(0.1, 0, 0.1, 1);
}

.progress-fill.highlight {
    background: linear-gradient(90deg, #f43f5e, #fb923c);
}

/* Store View */
.store-item {
    padding: 20px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.store-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 180px;
}

.btn-buy {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--accent);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
}

.btn-buy:active {
    background: var(--accent);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-around;
    padding: 12px 8px;
    border-radius: 20px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-btn.active {
    color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-btn .icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* Animations */
.fade-up {
    animation: fadeUp 0.5s forwards ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
