/* ============ Whitelist — prezentare animată (slideshow) ============ */
.features-page .fp-body { overflow: hidden; display: flex; }
.wl { position: relative; flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-height: 0; min-width: 0; width: 100%; outline: none; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(16,185,129,.13), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(59,130,246,.10), transparent 60%), var(--bg-warm); }

/* Nori care plutesc în fundal */
.wl-clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wl-clouds i { position: absolute; width: 180px; height: 60px; border-radius: 60px; background: var(--bg); opacity: .55; filter: blur(.3px); animation: wlCloud 38s linear infinite; }
.wl-clouds i::before, .wl-clouds i::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.wl-clouds i::before { width: 80px; height: 80px; left: 26px; top: -40px; }
.wl-clouds i::after { width: 60px; height: 60px; left: 90px; top: -28px; }
.wl-clouds i:nth-child(1) { top: 12%; animation-duration: 46s; animation-delay: -6s; }
.wl-clouds i:nth-child(2) { top: 30%; transform: scale(.7); animation-duration: 58s; animation-delay: -30s; opacity: .4; }
.wl-clouds i:nth-child(3) { top: 62%; transform: scale(.55); animation-duration: 64s; animation-delay: -12s; opacity: .35; }
.wl-clouds i:nth-child(4) { top: 78%; transform: scale(.85); animation-duration: 52s; animation-delay: -44s; opacity: .3; }
@keyframes wlCloud { from { left: -220px; } to { left: 110%; } }

/* Scena și slide-urile */
.wl-stage { position: relative; min-height: 0; }
.wl-slide { position: absolute; inset: 0; overflow: auto; padding: 36px 88px 24px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  opacity: 0; visibility: hidden; transform: translateX(60px) rotate(1deg) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.25,1.05), visibility 0s .55s; }
.wl-slide.before { transform: translateX(-60px) rotate(-1deg) scale(.97); }
.wl-slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.25,1.05), visibility 0s; }
.wl-slide > * { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }

.wl-head { display: flex; align-items: center; gap: 16px; }
.wl-ic { width: 58px; height: 58px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff;
  background: linear-gradient(135deg, var(--emerald), #0ea5e9); box-shadow: 0 10px 24px -10px rgba(16,185,129,.7); }
.wl-slide.active .wl-ic { animation: wlWiggle .9s cubic-bezier(.3,1.6,.5,1) .1s both; }
.wl-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-deep); display: flex; gap: 8px; align-items: center; }
.wl-page { background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.wl-h1, .wl-h2 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.wl-h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }

/* Elementele intră cu „pop", unul după altul */
.wl-slide.active .wl-pop { animation: wlPop .55s cubic-bezier(.2,1.45,.4,1) both; animation-delay: calc(var(--d, 0) * 55ms + 140ms); }
@keyframes wlPop { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes wlWiggle { 0% { transform: scale(.4) rotate(-20deg); } 60% { transform: scale(1.1) rotate(6deg); } 100% { transform: none; } }

.wl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.wl-card { background: var(--bg); border: 1px solid var(--slate); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.wl-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--emerald), #0ea5e9); opacity: .8; }
.wl-card:hover { transform: translateY(-3px) rotate(-.4deg); border-color: var(--emerald); box-shadow: 0 14px 30px -18px rgba(16,185,129,.6); }
.wl-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.wl-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

.wl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--slate); border-radius: 999px; padding: 9px 15px;
  font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.wl-chip .mi { color: var(--emerald); width: 16px; height: 16px; }
.wl-chip:hover { transform: translateY(-2px) scale(1.03); border-color: var(--emerald); }

