/**
 * NDG Capsule Pop icons — SVG + CSS motion (Style A)
 */
@keyframes ndg-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
@keyframes ndg-wiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-6deg); }
  60% { transform: rotate(5deg); }
}
@keyframes ndg-steam {
  0% { opacity: .2; transform: translateY(3px); }
  50% { opacity: .95; transform: translateY(-1px); }
  100% { opacity: .15; transform: translateY(-7px); }
}
@keyframes ndg-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: .72; }
}
@keyframes ndg-capsule {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-3px) rotate(8deg); }
}
@keyframes ndg-pin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes ndg-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ndg-hand {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ndg-bar {
  0%, 100% { transform: scaleY(.55); }
  50% { transform: scaleY(1); }
}
@keyframes ndg-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}

.ndg-ic {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  line-height: 0;
}
.ndg-ic svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}
.ndg-ic .ndg-a-bob { animation: ndg-bob 1.8s ease-in-out infinite; transform-origin: center; }
.ndg-ic .ndg-a-wiggle { animation: ndg-wiggle 2.2s ease-in-out infinite; transform-origin: 50% 70%; }
.ndg-ic .ndg-a-steam-1 { animation: ndg-steam 1.6s ease-in-out infinite; }
.ndg-ic .ndg-a-steam-2 { animation: ndg-steam 1.6s ease-in-out infinite .25s; }
.ndg-ic .ndg-a-pulse { animation: ndg-pulse 1.2s ease-in-out infinite; transform-origin: center; }
.ndg-ic .ndg-a-capsule { animation: ndg-capsule 1.7s ease-in-out infinite; transform-origin: center; }
.ndg-ic .ndg-a-pin { animation: ndg-pin 1.4s ease-in-out infinite; transform-origin: bottom center; }
.ndg-ic .ndg-a-spin { animation: ndg-spin 4.5s linear infinite; transform-origin: center; transform-box: fill-box; }
.ndg-ic .ndg-a-hand { animation: ndg-hand 8s linear infinite; transform-origin: 12px 12px; }
.ndg-ic .ndg-a-bar { animation: ndg-bar 1.8s ease-in-out infinite; transform-origin: bottom; }
.ndg-ic .ndg-a-shake { animation: ndg-shake 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .ndg-ic [class*="ndg-a-"] { animation: none !important; }
}

/* Bottom nav */
#mobile-app-tabbar .mob-tab-ic .ndg-ic {
  width: 28px;
  height: 28px;
}
#mobile-app-tabbar .mob-tab-fab .mob-tab-ic .ndg-ic {
  width: 30px;
  height: 30px;
}
#mobile-app-tabbar .mob-tab-ic img { display: none; }
#mobile-app-tabbar .mob-tab-ic-emoji { font-size: 0; }
#mobile-app-tabbar .mob-tab-ic-emoji .ndg-ic {
  width: 28px;
  height: 28px;
  font-size: initial;
}

/* Work featured / soon cards */
.mob-work-featured-ic .ndg-ic,
.mob-work-soon-ic .ndg-ic,
.mob-mission-ic .ndg-ic {
  width: 28px;
  height: 28px;
}
.mob-work-featured-ic img,
.mob-work-soon-ic img,
.mob-mission-ic img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Profile tiles */
.mob-profile-card-ic .ndg-ic {
  width: 26px;
  height: 26px;
}
.mob-profile-card-ic img { display: none; }
.mob-profile-card-ic.employee { background: #F3E8FF !important; }
.mob-profile-card-ic.payroll { background: #ECFDF5 !important; }
.mob-profile-card-ic.dash { background: #FFF0F8 !important; }
.mob-profile-card-ic.settings { background: #EDE9FE !important; font-size: 0 !important; }

/* MTTT home tiles */
.mttt-tile-ic .ndg-ic,
.mttt-sq .ndg-ic {
  display: block;
}
.mttt-tile-ic .ndg-ic { width: 58px; height: 58px; }
.mttt-sq .ndg-ic { width: 28px; height: 28px; }
.ndg-flood-pop-ic .ndg-ic {
  width: 32px;
  height: 32px;
  display: block;
}

/* Admin settings tiles */
#s-admin-settings .ah-tile-ic .ndg-ic {
  width: 40px;
  height: 40px;
}
#s-admin-settings .ah-hdr h2 .ndg-ic {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -4px;
  filter: brightness(0) invert(1);
}
#ah-settings-gear .ndg-ic {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

/* Leave accordion */
.mob-ls-card-ic {
  font-size: 0 !important;
  background: #F3E8FF !important;
}
.mob-ls-card-ic.leave { background: #FFE4E6 !important; }
.mob-ls-card-ic.half { background: #F3E8FF !important; }
.mob-ls-card-ic.swap { background: #E0F2FE !important; }
.mob-ls-card-ic .ndg-ic {
  width: 22px;
  height: 22px;
  font-size: initial;
}

/* Route card on check-in hub */
.ah-att-route-card-ic {
  font-size: 0 !important;
}
.ah-att-route-card-ic .ndg-ic {
  width: 26px;
  height: 26px;
  font-size: initial;
}
