/* LexStreamCMS — News / update pop-up (v2.8.0) */
.lx-notice { --nx1:#8b5cf6; --nx2:#6366f1; --nxg:139,92,246; position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lx-notice--blue  { --nx1:#38bdf8; --nx2:#3b82f6; --nxg:59,130,246; }
.lx-notice--green { --nx1:#4ade80; --nx2:#10b981; --nxg:16,185,129; }
.lx-notice--pink  { --nx1:#f472b6; --nx2:#ec4899; --nxg:236,72,153; }
.lx-notice--amber { --nx1:#fbbf24; --nx2:#f59e0b; --nxg:245,158,11; }
.lx-notice[hidden] { display: none; }

.lx-notice__backdrop { position: absolute; inset: 0; background: rgba(6,8,18,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.lx-notice.is-in .lx-notice__backdrop { opacity: 1; }

.lx-notice__card {
    position: relative; width: 100%; max-width: 420px; box-sizing: border-box; overflow: hidden; outline: none; text-align: center;
    border-radius: 24px; color: var(--clr-text-primary); background: var(--clr-bg-card);
    border: 1px solid rgba(var(--nxg), .4);
    box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 70px rgba(var(--nxg), .18);
    opacity: 0; transform: translateY(16px) scale(.95); transition: opacity .24s ease, transform .32s cubic-bezier(.2,.9,.3,1.2);
}
.lx-notice.is-in .lx-notice__card { opacity: 1; transform: none; }

.lx-notice__x {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    font-size: 22px; line-height: 1; color: #fff; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); transition: background .15s;
}
.lx-notice__x:hover, .lx-notice__x:focus-visible { background: rgba(0,0,0,.5); }

/* Hero band */
.lx-notice__hero { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: linear-gradient(135deg, var(--nx1), var(--nx2)); }
.lx-notice__hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% 0%, rgba(255,255,255,.28), transparent 60%); }
.lx-notice__orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(2px); animation: lx-notice-float 7s ease-in-out infinite; }
.lx-notice__orb--a { width: 110px; height: 110px; left: -26px; top: -40px; }
.lx-notice__orb--b { width: 80px; height: 80px; right: -14px; bottom: -34px; animation-delay: -3s; }
.lx-notice__icon {
    position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 34px;
    background: rgba(255,255,255,.95); box-shadow: 0 12px 32px rgba(0,0,0,.28); transform: rotate(-6deg); animation: lx-notice-pop .6s cubic-bezier(.2,.9,.3,1.4) .15s both;
}
@keyframes lx-notice-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }
@keyframes lx-notice-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

.lx-notice__body { padding: 20px 24px 20px; }
.lx-notice__badge {
    display: inline-block; margin-bottom: 8px; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: linear-gradient(135deg, var(--nx1), var(--nx2)); box-shadow: 0 4px 14px rgba(var(--nxg), .45);
}
.lx-notice__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.18; color: var(--clr-text-primary); }
.lx-notice__text { margin: 0 auto 14px; max-width: 330px; font-size: .92rem; line-height: 1.55; color: var(--clr-text-secondary); }

.lx-notice__list { list-style: none; margin: 0 0 18px; padding: 12px 14px; display: grid; gap: 9px; text-align: left; border-radius: 14px; background: var(--clr-bg-elevated); border: 1px solid var(--clr-border); }
.lx-notice__list li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--clr-text-primary); }
.lx-notice__tick { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--nx1), var(--nx2)); }

.lx-notice__cta {
    position: relative; overflow: hidden; display: block; width: 100%; box-sizing: border-box; padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
    font: inherit; font-size: 1rem; font-weight: 800; color: #fff !important; background: linear-gradient(135deg, var(--nx1), var(--nx2));
    box-shadow: 0 10px 26px rgba(var(--nxg), .4); transition: transform .15s ease, box-shadow .15s ease;
}
.lx-notice__cta:hover, .lx-notice__cta:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(var(--nxg), .55); }
.lx-notice__cta::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: lx-notice-shine 3.8s ease-in-out 1.2s infinite; }
@keyframes lx-notice-shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.lx-notice__later { display: inline-block; margin-top: 10px; padding: 8px 14px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; color: var(--clr-text-muted); }
.lx-notice__later:hover, .lx-notice__later:focus-visible { color: var(--clr-text-secondary); text-decoration: underline; }

/* No ads while the news pop-up is open — banners hidden, ad iframes can't be clicked. */
body.lx-notice-open .lx-ad-slot { visibility: hidden !important; }
body.lx-notice-open { overflow: hidden; }

@media (max-width: 560px) {
    .lx-notice { align-items: flex-end; padding: 0; }
    .lx-notice__card { max-width: none; border-radius: 24px 24px 0 0; transform: translateY(40px); }
    .lx-notice__body { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
    .lx-notice__title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lx-notice__card, .lx-notice__backdrop { transition: none; }
    .lx-notice__orb, .lx-notice__icon, .lx-notice__cta::after { animation: none; }
}
