
/* 벨 버튼 */
.noti-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: inherit;
    display: flex;
    align-items: center;
}
.noti-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
/* 알림 패널 */
.noti-panel {
    position: fixed;
    top: 60px; right: 0;
    width: min(360px, 100vw);
    height: calc(100dvh - 120px);
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    overflow: hidden;
}
.noti-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
}
.noti-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
    flex-shrink: 0;
}
.noti-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}
.noti-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}
.noti-hdr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    text-decoration: none;
    transition: background 0.15s;
}
.noti-hdr-btn:hover, .noti-hdr-btn:active { background: #F3F4F6; color: #111827; }
.noti-hdr-btn .material-symbols-outlined { font-size: 20px; }
.noti-panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.noti-empty {
    padding: 48px 20px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}
.noti-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #EEF0F3;
    position: relative;
    transition: background 0.15s;
}
.noti-item.unread { background: #F0FDF4; }
.noti-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 14px 20px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #111827;
}
.noti-item-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #DCFCE7;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #16A34A;
}
.noti-item-icon .material-symbols-outlined { font-size: 18px; }
.noti-item-content { flex: 1; min-width: 0; }
.noti-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.noti-item.read .noti-item-title { font-weight: 400; color: #6B7280; }
.noti-item-msg {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.noti-item-time { font-size: 11px; color: #9CA3AF; }
.noti-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #16A34A;
    flex-shrink: 0;
    margin-top: 6px;
}
.noti-item-delete {
    flex-shrink: 0;
    width: 40px;
    height: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #D1D5DB;
    padding: 0;
    transition: color 0.15s;
}
.noti-item-delete:hover, .noti-item-delete:active { color: #EF4444; }
.noti-item-delete .material-symbols-outlined { font-size: 16px; }



.noti-setting-wrap {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
}
.noti-setting-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 20px;
}
.noti-setting-group {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}
.noti-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    gap: 12px;
}
.noti-setting-item:last-child { border-bottom: none; }
.noti-setting-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.noti-setting-icon { font-size: 22px; flex-shrink: 0; }
.noti-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}
.noti-setting-sub {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.4;
}
/* 토글 스위치 */
.noti-toggle {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}
.noti-toggle input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.noti-toggle-knob {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 13px;
    transition: background 0.2s;
    cursor: pointer;
}
.noti-toggle-knob::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.noti-toggle.on .noti-toggle-knob { background: #16A34A; }
.noti-toggle.on .noti-toggle-knob::after { transform: translateX(18px); }
/* 저장 버튼 */
.noti-setting-save {
    width: 100%;
    padding: 15px;
    background: #16A34A;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
