:root {
    /* Bags UI green + dark theme */
    --bg: #0b0d0f;
    --panel: #121518;
    --panel-2: #171b20;
    --panel-3: #1b2026;
    --stroke: #1f252c;
    --muted: #9aa3ae;
    --text: #e7edf3;
    --accent: #22c55e; /* primary green */
    --accent-strong: #16a34a;
    --accent-muted: rgba(34, 197, 94, 0.18);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 600px at 10% -10%, rgba(34, 197, 94, 0.06), transparent),
                radial-gradient(900px 500px at 90% -10%, rgba(34, 197, 94, 0.08), transparent),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 0 60px;
    background: linear-gradient(180deg, rgba(34,197,94,0.06), transparent 40%), var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.45));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.tagline {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.next-burn-card {
    max-width: 400px;
    width: 100%;
}

.stat-card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel-3));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 160px at -10% -20%, var(--accent-muted), transparent 60%),
                radial-gradient(600px 160px at 110% -20%, var(--accent-muted), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    border-color: rgba(34, 197, 94, 0.35);
}

.stat-card h3 {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-unit { color: var(--muted); font-size: 0.9rem; }

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Burn Explanation */
.burn-explanation h2 {
    color: var(--text);
    font-size: 1.75rem;
    margin-bottom: 22px;
    text-align: center;
}

.explanation-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.explanation-card {
    background: var(--panel-2);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.25s ease;
}

.explanation-card:hover { border-color: rgba(34,197,94,0.35); transform: translateX(4px); }

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #04150a;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
}

.explanation-card h4 { color: var(--text); margin-bottom: 4px; font-size: 1.05rem; font-weight: 700; }

.explanation-card p { color: var(--muted); line-height: 1.6; }

/* Burn History */
.burn-history h2 { color: var(--text); font-size: 1.75rem; margin-bottom: 22px; text-align: center; }

.burn-list {
    background: var(--panel-2);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.burn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--panel-3);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.burn-item:hover { background: #1e252c; border-color: rgba(34,197,94,0.28); }

.burn-item.loading { justify-content: center; color: var(--muted); font-style: italic; }

.loading-text { animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.burn-details { display: flex; flex-direction: column; gap: 5px; }

.burn-amount { color: var(--text); font-weight: 800; font-size: 1.05rem; }

.burn-tx { color: var(--muted); font-size: 0.86rem; }

.burn-time { color: var(--muted); font-size: 0.86rem; text-align: right; }

/* Floating Notification */
.floating-burn-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0f1512;
    color: var(--text);
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(34, 197, 94, 0.08) inset;
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.burn-flame { font-size: 1.8rem; animation: bounce 1s infinite; filter: drop-shadow(0 0 10px rgba(34,197,94,0.5)); }

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.burn-message strong { display: block; margin-bottom: 5px; color: var(--text); }

/* Footer */
.footer { text-align: center; padding: 30px 0; border-top: 1px solid var(--stroke); color: var(--muted); }

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    transition: all 0.2s ease;
    background: linear-gradient(180deg, rgba(34,197,94,0.09), rgba(34,197,94,0.06));
}

.social-link:hover { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.35); }

/* Responsive Design */
@media (max-width: 768px) {
    .container { padding: 15px; }
    
    h1 { font-size: 2.2rem; }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        padding: 0 20px;
    }
    
    .next-burn-card {
        max-width: 300px;
    }
    
    .explanation-card {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-burn-notification { left: 20px; right: 20px; top: auto; bottom: 20px; }
}

/* Scrollbar Styling */
.burn-list::-webkit-scrollbar {
    width: 8px;
}

.burn-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); border-radius: 4px; }

.burn-list::-webkit-scrollbar-thumb { background: #2e7d47; border-radius: 4px; }

.burn-list::-webkit-scrollbar-thumb:hover { background: #34a853; }
