* {
  box-sizing: border-box;
  }

body {
margin: 0;
background: #f3f8ff;
color: #172b4d;
font-family: Arial, sans-serif;
}

.notifications-page {
width: 100%;
max-width: 850px;
min-height: 100vh;
margin: auto;
background: #ffffff;
padding-bottom: 85px;
}

/* HEADER */

.notification-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 15px 18px;
background: #ffffff;
border-bottom: 1px solid #e8eff8;
position: sticky;
top: 0;
z-index: 50;
}

.back-home {
width: 38px;
height: 38px;
border-radius: 50%;
background: #eef6ff;
color: #168bfa;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
}

.header-title {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
}

.header-title h2 {
font-size: 19px;
margin: 0 0 4px;
color: #172b4d;
}

.header-title span {
font-size: 11px;
color: #8292a8;
}

.header-more {
width: 38px;
height: 38px;
border: none;
border-radius: 50%;
background: #f1f6fc;
color: #526781;
font-size: 17px;
cursor: pointer;
}

/* SUMMARY */

.notification-summary {
display: flex;
align-items: center;
gap: 13px;
margin: 18px;
padding: 17px;
border-radius: 16px;
background: linear-gradient(120deg, #e8f4ff, #f4f9ff);
border: 1px solid #dcecff;
}

.summary-icon {
width: 45px;
height: 45px;
flex-shrink: 0;
border-radius: 14px;
background: #168bfa;
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 19px;
}

.summary-text {
flex: 1;
min-width: 0;
}

.summary-text h3 {
font-size: 14px;
margin: 0 0 5px;
color: #183b66;
}

.summary-text p {
margin: 0;
font-size: 11px;
color: #7186a1;
line-height: 1.5;
}

.unread-count {
min-width: 27px;
height: 27px;
padding: 0 7px;
border-radius: 20px;
background: #168bfa;
color: white;
font-size: 12px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
}

/* CONTROLS */

.notification-controls {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
padding: 0 18px 13px;
border-bottom: 1px solid #edf1f7;
}

.notification-tabs {
display: flex;
gap: 8px;
}

.notification-tab {
border: none;
background: #f0f5fb;
color: #73859c;
border-radius: 20px;
padding: 9px 15px;
font-size: 12px;
font-weight: bold;
cursor: pointer;
}

.notification-tab.active {
background: #168bfa;
color: white;
}

.notification-tab span {
margin-left: 4px;
}

.mark-all-button {
border: none;
background: transparent;
color: #168bfa;
font-size: 11px;
font-weight: bold;
cursor: pointer;
padding: 8px 0;
}

/* NOTIFICATION CARDS */

.notifications-content {
padding: 8px 12px;
}

.notification-card {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 15px 10px;
margin: 4px 0;
border-bottom: 1px solid #edf2f8;
border-radius: 12px;
cursor: pointer;
transition: background .2s;
}

.notification-card:active {
background: #eaf4ff;
}

.notification-card.unread {
background: #f0f7ff;
}

.notification-avatar-wrap {
width: 48px;
height: 48px;
flex-shrink: 0;
position: relative;
}

.notification-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
background: #e7f1fc;
}

.notification-type-icon {
position: absolute;
right: -3px;
bottom: -3px;
width: 21px;
height: 21px;
border: 2px solid white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 9px;
}

.icon-friend {
background: #168bfa;
}

.icon-message {
background: #13b981;
}

.icon-like {
background: #f04470;
}

.icon-comment {
background: #8959e8;
}

.icon-group {
background: #e69a26;
}

.icon-default {
background: #718096;
}

.notification-details {
flex: 1;
min-width: 0;
}

.notification-details p {
margin: 1px 0 6px;
font-size: 13px;
color: #34465e;
line-height: 1.55;
overflow-wrap: anywhere;
}

.notification-details strong {
color: #172b4d;
}

.notification-time {
font-size: 10px;
color: #91a0b4;
}

.notification-unread-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #168bfa;
margin: 8px 4px 0;
flex-shrink: 0;
}

.notification-empty {
text-align: center;
padding: 65px 20px;
}

.notification-empty i {
font-size: 45px;
color: #c6ddf5;
margin-bottom: 15px;
}

.notification-empty h3 {
font-size: 16px;
color: #34465e;
}

.notification-empty p {
color: #91a0b4;
font-size: 12px;
line-height: 1.6;
}

.notification-loading {
text-align: center;
padding: 55px 10px;
color: #168bfa;
}

.notification-loading p {
font-size: 12px;
color: #8191a7;
}

/* BOTTOM NAVIGATION */

.notification-bottom-nav {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 850px;
display: flex;
align-items: center;
justify-content: space-around;
background: white;
border-top: 1px solid #e7edf5;
padding: 10px 3px calc(10px + env(safe-area-inset-bottom));
z-index: 100;
}

.notification-bottom-nav a {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
color: #91a0b4;
font-size: 10px;
text-decoration: none;
min-width: 44px;
}

.notification-bottom-nav a i {
font-size: 18px;
}

.notification-bottom-nav a:hover {
color: #168bfa;
}

@media (min-width: 700px) {

.notifications-page {
    border-left: 1px solid #edf1f7;
    border-right: 1px solid #edf1f7;
}

.notification-card {
    padding: 17px 14px;
}

}

@media (max-width: 380px) {

.notification-summary {
    margin: 12px;
    padding: 13px;
}

.notification-controls {
    padding-left: 12px;
    padding-right: 12px;
}

.mark-all-button {
    font-size: 10px;
}

.notification-tab {
    padding: 8px 12px;
}

.notification-bottom-nav a {
    font-size: 9px;
}

}