/* ==========================================================================================
   NXTL UI kit — motion (lead-owned). Light and purposeful: one entrance per page, meters that fill,
   skeletons while data loads, a confirmation pulse on save. Under 400ms, transform/opacity only (no layout
   thrash), and all of it disabled for prefers-reduced-motion. No hover lifts, no looping decoration.
   ========================================================================================== */

@keyframes kitRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kitFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kitShimmer { from { background-position: -240px 0; } to { background-position: calc(240px + 100%) 0; } }
@keyframes kitPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* One page entrance: the main blocks settle in order (each page shows only some of these) */
  html body.nxtl-account :is(.next-for-you-card, .premium-entitlement-strip, form.home-line-picker, .home-primary-grid, .quick-actions-grid, .home-secondary-grid, #esimsContainer, .balance-summary-grid, #spendingControlsSection, .rewards-summary-grid) {
    animation: kitRise 320ms cubic-bezier(.2, .8, .2, 1) both;
  }
  html body.nxtl-account .home-primary-grid, html body.nxtl-account #esimsContainer, html body.nxtl-account #spendingControlsSection { animation-delay: 60ms; }
  html body.nxtl-account .quick-actions-grid, html body.nxtl-account .home-secondary-grid { animation-delay: 120ms; }

  /* Meters fill from zero to their value once */
  html body.nxtl-account :is(.kit-meter > span, .allowance-meter__fill) { transform-origin: left center; animation: kitFill 700ms cubic-bezier(.2, .8, .2, 1) 150ms both; }

  /* Segmented thumb and confirm bars respond softly */
  html body.nxtl-account :is(.segmented-control__btn, .nxtl-v2-segmented-btn, .nxtl-tier-quick__opt) { transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }

  /* Save confirmation: a small check that pops once (lanes add .kit-saved to a status line on success) */
  html body.nxtl-account .kit-saved::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; background: #00D68F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0C12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; animation: kitPop 260ms ease-out both; }
}

/* Skeletons replace plain "Loading…" text (static grey block when motion is reduced) */
html body.nxtl-account .kit-skeleton { display: block; border-radius: 8px; background: #1B202E; color: transparent !important; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  html body.nxtl-account .kit-skeleton { background: linear-gradient(90deg, #1B202E 0%, #232938 40%, #1B202E 80%) no-repeat #1B202E; background-size: 240px 100%; animation: kitShimmer 1.2s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
  html body.nxtl-account *, html body.nxtl-account *::before, html body.nxtl-account *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
