/* =====================================================================
   BİLDİRİM SİSTEMİ
   ===================================================================== */

/* ---------- Zil ---------- */
.notif-wrap {
    position: relative;
    display: inline-flex;
    background: linear-gradient(180deg, rgba(20, 16, 10, .95), rgba(10, 10, 8, .98)) !important;
    border: 1px solid rgba(217, 170, 74, 0.25) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.notif-bell {
    position: relative;
    background: transparent;
    border: none;
    color: #d9dae9;
    font-size: 14px;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 1;
    transition: color .18s ease;
}

.notif-bell:hover {
    color: #f2c45e;
}

.notif-bell.has-new i {
    animation: notifShake 1.1s ease-in-out 2;
}

@keyframes notifShake {

    0%,
    100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-12deg);
    }

    60% {
        transform: rotate(8deg);
    }

    80% {
        transform: rotate(-6deg);
    }
}

.notif-count {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e8443a;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(10, 10, 8, .9);
}

.notif-count.d-none {
    display: none;
}

/* ---------- Panel ---------- */
.notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: linear-gradient(160deg, #17170f, #0c0c0a);
    border: 1px solid rgba(217, 170, 74, .35);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .65);
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.notif-panel.open {
    display: block;
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.notif-panel-title {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
}

.notif-panel-title .notif-dot {
    color: #4da3ff;
    font-size: 7px;
    vertical-align: middle;
    margin-right: 5px;
}

.notif-readall {
    background: rgba(217, 170, 74, .14);
    border: 1px solid rgba(217, 170, 74, .4);
    color: #f2c45e;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 4px 9px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.notif-readall:hover {
    background: #d9aa4a;
    color: #12100a;
}

.notif-panel-body {
    max-height: 380px;
    overflow-y: auto;
}

.notif-panel-body::-webkit-scrollbar {
    width: 6px;
}

.notif-panel-body::-webkit-scrollbar-thumb {
    background: rgba(217, 170, 74, .35);
    border-radius: 3px;
}

.notif-loading,
.notif-empty {
    padding: 34px 16px;
    text-align: center;
    color: #8d8d8d;
    font-size: 13px;
}

.notif-empty i {
    display: block;
    font-size: 30px;
    color: rgba(217, 170, 74, .35);
    margin-bottom: 10px;
}

.notif-item {
    display: flex;
    gap: 11px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    text-decoration: none !important;
    transition: background .15s ease;
}

.notif-item:hover {
    background: rgba(255, 255, 255, .04);
}

.notif-item.unread {
    background: rgba(77, 163, 255, .07);
}

.notif-item .notif-ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

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

.notif-item .notif-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.notif-item .notif-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item.unread .notif-title {
    color: #8fc4ff;
}

.notif-item .notif-time {
    color: #7d7d7d;
    font-size: 11px;
    white-space: nowrap;
}

.notif-item .notif-msg {
    color: #a5a5a5;
    font-size: 12px;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-panel-foot {
    display: block;
    padding: 12px;
    text-align: center;
    color: #d9dae9 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    background: rgba(255, 255, 255, .03);
    text-decoration: none !important;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.notif-panel-foot:hover {
    background: rgba(217, 170, 74, .12);
    color: #f2c45e !important;
}

/* ---------- İzin kutusu ---------- */
.notif-perm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 3, .72);
    backdrop-filter: blur(3px);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notif-perm-overlay.open {
    display: flex;
}

.notif-perm-box {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: linear-gradient(160deg, #1a1a14, #0e0e0c);
    border: 1px solid rgba(217, 170, 74, .4);
    border-radius: 14px;
    padding: 28px 26px 24px 26px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}

.notif-perm-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #8d8d8d;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.notif-perm-close:hover {
    color: #fff;
}

.notif-perm-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(232, 68, 58, .12);
    border: 1px solid rgba(232, 68, 58, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b60;
    font-size: 32px;
}

.notif-perm-box h4 {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 12px;
}

.notif-perm-box p {
    color: #a9a9a9;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.notif-perm-box .notif-perm-hint {
    color: #ff9d5c;
    font-size: 13px;
}

.notif-perm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.notif-perm-allow,
.notif-perm-deny {
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.notif-perm-allow {
    background: linear-gradient(180deg, #f4c660, #d99a2b 55%, #a96712);
    color: #080604;
    border: 1px solid rgba(255, 215, 110, .7);
}

.notif-perm-allow:hover {
    background: linear-gradient(180deg, #ffd76d, #e9a936 55%, #b97516);
}

.notif-perm-deny {
    background: #2b2b28;
    color: #c9c9c9;
}

.notif-perm-deny:hover {
    background: #3a3a35;
}

/* ---------- Tam sayfa ---------- */
.notif-page-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.notif-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #c9c9c9 !important;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.notif-filter-btn:hover {
    border-color: rgba(217, 170, 74, .5);
    color: #f2c45e !important;
}

.notif-filter-btn.active {
    background: linear-gradient(180deg, #f4c660, #d99a2b 55%, #a96712);
    color: #080604 !important;
    border-color: rgba(255, 215, 110, .7);
}

.notif-filter-btn .badge-num {
    background: rgba(0, 0, 0, .22);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 11px;
}

.notif-page-list {
    background: linear-gradient(160deg, rgba(20, 20, 14, .96), rgba(10, 10, 9, .98));
    border: 1px solid rgba(217, 170, 74, .25);
    border-radius: 12px;
    overflow: hidden;
}

.notif-page-list .notif-item {
    padding: 14px 16px;
}

.notif-page-list .notif-item:last-child {
    border-bottom: none;
}

.notif-page-list .notif-item .notif-msg {
    -webkit-line-clamp: 3;
}

.notif-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

@media (max-width: 575.98px) {
    .notif-panel {
        width: calc(100vw - 24px);
        right: -60px;
    }

    .notif-perm-box {
        padding: 24px 18px 20px 18px;
    }
}