/* YADIM Page Loader. Hidden unless the head script switched it on; the failsafe in the head removes it whatever happens. */
#yadim-loader { display: none; }
html.yl-on { overflow: hidden; }
html.yl-on #yadim-loader { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; background: var(--yl-bg, #0b1020); color: var(--yl-text, #fff); text-align: center; }
#yadim-loader.yl-done { display: none !important; }
#yadim-loader .yl-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; max-width: 90vw; }
#yadim-loader .yl-logo { display: block; max-width: min(240px, 60vw); max-height: 120px; width: auto; height: auto; }
#yadim-loader .yl-text { margin: 0; font: 500 14px/1.4 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--yl-text, #fff); opacity: .85; }
#yadim-loader .yl-mark { display: block; width: 54px; height: 54px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--yl-accent, #7c9cff) 25%, transparent); border-top-color: var(--yl-accent, #7c9cff); animation: yl-spin .9s linear infinite; }
#yadim-loader.yl-pulse .yl-mark { border: 0; background: var(--yl-accent, #7c9cff); animation: yl-pulse 1.2s ease-in-out infinite; }
#yadim-loader .yl-dots { display: flex; gap: 10px; }
#yadim-loader .yl-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--yl-accent, #7c9cff); animation: yl-bounce 1s ease-in-out infinite; }
#yadim-loader .yl-dots i:nth-child(2) { animation-delay: .15s; }
#yadim-loader .yl-dots i:nth-child(3) { animation-delay: .3s; }
#yadim-loader .yl-bar { display: block; width: min(260px, 70vw); height: 4px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--yl-accent, #7c9cff) 22%, transparent); }
#yadim-loader .yl-bar i { display: block; height: 100%; width: calc(var(--yl-p, 0) * 100%); background: var(--yl-accent, #7c9cff); border-radius: 4px; }
#yadim-loader .yl-count { font: 600 clamp(40px, 9vw, 84px)/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--yl-accent, #7c9cff); }
@keyframes yl-spin { to { transform: rotate(360deg); } }
@keyframes yl-pulse { 0%, 100% { transform: scale(.6); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@keyframes yl-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-10px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #yadim-loader .yl-mark, #yadim-loader .yl-dots i { animation: none; }
}
@media print { #yadim-loader { display: none !important; } }
