@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #111;
}

/* === TOPBAR === */
.topbar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #F0F0F0;
}
.back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.page-title {
    font-size: 18px;
    font-weight: 700;
}
.topbar-actions {
    display: flex;
    gap: 8px;
}
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    position: relative;
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* === BOTTOM NAV === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 10px;
    z-index: 300;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: #888;
    text-decoration: none;
    position: relative;
}
.bottom-nav a ion-icon {
    font-size: 22px;
    color: #888;
}
.bottom-nav a.active {
    color: #00A651;
}
.bottom-nav a.active ion-icon {
    color: #00A651;
}
.bottom-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(18px);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.bottom-badge.red { background: #EF4444; }
.bottom-badge.blue { background: #3B82F6; }

/* === КНОПКИ И ИКОНКИ === */
.btn-call ion-icon,
.btn-msg ion-icon,
.btn ion-icon {
    color: inherit;
}
.btn-call {
    color: #fff !important;
}

/* === DESKTOP === */
@media (min-width: 768px) {
    .topbar {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px 0;
        border-bottom: none;
    }
    .bottom-nav {
        display: none;
    }
}