/* Homepage-only recreation of src/components/NDTAcademyPopup.jsx */
.ndt-popup-overlay[hidden] { display: none !important; }
.ndt-popup-overlay,
.ndt-popup-overlay * { box-sizing: border-box; }
.ndt-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 53, 88, .65);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: ndtOverlayIn .25s ease both;
}
.ndt-popup-overlay.is-closing { animation: ndtOverlayOut .25s ease both; }
.ndt-popup-modal {
  position: relative;
  width: 420px;
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  color: #0b3558;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: ndtModalIn .32s cubic-bezier(.22,1,.36,1) both;
  overscroll-behavior: contain;
}
.ndt-popup-overlay.is-closing .ndt-popup-modal { animation: ndtModalOut .32s ease both; }
.ndt-popup-header {
  position: relative;
  padding: 32px 28px 60px;
  color: #fff;
  background: linear-gradient(135deg, #0b3558, #0057a8);
}
.ndt-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  transition: background .2s ease;
}
.ndt-popup-close:hover { background: rgba(255,255,255,.18); }
.ndt-popup-close svg { display: block; flex: 0 0 auto; }
.ndt-popup-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.4;
}
.ndt-popup-header h2 {
  margin: 16px 0 0;
  color: #fff;
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
}
.ndt-popup-badge {
  position: absolute;
  top: 108px;
  right: 24px;
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.3));
  transform-origin: center center;
  will-change: transform, opacity;
  animation: ndtBadgeStamp .85s cubic-bezier(.22,1,.36,1) .45s both;
}
.ndt-popup-body { padding: 28px; background: #fff; }
.ndt-popup-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.ndt-popup-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.ndt-popup-award { flex: 0 0 16px; margin-top: 2px; color: #0057a8; }
.ndt-popup-actions { display: flex; flex-direction: column; gap: 12px; }
.ndt-popup-modal .ndt-popup-btn-primary,
.ndt-popup-modal .ndt-popup-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.ndt-popup-modal .ndt-popup-btn-primary {
  color: #fff;
  border: 1px solid #0057a8;
  background: #0057a8;
}
.ndt-popup-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,87,168,.28); }
.ndt-popup-modal .ndt-popup-btn-secondary {
  color: #0b3558;
  border: 2px solid #0b3558;
  background: #fff;
}
.ndt-popup-btn-secondary:hover { color: #fff; background: #0b3558; }
.ndt-popup-modal button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
@keyframes ndtOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ndtOverlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes ndtModalIn { 0% { opacity: 0; transform: translateY(24px) scale(.94); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ndtModalOut { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes ndtBadgeStamp {
  0% { opacity: 0; transform: translateY(-220px) scale(1.45) rotate(-10deg); }
  15% { opacity: 1; }
  55% { opacity: 1; transform: translateY(0) scale(1.18) rotate(-8deg); }
  65% { transform: translateY(10px) scale(.88) rotate(-8deg); }
  78% { transform: translateY(-5px) scale(1.06) rotate(-8deg); }
  90% { transform: translateY(2px) scale(.98) rotate(-8deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-8deg); }
}
@media (max-width: 480px) {
  .ndt-popup-modal { width: 92vw; max-height: calc(100dvh - 32px); }
  .ndt-popup-header { padding: 28px 20px 60px; }
  .ndt-popup-header h2 { max-width: 100%; font-size: 22px; padding-right: 0; }
  .ndt-popup-body { padding: 24px 20px; }
  .ndt-popup-badge { top: 110px; right: 16px; width: 72px; height: 72px; }
  .ndt-popup-close { width: 48px; height: 48px; top: 8px; right: 8px; }
  .ndt-popup-label { max-width: calc(100% - 48px); font-size: 11px; }
}
@media (max-width: 360px) {
  .ndt-popup-header h2 { font-size: 20px; }
  .ndt-popup-badge { width: 64px; height: 64px; top: 112px; }
  .ndt-popup-features li { font-size: 13px; }
  .ndt-popup-modal .ndt-popup-btn-primary,
  .ndt-popup-modal .ndt-popup-btn-secondary { font-size: 14px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ndt-popup-overlay, .ndt-popup-modal, .ndt-popup-badge { animation: none !important; }
  .ndt-popup-modal .ndt-popup-btn-primary, .ndt-popup-modal .ndt-popup-btn-secondary { transition: none; }
}
