/* 🎄 Yangi yil mavsumi — faqat html.ny bölganda (server 1-dekabr — 10-yanvar orasida va «theme.newyear» yoqilganda qöyadi).
   Asosiy uslub (ranglar, şakllar, liquid glass) özgarmaydi: ustiga qor, gulçambar va bayram kartaçasi qöşiladi. */

html.ny {
  --ny-red: #c8443a;
  --ny-green: #2f7d5b;
  --ny-gold: #e0a83a;
  --ny-snow: rgba(255, 255, 255, 0.9);
}

.ny-snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 2147483000; }
html:not(.ny) .ny-snow { display: none; }
/* ❄ Qor — webapp/newyear-snow.js (canvas) çizadi, .ny-snow içida */

/* ✨ Gulçambar: yuqori panel va admin panel tepasi ostida kiçik rangli çiroqlar (miltillaydi) */
html.ny .topbar,
html.ny .adm-top,
html.ny .adm-brand { position: relative; }
html.ny .topbar::after,
html.ny .adm-brand::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -5px;
  height: 10px;
  pointer-events: none;
  background:
    radial-gradient(circle at 8px 6px, var(--ny-red) 2.6px, transparent 3.2px) 0 0 / 64px 10px repeat-x,
    radial-gradient(circle at 24px 6px, var(--ny-gold) 2.6px, transparent 3.2px) 0 0 / 64px 10px repeat-x,
    radial-gradient(circle at 40px 6px, var(--ny-green) 2.6px, transparent 3.2px) 0 0 / 64px 10px repeat-x,
    radial-gradient(circle at 56px 6px, #4a8fd6 2.6px, transparent 3.2px) 0 0 / 64px 10px repeat-x,
    linear-gradient(transparent 3px, rgba(60, 50, 40, 0.25) 3px, rgba(60, 50, 40, 0.25) 4px, transparent 4px) 0 0 / 100% 10px no-repeat;
  animation: ny-twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes ny-twinkle { from { filter: brightness(0.85) saturate(0.9); } to { filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 3px rgba(255, 200, 90, 0.6)); } }
@media (prefers-reduced-motion: reduce) { html.ny .topbar::after, html.ny .adm-brand::after { animation: none; } }

/* 🎁 Bosh sahifadagi bayram kartaçasi */
.ny-card { display: none; }
html.ny .ny-card {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, #1f5c45 0%, #2f7d5b 55%, #b8473a 140%);
  border: 0;
}
html.ny .ny-card .ny-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
html.ny .ny-card .ny-ico svg { width: 30px; height: 30px; }
html.ny .ny-card b { font-size: 18px; font-weight: 900; display: block; line-height: 1.2; }
html.ny .ny-card .ny-sub { font-size: 13px; font-weight: 600; opacity: 0.88; margin-top: 3px; }
html.ny .ny-card .ny-num { margin-left: auto; text-align: center; font-weight: 900; font-size: 28px; line-height: 1; }
html.ny .ny-card .ny-num small { display: block; font-size: 11px; font-weight: 700; opacity: 0.85; margin-top: 4px; }
html.ny .ny-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 20px, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 120px 60px, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 220px 30px, rgba(255, 255, 255, 0.5) 50%, transparent 51%);
  background-size: 260px 90px;
}

/* Logolar: qorli variant serverdan keladi; ozgina sovuq yaltiraş */
html.ny img.logo,
html.ny .adm-home img,
html.ny .login-logo,
html.ny .hero-logo { filter: drop-shadow(0 2px 6px rgba(120, 160, 200, 0.35)); }