.wl-fmts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wl-fmt { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border: 1px solid var(--slate); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.wl-fmt code { align-self: flex-start; font-size: 12.5px; font-weight: 800; color: var(--emerald-deep); background: var(--accent-soft); border: 1px solid #a7f3d0; border-radius: 8px; padding: 3px 9px; }
.wl-fmt span { font-size: 13.5px; color: var(--ink-soft); }

/* Intro */
.wl-intro { text-align: center; align-items: center; }
.wl-badge { width: auto !important; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--emerald-deep); background: var(--accent-soft); border: 1px solid #a7f3d0; padding: 6px 14px; border-radius: 999px; }
.wl-h1 { font-size: clamp(34px, 6.5vw, 68px); font-weight: 800; line-height: 1.05; }
.wl-h1 span { display: inline-block; }
.wl-slide.active .wl-h1 span { animation: wlDrop .8s cubic-bezier(.2,1.5,.4,1) both; }
.wl-slide.active .wl-h1 span + span { animation-delay: .15s; }
@keyframes wlDrop { from { opacity: 0; transform: translateY(-40px) rotate(-6deg); } to { opacity: 1; transform: none; } }
.wl-grad { background: linear-gradient(90deg, var(--emerald), #0ea5e9, var(--emerald)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wlShine 4s linear infinite; }
@keyframes wlShine { to { background-position: 200% center; } }
.wl-acronym { font-size: 14px; color: var(--ink-soft); margin: 0; }
.wl-acronym b { color: var(--emerald-deep); }
.wl-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.6; max-width: 640px !important; margin: 0 auto; }
.wl-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.wl-stat { background: var(--bg); border: 1px solid var(--slate); border-radius: 18px; padding: 16px 22px; min-width: 140px; box-shadow: var(--shadow); }
.wl-stat b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 30px; font-weight: 800; color: var(--emerald-deep); }
.wl-stat span { font-size: 12.5px; color: var(--ink-faint); }
.wl-hint { font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 6px; justify-content: center; margin: 0; }

/* Final */
.wl-outro { text-align: center; align-items: center; }
.wl-outro-sheep { width: 140px !important; }
.wl-slide.active .wl-outro-sheep { animation: wlBounce 1.1s ease-in-out infinite; }
.wl-outro-sheep .wl-sheep-svg { width: 140px; height: auto; }
@keyframes wlBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px) rotate(-4deg); } }
.wl-cta { width: auto !important; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(135deg, var(--emerald), #0ea5e9); padding: 12px 22px; border-radius: 999px; box-shadow: 0 12px 26px -12px rgba(16,185,129,.8); transition: transform .2s; }
.wl-cta:hover { transform: translateY(-2px) scale(1.04); }
.wl-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.wl-credits div { background: var(--bg); border: 1px solid var(--slate); border-radius: 16px; padding: 14px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 190px; box-shadow: var(--shadow); }
.wl-credits span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-deep); }
.wl-credits b { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); }
.wl-credits small { font-size: 12.5px; color: var(--ink-soft); margin: -2px 0 4px; }
.wl-credits a { color: var(--emerald-deep); text-decoration: none; }
.wl-credits a:hover { text-decoration: underline; }
.wl-madeby { font-size: 14px; color: var(--ink-soft); margin: 0; }
.wl-madeby a { color: var(--emerald-deep); font-weight: 700; text-decoration: none; }
.wl-madeby .heart { vertical-align: -2px; animation: heartbeat 1.6s ease-in-out infinite; }

/* Săgeți */
.wl-arrow { position: absolute; top: calc(50% - 60px); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--slate); background: var(--bg);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, opacity .2s; }
.wl-arrow:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald-deep); transform: scale(1.1); }
.wl-arrow:disabled { opacity: .3; cursor: default; }
.wl-prev { left: 20px; } .wl-next { right: 20px; }

/* Bara de jos: pista cu oița + capitole */
.wl-bottom { position: relative; z-index: 2; min-width: 0; padding: 0 24px 14px; background: linear-gradient(transparent, var(--bg-warm) 40%); }
.wl-track { position: relative; height: 6px; margin: 84px 34px 14px; border-radius: 99px; background: var(--slate); }
.wl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), #0ea5e9); transition: width .6s cubic-bezier(.3,.9,.3,1); }
.wl-runner { position: absolute; bottom: 2px; width: 62px; transition: left .6s cubic-bezier(.3,.9,.3,1); }
.wl-sheep { width: 62px; transform-origin: 50% 100%; }
.wl-runner.back .wl-sheep { transform: scaleX(-1); }
.wl-sheep-svg { width: 100%; height: auto; display: block; overflow: visible; }
.wl-wool circle { fill: #fff; stroke: #d1d5db; stroke-width: 1.2; }
.wl-head ellipse { fill: #374151; } .wl-head .wl-eye { fill: #fff; } .wl-head .wl-ear { fill: #4b5563; }
.wl-leg { fill: #374151; transform-box: fill-box; transform-origin: 50% 0; }
.wl-runner.hop .wl-sheep { animation: wlHop .6s cubic-bezier(.3,1.4,.5,1); }
.wl-runner.back.hop .wl-sheep { animation-name: wlHopBack; }
.wl-runner.hop .wl-leg.l1, .wl-runner.hop .wl-leg.l3 { animation: wlStep .15s linear 4 alternate; }
.wl-runner.hop .wl-leg.l2, .wl-runner.hop .wl-leg.l4 { animation: wlStep .15s linear 4 alternate-reverse; }
@keyframes wlHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-8deg); } }
@keyframes wlHopBack { 0%, 100% { transform: scaleX(-1); } 40% { transform: scaleX(-1) translateY(-14px) rotate(-8deg); } }
@keyframes wlStep { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.wl-sheep .wl-head { transform-box: fill-box; transform-origin: 20% 60%; animation: wlNod 3.2s ease-in-out infinite; }
@keyframes wlNod { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(12deg); } }

