.site-notification-icon {
    position: relative;
}

.badge-notify {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d94841;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    position: absolute;
    top: -8px;
    right: -12px;
    box-shadow: 0 6px 16px rgba(217, 72, 65, 0.28);
}

.badge-notify[data-count-size="multi"] {
    width: auto;
    min-width: 24px;
    padding: 0 7px;
}

.badge-notify:empty,
.badge-notify.is-hidden,
.badge-notify[hidden] {
    display: none !important;
}

.site-notification-menu {
    width: 380px;
    max-width: calc(100vw - 32px);
    padding: 0;
    border: 1px solid rgba(18, 34, 52, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(14, 28, 45, 0.18);
    background: #fff;
}

.notification-menu__header {
    padding: 16px 18px 12px;
    background: linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
    border-bottom: 1px solid rgba(18, 34, 52, 0.08);
}

.notification-menu__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.notification-menu__title strong {
    color: #132235;
    font-size: 15px;
    font-weight: 700;
}

.notification-menu__subtitle {
    color: #5b6b7f;
    font-size: 12px;
    line-height: 1.5;
}

.notification-permission-message {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #5b6b7f;
}

.notification-permission-message[hidden] {
    display: none !important;
}

.notification-permission-message--success {
    color: #177245;
}

.notification-permission-message--warning {
    color: #a14c15;
}

.notification-permission-message--info {
    color: #5b6b7f;
}

.notification-menu__toolbar,
.notification-page__toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.notification-menu__body {
    max-height: 440px;
    overflow-y: auto;
    background: #f5f7fb;
}

.notification-menu__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(18, 34, 52, 0.08);
    background: #fff;
}

.notification-menu__footer a,
.notification-menu__footer button,
.notification-page__toolbar button,
.notification-page__toolbar a,
.notification-center__button {
    background: none;
    border: none;
    color: #0d4f8b;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
}

.notification-menu__footer button[disabled],
.notification-page__toolbar button[disabled],
.notification-center__button[disabled] {
    color: #9aa5b2;
    cursor: default;
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(18, 34, 52, 0.06);
    color: #132235;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease, transform 0.15s ease;
}

.notification-item:hover,
.notification-item:focus {
    text-decoration: none;
    background: #f8fbff;
}

.notification-item--unseen {
    background: linear-gradient(90deg, rgba(232, 242, 255, 0.95) 0%, #ffffff 28%);
}

.notification-item__row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.notification-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3fa;
    color: #0d4f8b;
    flex: 0 0 auto;
    font-size: 16px;
}

.notification-item__icon--contract {
    background: #e8f1ff;
    color: #245db0;
}

.notification-item__icon--contract-payment {
    background: #e7f8ef;
    color: #177245;
}

.notification-item__icon--key {
    background: #fff4dc;
    color: #a76b00;
}

.notification-item__icon--wash-task {
    background: #e8f8ef;
    color: #177245;
}

.notification-item__icon--ai-chat {
    background: #ffeceb;
    color: #bf4338;
}

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

.notification-item__message {
    color: #132235;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
}

.notification-item__meta {
    color: #5b6b7f;
    font-size: 12px;
    line-height: 1.5;
}

.notification-item__secondary {
    display: block;
    margin-top: 2px;
}

.notification-item__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #7a8794;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.notification-item__time::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(13, 79, 139, 0.25);
}

.notification-item--unseen .notification-item__time::before {
    background: #d94841;
}

.notification-empty {
    padding: 36px 20px;
    text-align: center;
    color: #5b6b7f;
    font-size: 13px;
    background: #fff;
}

.notification-page {
    max-width: 920px;
    margin: 24px auto 120px;
}

.notification-page__hero {
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(145deg, #14263a 0%, #21486a 52%, #3a7398 100%);
    color: #fff;
    box-shadow: 0 24px 56px rgba(14, 28, 45, 0.16);
    margin-bottom: 20px;
}

.notification-page__hero .notification-menu__title {
    margin-bottom: 16px;
}

.notification-page__hero .notification-menu__title strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.notification-page__hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(9, 19, 31, 0.18);
}

.notification-page__hero p {
    margin: 0;
    max-width: 680px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.notification-page__panel {
    background: #fff;
    border: 1px solid rgba(18, 34, 52, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(14, 28, 45, 0.08);
    overflow: hidden;
}

.notification-page__toolbar {
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(18, 34, 52, 0.08);
    background: #f8fbff;
}

.notification-page__toolbar-note {
    color: #5b6b7f;
    font-size: 12px;
    line-height: 1.5;
}

.notification-page__list {
    background: #f5f7fb;
}

.notification-page__list .notification-item {
    padding: 18px 22px;
}

.notification-page__footer {
    padding: 18px 22px 22px;
    text-align: center;
    background: #fff;
}

.notification-page__footer button {
    border: 1px solid rgba(13, 79, 139, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #0d4f8b;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 18px;
}

.notification-permission-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.notification-permission-chip--light {
    background: #eef4fb;
    color: #21486a;
}

.notification-permission-chip i {
    font-size: 13px;
}

@media (max-width: 767px) {
    .site-notification-menu {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .notification-page {
        margin-top: 16px;
    }

    .notification-page__hero,
    .notification-page__toolbar,
    .notification-page__list .notification-item,
    .notification-page__footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .notification-page__hero h1 {
        font-size: 26px;
    }
}
