/* ════════════════════════════════════════════════════════════════
   Thông báo đẩy TruyenChill — nút chuông nhỏ gọn (tc-push.css)
   File RIÊNG có version, nạp bằng 1 thẻ <link> trong layouts/main.php
   (không nối vào style.css vì file đó bị cache cứng 12 giờ).

   Vị trí: cố định góc DƯỚI-TRÁI, nằm TRÊN thanh tải app (.tc-appbar
   fixed bottom, cao ~76px kể cả vùng an toàn) và tránh cột phải của
   mobile. z-index 991: trên thanh app (990), dưới navbar (1030).
   ════════════════════════════════════════════════════════════════ */

.tc-push-bell {
    position: fixed;
    left: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 991;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    background: #1a1d2e;
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    -webkit-tap-highlight-color: transparent;
}

.tc-push-bell[hidden] {
    display: none;
}

.tc-push-bell:hover,
.tc-push-bell:focus-visible {
    background: #23263d;
    outline: none;
}

.tc-push-bell svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    pointer-events: none;
}

/* Đã đăng ký: chuông nền vàng + chấm đỏ nhỏ ở góc */
.tc-push-bell--on {
    background: #ffc107;
    color: #1a1d2e;
    border-color: rgba(0, 0, 0, .15);
}

.tc-push-bell--on::after {
    content: '';
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e03131;
    border: 1.5px solid #ffc107;
}

/* Toast phản hồi nhỏ sau khi bật/tắt */
.tc-push-toast {
    position: fixed;
    left: 50%;
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(8px);
    z-index: 1050;
    max-width: min(92vw, 420px);
    background: #1a1d2e;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    text-align: center;
}

.tc-push-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