.wl-bubble { position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(320px, 70vw); background: var(--bg); color: var(--ink);
  border: 1px solid var(--slate); border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 600; line-height: 1.4; box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.wl-bubble::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 10px; height: 10px; background: inherit; border-right: 1px solid var(--slate); border-bottom: 1px solid var(--slate); transform: translateX(-50%) rotate(45deg); }
.wl-runner.start .wl-bubble { left: 0; transform: none; } .wl-runner.start .wl-bubble::after { left: 22px; }
.wl-runner.end .wl-bubble { left: auto; right: 0; transform: none; } .wl-runner.end .wl-bubble::after { left: auto; right: 12px; }
.wl-bubble.show { animation: wlBubble 6s ease both; }
@keyframes wlBubble { 0% { opacity: 0; margin-bottom: -8px; } 8%, 85% { opacity: 1; margin-bottom: 0; } 100% { opacity: 0; } }

.wl-controls { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-tabs { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.wl-tabs::-webkit-scrollbar { display: none; }
.wl-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--slate); background: var(--bg); color: var(--ink-soft); border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.wl-tab .mi { width: 15px; height: 15px; }
.wl-tab:hover { border-color: var(--emerald); color: var(--emerald-deep); }
.wl-tab.active { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.wl-play { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--slate); background: var(--bg); color: var(--ink-soft); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.wl-play.on { border-color: var(--emerald); color: var(--emerald-deep); background: var(--accent-soft); }
.wl-play .mi { width: 14px; height: 14px; }
.wl-counter { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }

/* Rezultatele căutării */
.wl-results { position: absolute; top: 12px; left: 0; right: 0; margin: 0 auto; z-index: 6; width: min(640px, calc(100% - 32px)); max-height: 70%; overflow: auto;
  background: var(--bg); border: 1px solid var(--slate); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); padding: 8px; animation: wlPop .3s ease both; }
.wl-res-head { font-size: 12px; font-weight: 700; color: var(--ink-faint); padding: 6px 10px; text-transform: uppercase; letter-spacing: .06em; }
.wl-res { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.wl-res:hover, .wl-res:focus-visible { background: var(--accent-soft); }
.wl-res > .mi { flex-shrink: 0; color: var(--emerald-deep); margin-top: 2px; }
.wl-res span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-res b { font-size: 14px; } .wl-res small { font-size: 12.5px; color: var(--ink-soft); }
.wl-res em { font-style: normal; font-size: 11.5px; color: var(--emerald-deep); font-weight: 700; }
.wl-res-empty { display: flex; align-items: center; gap: 8px; padding: 18px; color: var(--ink-soft); font-size: 14px; }

@media (max-width: 760px) {
  .wl-slide { padding: 20px 16px 12px; justify-content: flex-start; gap: 16px; }
  .wl-arrow { top: auto; bottom: 74px; width: 40px; height: 40px; }
  .wl-prev { left: 10px; } .wl-next { right: 10px; }
  .wl-cards { grid-template-columns: 1fr; gap: 10px; }
  .wl-card { padding: 12px 14px; }
  .wl-ic { width: 46px; height: 46px; border-radius: 14px; }
  .wl-tab span { display: none; }
  .wl-tab { padding: 8px; }
  .wl-track { margin: 62px 12px 12px; }
  .wl-bottom { padding: 0 12px 10px; }
  .wl-chip { font-size: 13px; padding: 7px 12px; }
  .wl-bubble.show { animation-duration: 3.2s; }
  .wl-bubble { font-size: 12px; max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .wl *, .wl *::before, .wl *::after { animation: none !important; transition-duration: .01ms !important; }
  .wl-bubble { opacity: 1; }
}
