@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #080a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-color: #00d2ff;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --text-color: #f0f2f5;
    --secondary-text: rgba(240, 242, 245, 0.6);
    --glow-color: rgba(0, 210, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-y: auto;
    /* Enable vertical scroll */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    padding-bottom: 20px;
}

.blob {
    position: fixed;
    /* Fixed so it doesn't move with content */
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    right: -100px;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    animation-duration: 25s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.2);
    }
}

#app {
    width: 100%;
    max-width: 100vw;
    /* Strict width limit */
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
    padding-top: 20px;
    /* Space for the TG bar */
}

main {
    flex-grow: 1;
}

header {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.glow-text {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px var(--glow-color);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--secondary-text);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.8;
}

.content {
    font-size: 0.95rem;
    line-height: 1.4;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-name {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 10px;
}

.glass-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--glow-color);
}

.glass-btn:hover {
    background: rgba(88, 166, 255, 0.3);
    box-shadow: 0 0 15px var(--glow-color);
}

footer {
    padding-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeIn 0.5s ease forwards;
}

#weekly-card {
    animation-delay: 0.1s;
}

#total-card {
    animation-delay: 0.2s;
}