/* ── Shared top bar ──────────────────────────────────────────── */

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    margin-bottom: 12px;
}

.user-card-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-copy-inline {
    min-width: 0;
}

.user-greeting {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 2px;
}

.user-name-inline {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--purple));
    padding: 2px;
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface-2);
}

/* ── Page title ──────────────────────────────────────────────── */

.page-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    padding: 8px 0 4px;
}

.page-subtitle {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ── Hamburger menu ──────────────────────────────────────────── */

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger-btn span {
    display: block !important;
    width: 24px;
    height: 2px;
    min-height: 2px;
    background: var(--text, #e8e0d0);
    border-radius: 2px;
    transition: all 0.2s;
    pointer-events: none;
}

.hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.menu-drawer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}

.menu-drawer-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.menu-drawer-link:active {
    background: rgba(201, 168, 76, 0.1);
}

/* ── Shared bottom navigation ─────────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 388px;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-btn {
    flex: 1;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.bottom-nav-btn.active {
    color: var(--gold-light);
}

.nav-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 22px);
    background: var(--gold);
    color: #000;
    font-size: 8px;
    font-weight: 800;
    min-width: 16px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 999px;
    padding: 0 3px;
    pointer-events: none;
}

