﻿:root {
    --ink: #17233c;
    --muted: #75819a;
    --brand: #425de6;
    --line: #edf0f6;
    --page: #f5f7fb
}

* {
    box-sizing: border-box
}

html, body {
    min-height: 100%;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

body {
    min-width: 320px
}

.mobile-app {
    min-height: 100dvh;
    max-width: 760px;
    margin: 0 auto;
    background: var(--page);
    position: relative;
    padding-bottom: calc(82px + env(safe-area-inset-bottom))
}

.app-header {
    min-height: 88px;
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.eyebrow {
    font-size: .66rem;
    letter-spacing: .13em;
    font-weight: 750;
    color: #8390a8
}

.avatar-button {
    border: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    background: #e9edff;
    color: var(--brand);
    font-weight: 750
}

.app-content {
    padding: 22px 18px 18px
}

.app-screen {
    display: none;
    animation: appear .16s ease-out
}

    .app-screen.active {
        display: block
    }

    .app-screen[hidden] {
        display: none !important
    }

@keyframes appear {
    from {
        opacity: .5;
        transform: translateY(3px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.date-chip {
    font-size: .74rem;
    color: #56627a;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 7px 11px
}

.summary-card {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg,#455fe8,#3449c4);
    color: #fff;
    box-shadow: 0 10px 24px #435add2b
}

.summary-label {
    font-size: .8rem;
    color: #ffffffbf
}

.summary-amount {
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -.04em
}

.summary-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #ffffff24;
    font-weight: 750
}

.summary-divider {
    border-top: 1px solid #ffffff30;
    margin: 15px 0 12px
}

.metric-card, .empty-card, .menu-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 16px
}

.metric-card {
    min-height: 145px
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    margin-bottom: 13px;
    font-weight: 800
}

.dues-icon {
    background: #fff1e9;
    color: #e78b42
}

.groups-icon {
    background: #e9f8f2;
    color: #36a77c
}

.metric-label {
    font-size: .74rem;
    color: var(--muted);
    margin-bottom: 3px
}

.metric-value {
    font-weight: 750;
    font-size: 1.28rem;
    margin: 0
}

.metric-footnote {
    font-size: .68rem;
    color: #9aa4b7;
    margin: 3px 0 0
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 23px 1px 12px
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 10px;
    font-weight: 650;
    font-size: .75rem;
    color: #34415d
}

.quick-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 1rem
}

.collection-icon {
    color: #455fe8;
    background: #edf0ff
}

.dues-action-icon {
    color: #d78539;
    background: #fff3e8
}

.empty-card {
    text-align: center;
    padding: 24px 15px;
    color: var(--ink)
}

.empty-symbol {
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f3fa;
    color: #75819a;
    font-size: 1.05rem;
    font-weight: 700
}

.screen-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px
}

.intro-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #edf0ff;
    color: var(--brand);
    font-size: 1.35rem
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    border-radius: 13px;
    padding: 12px;
    font-weight: 650
}

    .btn-primary:disabled {
        opacity: .55
    }

.dues-total {
    border-radius: 18px;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted)
}

    .dues-total .h3 {
        color: var(--ink);
        font-weight: 750
    }

.filter-row {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding: 16px 0
}

.filter-chip {
    background: #fff;
    color: #67738a;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 7px 15px;
    font-size: .77rem;
    white-space: nowrap
}

    .filter-chip.selected {
        color: var(--brand);
        background: #edf0ff;
        border-color: #dce2ff
    }

.report-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px
}

.period-button {
    border: 0;
    background: none;
    color: #384663;
    font-size: .8rem;
    font-weight: 650
}

.report-total {
    min-height: auto
}

.menu-list {
    padding: 3px 14px
}

.menu-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    font-size: .88rem;
    color: #34415d
}

    .menu-row:last-child {
        border-bottom: 0
    }

.menu-row-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f1f3fa;
    color: #5b6ce0;
    font-size: 1rem
}

.row-chevron {
    margin-left: auto;
    font-size: 1.3rem;
    color: #a7b0c0
}

.bottom-nav {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%,760px);
    display: grid;
    grid-template-columns: repeat(5,1fr);
    padding: 8px 5px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 18px #2733540b
}

.nav-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #929caf;
    font-size: .61rem;
    font-weight: 600;
    padding: 2px
}

    .nav-item.active {
        color: var(--brand)
    }

.nav-icon {
    height: 23px;
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 500
}

@media(min-width:768px) {
    .mobile-app {
        margin: 18px auto;
        min-height: calc(100dvh - 36px);
        border: 1px solid #e7eaf1;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 18px 60px #27335412
    }

    .bottom-nav {
        bottom: 18px;
        border-radius: 0 0 23px 23px
    }

    .app-content {
        padding: 26px 26px 32px
    }
}

@media(min-width:992px) {
    body {
        display: grid;
        place-items: center;
        min-height: 100vh;
        padding: 24px
    }

    .mobile-app {
        display: none
    }

    .desktop-notice {
        display: block !important;
        color: #75819a;
        font-size: 1rem
    }
}

.desktop-notice {
    display: none
}
