/* ==========================
   BEGIN: CAI PWA
========================== */
/* Wrapper */
#pwa-install-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    text-decoration: none;
}

/* Nút tròn (FAB) */
.icon_show.install {
    width: 56px;
    height: 56px;

    background: linear-gradient(135deg, #4f46e5, #ff3b1d);
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255,255,255,0.12);

    cursor: pointer;
    user-select: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* Icon */
.icon_show.install svg {
    width: 30px;
    height: 30px;
}

.icon_show.install svg path {
    stroke: #fff;
    stroke-width: 2;
    transition: stroke 0.25s ease;
}

/* Hover (PC) */
@media (hover: hover) {
    .icon_show.install:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px rgba(0,0,0,0.35);
    }
}

/* Active (Mobile tap) */
.icon_show.install:active {
    transform: scale(0.92);
}

#pwa-install-btn::after {
    content: "Cài đặt ứng dụng";
    position: absolute;
    right: 72px;
    bottom: 50%;

    transform: translateY(50%);
    white-space: nowrap;

    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;

    border-radius: 6px;
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
    #pwa-install-btn:hover::after {
        opacity: 1;
        transform: translate(-4px, 50%);
    }
}

@keyframes pwa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.icon_show.install.attention {
    animation: pwa-bounce 1.2s ease infinite;
}

/* Ẩn nút cài đặt khi mở từ PWA */
.pwa-mode #pwa-install-btn {
    display: none !important;
}
/* ==========================
   END: CAI PWA
========================== */

/* ==========================
   BEGIN: THONG BAO
========================== */
#enable-push {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff5722;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 10%;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#enable-push:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

#enable-push.active {
    background-color: #4caf50;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Icon */
.bell-icon {
    width: 50px;
    height: 50px;
    stroke-width: 3; /* làm nét to ra */
}
@media (max-width: 768px) {
    #pwa-install-btn {
        right: 16px;
        bottom: 10%;
    }

    .icon_show.install {
        width: 50px;
        height: 50px;
    }

    .icon_show.install svg {
        width: 28px;
        height: 28px;
    }

    /* Mobile không cần tooltip */
    #pwa-install-btn::after {
        display: none;
    }

    /* Nút bật/tắt thông báo */
    #enable-push {
        width: 53px;
        height: 53px;
        bottom: 17%;
        right: 17px;
    }
}
/* ==========================
   END: THONG BAO
========================== */

/* ==========================
   BEGIN: HUONG DAN CAI IOS
========================== */
.ios-install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
}

/* Bottom sheet */
.ios-install-box {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 30%;
    background: #fff;
    border-radius: 18px;
    padding: 18px 16px 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp .35s ease;
}

/* Drag handle */
.ios-install-handle {
    width: 36px;
    height: 4px;
    background: #d1d1d6;
    border-radius: 2px;
    margin: 0 auto 10px;
}

/* Title */
.ios-install-box h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

/* Text */
.ios-install-box p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Icon highlight */
.ios-install-box .icon {
    font-size: 18px;
}

/* Button */
.ios-install-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.ios-install-btn:active {
    transform: scale(0.97);
}
/* ==========================
   END: HUONG DAN CAI IOS
========================== */

/* ==========================
   BEGIN: HUONG DAN MO TRINH DUYET
========================== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay::after{
    pointer-events: none !important;
    background-color: transparent !important;
}

.overlay.hidden {
    display: none;
}

.overlay-card {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 24px;
    border-radius: 16px;
    text-align: center;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.overlay-card h3 {
    margin-bottom: 12px;
}

.overlay-card p {
    font-size: 15px;
    color: #444;
    margin-bottom: 20px;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;

    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.primary-btn:active {
    transform: scale(0.97);
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-hamburger, .close-menu {
    cursor: pointer
}

.close-menu i {
    font-size: 20px
}
/* ==========================
   END: HUONG DAN MO TRINH DUYET
========================== */
