:root {
    --bg-color: #08080a;
    --accent-color: #ff523b;
    --accent-hover: #ff361c;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

.navbar {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1750px;
    margin: 0 auto;
    padding: 12px 30px;
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
}

.mobile-nav-panel {
    display: contents;
}

.mobile-menu-toggle {
    display: none;
}

.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.nav-logo i,
.status-badge i {
    color: var(--accent-color);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    color: #000;
    background: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text-main);
}

.nav-auth {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.notification-center {
    flex: 0 0 auto;
}

.nav-auth .btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.nav-auth .btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1050px) {
    .status-badge {
        display: none;
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .navbar {
        top: max(12px, env(safe-area-inset-top));
    }

    .nav-container {
        width: calc(100% - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right)));
        padding: 10px 14px;
        border-radius: 16px;
    }

    .nav-logo {
        font-size: 17px;
    }

    .mobile-menu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        padding: 11px 10px;
        place-content: center;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.055);
        color: #fff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 5px;
        background: currentColor;
        transition:
            transform 0.22s ease,
            opacity 0.18s ease;
    }

    .is-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .is-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .is-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-nav-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100svh - 96px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 17px;
        background: rgba(16, 16, 20, 0.97);
        box-shadow: 0 24px 65px rgba(0, 0, 0, 0.58);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
    }

    .is-menu-open .mobile-nav-panel {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav-panel .nav-links {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .mobile-nav-panel .nav-links a {
        display: flex;
        min-height: 46px;
        align-items: center;
        padding: 11px 14px;
        border-radius: 11px;
        color: rgba(255, 255, 255, 0.76);
    }

    .mobile-nav-panel .nav-links a.active,
    .mobile-nav-panel .nav-links a:hover {
        color: #fff;
        background: rgba(255, 82, 59, 0.12);
    }

    .mobile-nav-panel .nav-auth {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .mobile-nav-panel .nav-auth .btn-login {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        justify-content: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }
}

@media (max-width: 430px) {
    .nav-logo {
        font-size: 15px;
        letter-spacing: -0.3px;
    }

    .nav-container {
        padding: 8px 10px 8px 13px;
    }
}

.notification-center {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--text-muted, #9ca3af);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    cursor: pointer;
}

.notification-bell:hover,
.notification-bell.has-unread {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(59, 130, 246, 0.13);
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    color: #fff;
    background: #ef4444;
    border: 2px solid #111827;
    border-radius: 999px;
    font:
        800 9px/15px Inter,
        sans-serif;
}

.notification-popover {
    position: absolute;
    z-index: 10020;
    top: calc(100% + 12px);
    right: 0;
    width: min(410px, calc(100vw - 24px));
    overflow: hidden;
    color: #e5e7eb;
    background: rgba(15, 19, 28, 0.985);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(20px);
}

.notification-popover > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-popover > header strong,
.notification-popover > header small {
    display: block;
}

.notification-popover > header strong {
    font:
        850 14px Inter,
        sans-serif;
}

.notification-popover > header small {
    margin-top: 4px;
    color: #7f8a9a;
    font:
        600 9px Inter,
        sans-serif;
}

.notification-read-all {
    padding: 6px 8px;
    color: #79aaff;
    background: transparent;
    border: 0;
    font:
        750 9px Inter,
        sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.notification-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 12px 15px;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.045);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.075);
}

.notification-item.unread strong:after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    background: #60a5fa;
    border-radius: 50%;
}

.notification-type {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.13);
    border-radius: 11px;
}

.notification-type.type-sms {
    color: #86efac;
    background: rgba(34, 197, 94, 0.13);
}

.notification-type.type-gram {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.13);
}

.notification-type.type-bank {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.13);
}

.notification-item strong,
.notification-item small,
.notification-item time {
    display: block;
}

.notification-item strong {
    overflow: hidden;
    color: #f3f4f6;
    font:
        800 11px/1.3 Inter,
        sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item small {
    margin-top: 3px;
    overflow: hidden;
    color: #a3acb9;
    font:
        550 9px/1.4 Inter,
        sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-item time {
    margin-top: 5px;
    color: #657080;
    font:
        650 8px Inter,
        sans-serif;
}

.notification-empty {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #697486;
    font:
        650 10px Inter,
        sans-serif;
}

.notification-empty i {
    font-size: 22px;
}

.notification-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-settings summary {
    padding: 12px 15px;
    color: #aeb8c7;
    font:
        750 10px Inter,
        sans-serif;
    cursor: pointer;
}

.notification-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    padding: 0 15px 15px;
}

.notification-settings-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 1px;
    color: #98a2b1;
    font:
        650 9px Inter,
        sans-serif;
}

.notification-settings-grid input {
    accent-color: #3b82f6;
}

.notification-settings-grid .notification-master {
    grid-column: 1/-1;
    color: #eef2f7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notification-settings.all-disabled label:not(.notification-master) {
    opacity: 0.48;
}

@media (max-width: 820px) {
    .notification-center {
        order: -1;
    }

    .notification-popover {
        position: fixed;
        top: 72px;
        right: 12px;
    }

    .notification-settings-grid {
        grid-template-columns: 1fr;
    }

    .notification-settings-grid .notification-master {
        grid-column: auto;
    }
}
