/* ============================
   GLOBAL VARIABLES + RESET
============================ */
:root {
    --bg: #f2f5f8;
    --white: #fff;
    --accent: #0b84ff;
    --muted: #657786;
    --primary-text: #111;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: Inter, system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--primary-text);
}

/* ============================
          TOP BAR
============================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.logo {
    font-weight: 700;
    color: var(--accent);
    font-size: 19px;
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}

/* ============================
         PAGE WRAPPER
============================ */
.container {
    padding: 12px 12px 100px;
    max-width: 720px;
    margin: auto;
}

/* ============================
         BOTTOM NAV
============================ */
.bottom-nav {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 62px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
}

.nav-item {
    text-decoration: none;
    color: #7d8590;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-item.active {
    color: var(--accent);
}

.icon-nav {
    width: 22px;
    height: 22px;
    opacity: .85;
}

.nav-item.active .icon-nav {
    opacity: 1;
}

/* ============================
          MODAL
============================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.modal-inner {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
}

.modal-header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
}

.hidden {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}
