/* Promo: card (delay) + inline home banner */

/* —— Inline banner (Home, ngay dưới «TẠI ĐÂY») —— */
.goi-y-inline-banner {
    max-width: 760px;
    width: 100%;
    margin: 0.85rem auto 0.35rem;
    padding: 0 12px;
    text-align: left;
    box-sizing: border-box;
}

.goi-y-inline-banner__link {
    display: block;
    padding: 1.15rem 1.35rem 1.25rem;
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none !important;
    background:
        linear-gradient(145deg, rgba(202, 21, 21, 0.96) 0%, rgba(120, 10, 28, 0.97) 55%, rgba(40, 18, 18, 0.98) 100%);
    box-shadow:
        0 10px 28px rgba(18, 8, 8, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.goi-y-inline-banner__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(18, 8, 8, 0.35);
    color: #fff !important;
    text-decoration: none !important;
}

.goi-y-inline-banner__badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a1010;
    background: #ffe8a3;
    border-radius: 999px;
}

.goi-y-inline-banner__title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.goi-y-inline-banner__desc {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.goi-y-inline-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #7a1010;
    background: #fff;
}

/* —— Card promo —— */
.promo-goi-y {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 1050;
    width: min(340px, calc(100vw - 40px));
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(202, 21, 21, 0.96) 0%, rgba(120, 10, 28, 0.97) 55%, rgba(40, 18, 18, 0.98) 100%);
    box-shadow:
        0 12px 32px rgba(18, 8, 8, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.promo-goi-y.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.promo-goi-y__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.promo-goi-y__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.promo-goi-y__badge {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a1010;
    background: #ffe8a3;
    border-radius: 999px;
}

.promo-goi-y__title {
    margin: 0 0 0.45rem;
    padding-right: 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.promo-goi-y__text {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.promo-goi-y__highlight {
    margin: 0 0 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffe8a3;
}

.promo-goi-y__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 0.95rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #7a1010 !important;
    background: #fff;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.promo-goi-y__cta:hover {
    background: #ffe8a3;
    color: #5c0c0c !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .promo-goi-y {
        left: 10px;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        top: auto;
        width: min(280px, calc(100vw - 96px));
        padding: 0.85rem 0.95rem 0.95rem;
        border-radius: 12px;
        transform: translateY(14px);
        z-index: 1040;
    }

    .promo-goi-y.is-visible {
        transform: translateY(0);
    }

    .promo-goi-y__title {
        font-size: 1.05rem;
    }

    .promo-goi-y__text {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .promo-goi-y__highlight {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
    }

    .promo-goi-y__cta {
        width: auto;
        min-width: 7.5rem;
        padding: 0.55rem 0.85rem;
        font-size: 0.9rem;
    }

    .goi-y-inline-banner {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-goi-y,
    .goi-y-inline-banner__link {
        transition: none;
    }
}
