/* ── P23. AMIT PERSONAL GUIDE — floating advisor images ──────── */

.amit-guide {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(12px);
}

.amit-guide.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.amit-guide-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.amit-guide-bubble {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: rgba(15, 25, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  line-height: 1.4;
  max-width: 220px;
  white-space: normal;
  text-align: center;
}

.amit-guide-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(15, 25, 45, 0.95);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* Amit guide position — floating at top-start of card */
.planner-panel .amit-guide {
  top: -20px;
  inset-inline-start: -10px;
}

@media (max-width: 768px) {
  .amit-guide {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    opacity: 0 !important;
    transform: none !important;
  }
  .amit-guide.is-visible { opacity: 1 !important; }
  .amit-guide-img { width: 36px; height: 36px; }
  .amit-guide-bubble {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 0.82rem;
    white-space: normal;
    box-shadow: none !important;
    border: none !important;
    text-align: start;
  }
  .amit-guide-bubble::after { display: none; }
}

/* ── P24. AHA MOMENTS — premium toast notifications ──────────── */

.aha-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0d1f33;
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 8px 32px rgba(7, 30, 54, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}

.aha-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .aha-toast {
    font-size: 0.82rem;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    bottom: 1.5rem;
    white-space: normal;
    max-width: 85vw;
  }
}

/* ── P25. TOOLTIPS — premium styled ──────────────────────────── */

.premium-tooltip {
  position: relative;
  cursor: help;
}

.premium-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-start: 50%;
  transform: translateX(50%); /* RTL: positive = leftward */
  background: #0d1f33;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  white-space: normal;
  max-width: 240px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.premium-tooltip:hover::after,
.premium-tooltip:focus-within::after {
  opacity: 1;
}

/* ── P26. ANIMATIONS — soft fade & slide ─────────────────────── */

/* Override step transitions to soft fade + slide up */
@keyframes premiumFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premiumFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.planner-panel.active .calc-card {
  animation: premiumFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* Count-up animation highlight */
@keyframes numberPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); color: var(--brand-accent); }
  100% { transform: scale(1); }
}

.number-counting {
  animation: numberPop 0.6s ease;
}

/* ── P27. SLIDER REFINEMENT — vivid on dark ─────────────────────── */

