/* New Year Offer: banner, countdown, price drop and free-bonus ribbon.
   Self-contained so it works on any page that links it (ebook, course pro, home). */
.ny { --ny-gold: #ffc65c; --ny-gold2: #ff9d2e; --ny-cyan: var(--mk-cyan, #4fd8e8); --ny-bg: #0c0f16; }

/* ---------- Banner ---------- */
.ny-banner { position: relative; overflow: hidden; max-width: 1000px; margin: 8px auto 34px; padding: 34px 30px 30px; border-radius: 22px; text-align: center; color: #f4f6fb;
  background:
    radial-gradient(520px 220px at 12% -10%, rgba(255,198,92,.22), transparent 70%),
    radial-gradient(520px 240px at 92% 110%, rgba(79,216,232,.20), transparent 70%),
    linear-gradient(160deg, #141826 0%, #0c0f16 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 30px 70px -30px rgba(255,157,46,.35), 0 0 0 1px rgba(255,198,92,.28);
  isolation: isolate; }
.ny-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 8% 30%, #ffc65c, transparent 60%),
    radial-gradient(2px 2px at 22% 78%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 18%, #4fd8e8, transparent 60%),
    radial-gradient(2px 2px at 61% 70%, #ffc65c, transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 24%, #fff, transparent 60%),
    radial-gradient(2px 2px at 91% 62%, #4fd8e8, transparent 60%),
    radial-gradient(1.5px 1.5px at 52% 90%, #fff, transparent 60%);
  animation: ny-twinkle 4.5s ease-in-out infinite alternate; }
.ny-banner::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent);
  animation: ny-shine 7s ease-in-out infinite; }
@keyframes ny-twinkle { from { opacity: .25; } to { opacity: .7; } }
@keyframes ny-shine { 0%, 55% { left: -45%; } 100% { left: 130%; } }

.ny-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; color: #1a1205;
  background: linear-gradient(90deg, var(--ny-gold), var(--ny-gold2)); box-shadow: 0 8px 24px -8px rgba(255,157,46,.7); }
.ny-banner h2 { font-size: clamp(28px, 5vw, 46px); line-height: 1.08; margin: 16px 0 10px; letter-spacing: -.02em; }
.ny-banner h2 span { background: linear-gradient(90deg, var(--ny-gold), #fff3d6 45%, var(--ny-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ny-lead { max-width: 640px; margin: 0 auto 22px; font-size: 15.5px; line-height: 1.65; color: #b9c0cf; }
.ny-lead b { color: #fff; }

/* Deal strip: old price, new price, % off, gift */
.ny-deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin: 0 auto 24px; }
.ny-was { font-size: 22px; font-weight: 700; color: #7c8597; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #ff6b6b; }
.ny-now { font-size: clamp(44px, 8vw, 64px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; text-shadow: 0 0 40px rgba(255,198,92,.45); }
.ny-now small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: #9aa3b5; margin-left: 6px; text-shadow: none; }
.ny-off { font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 7px 13px; border-radius: 10px; color: #0b0e11; background: #14d38a; box-shadow: 0 10px 24px -10px rgba(20,211,138,.8); transform: rotate(-3deg); }

/* Gift card */
.ny-gift { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto 26px; padding: 16px 20px; text-align: left; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,198,92,.14), rgba(79,216,232,.10)); border: 1px dashed rgba(255,198,92,.55); }
.ny-gift-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: linear-gradient(135deg, var(--ny-gold), var(--ny-gold2)); box-shadow: 0 10px 24px -10px rgba(255,157,46,.8); animation: ny-bob 3s ease-in-out infinite; }
@keyframes ny-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
.ny-gift b { display: block; font-size: 16px; color: #fff; margin-bottom: 2px; }
.ny-gift span { font-size: 13.5px; color: #aab2c2; line-height: 1.5; }
.ny-gift s { color: #ff8a8a; }
.ny-gift .ny-free, .ny-free { color: #14d38a; font-size: inherit; font-weight: 800; }

/* Countdown */
.ny-count-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9aa3b5; margin-bottom: 12px; }
.ny-count { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.ny-unit { min-width: 76px; padding: 12px 8px 10px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(4px); }
.ny-unit b { display: block; font-size: clamp(28px, 6vw, 38px); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.ny-unit span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ny-gold); }
.ny-unit.is-tick b { animation: ny-pop .35s ease; }
@keyframes ny-pop { 0% { transform: scale(1.18); color: var(--ny-gold); } 100% { transform: scale(1); } }

.ny-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ny-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 800; font-size: 15px; text-decoration: none; color: #1a1205;
  background: linear-gradient(90deg, var(--ny-gold), var(--ny-gold2)); box-shadow: 0 16px 34px -14px rgba(255,157,46,.85); transition: transform .18s ease, box-shadow .18s ease; }
.ny-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(255,157,46,.95); }
.ny-btn.ghost { color: #f4f6fb; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ny-btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,198,92,.6); }
.ny-fine { margin: 18px auto 0; max-width: 640px; font-size: 12px; line-height: 1.6; color: #6f7889; }

/* ---------- Price block on cards ---------- */
.ny-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 14px; }
.ny-price .ny-was { font-size: 20px; }
.ny-price .ny-now { font-size: 36px; text-shadow: none; }
.ny-price .ny-off { align-self: center; font-size: 11.5px; padding: 5px 10px; }
.ny-price small.ny-per { flex-basis: 100%; font-size: 12px; font-weight: 500; color: var(--mk-text-dim, #9aa3b5); }
.ny-bonus { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: #c9cfdb;
  background: linear-gradient(135deg, rgba(255,198,92,.13), rgba(20,211,138,.08)); border: 1px dashed rgba(255,198,92,.5); }
.ny-bonus i { flex: none; font-style: normal; font-size: 22px; }
.ny-bonus b { color: #ffc65c; }
.ny-bonus a { color: var(--mk-cyan, #4fd8e8); }
.eb-cover .ny-corner { position: absolute; top: 12px; right: -8px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; color: #1a1205; border-radius: 8px 0 0 8px;
  background: linear-gradient(90deg, var(--ny-gold), var(--ny-gold2)); box-shadow: 0 8px 20px -8px rgba(255,157,46,.8); }

/* ---------- Slim bar (course page / home) ---------- */
.ny-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; max-width: 1000px; margin: 0 auto 28px; padding: 14px 20px; border-radius: 14px; font-size: 14px; color: #dfe4ee;
  background: linear-gradient(90deg, rgba(255,198,92,.16), rgba(79,216,232,.10)); box-shadow: inset 0 0 0 1px rgba(255,198,92,.35); }
.ny-slim b { color: #ffc65c; }
.ny-slim .ny-clock { font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; padding: 3px 10px; border-radius: 8px; background: rgba(0,0,0,.35); }
.ny-slim a { font-weight: 800; color: #1a1205; padding: 7px 14px; border-radius: 9px; text-decoration: none; background: linear-gradient(90deg, var(--ny-gold), var(--ny-gold2)); }

/* Home poster extras */
.ebx-price .ny-was { font-size: 18px; margin-right: 8px; }
.ny-home-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 14px; border-radius: 12px; font-size: 13.5px; color: #dfe4ee; background: linear-gradient(90deg, rgba(255,198,92,.18), rgba(79,216,232,.10)); box-shadow: inset 0 0 0 1px rgba(255,198,92,.4); }
.ny-home-pill b { color: #ffc65c; }
.ny-home-pill .ny-clock { font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; }

@media (max-width: 560px) {
  .ny-banner { padding: 26px 16px 22px; border-radius: 18px; margin-bottom: 26px; }
  .ny-count { gap: 8px; }
  .ny-unit { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .ny-gift { flex-direction: column; text-align: center; }
  .ny-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-banner::before, .ny-banner::after, .ny-gift-ico, .ny-unit.is-tick b { animation: none !important; }
}

/* ===================== Pretty layer v2 ===================== */
@property --ny-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ny-banner { padding: 46px 34px 36px; border-radius: 28px; box-shadow: 0 40px 90px -40px rgba(255,157,46,.5), 0 0 0 1px rgba(255,198,92,.18); background-clip: border-box; border: 0;
  background:
    radial-gradient(620px 260px at 10% -8%, rgba(255,198,92,.26), transparent 70%),
    radial-gradient(560px 280px at 95% 108%, rgba(79,216,232,.24), transparent 70%),
    radial-gradient(380px 380px at 50% 40%, rgba(139,92,246,.10), transparent 70%),
    linear-gradient(165deg, #171b2c 0%, #0b0e17 100%); }
/* animated gold/cyan rim */
.ny-rim { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ny-a), rgba(255,198,92,.95), rgba(255,255,255,.05) 22%, rgba(79,216,232,.9) 48%, rgba(255,255,255,.05) 72%, rgba(255,198,92,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ny-spin 8s linear infinite; }
@keyframes ny-spin { to { --ny-a: 360deg; } }
.ny-banner > *:not(.ny-rim):not(.ny-year):not(.ny-confetti) { position: relative; z-index: 2; }

/* giant outlined year watermark */
.ny-year { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; user-select: none;
  font-weight: 900; letter-spacing: -.04em; line-height: 1; font-size: clamp(140px, 30vw, 300px); color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,198,92,.14); background: linear-gradient(180deg, rgba(255,198,92,.07), transparent 70%); -webkit-background-clip: text; background-clip: text; white-space: nowrap; }

/* confetti */
.ny-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ny-confetti i { position: absolute; top: -14px; left: var(--x); width: var(--s, 7px); height: calc(var(--s, 7px) * 1.6); background: var(--c); border-radius: 2px; opacity: 0;
  animation: ny-fall var(--t, 9s) linear var(--d, 0s) infinite; }
.ny-confetti i:nth-child(3n) { border-radius: 50%; height: var(--s, 7px); }
@keyframes ny-fall {
  0% { transform: translate3d(0,0,0) rotate(0); opacity: 0; }
  8% { opacity: .95; }
  100% { transform: translate3d(var(--dx, 24px), 520px, 0) rotate(560deg); opacity: 0; }
}

.ny-tag { padding: 8px 18px 8px 14px; font-size: 12px; box-shadow: 0 10px 30px -8px rgba(255,157,46,.8), inset 0 1px 0 rgba(255,255,255,.55); }
.ny-banner h2 { font-size: clamp(30px, 5.4vw, 52px); margin: 18px 0 12px; text-shadow: 0 6px 40px rgba(255,198,92,.25); }
.ny-banner h2 span { background-size: 200% 100%; animation: ny-hue 6s ease-in-out infinite alternate; }
@keyframes ny-hue { to { background-position: 100% 0; } }
.ny-lead { font-size: 16.5px; margin-bottom: 26px; }

/* price row with circular seal */
.ny-deal { gap: 8px 26px; margin-bottom: 28px; }
.ny-was { position: relative; font-size: 26px; text-decoration: none; }
.ny-was::after { content: ""; position: absolute; left: -6px; right: -6px; top: 52%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ff6b6b, #ff9d9d); transform: rotate(-9deg); box-shadow: 0 0 12px rgba(255,107,107,.7); }
.ny-price .ny-was { font-size: 20px; }
.ny-now { font-size: clamp(56px, 10vw, 84px); background: linear-gradient(180deg, #fff 30%, #ffe3a8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(255,198,92,.5)); }
.ny-now small { -webkit-text-fill-color: #9aa3b5; }
.ny-deal .ny-off { position: relative; width: 92px; height: 92px; padding: 0; display: grid; place-items: center; text-align: center; border-radius: 50%; transform: rotate(-8deg); line-height: 1.05; font-size: 12px; letter-spacing: .08em;
  background: radial-gradient(circle at 30% 25%, #39f0a8, #0fb877 70%); box-shadow: 0 16px 34px -10px rgba(20,211,138,.8), inset 0 2px 0 rgba(255,255,255,.4); }
.ny-deal .ny-off::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(20,211,138,.65); animation: ny-rot 18s linear infinite; }
.ny-deal .ny-off b { display: block; font-size: 28px; letter-spacing: -.02em; color: #05261a; }
.ny-deal .ny-off em { display: block; font-style: normal; font-size: 11px; letter-spacing: .16em; color: #05261a; }
@keyframes ny-rot { to { transform: rotate(360deg); } }

/* perk chips */
.ny-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 26px; }
.ny-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #dfe4ee; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.ny-chip i { font-style: normal; }

/* gift card: ribbon look */
.ny-gift { position: relative; padding: 20px 22px; border: 1px solid rgba(255,198,92,.4); border-style: solid; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,198,92,.16), rgba(20,211,138,.08) 60%, rgba(79,216,232,.10)); box-shadow: 0 20px 50px -30px rgba(255,157,46,.8); }
.ny-gift::after { content: "FREE"; position: absolute; top: 14px; right: -34px; transform: rotate(35deg); padding: 3px 40px; font-size: 11px; font-weight: 900; letter-spacing: .16em; color: #05261a; background: #14d38a; }
.ny-gift > div:last-child { padding-right: 36px; }
.ny-gift-ico { width: 58px; height: 58px; font-size: 30px; border-radius: 16px; }

/* countdown: glass tiles with separators */
.ny-count { gap: 6px; align-items: stretch; margin-bottom: 14px; }
.ny-unit { position: relative; min-width: 86px; padding: 16px 8px 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 30px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.14); }
.ny-unit::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.5); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.ny-unit::after { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 2px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, var(--ny-gold), transparent); }
.ny-unit b { font-size: clamp(32px, 7vw, 46px); text-shadow: 0 4px 18px rgba(255,198,92,.35); }
.ny-sep { align-self: center; font-size: 28px; font-weight: 800; color: rgba(255,198,92,.55); padding-bottom: 14px; animation: ny-blink 1s steps(2, jump-none) infinite; }
@keyframes ny-blink { 50% { opacity: .25; } }

/* time-left bar */
.ny-bar { max-width: 420px; margin: 0 auto 26px; }
.ny-bar-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.ny-bar-fill { display: block; height: 100%; width: var(--p, 100%); border-radius: inherit; background: linear-gradient(90deg, #14d38a, var(--ny-gold), #ff7a45); box-shadow: 0 0 16px rgba(255,157,46,.7); transition: width 1s linear; position: relative; }
.ny-bar-fill::after { content: ""; position: absolute; right: -1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(255,198,92,.9); }
.ny-bar small { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: .06em; color: #8a93a6; }

.ny-btn { padding: 16px 30px; font-size: 15.5px; border-radius: 14px; position: relative; overflow: hidden; }
.ny-btn:not(.ghost)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: ny-glint 3.6s ease-in-out infinite; }
@keyframes ny-glint { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.ny-btn.ghost { backdrop-filter: blur(6px); }

/* card extras */
.ny-price .ny-now { background: linear-gradient(180deg, #fff, #ffe3a8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; }
.ny-price .ny-off { border-radius: 99px; }
.ny-bonus { border-style: solid; border-color: rgba(255,198,92,.35); box-shadow: 0 14px 34px -22px rgba(255,157,46,.9); }

@media (max-width: 560px) {
  .ny-banner { padding: 34px 14px 26px; }
  .ny-unit { min-width: 0; flex: 1; padding: 12px 2px 9px; }
  .ny-sep { font-size: 20px; }
  .ny-deal .ny-off { width: 80px; height: 80px; }
  .ny-deal .ny-off b { font-size: 24px; }
  .ny-gift::after { display: none; }
  .ny-gift > div:last-child { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-rim, .ny-confetti i, .ny-sep, .ny-btn::after, .ny-deal .ny-off::before, .ny-banner h2 span { animation: none !important; }
  .ny-confetti { display: none; }
}