* {
    box-sizing: border-box;
}

:root {
    --text: #202333;
    --muted: #5d6270;
    --card-border: rgba(40, 45, 70, .08);
    --shadow: 0 7px 20px rgba(32, 36, 55, .08);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #f4f5f7;
}

body {
    padding: 14px;
}

button {
    font: inherit;
}

.app-shell {
    max-width: 1080px;
    min-height: calc(100vh - 28px);
    margin: auto;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(25, 30, 50, .10);
    position: relative;
    padding-bottom: 95px;
}

.topbar {
    height: 115px;
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    padding: 10px 25px 0;
}

.icon-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: relative;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.menu-btn span {
    width: 31px;
    height: 4px;
    border-radius: 3px;
    background: #222b35;
}

.notification-btn {
    justify-self: end;
    font-size: 37px;
    line-height: 1;
}

.bell {
    display: inline-block;
    transform: rotate(180deg);
    font-size: 40px;
}

.notification-dot {
    position: absolute;
    right: 6px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff3158;
    border: 2px solid #fff;
}

.brand {
    text-align: center;
    text-decoration: none;
}

.brand-name {
    display: block;
    font-weight: 800;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .95;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #3d1c8e, #b31caa, #ff2854);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-name span {
    color: #f22b59;
}

.brand-tagline {
    display: block;
    margin-top: 10px;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 600;
    color: #303747;
}

.hero {
    text-align: center;
    padding: 18px 20px 24px;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    margin: 0;
    font-weight: 750;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 0 34px;
}

.category-card {
    min-height: 148px;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 22px 28px;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(32, 36, 55, .13);
}

.category-icon {
    width: 92px;
    height: 92px;
    min-width: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 45px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.category-copy strong {
    display: block;
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.15;
    margin-bottom: 9px;
}

.category-copy small {
    display: block;
    color: #343946;
    font-size: 17px;
    line-height: 1.35;
}

.green {
    background: #effbf5;
    color: #08633c;
}

.lime {
    background: #f4fbe9;
    color: #285d0e;
}

.purple {
    background: #f7f2ff;
    color: #392080;
}

.orange {
    background: #fff7ed;
    color: #ad4017;
}

.blue {
    background: #eff8ff;
    color: #12429b;
}

.pink {
    background: #fff1f5;
    color: #a2183f;
}

.red {
    background: #fff1f5;
    color: #a71c38;
}

.violet {
    background: #f6f1ff;
    color: #4a2295;
}

.gold {
    background: #fff9e9;
    color: #b76400;
}

.today-card {
    margin: 22px 34px 0;
    min-height: 205px;
    border: 1px solid #f4dfae;
    border-radius: 27px;
    background: linear-gradient(110deg, #fffaf0, #fff8e7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 36px;
}

.today-copy {
    flex: 1;
}

.today-title {
    font-size: 28px;
    font-weight: 750;
    color: #db5e12;
    margin-bottom: 10px;
}

.today-copy p {
    font-size: 20px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.primary-btn {
    min-width: 250px;
    border: 0;
    border-radius: 13px;
    padding: 14px 25px;
    color: white;
    background: linear-gradient(90deg, #f47b12, #f55b0b);
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(242, 99, 15, .20);
}

.primary-btn span {
    font-size: 29px;
    vertical-align: -2px;
    margin-left: 8px;
}

.today-art {
    width: 190px;
    text-align: center;
    font-size: 85px;
    line-height: .8;
    transform: rotate(-4deg);
}

.today-art span {
    font-size: 60px;
    display: inline-block;
    transform: translate(35px, 15px) rotate(10deg);
}

.bottom-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 82px;
    border-radius: 23px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 25px rgba(30, 35, 50, .10);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 5;
}

.nav-item {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #515762;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.nav-item span {
    font-size: 32px;
    line-height: 1;
}

.nav-item small {
    font-size: 15px;
}

.nav-item.active {
    color: #f2265a;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 105px;
    transform: translate(-50%, 30px);
    opacity: 0;
    background: #222633;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all .25s ease;
    pointer-events: none;
    z-index: 20;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 720px) {
    body {
        padding: 0;
        background: #fff;
    }
    .app-shell {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .topbar {
        height: 94px;
        grid-template-columns: 54px 1fr 54px;
        padding: 8px 12px 0;
    }
    .brand-name {
        font-size: 35px;
        letter-spacing: -1.5px;
    }
    .brand-tagline {
        font-size: 16px;
        margin-top: 7px;
    }
    .hero {
        padding: 18px 16px 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 14px;
    }
    .category-card {
        min-height: 112px;
        border-radius: 21px;
        padding: 15px 18px;
        gap: 17px;
    }
    .category-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        font-size: 34px;
    }
    .category-copy strong {
        font-size: 21px;
        margin-bottom: 5px;
    }
    .category-copy small {
        font-size: 14px;
    }
    .today-card {
        margin: 16px 14px 0;
        padding: 20px;
        min-height: 0;
    }
    .today-title {
        font-size: 22px;
    }
    .today-copy p {
        font-size: 16px;
    }
    .primary-btn {
        min-width: 180px;
        font-size: 18px;
        padding: 12px 18px;
    }
    .today-art {
        display: none;
    }
    .bottom-nav {
        left: 7px;
        right: 7px;
        bottom: 7px;
        min-height: 70px;
        border-radius: 20px;
    }
    .nav-item span {
        font-size: 27px;
    }
    .nav-item small {
        font-size: 12px;
    }
}


/* Going Somewhere */

.leave-card {
    margin: 20px 0;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef8ff, #f7f3ff);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.leave-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: #ffffff;
}

.leave-copy h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.leave-copy p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.leave-card .primary-btn {
    margin-top: 2px;
}


/* Small button interaction animation */

.action-animate {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.action-animate:hover {
    transform: translateY(-2px);
}

.action-animate:active {
    transform: scale(0.96);
}

.action-animate span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.action-animate:hover span {
    transform: translateX(4px);
}


/* Going Somewhere card entrance */

.leave-card {
    animation: leaveCardIn 0.45s ease both;
}


/* =====================================================
   TOP HEADER MENU
   ===================================================== */

.top-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.top-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.top-menu {
    width: min(360px, 88vw);
    min-height: 100%;
    padding: 20px;
    background: #fff;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.top-menu-overlay.show .top-menu {
    transform: translateX(0);
}

.top-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.top-menu-header strong {
    font-size: 20px;
}

.top-menu-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f3f1ff;
    color: #555;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.top-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
}

.top-menu-item:active {
    transform: scale(0.98);
}

.top-menu-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f5f4ff;
    font-size: 21px;
}

.top-menu-copy {
    flex: 1;
}

.top-menu-copy strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.top-menu-copy small {
    color: #777;
    font-size: 12px;
}

.top-menu-arrow {
    color: #aaa;
    font-size: 21px;
}

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


/* ======================================================
   WHEN I'M THERE
====================================================== */

.there-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.there-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background: #eef7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.there-copy {
    flex: 1;
}

.there-copy h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.there-copy p {
    margin: 0 0 13px;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.there-copy .primary-btn {
    margin: 0;
}