input[type="range"]:not(.goals-tuner-slider):not(.goals-ms-slider):not(.goals-toggle-slider):not(.goals-lifestyle-slider) {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

input[type="range"]:not(.goals-tuner-slider):not(.goals-ms-slider):not(.goals-toggle-slider):not(.goals-lifestyle-slider)::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-accent, #0fb9a8);
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(15, 185, 168, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]:not(.goals-tuner-slider):not(.goals-ms-slider):not(.goals-toggle-slider):not(.goals-lifestyle-slider)::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(15, 185, 168, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="range"]:not(.goals-tuner-slider):not(.goals-ms-slider):not(.goals-toggle-slider):not(.goals-lifestyle-slider)::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-accent, #0fb9a8);
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(15, 185, 168, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* ── P28. MOBILE PREMIUM REFINEMENTS ─────────────────────────── */

@media (max-width: 768px) {
  .planner-panel .calc-card {
    padding: 2rem 1.5rem !important;
    border-radius: 20px !important;
  }

  .planner-hero {
    padding: 2.25rem 1.75rem 2rem !important;
    border-radius: 20px !important;
    margin-bottom: 2rem !important;
  }

  .planner-title {
    font-size: 1.85rem !important;
  }

  .planner-panel .calc-title {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 480px) {
  .planner-panel .calc-card {
    padding: 1.75rem 1.25rem !important;
    border-radius: 18px !important;
  }

  .planner-hero {
    padding: 2rem 1.25rem 1.75rem !important;
    border-radius: 16px !important;
  }

  .planner-title {
    font-size: 1.65rem !important;
  }

  .planner-panel .calc-title {
    font-size: 1.25rem !important;
  }

  .planner-next {
    padding: 0.9rem 2rem !important;
    font-size: 0.9rem !important;
  }

  .planner-steps {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

/* ── P29. REDUCED MOTION — respect accessibility ─────────────── */

@media (prefers-reduced-motion: reduce) {
  .planner-panel.active .calc-card {
    animation: none !important;
  }
  .amit-guide {
    transition: none !important;
  }
  .aha-toast {
    transition: none !important;
  }
  .number-counting {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   GOALS GALLERY — Pinterest-style category cards (v2)
   ══════════════════════════════════════════════════════════════════════════ */

.goals-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.goals-gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.75rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  min-height: 120px;
}

.goals-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.goals-gallery-card--active {
  border-color: var(--brand-accent, #0fb9a8);
  box-shadow: 0 4px 16px rgba(15, 185, 168, 0.2);
  transform: translateY(-2px);
}

.goals-gallery-card-icon { font-size: 2.2rem; line-height: 1; }

.goals-gallery-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.01em;
  text-align: center;
}

.goals-gallery-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--brand-accent, #0fb9a8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(15, 185, 168, 0.3);
}

/* Children Preset Banner */
.goals-children-preset {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 40%, #fff 100%);
  margin-bottom: 1.5rem;
  border: 1.5px solid rgba(233, 30, 99, 0.12);
}

.goals-children-preset-icon { font-size: 1.8rem; flex-shrink: 0; }
.goals-children-preset-info { flex: 1; min-width: 0; }
.goals-children-preset-title { display: block; font-size: 0.9rem; font-weight: 700; color: #1a202c; margin-bottom: 0.2rem; }
.goals-children-preset-desc { display: block; font-size: 0.76rem; color: rgba(0,0,0,0.5); line-height: 1.4; }

.goals-children-preset-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--brand-accent, #0fb9a8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goals-children-preset-btn:hover { background: #0da898; transform: translateY(-1px); }
.goals-children-preset-btn:disabled { background: #a5d6a7; cursor: default; transform: none; }

/* Amit Tip */
.goals-amit-tip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.goals-amit-tip--visible { opacity: 1; transform: translateY(0); }

.goals-amit-tip-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.goals-amit-tip-text { font-size: 0.84rem; color: #2d3748; line-height: 1.5; font-weight: 500; margin: 0; }

/* Category Detail Panel */
.goals-category-detail {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1.5px solid rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.goals-category-detail--visible { opacity: 1; transform: translateY(0); }

.goals-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.goals-detail-header-icon { font-size: 1.6rem; }
.goals-detail-header-title { font-size: 1.1rem; font-weight: 800; color: #1a202c; flex: 1; margin: 0; }

.goals-detail-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.04);
  color: #718096;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.goals-detail-close:hover { background: rgba(0,0,0,0.08); color: #2d3748; }

/* Quick Chips */
.goals-detail-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.goals-quick-chip {
  padding: 0.6rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.02);
  color: #2d3748;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.goals-quick-chip:hover {
  border-color: var(--brand-accent, #0fb9a8);
  background: rgba(15, 185, 168, 0.07);
  color: var(--brand-teal, #0fb9a8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 185, 168, 0.12);
}

.goals-quick-chip--added {
  background: var(--brand-accent, #0fb9a8) !important;
  color: #fff !important;
  border-color: var(--brand-accent, #0fb9a8) !important;
  transform: scale(0.96);
}

/* Vehicle Cycle UI */
.goals-vehicle-cycle {
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.goals-vehicle-cycle-title { font-size: 0.92rem; font-weight: 700; color: #1a202c; margin: 0 0 0.3rem; }
.goals-vehicle-cycle-desc { font-size: 0.76rem; color: rgba(0,0,0,0.5); margin: 0 0 1rem; line-height: 1.4; }
.goals-vehicle-cycle-fields { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.goals-vehicle-field { flex: 1; min-width: 100px; }
.goals-vehicle-field label { display: block; font-size: 0.72rem; font-weight: 600; color: rgba(0,0,0,0.45); margin-bottom: 0.35rem; }

.goals-vehicle-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.1);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a202c;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.goals-vehicle-input:focus { border-color: var(--brand-accent, #0fb9a8); outline: none; }
.goals-vehicle-preview { font-size: 0.78rem; color: rgba(0,0,0,0.55); line-height: 1.6; margin-bottom: 0.75rem; }
.goals-vehicle-preview strong { color: var(--brand-teal, #0fb9a8); }

.goals-vehicle-add-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: 12px;
  border: none;
  background: var(--brand-accent, #0fb9a8);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goals-vehicle-add-btn:hover { background: #0da898; }
.goals-vehicle-add-btn--done { background: #43a047; }

@media (max-width: 600px) {
  .goals-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .goals-gallery-card { padding: 1.25rem 0.75rem; min-height: 100px; }
  .goals-gallery-card-icon { font-size: 1.8rem; }
  .goals-gallery-card-title { font-size: 0.78rem; }
  .goals-children-preset { flex-direction: column; text-align: center; gap: 0.75rem; }
  .goals-amit-tip { flex-direction: column; text-align: center; gap: 0.75rem; }
  .goals-detail-chips { gap: 0.5rem; }
  .goals-quick-chip { font-size: 0.78rem; padding: 0.5rem 0.9rem; }
  .goals-vehicle-cycle-fields { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 1 SUB-PROGRESS — personal → professional phase indicator
   ══════════════════════════════════════════════════════════════════════════ */

.step1-sub-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 185, 168, 0.04);
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(15, 185, 168, 0.1);
  width: fit-content;
}

.step1-sub-dot {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full, 999px);
  cursor: default;
  color: var(--text-muted, rgba(255,255,255,0.5));
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step1-sub-dot--active {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-teal, #0fb9a8), var(--brand-accent, #0ecfbc));
  box-shadow: 0 2px 8px rgba(15, 185, 168, 0.3);
}

.step1-sub-dot--done {
  color: var(--brand-teal, #0fb9a8);
  position: relative;
}
.step1-sub-dot--done::after {
  content: ' \2713';
  font-size: 0.7rem;
}

.step1-sub-sep {
  color: rgba(15, 185, 168, 0.3);
  font-size: 0.7rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   DISABLED BUTTON STATE — for gated navigation
   ══════════════════════════════════════════════════════════════════════════ */

.calc-btn:disabled,
.calc-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto; /* keep pointer for tooltip */
  filter: grayscale(0.3);
}
.calc-btn:disabled:hover,
.calc-btn[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — Focus-visible states (replacing outline: none)
   ══════════════════════════════════════════════════════════════════════════ */

*:focus-visible {
  outline: 2px solid var(--brand-accent, #0ecfbc);
  outline-offset: 2px;
}

/* Subtle focus for inputs */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-accent, #0ecfbc);
  outline-offset: 1px;
}

/* Buttons get a teal ring */
button:focus-visible,
.calc-btn:focus-visible,
.planner-step:focus-visible {
  outline: 2px solid var(--brand-accent, #0ecfbc);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(15, 185, 168, 0.15);
}

/* NRS dots navigation — add aria-current support */
.nrs-dot[aria-current="true"] {
  outline: 2px solid var(--brand-accent, #0ecfbc);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE FIXES — padding, layout shifts, touch targets
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Fix sticky summary card overlap on steps 3, 4 */
  #step-3 .planner-nav-btns,
  #step-4 .planner-nav-btns {
    padding-bottom: 6rem;
  }

  /* Fix amit-guide layout shift — reserve space before visible */
  .amit-guide {
    min-height: 48px;
    visibility: hidden;
  }
  .amit-guide.is-visible {
    visibility: visible;
    opacity: 1 !important;
  }

  /* Larger touch targets for income chips */
  .income-chip {
    padding: 0.65rem 1.25rem;
    min-height: 44px;
  }

  /* Step 1 sub-progress mobile */
  .step1-sub-progress {
    padding: 0.3rem 0.5rem;
  }
  .step1-sub-dot {
    font-size: 0.76rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PLANNER WARNING — improve contrast (was opacity 0.48, now 0.65)
   ══════════════════════════════════════════════════════════════════════════ */

.planner-warning {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Step nav buttons — increase inactive opacity for better visibility */
.planner-step {
  opacity: 0.65 !important;
}
.planner-step.active {
  opacity: 1 !important;
}
.planner-step.completed {
  opacity: 0.85 !important;
}

/* Trust badge separator — fix RTL positioning */
.trust-badge + .trust-badge::before {
  right: auto !important;
  inset-inline-end: 0;
}

/* Input error — add shape indicator for color-blind users */
input.input-error::after,
.input-error + .input-hint::before {
  content: '\26A0 ';
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO PERCENTAGE RING — SVG ring around the % number
   ══════════════════════════════════════════════════════════════════════════ */

.nrs-hero-pct-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 1.5rem auto;
}

.nrs-hero-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nrs-hero-ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.nrs-hero-ring-fill {
  stroke: var(--brand-accent, #0ecfbc);
  transition: stroke-dasharray 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nrs-hero-pct-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO MINI CTA — appetite opener
   ══════════════════════════════════════════════════════════════════════════ */

.nrs-hero-mini-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 185, 168, 0.3);
  background: rgba(15, 185, 168, 0.06);
  color: var(--brand-accent, #0ecfbc);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nrs-hero-mini-cta:hover {
  background: rgba(15, 185, 168, 0.12);
  border-color: var(--brand-accent, #0ecfbc);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 185, 168, 0.2);
}

/* ══════════════════════════════════════════════════════════════════════════
   LOADER LINES STAGGER — cinematic build-up
   ══════════════════════════════════════════════════════════════════════════ */

.loader-line {
  opacity: 0;
  transform: translateY(8px);
  animation: loaderLineIn 0.5s ease forwards;
}
.loader-line:nth-child(1) { animation-delay: 0s; }
.loader-line:nth-child(2) { animation-delay: 0.8s; }
.loader-line:nth-child(3) { animation-delay: 1.6s; }
.loader-line:nth-child(4) { animation-delay: 2.4s; }

@keyframes loaderLineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   SKELETON LOADING — NRS cards shimmer before data loads
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nrs-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%) !important;
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  color: transparent !important;
  border-radius: 8px;
  min-height: 1.2em;
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTON CLICK FEEDBACK — tactile response
   ══════════════════════════════════════════════════════════════════════════ */

.calc-btn:active,
.planner-next:active,
.planner-prev:active {
  transform: scale(0.96) !important;
  transition-duration: 0.08s !important;
}

.planner-next.is-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
.planner-next.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  display: inline-block;
  margin-inline-start: 0.5rem;
  vertical-align: middle;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════════════════
   PROGRESS CELEBRATION — confetti burst on step completion
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes celebratePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

.planner-step.just-completed .step-num {
  animation: celebratePulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.planner-step.just-completed::after {
  content: '\2713';
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: celebratePulse 0.5s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   SNAP CARDS HIERARCHY — first card is hero, rest secondary
   ══════════════════════════════════════════════════════════════════════════ */

.nrs-snapshot-grid .nrs-snap-card:first-child {
  grid-column: 1 / -1;
  padding: 1.25rem 1.5rem;
}
.nrs-snapshot-grid .nrs-snap-card:first-child .nrs-snap-value {
  font-size: 1.6rem;
  font-weight: 900;
}
.nrs-snapshot-grid .nrs-snap-card:first-child .nrs-snap-label {
  font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   CARD DEPTH — subtle gradient for premium feel
   ══════════════════════════════════════════════════════════════════════════ */

.planner-panel .calc-card {
  background: linear-gradient(160deg, #ffffff 0%, #fafcfc 100%) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESULTS SECTION REVEAL — scroll-triggered animation
   ══════════════════════════════════════════════════════════════════════════ */

.results-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.results-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* NRS screens — staggered reveal on scroll */
.nrs-screen {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nrs-screen.nrs-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .nrs-hero-pct-wrap {
    width: 150px;
    height: 150px;
  }
}
