/* ==========================================================================
   NOVDA LMS — Modern High-Performance Animation & UI System (2026 Edition)
   Bento Grids, Aceternity Spotlights, Shimmer Buttons, Glassmorphism & Micro-interactions
   ========================================================================== */

/* --- 1. Keyframes (Hardware Accelerated with GPU transforms) --- */
@keyframes nGlowPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes nFloatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes nShimmerSweep {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

@keyframes nBorderBeam {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@keyframes nAuroraFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes nBadgeBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- 2. Scroll Reveal Animations (AOS-style, zero-dependency) --- */
.n-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.n-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.n-reveal-zoom {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-reveal-zoom.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.n-reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.n-reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.n-delay-1 { transition-delay: 0.1s !important; }
.n-delay-2 { transition-delay: 0.2s !important; }
.n-delay-3 { transition-delay: 0.3s !important; }
.n-delay-4 { transition-delay: 0.4s !important; }

/* --- 3. Hero Modern Interactive Header & Typography --- */
.n-hero-rich-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.n-hero-top-announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #047857;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
  margin-bottom: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.n-hero-top-announcement:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.15);
}

.n-live-indicator-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  position: relative;
}

.n-live-indicator-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: nGlowPulse 1.8s infinite ease-in-out;
}

.n-hero-headline-modern {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0F2E1E;
  margin: 0 0 16px;
  max-width: 920px;
}

.n-hero-typing-accent {
  display: inline-block;
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-right: 4px;
  margin-right: 2px;
  border-right: 3px solid #10B981;
  animation: blinkCursor 0.75s infinite step-end;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: #10B981; }
}

.n-hero-sub-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: #475569;
  max-width: 760px;
  margin: 0 0 26px;
}

/* --- 4. Shimmer Glowing Buttons --- */
.n-btn-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.n-btn-shimmer:hover::before {
  animation: nShimmerSweep 1s ease-in-out;
}

.n-btn-shimmer:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.45);
}

.n-btn-shimmer:active {
  transform: translateY(-1px) scale(0.99);
}

/* --- 5. Bento Grid Quick Stats Strip (Under Hero) --- */
.n-hero-bento-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
  position: relative;
  z-index: 5;
}

@media (max-width: 1100px) {
  .n-hero-bento-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .n-hero-bento-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .n-hero-bento-strip {
    grid-template-columns: 1fr;
  }
}

.n-bento-stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.n-bento-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
}

.n-bento-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.n-bento-stat-card:hover .n-bento-stat-icon {
  transform: scale(1.1) rotate(4deg);
}

.icon-emerald-soft {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #059669;
  border: 1px solid #A7F3D0;
}

.icon-blue-soft {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.icon-amber-soft {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  color: #D97706;
  border: 1px solid #FDE68A;
}

.icon-purple-soft {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.icon-teal-soft {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  color: #0D9488;
  border: 1px solid #99F6E4;
}

.icon-cyan-soft {
  background: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%);
  color: #0891B2;
  border: 1px solid #A5F3FC;
}

.n-bento-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.n-bento-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
  margin-top: 4px;
}

/* --- 6. Aceternity-style Spotlight Card Effect --- */
.n-spotlight-card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.n-spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--spotlight-y, -1000px);
  left: var(--spotlight-x, -1000px);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.n-spotlight-card:hover::before {
  opacity: 1;
}

.n-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #34D399;
}

/* --- 7. Modern Bento Grid for "Biz haqimizda" --- */
.n-bento-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 991px) {
  .n-bento-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .n-bento-about-grid {
    grid-template-columns: 1fr;
  }
}

.n-bento-box-item {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.n-bento-box-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.09);
  border-color: #10B981;
}

.n-bento-box-hero {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(145deg, #072718 0%, #064E3B 100%);
  color: #FFFFFF;
  border-color: rgba(52, 211, 153, 0.3);
}

@media (max-width: 991px) {
  .n-bento-box-hero {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .n-bento-box-hero {
    grid-column: span 1;
  }
}

.n-bento-box-hero .n-bento-icon-lg {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #34D399;
  margin-bottom: 20px;
}

.n-bento-box-hero h3 {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
  line-height: 1.25;
}

.n-bento-box-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.n-bento-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.n-bento-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #E2E8F0;
  font-weight: 500;
}

.n-bento-features-list li i {
  color: #34D399;
  font-size: 16px;
}

.n-bento-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 12px;
}

.tag-emerald { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.tag-cyan { background: #ECFEFF; color: #0891B2; border: 1px solid #A5F3FC; }
.tag-amber { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.tag-indigo { background: #EEF2FF; color: #4F46E5; border: 1px solid #C7D2FE; }

.n-bento-box-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0F2E1E;
  margin: 0 0 8px;
}

.n-bento-box-item p {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* --- 8. Floating Action Dock (Quick Actions) --- */
.n-floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.n-dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  text-decoration: none;
}

.n-dock-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .n-floating-dock {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }
  .n-dock-btn {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

.btn-dock-telegram {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}

.btn-dock-test {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-dock-top {
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  border: none;
}

.btn-dock-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- 9. Confetti Canvas --- */
#n-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* --- 10. Auth & Test Portal Screen Centering Guarantee --- */
.n-login-page {
  min-height: 100vh;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 40px 20px !important;
}

.n-login-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.n-login-bg canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
}

.n-auth-content-container {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

/* --- 11. Modern Auth Centered Back Button --- */
.n-auth-bottom-nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 20;
}

.n-auth-bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  box-shadow: 0 4px 16px -2px rgba(11, 58, 31, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-auth-bottom-btn i {
  font-size: 16px;
  color: #059669;
  transition: transform 0.25s ease;
}

.n-auth-bottom-btn:hover {
  background: #FFFFFF;
  color: #059669;
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.25);
}

.n-auth-bottom-btn:hover i {
  transform: translateX(-4px);
}

/* --- 16. Live Visitor Counter Pill & Pulse Effect --- */
.n-footer-visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #ECFDF5;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.n-footer-visitor-counter:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

.n-footer-visitor-counter strong {
  color: #34D399;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.n-visitor-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: nVisitorPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes nVisitorPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

