/* Notifications: header bell dropdown, toast pop-ups and the Notifications page (soft pastel) */
.tone-mint  { --nf-bg: #ecfdf5; --nf-ink: #047857; --nf-line: #a7f3d0; }
.tone-lilac { --nf-bg: #f5f3ff; --nf-ink: #6d28d9; --nf-line: #ddd6fe; }
.tone-sky   { --nf-bg: #f0f9ff; --nf-ink: #0369a1; --nf-line: #bae6fd; }
.tone-rose  { --nf-bg: #fff1f2; --nf-ink: #be185d; --nf-line: #fecdd3; }
.tone-amber { --nf-bg: #fffbeb; --nf-ink: #b45309; --nf-line: #fde68a; }
.tone-peach { --nf-bg: #fff7ed; --nf-ink: #c2410c; --nf-line: #fed7aa; }
.tone-slate { --nf-bg: #f8fafc; --nf-ink: #475569; --nf-line: #e2e8f0; }

/* ---------- Header bell ---------- */
.nf-bell { position: relative; }
.nf-bell-btn {
    width: 42px; height: 42px; border-radius: 14px; border: 1px solid #ece8f7; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #4c4577; cursor: pointer;
    box-shadow: 0 6px 16px -12px rgba(76, 69, 119, .5); transition: transform .15s ease, background .15s ease;
}
.nf-bell-btn:hover { background: #f7f5ff; transform: translateY(-1px); color: #4c4577; }
.nf-bell-btn i { font-size: 1.15rem; }
.nf-bell-btn.ring i { animation: nfRing 1s ease; transform-origin: 50% 4px; }
@keyframes nfRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
.nf-count {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, #f43f5e); color: #fff; font-size: .66rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 4px 10px -4px #f43f5e;
}
.nf-count[hidden] { display: none; }

.nf-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 390px; max-width: calc(100vw - 24px);
    background: #fff; border: 1px solid #ece8f7; border-radius: 20px; z-index: 1080;
    box-shadow: 0 30px 60px -24px rgba(49, 46, 129, .35); overflow: hidden;
    opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.nf-bell.open .nf-panel { opacity: 1; transform: none; pointer-events: auto; }
.nf-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; background: linear-gradient(135deg, #faf9ff, #fff7fb); border-bottom: 1px solid #f1eef9; }
.nf-panel-head b { font-size: .98rem; color: #1e1b4b; }
.nf-panel-head small { display: block; font-size: .72rem; color: #8a84a8; font-weight: 600; }
.nf-link-btn { border: 0; background: #f5f3ff; color: #6d28d9; font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.nf-link-btn:hover { background: #ede9fe; color: #6d28d9; }
.nf-panel-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.nf-panel-foot { display: block; text-align: center; padding: 11px; font-size: .8rem; font-weight: 800; color: #6d28d9; text-decoration: none; border-top: 1px solid #f1eef9; background: #fcfbff; }
.nf-panel-foot:hover { background: #f5f3ff; color: #6d28d9; }
.nf-panel-empty { text-align: center; color: #8a84a8; padding: 34px 12px; font-size: .85rem; }
.nf-panel-empty i { display: block; font-size: 1.8rem; color: #c4b5fd; margin-bottom: 6px; }

/* row used in both panel and page */
.nf-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 14px; text-decoration: none;
    color: inherit; position: relative; transition: background .15s ease, transform .15s ease;
}
.nf-item:hover { background: #faf9ff; color: inherit; }
.nf-item.unread { background: linear-gradient(90deg, var(--nf-bg), #fff 75%); }
.nf-ico {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--nf-bg); color: var(--nf-ink); border: 1px solid var(--nf-line); font-size: 1rem;
}
.nf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-title { font-weight: 800; font-size: .84rem; color: #1e1b4b; line-height: 1.3; }
.nf-desc { font-size: .76rem; color: #5b5683; line-height: 1.45; overflow-wrap: anywhere; }
.nf-panel .nf-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-time { font-size: .68rem; color: #a19bc0; font-weight: 700; white-space: nowrap; }
.nf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nf-ink); flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 0 3px var(--nf-bg); }

/* ---------- Toasts ---------- */
.nf-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 24px); }
.nf-toast {
    background: #fff; border: 1px solid var(--nf-line); border-left: 4px solid var(--nf-ink); border-radius: 16px;
    box-shadow: 0 20px 40px -20px rgba(49, 46, 129, .45); animation: nfIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.nf-toast.out { animation: nfOut .25s ease forwards; }
@keyframes nfIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nfOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Notifications page ---------- */
.nf-page { max-width: 980px; margin: 0 auto; }
.nf-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 24px; border-radius: 22px; margin-bottom: 16px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 55%, #fff7ed 100%); border: 1px solid #ece8f7;
}
.nf-hero-ico { position: relative; width: 54px; height: 54px; border-radius: 18px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #7c3aed; font-size: 1.5rem; box-shadow: 0 12px 24px -16px #7c3aed; flex-shrink: 0; }
.nf-hero-ico span { position: absolute; top: -6px; right: -8px; background: #f43f5e; color: #fff; font-size: .66rem; font-weight: 800; border-radius: 999px; padding: 2px 7px; border: 2px solid #fff; }
.nf-hero-title { margin: 0; font-weight: 800; color: #1e1b4b; }
.nf-hero-sub { margin: 2px 0 0; font-size: .84rem; color: #6b6394; }
.nf-btn { border: 1px solid #ddd6fe; background: #fff; color: #6d28d9; font-weight: 800; font-size: .82rem; border-radius: 12px; padding: 9px 14px; }
.nf-btn:hover { background: #f5f3ff; color: #6d28d9; }
.nf-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.nf-tabs::-webkit-scrollbar { display: none; }
.nf-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #ece8f7; color: #5b5683; font-size: .8rem; font-weight: 700; text-decoration: none; }
.nf-tab:hover { background: #faf9ff; color: #4c1d95; }
.nf-tab.active { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.nf-tab b { background: #f43f5e; color: #fff; border-radius: 999px; font-size: .64rem; padding: 1px 7px; }
.nf-list { background: #fff; border: 1px solid #ece8f7; border-radius: 22px; padding: 8px; box-shadow: 0 16px 40px -32px rgba(49,46,129,.4); }
.nf-day { font-size: .7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #a19bc0; padding: 12px 12px 4px; }
.nf-page .nf-item { padding: 14px; }
.nf-page .nf-ico { width: 44px; height: 44px; font-size: 1.15rem; }
.nf-page .nf-title { font-size: .92rem; }
.nf-page .nf-desc { font-size: .82rem; }
.nf-meta { font-size: .72rem; color: #a19bc0; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-chip { background: var(--nf-bg); color: var(--nf-ink); border: 1px solid var(--nf-line); border-radius: 999px; padding: 1px 8px; font-weight: 800; font-size: .66rem; }
.nf-go { color: #c4b5fd; align-self: center; }
.nf-empty { text-align: center; padding: 56px 16px; color: #4c4577; }
.nf-empty-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: #f5f3ff; color: #a78bfa; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }

@media (max-width: 576px) {
    .nf-panel { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }
    .nf-hero { padding: 16px; border-radius: 18px; }
    .nf-hero-sub { font-size: .76rem; }
    .nf-list { border-radius: 18px; padding: 4px; }
    .nf-page .nf-item { padding: 12px 10px; gap: 10px; }
    .nf-page .nf-ico { width: 38px; height: 38px; }
    .nf-go { display: none; }
    .nf-toasts { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* "Get alerts on this phone" prompt */
.nf-push-prompt {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2050;
    width: min(520px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #ddd6fe; border-radius: 18px; padding: 12px 12px 12px 12px;
    box-shadow: 0 24px 50px -22px rgba(76, 29, 149, .5); animation: nfIn .35s cubic-bezier(.2,.9,.3,1.2);
    --nf-bg: #f5f3ff; --nf-ink: #6d28d9; --nf-line: #ddd6fe;
}
.nf-push-prompt .nf-body b { font-size: .88rem; color: #1e1b4b; display: block; }
.nf-push-prompt .nf-body small { font-size: .74rem; color: #6b6394; display: block; line-height: 1.35; }
.nf-push-actions { display: flex; gap: 6px; flex-shrink: 0; }
.nf-push-yes { border: 0; background: #ede9fe; color: #5b21b6; font-weight: 800; font-size: .8rem; border-radius: 12px; padding: 8px 14px; }
.nf-push-yes:hover { background: #ddd6fe; color: #4c1d95; }
.nf-push-no { border: 1px solid #ece8f7; background: #fff; color: #6b6394; font-weight: 700; font-size: .78rem; border-radius: 12px; padding: 8px 10px; }
@media (max-width: 576px) { .nf-push-prompt { flex-wrap: wrap; bottom: 12px; } .nf-push-actions { width: 100%; justify-content: flex-end; } }
.nf-push-row { display: flex; align-items: center; gap: 10px; margin: 8px 8px 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fdf2f8, #f5f3ff); border: 1px solid #f5d0fe; }
.nf-push-row > i { color: #be185d; font-size: 1.1rem; }
.nf-push-row span { flex: 1; min-width: 0; }
.nf-push-row b { display: block; font-size: .8rem; color: #1e1b4b; }
.nf-push-row small { display: block; font-size: .7rem; color: #6b6394; line-height: 1.3; }
.nf-push-row button { border: 0; background: #fff; color: #be185d; font-weight: 800; font-size: .74rem; border-radius: 999px; padding: 6px 12px; box-shadow: 0 6px 14px -10px #be185d; }
