#notif-container {
    position: fixed; top: 28px; right: 28px;
    z-index: 9999; display: flex; flex-direction: column;
    gap: 14px; max-width: 420px; width: 100%;
    pointer-events: none;
}
.notif-queue-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
    z-index: 1;
}
.notif {
    pointer-events: auto;
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px 18px 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.04),
        0 2px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.6);
    font-size: 0.9rem; font-weight: 500; line-height: 1.5;
    color: #1e293b;
    position: relative;
    overflow: visible;
    transform: translateX(calc(100% + 60px));
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.3s ease;
}
.notif:hover {
    box-shadow:
        0 24px 72px rgba(0,0,0,0.08),
        0 10px 28px rgba(0,0,0,0.05),
        0 2px 8px rgba(0,0,0,0.02);
}
.notif.show { transform: translateX(0); opacity: 1; }
.notif.hide {
    transform: translateX(calc(100% + 60px)) scale(0.96);
    opacity: 0; transition: transform 0.35s ease, opacity 0.3s ease;
}
.notif-bar {
    position: absolute; top: 8px; left: 8px; bottom: 8px;
    width: 5px; overflow: hidden;
    border-radius: 6px;
    background: rgba(0,0,0,0.04);
}
.notif-bar-fill {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 100%;
    border-radius: 6px;
    transition: height 0.05s linear;
}
.notif-success .notif-bar-fill {
    background: linear-gradient(180deg, #16a34a, #4ade80);
    box-shadow: 0 0 8px rgba(22,163,74,0.25);
}
.notif-error .notif-bar-fill {
    background: linear-gradient(180deg, #dc2626, #f87171);
    box-shadow: 0 0 8px rgba(220,38,38,0.25);
}
.notif-info .notif-bar-fill {
    background: linear-gradient(180deg, #055ee2, #60a5fa);
    box-shadow: 0 0 8px rgba(5,94,226,0.25);
}
.notif-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 1rem;
    position: relative; z-index: 1;
}
.notif-icon::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 12px; z-index: -1; opacity: 0.1;
}
.notif-success .notif-icon { color: #16a34a; }
.notif-success .notif-icon::after { background: #16a34a; }
.notif-error .notif-icon { color: #dc2626; }
.notif-error .notif-icon::after { background: #dc2626; }
.notif-info .notif-icon { color: #055ee2; }
.notif-info .notif-icon::after { background: #055ee2; }
.notif-body { flex: 1; min-width: 0; font-size: 0.9rem; }
.notif-close {
    flex-shrink: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; border-radius: 8px;
    cursor: pointer; font-size: 0.7rem; color: #cbd5e1;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    padding: 0; position: relative; z-index: 1;
}
.notif-close:hover { background: rgba(0,0,0,0.04); color: #64748b; transform: scale(1.15) rotate(90deg); }
.notif-close:active { transform: scale(0.92); }
@media (max-width: 480px) {
    #notif-container { top: 12px; left: 6px; right: 6px; max-width: none; width: auto; }
    .notif { padding: 14px 16px 14px 20px; border-radius: 14px; gap: 12px; max-width: calc(100vw - 12px); box-sizing: border-box; transform: translateX(120px); }
    .notif-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 0.85rem; }
    .notif.show { transform: translateX(0); opacity: 1; }
    .notif.hide { transform: translateX(120px) scale(0.96); opacity: 0; }
}

/* ─── ASK NOTIFICATION ─── */
.notif-ask {
    background: #fff !important;
    border-color: #bfdbfe !important;
}
.notif-ask .notif-bar {
    display: none;
}
.notif-ask .notif-icon { color: #055ee2; }
.notif-ask .notif-icon::after { background: #055ee2; }

/* ─── ASK OVERLAY ─── */
.notif-ask-overlay {
    position: fixed; inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.45);
    animation: notifAskFadeIn 0.25s ease;
}
@keyframes notifAskFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── ASK COUNTDOWN BAR ─── */
.notif-ask-countbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 10001;
    padding: 2px 4px;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap;
    animation: notifAskSlideUp 0.4s cubic-bezier(0.22,1,0.36,1);
    background: linear-gradient(to bottom, #ffffffb2, #f8f9fa); border: none; border-top: 1px solid rgb(216, 216, 216);
}
@keyframes notifAskSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.notif-ask-counttext {
    font-size: 0.9rem; color: #475569; font-weight: 500;
}
.notif-ask-countnum {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px;
    font-size: 1.1rem; font-weight: 700; color: #055ee2;
    animation: notifCountPulse 0.5s ease;
}
@keyframes notifCountPulse {
    0% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}
.notif-ask-cancel {
    font-weight: 700; color: #055ee2; text-decoration: underline;
    cursor: pointer; font-size: 0.9rem;
    border: none; background: none; padding: 0;
    font-family: inherit; transition: opacity 0.2s ease;
}
.notif-ask-cancel:hover { opacity: 0.7; }

@media (max-width: 480px) {
    .notif-ask-countbar {
        padding: 12px 16px;
        gap: 4px;
        font-size: 0.82rem;
        box-sizing: border-box;
        width: 100%;
        left: 0; right: 0;
    }
    .notif-ask-counttext { font-size: 0.82rem; }
    .notif-ask-countnum { font-size: 0.95rem; min-width: 24px; height: 26px; }
    .notif-ask-cancel { font-size: 0.82rem; }
}
