﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0d0d12;
    --surface: #16161e;
    --surface2: #1e1e2a;
    --accent: #7c6dfa;
    --accent2: #f472b6;
    --accent3: #34d399;
    --text: #e8e8f0;
    --muted: #9999b3;
    --nav-h: 72px;
    --water: #3cbdec;
}

/*html {
    font-size: 16px;
}*/

/*body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}
*/
/* ── PAGE CONTENT ── */
.page {
    padding: 24px 20px calc(var(--nav-h) + 24px);
    max-width: 480px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-top: 12px;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
}

/* Cards */
.hero-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(124,109,250,.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    .hero-card::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(124,109,250,.25) 0%, transparent 70%);
    }

    .hero-card h2 {
        font-family: 'Syne', sans-serif;
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .hero-card p {
        color: var(--muted);
        font-size: .88rem;
        line-height: 1.55;
    }

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 16px;
    padding: 18px;
}

.stat-label {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

    .stat-value.green {
        color: var(--accent3);
    }

    .stat-value.pink {
        color: var(--accent2);
    }

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

    .activity-icon.purple {
        background: rgba(124,109,250,.15);
    }

    .activity-icon.pink {
        background: rgba(244,114,182,.15);
    }

    .activity-icon.green {
        background: rgba(52,211,153,.15);
    }

.activity-info {
    flex: 1;
}

.activity-title {
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-sub {
    font-size: .75rem;
    color: var(--muted);
}

.activity-amount {
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    font-weight: 600;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    align-items: center;
    justify-content: center;
    padding: 0 8px 8px;
    z-index: 100;
}

.nav-pill {
    width: 100%;
    max-width: 480px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 24px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 32px rgba(0,0,0,.12), 0 2px 0 rgba(255,255,255,.8) inset;
}

.nav-itemBt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

    .nav-itemBt:not(.active):hover {
        background: rgba(255,255,255,.04);
    }

    /* Active indicator blob */
    .nav-itemBt.active::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(124,109,250,.14), rgba(124,109,250,.06));
        border: 1px solid rgba(124,109,250,.25);
        animation: blobIn .25s cubic-bezier(.34,1.56,.64,1) both;
    }

@keyframes blobIn {
    from {
        transform: scale(.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Center FAB item */
.nav-itemBt.fab {
    flex: 0 0 56px;
}

    .nav-itemBt.fab .fab-btn {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--accent), #3cbdec);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(124,109,250,.5);
        transition: transform .15s, box-shadow .15s;
    }

    .nav-itemBt.fab:active .fab-btn {
        transform: scale(.92);
        box-shadow: 0 2px 10px rgba(124,109,250,.4);
    }

.fab-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Icons */
.nav-icon {
    width: 22px;
    height: 22px;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    z-index: 1;
}

.nav-itemBt.active .nav-icon {
    transform: scale(1.1) translateY(-1px);
}

.nav-label {
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .03em;
    color: var(--muted);
    transition: color .2s;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.nav-itemBt.active .nav-label {
    color: var(--accent);
    font-weight: 600;
}

/* Badge */
.badge {
    position: absolute;
    top: 5px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    border: 2px solid var(--bg);
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(244,114,182,.6);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(244,114,182,0);
    }
}

/* Ripple on tap */
.nav-itemBt:active .nav-icon {
    transform: scale(.85);
}

/* ── SVG ICONS ── */
svg.icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* ── TOOLTIP ── */
.nav-itemBt .tip {
    position: absolute;
    bottom: calc(100% + 8px);
    background: var(--surface2);
    color: var(--text);
    font-size: .7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s;
    border: 1px solid rgba(255,255,255,.06);
}

.nav-itemBt:hover .tip {
    opacity: 1;
    transform: translateY(0);
}

/* ── SHOW ON MOBILE ONLY ── */
.bottom-nav {
    display: none; /* hidden by default (desktop) */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex; /* show only on mobile */
    }
}

/* ── DESKTOP HINT ── */
.desktop-note {
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
    margin-top: 28px;
    padding: 10px;
    border: 1px dashed rgba(255,255,255,.07);
    border-radius: 12px;
}

/* Responsive tweak for very small screens */
@media (max-width: 360px) {
    .nav-label {
        font-size: .55rem;
    }

    .nav-pill {
        padding: 4px 4px;
    }
}
