/* Namulio narystės iššokantis langelis (paspaudus mokamą video) */
.npw-open { overflow: hidden; }
.npw-overlay {
    position: fixed; inset: 0; z-index: 100002;
    background: rgba(35, 25, 66, .6);
    display: flex; align-items: center; justify-content: center;
    padding: 14px; overflow-y: auto; animation: npw-fade .2s ease-out;
}
.npw-box {
    position: relative; width: 100%; max-width: 740px; margin: auto; box-sizing: border-box;
    background: linear-gradient(#FCFAFF, #fff 40%); border-radius: 30px;
    box-shadow: 0 28px 70px rgba(35, 25, 66, .4);
    padding: 20px 26px 18px; text-align: center;
    font-family: 'Nunito', system-ui, sans-serif; color: #231942;
    animation: npw-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
.npw-x {
    position: absolute; top: -12px; right: -12px; z-index: 3; width: 38px; height: 38px; border: 0; cursor: pointer;
    border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(35, 25, 66, .3);
    font: 400 26px/1 system-ui, sans-serif; color: #231942; padding: 0 0 2px;
}
.npw-x:hover { background: #f3effc; }
.npw-head { display: flex; align-items: center; gap: 14px; text-align: left; margin: 0 0 12px; }
.npw-house { flex: none; width: 108px; height: auto; transform-origin: 50% 90%; animation: npw-wiggle 2.8s ease-in-out .5s infinite; }
.npw-eyebrow { margin: 0 0 4px; font: 800 14px/1.2 'Nunito', system-ui, sans-serif; letter-spacing: .03em; color: #6A4FC9; }
.npw-title { margin: 0; font: 900 clamp(20px, 3.4vw, 27px)/1.2 'Nunito', system-ui, sans-serif; color: #2A2160; text-wrap: balance; }
.npw-title span { background: linear-gradient(100deg, #6A4FC9, #D054B0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.npw-xmas {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 14px; padding: 8px 14px;
    border-radius: 16px; background: linear-gradient(#336F55, #2B604A); color: #FFF1C2;
    font: 900 clamp(14px, 2.6vw, 18px)/1.2 'Nunito', system-ui, sans-serif; letter-spacing: .03em; text-transform: uppercase;
}
.npw-xmas span { font-size: 1.5em; line-height: 1; }
.npw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; margin: 0 0 12px; }
.npw-plan {
    position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px;
    border-radius: 24px; background: #FFFEFB; border: 2px solid #E9E2FA; box-shadow: 0 8px 20px rgba(91, 63, 168, .08);
    transition: transform .2s, box-shadow .2s;
}
.npw-plan:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(91, 63, 168, .16); }
.npw-plan--best { border: 3px solid #6A4FC9; box-shadow: 0 12px 28px rgba(106, 79, 201, .22); }
.npw-best {
    position: absolute; right: 14px; top: -15px; padding: 4px 12px; border-radius: 999px;
    background: #F0EAFF; color: #5B3FA8; font: 800 13px/1.2 'Nunito', system-ui, sans-serif; box-shadow: 0 3px 8px rgba(91, 63, 168, .15);
}
.npw-plan__name { margin: 0 0 2px; font: 900 22px/1.15 'Nunito', system-ui, sans-serif; color: #1F1A3D; }
.npw-plan__sub { margin: 0 0 8px; color: #6B5A93; font: 700 14px/1.3 'Nunito', system-ui, sans-serif; }
.npw-ribbon {
    align-self: flex-start; padding: 5px 12px; border-radius: 10px 14px 14px 5px; white-space: nowrap;
    background: linear-gradient(#A8485F, #8E3A50); color: #fff; font: 900 14px/1.2 'Nunito', system-ui, sans-serif; letter-spacing: .03em;
    transform: rotate(-2.5deg); animation: npw-ribbon 3.5s ease-in-out infinite;
}
.npw-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 12px; }
.npw-old { font: 700 17px/1 'Nunito', system-ui, sans-serif; color: #8A7BB0; }
.npw-now { font: 900 42px/1 'Nunito', system-ui, sans-serif; color: #2A2160; letter-spacing: -.02em; }
.npw-saved { margin: -8px 0 12px; font: 800 14px/1.2 'Nunito', system-ui, sans-serif; color: #6A4FC9; }
.npw-btn {
    display: block; margin-top: auto; padding: 12px 14px; border-radius: 16px; text-align: center; text-decoration: none;
    font: 900 16px/1.2 'Nunito', system-ui, sans-serif; color: #5B3FA8; background: #F1EBFF; box-shadow: 0 4px 0 #DCCEFB;
    transition: transform .15s, background .2s;
}
.npw-btn:hover { transform: translateY(-2px); background: #E7DCFF; color: #5B3FA8; }
.npw-btn--main { color: #fff; background: linear-gradient(#7B62D8, #5F48BE); box-shadow: 0 5px 0 #4A3699, 0 10px 18px rgba(95, 72, 190, .3); }
.npw-btn--main:hover { background: linear-gradient(#8A71E2, #6A52C8); color: #fff; }
.npw-btn:active { transform: translateY(3px); box-shadow: none; }
.npw-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0 0 10px; padding: 0; list-style: none; font: 800 15px/1.3 'Nunito', system-ui, sans-serif; color: #3B2F78; }
.npw-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.npw-trial { font: 900 16px/1.3 'Nunito', system-ui, sans-serif; color: #5B3FA8; text-decoration: none; }
.npw-trial span { border-bottom: 2px solid rgba(91, 63, 168, .35); }
.npw-trial:hover span { border-color: #5B3FA8; }
.npw-have { margin: 0; font: 700 16px/1.3 'Nunito', system-ui, sans-serif; color: #231942; }
.npw-login { color: #231942; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.npw-heart { position: absolute; pointer-events: none; color: #F36B9A; opacity: 0; font-size: 22px; animation: npw-float 3.4s ease-in infinite; }
.npw-heart--a { left: 14%; top: 22%; }
.npw-heart--b { right: 12%; top: 30%; animation-delay: 1.1s; font-size: 18px; color: #B995F2; }
.npw-heart--c { left: 46%; top: 12%; animation-delay: 2.2s; font-size: 16px; }
@media (max-width: 640px) {
    .npw-box { padding: 18px 16px 14px; border-radius: 24px; }
    .npw-grid { grid-template-columns: 1fr; gap: 14px; }
    .npw-head { gap: 10px; }
    .npw-house { width: 80px; }
    .npw-now { font-size: 36px; }
    .npw-checks { font-size: 14px; gap: 2px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .npw-box, .npw-overlay, .npw-house, .npw-ribbon, .npw-heart { animation: none; }
}
@keyframes npw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes npw-pop { 0% { opacity: 0; transform: translateY(40px) scale(.8); } 100% { opacity: 1; transform: none; } }
@keyframes npw-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-3px); } }
@keyframes npw-ribbon { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(-1deg) translateY(-2px); } }
@keyframes npw-float { 0% { opacity: 0; transform: translateY(20px) scale(.7); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-60px) scale(1.1); } }

/* Individualus (su Mėnesinis | Metinis jungikliu) + Darželiams */
.npw-plan__body { display: flex; flex-direction: column; flex: 1; }
.npw-toggle { align-self: flex-start; display: inline-flex; padding: 3px; margin: 2px 0 8px; border-radius: 999px; background: #F0EAFF; border: 2px solid #D7C9F8; }
.npw-toggle__b { border: 0; cursor: pointer; padding: 6px 16px; border-radius: 999px; background: transparent; color: #5B3FA8; font: 800 15px/1.1 'Nunito', system-ui, sans-serif; transition: background .15s, color .15s; }
.npw-toggle__b.is-on { background: #6A4FC9; color: #fff; box-shadow: 0 2px 6px rgba(95, 72, 190, .35); }
.npw-per { font: 800 15px/1 'Nunito', system-ui, sans-serif; color: #6B5A93; }
.npw-saved:empty { display: none; }
.npw-feat { margin: 0 0 14px; padding: 0; list-style: none; font: 700 15px/1.35 'Nunito', system-ui, sans-serif; color: #3B2F78; }
.npw-feat li { position: relative; padding: 2px 0 2px 24px; }
.npw-feat li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #6A4FC9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.npw-plan--dz { border: 2px solid #E9B873; }
.npw-plan--dz .npw-best { background: #FFF1D6; color: #8A5A12; }
.npw-more { margin-top: 10px; text-align: center; font: 800 14px/1.2 'Nunito', system-ui, sans-serif; color: #5B3FA8; text-decoration: underline; text-underline-offset: 3px; }

/* Sulygiuota: abi kortelės dalijasi tomis pačiomis eilutėmis (pavadinimas, aprašas, jungiklis, nuolaida, kaina, sąrašas, mygtukas) */
@media (min-width: 641px) {
    .npw-grid { grid-template-rows: repeat(9, auto); row-gap: 0; column-gap: 16px; }
    .npw-plan { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .npw-plan__body { display: contents; }
}
.npw-plan > .npw-slot, .npw-plan__body > .npw-slot { min-height: 0; }
.npw-plan__name { margin: 0 0 2px; }
.npw-plan__sub { margin: 0 0 8px; }
.npw-saved { margin: 0 0 10px; min-height: 1.2em; }
.npw-saved:empty { display: block; }
.npw-plan .npw-btn { margin-top: 0; align-self: end; }
.npw-plan .npw-more { margin-top: 10px; align-self: start; }
.npw-plan .npw-price { margin: 8px 0 6px; }

/* Kai puslapyje išjungti kiti stiliai (užduočių peržiūra), WordPress emocijų paveikslėliai neturi dydžio ir išauga — suvaldome patys */
.npw-box img.emoji, .npw-box img.wp-smiley, .nlm-box img.emoji, .nlm-box img.wp-smiley {
    display: inline !important; width: 1em !important; height: 1em !important; max-width: 1em !important;
    margin: 0 .08em !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
    background: none !important; vertical-align: -0.12em !important;
}
.npw-heart img.emoji { width: 1em !important; height: 1em !important; }

/* Fonas už prenumeratos kortele stipriai užbliurintas (vos matosi, kas už jos) */
.npw-overlay {
    background: rgba(35, 25, 66, .45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* Ta pati kortelė įterpta puslapyje (Videotekos gale) */
.npw-box--inline { max-width: 760px; margin: 0 auto; animation: none; box-shadow: 0 10px 28px rgba(91, 63, 168, .16); border: 2px solid #E6DDFA; }
.npw-box--inline .npw-house { animation: none; }
