/* ===================================================================
   Figma Flow 07 — Child Journey (مشوار).
   Matches Figma Flow 07 parent screens:
   07.03 Active Journey (On Time)
   07.04 Route Map & Checkpoints
   07.05 Delayed & Check-in
   07.06 Safe Arrival & Completed
   07.07 Unavailable & Connection Error
   Zero hardcoded colors — derived from theme CSS variables.
   =================================================================== */

:root {
  --jr-bg: var(--ameen-app-bg, #F7F9FD);
  --jr-header-bg: #091729;
  --jr-header-text: #B8CCE6;
  --jr-ink: #0D1A2B;
  --jr-slate: #617082;
  --jr-blue: #1A66DB;
  --jr-warm: #F57829;
  --jr-navy: #091729;
  --jr-green: #1F9E6E;
  --jr-cream: #FFF2E0;
  --jr-mint: #E6FAF0;
  --jr-map-bg: #E0EDE8;
  --jr-danger-bg: #FFF0F0;
  --jr-danger-text: #DB3338;
  --jr-blue-tint: #E8F2FF;
  --jr-card-bg: #FFFFFF;
  --jr-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --jr-progress-track: #3B577A;
}

/* Staggered entrance animation for body components */
.ameen-agr-anim {
  opacity: 0;
  animation: jrFadeUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ameen-agr-i0 { animation-delay: 0.04s; }
.ameen-agr-i1 { animation-delay: 0.10s; }
.ameen-agr-i2 { animation-delay: 0.16s; }
.ameen-agr-i3 { animation-delay: 0.22s; }
.ameen-agr-i4 { animation-delay: 0.28s; }
.ameen-agr-i5 { animation-delay: 0.34s; }
.ameen-agr-i6 { animation-delay: 0.40s; }
.ameen-agr-i7 { animation-delay: 0.46s; }
.ameen-agr-i8 { animation-delay: 0.52s; }

@keyframes jrFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ameen-jr-title {
  font-size: 23px;
  line-height: 32px;
  font-weight: 700;
  color: var(--jr-ink);
  margin: 0 0 6px;
}

.ameen-jr-note {
  font-size: 13px;
  line-height: 20px;
  color: var(--jr-slate);
  margin: 0 0 20px;
}

/* 07.04 Schematic Route Map */
.ameen-jr-map {
  position: relative;
  background: var(--jr-map-bg);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 342 / 338;
  margin-bottom: 16px;
}

.ameen-jr-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ameen-jr-map__route {
  fill: none;
  stroke: var(--jr-blue);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: jrDraw 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.ameen-jr-map__ring {
  fill: var(--jr-blue);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: jrPulse 2s ease-out infinite;
}

.ameen-jr-map__child-circle {
  fill: var(--jr-blue);
}

.ameen-jr-map__child-label {
  fill: var(--jr-blue);
}

.ameen-jr-map__dest-circle {
  fill: var(--jr-warm);
}

.ameen-jr-map__dest-label {
  fill: var(--jr-warm);
}

.ameen-jr-map__label {
  font-family: var(--ameen-app-font);
  font-weight: 700;
  font-size: 12px;
  text-anchor: middle;
}

.ameen-jr-map__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 20px;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--jr-slate);
}

/* 07.04, 07.06, 07.07 Info Rows */
.ameen-jr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 10px 20px;
  background: var(--jr-card-bg);
  border-radius: 16px;
  box-shadow: var(--jr-card-shadow);
  margin-bottom: 12px;
  transition: transform 0.18s ease;
}

.ameen-jr-row:hover {
  transform: translateY(-1px);
}

.ameen-jr-row--danger {
  background: var(--jr-danger-bg);
}

.ameen-jr-row__icon {
  width: 42px;
  flex-shrink: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--jr-ink);
}

.ameen-jr-row__label {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--jr-slate);
}

.ameen-jr-row__value {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--jr-ink);
}

/* 07.05 Cream Notice / 07.06 Green Success / 07.07 Recovery Note */
.ameen-jr-callout {
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 25px;
  color: var(--jr-ink);
  margin-bottom: 16px;
}

.ameen-jr-callout--cream {
  background: var(--jr-cream);
}

.ameen-jr-callout--plain {
  background: var(--jr-card-bg);
  border-radius: 18px;
  font-weight: 400;
  font-size: 13px;
  line-height: 21px;
  color: var(--jr-slate);
  box-shadow: var(--jr-card-shadow);
  margin-top: 16px;
}

.ameen-jr-success {
  background: var(--jr-mint);
  border-radius: 24px;
  padding: 24px;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 24px;
}

.ameen-jr-success__check {
  font-size: 52px;
  line-height: 58px;
  font-weight: 700;
  color: var(--jr-green);
  animation: jrCheck 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.ameen-jr-success__text {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--jr-ink);
}

/* Action Stack (07.05) */
.ameen-jr-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.ameen-jr-actions form {
  margin: 0;
}

.ameen-jr-btn-warm {
  background: var(--jr-warm) !important;
  box-shadow: 0 8px 20px var(--ameen-c-rgba-245-120-41-0-28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ameen-jr-btn-warm:hover {
  filter: brightness(0.95);
}

.ameen-jr-btn-warm:active {
  transform: scale(0.98);
}

.ameen-jr-btn-navy {
  background: var(--jr-navy) !important;
  box-shadow: 0 8px 20px var(--ameen-c-rgba-9-23-41-0-2);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ameen-jr-btn-navy:hover {
  filter: brightness(1.15);
}

.ameen-jr-btn-navy:active {
  transform: scale(0.98);
}

.ameen-jr-btn-ghost {
  background: var(--jr-card-bg) !important;
  color: var(--jr-blue) !important;
  border: 1.5px solid var(--ameen-app-card-border) !important;
  box-shadow: var(--jr-card-shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ameen-jr-btn-ghost:hover {
  border-color: var(--jr-blue) !important;
}

.ameen-jr-btn-ghost:active {
  transform: scale(0.98);
}

.ameen-jr-status-line {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--jr-green);
  font-weight: 700;
}

.ameen-jr-status-line--waiting {
  color: var(--jr-warm);
  animation: jrWaitingPulse 1.4s ease-in-out infinite alternate;
}

@keyframes jrWaitingPulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.ameen-jr-end {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: 0;
  font-family: var(--ameen-app-font);
  font-size: 13px;
  color: var(--jr-slate);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

/* 07.03 Dark Highlight Card & Progress Bar */
.ameen-jr-card-dark {
  background: var(--jr-header-bg);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--ameen-c-rgba-9-23-41-0-15);
}

.ameen-jr-countdown-num {
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  color: var(--ameen-app-white);
}

.ameen-jr-eta-text {
  font-size: 14px;
  line-height: 18px;
  color: var(--jr-header-text);
  margin: 4px 0 20px;
}

.ameen-jr-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 12px;
}

.ameen-jr-progress__track {
  fill: var(--jr-progress-track);
}

.ameen-jr-progress__fill {
  fill: var(--jr-warm);
  transform-box: fill-box;
  transform-origin: left center;
  animation: jrProgressFill 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

[dir="rtl"] .ameen-jr-progress {
  transform: scaleX(-1);
}

@keyframes jrProgressFill {
  from {
    transform: scaleX(0);
  }
}

.ameen-jr-distance-remaining {
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  color: var(--ameen-app-white);
}

@keyframes jrDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes jrPulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes jrCheck {
  from {
    transform: scale(0.3) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Start form */
.ameen-jr-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 20px;
  background: var(--ameen-app-white);
  border: 1.5px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ch-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ameen-jr-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ameen-jr-option:has(input:checked) {
  border-color: var(--ameen-app-primary-dark);
  background: var(--ameen-c-f0f6ff);
}

.ameen-jr-option small {
  font-weight: 400;
  color: var(--ch-slate);
  margin-inline-start: auto;
}

@keyframes jrDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes jrPulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes jrCheck {
  from {
    transform: scale(0.3) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.ameen-jr-pills {
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ─── 07.01 Form Fields ─────────────────────────────────────────────────── */
.ameen-jr-field-group {
  margin-bottom: 20px;
}

.ameen-jr-field-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  color: var(--ch-slate);
  margin-bottom: 8px;
  padding-inline: 4px;
}

.ameen-jr-field-box {
  background: var(--ameen-app-white);
  border-radius: 14px;
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px var(--ameen-c-rgba-0-0-0-0-03);
}

.ameen-jr-field-input,
.ameen-jr-select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--ch-ink);
}

/* ─── 07.02 Radar Pulse Animation ───────────────────────────────────────── */
.ameen-jr-radar-box {
  background: var(--jr-blue-tint);
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
}

.ameen-jr-radar-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ameen-jr-radar-wave {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--jr-blue);
  border-radius: 50%;
  animation: jrRadarWave 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ameen-jr-radar-wave--delay {
  animation-delay: 1.1s;
}

.ameen-jr-radar-core {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--jr-blue);
  background: var(--jr-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ameen-jr-radar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--jr-blue);
}

.ameen-jr-radar-notice {
  font-weight: 700;
  font-size: 14px;
  line-height: 22px;
  color: var(--jr-ink);
  margin: 0;
  padding: 0 10px;
}

@keyframes jrRadarWave {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  40% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ─── 07.03 Dark Card & Progress Bar Animation ───────────────────────────── */
.ameen-jr-card-dark {
  background: var(--jr-header-bg);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--ameen-c-rgba-9-23-41-0-15);
}

.ameen-jr-countdown-num {
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  color: var(--ameen-app-white);
}

.ameen-jr-eta-text {
  font-size: 14px;
  line-height: 18px;
  color: var(--ameen-c-bfd4eb);
  margin: 4px 0 20px;
}

.ameen-jr-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 12px;
}

.ameen-jr-progress__track {
  fill: var(--jr-progress-track);
}

.ameen-jr-progress__fill {
  fill: var(--jr-warm);
  transform-box: fill-box;
  transform-origin: left center;
  animation: jrProgressFill 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

[dir="rtl"] .ameen-jr-progress {
  transform: scaleX(-1);
}

@keyframes jrProgressFill {
  from {
    transform: scaleX(0);
  }
}

.ameen-jr-distance-remaining {
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  color: var(--ameen-app-white);
}

.ameen-jr-field-box--extra {
  margin-top: 10px;
}

.ameen-jr-field-box[hidden] {
  display: none;
}


/* ─── 07.02 Checkpoint Rows ─────────────────────────────────────────────── */
.ameen-jr-row--checkpoint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 20px;
}

.ameen-jr-row--checkpoint .ameen-jr-row__icon {
  order: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--jr-ink);
}

.ameen-jr-row--checkpoint .ameen-jr-row__texts {
  order: 1;
  flex: 1;
  text-align: right;
}

[dir="ltr"] .ameen-jr-row--checkpoint .ameen-jr-row__texts {
  text-align: left;
}

/* ─── 07.08 Child Journey Check-in ───────────────────────────────────────── */
.ameen-jr-check-in-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.ameen-jr-check-in-form {
  margin: 0;
  width: 100%;
}

.ameen-jr-check-in-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  color: var(--ameen-app-white);
  text-decoration: none;
  box-shadow: 0 4px 12px var(--ameen-c-rgba-0-0-0-0-08);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.ameen-jr-check-in-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 16px var(--ameen-c-rgba-0-0-0-0-14);
}

.ameen-jr-check-in-btn:active {
  transform: translateY(1px) scale(0.98);
}

.ameen-jr-check-in-btn--ok {
  background: var(--jr-green);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-31-158-110-0-28);
}

.ameen-jr-check-in-btn--arrived {
  background: var(--jr-blue);
  box-shadow: 0 4px 14px var(--ameen-cta-glow);
}

.ameen-jr-check-in-btn--delayed {
  background: var(--jr-warm);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-245-120-41-0-28);
}

.ameen-jr-check-in-btn--help {
  background: var(--jr-danger-text);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-219-51-56-0-28);
}

.ameen-jr-check-in-footer {
  text-align: center;
  font-family: var(--ameen-font);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--jr-slate);
  margin: 16px 0 0;
  padding: 8px 12px;
}

/* ===================================================================
   Figma Flow 11 — Child Exception & Unlock Requests (11.07 – 11.12)
   Zero hardcoded colors — derived from theme CSS variables.
   =================================================================== */

.ameen-req-pills-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.ameen-req-pills-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.ameen-req-pill {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: var(--jr-card-bg);
  border: 1px solid var(--ameen-c-rgba-0-0-0-0-05);
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  color: var(--jr-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 12px;
}

.ameen-req-pill--full {
  flex: 1 1 100%;
}

.ameen-req-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--ameen-c-rgba-0-0-0-0-06);
}

.ameen-req-pill--active {
  background: var(--jr-blue) !important;
  color: var(--ameen-app-white) !important;
  border-color: var(--jr-blue) !important;
  box-shadow: 0 4px 14px var(--ameen-c-rgba-26-102-219-0-25);
}

.ameen-req-card {
  min-height: 70px;
  background: var(--jr-card-bg);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--jr-card-shadow);
}

.ameen-req-card__label {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  color: var(--jr-slate);
  margin-bottom: 6px;
  text-align: inherit;
}

.ameen-req-card__value {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: var(--jr-ink);
  text-align: inherit;
}

.ameen-req-card__value--clickable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ameen-req-card__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: var(--jr-ink);
  padding: 0;
  margin: 0;
  text-align: inherit;
}

.ameen-req-duration-picker[hidden] { display: none; }

.ameen-req-duration-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--ameen-c-rgba-97-112-130-0-2);
}

.ameen-req-duration-opt {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--jr-blue-tint);
  border: 1px solid transparent;
  color: var(--jr-blue);
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ameen-req-duration-opt--active {
  background: var(--jr-blue);
  color: var(--ameen-app-white);
}

/* Mint Card: 11.08 & 11.10 */
.ameen-req-card-mint {
  width: 100%;
  background: var(--jr-mint);
  border-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.ameen-req-card-mint--sent {
  min-height: 230px;
}

.ameen-req-card-mint--approved {
  min-height: 240px;
}

.ameen-req-icon-check {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 50px;
  line-height: 56px;
  color: var(--jr-green);
  margin-bottom: 14px;
  animation: reqPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reqPopIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ameen-req-mint-summary {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  color: var(--jr-ink);
  margin-bottom: 8px;
}

.ameen-req-mint-detail {
  font-family: var(--ameen-font);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--jr-slate);
}

/* Pending Group: 11.09 */
.ameen-req-pending-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ameen-req-card-pending-white {
  min-height: 70px;
  background: var(--jr-card-bg);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--jr-card-shadow);
}

.ameen-req-card-pending-cream {
  min-height: 70px;
  background: var(--jr-cream);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ameen-req-cancel-note {
  font-family: var(--ameen-font);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--jr-slate);
  text-align: center;
  margin: 18px 0 0;
}

/* Approved Timer: 11.10 */
.ameen-req-timer-display {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 40px;
  line-height: 46px;
  color: var(--jr-green);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 1px;
  animation: reqTimerPulse 2s ease-in-out infinite;
}

@keyframes reqTimerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.ameen-req-approved-status {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--jr-ink);
  margin-bottom: 6px;
}

.ameen-req-approved-reminder {
  font-family: var(--ameen-font);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--jr-slate);
}

/* Declined Card: 11.11 */
.ameen-req-card-declined {
  width: 100%;
  min-height: 210px;
  background: var(--jr-card-bg);
  border-radius: 22px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--jr-card-shadow);
  box-sizing: border-box;
}

.ameen-req-declined-message {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  color: var(--jr-ink);
  text-align: center;
  padding: 24px 0;
}

/* Expired Card: 11.12 */
.ameen-req-card-expired {
  width: 100%;
  min-height: 206px;
  background: var(--jr-card-bg);
  border-radius: 22px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--jr-card-shadow);
  box-sizing: border-box;
}

.ameen-req-clock-icon {
  margin-bottom: 16px;
  animation: reqClockSway 3s ease-in-out infinite;
}

@keyframes reqClockSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(6deg); }
  75% { transform: rotate(-6deg); }
}

.ameen-req-expired-desc {
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--jr-ink);
  max-width: 286px;
  margin: 0;
}

/* Bottom CTA Buttons */
.ameen-req-btn {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.ameen-req-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.ameen-req-btn:active {
  transform: translateY(0);
}

.ameen-req-btn--blue {
  background: var(--jr-blue);
  color: var(--ameen-app-white);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-26-102-219-0-25);
}

.ameen-req-btn--green {
  background: var(--jr-green);
  color: var(--ameen-app-white);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-31-158-110-0-25);
}

.ameen-req-btn--navy {
  background: var(--jr-navy);
  color: var(--ameen-app-white);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-9-23-41-0-25);
}

.ameen-req-btn--cancel {
  background: var(--jr-card-bg);
  color: var(--jr-danger-text);
  border: 1px solid var(--ameen-c-rgba-219-51-56-0-2);
  box-shadow: var(--jr-card-shadow);
}

.ameen-req-btn--cancel:hover {
  background: var(--ameen-level-urgent-bg);
}


/* ==========================================================================
   Flow 13: Device Health Styles (13.01 Overview, 13.02 Connected, 13.03 Attention)
   Zero hardcoded colors — derived strictly from :root CSS custom properties.
   ========================================================================== */

.ameen-dh-overview {
  display: flex;
  flex-direction: column;
}

.ameen-dh-nav-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.ameen-dh-back-btn {
  width: 40px;
  height: 40px;
  margin-inline-start: -8px;
  border-radius: 50%;
  color: var(--ameen-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.ameen-dh-back-btn:hover {
  background: var(--ameen-surface-blue-tint);
  color: var(--ameen-royal);
}

.ameen-dh-header-titles {
  margin-bottom: 16px;
}

.ameen-dh-device-sub {
  font-weight: 700;
  font-size: 12px;
  line-height: 19px;
  color: var(--ameen-royal);
  margin: 0 0 6px;
}

.ameen-dh-main-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 38px;
  color: var(--ameen-heading-navy);
  margin: 0;
}

.ameen-dh-hero-card {
  background: var(--ameen-surface-safe-tint);
  border-radius: 23px;
  padding: 18px 20px;
  margin-bottom: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ameen-dh-hero-card--disconnected {
  background: var(--jr-danger-bg);
}

.ameen-dh-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--jr-card-shadow);
}

.ameen-dh-hero-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.ameen-dh-hero-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ameen-dh-hero-icon-wrap {
  color: var(--ameen-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ameen-dh-hero-icon-wrap--danger {
  color: var(--jr-danger-text);
}

.ameen-dh-hero-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 29px;
  color: var(--ameen-heading-navy);
  margin: 0;
}

.ameen-dh-hero-sub {
  font-weight: 400;
  font-size: 12px;
  line-height: 19px;
  color: var(--ameen-body-slate);
  margin: 0;
}

.ameen-dh-section-title {
  font-weight: 700;
  font-size: 17px;
  line-height: 27px;
  color: var(--ameen-heading-navy);
  margin: 0 0 12px;
}

.ameen-dh-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.ameen-dh-setting-card {
  box-sizing: border-box;
  background: var(--jr-card-bg);
  border: 1px solid var(--ameen-field-border);
  border-radius: 17px;
  min-height: 73px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ameen-dh-setting-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--jr-card-shadow);
}

.ameen-dh-setting-icon {
  width: 24px;
  height: 24px;
  color: var(--ameen-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ameen-dh-setting-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ameen-dh-setting-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 22px;
  color: var(--ameen-heading-navy);
}

.ameen-dh-setting-subtitle,
.ameen-dh-setting-sub {
  font-weight: 400;
  font-size: 11px;
  line-height: 18px;
  color: var(--ameen-body-slate);
}

.ameen-dh-setting-chev,
.ameen-dh-setting-chevron {
  color: var(--ameen-body-slate);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ameen-dh-info-card {
  background: var(--ameen-surface-warm-tint);
  border-radius: 18px;
  min-height: 102px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.ameen-dh-info-icon {
  color: var(--ameen-royal);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
}

.ameen-dh-info-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ameen-dh-info-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  color: var(--ameen-heading-navy);
  margin: 0;
}

.ameen-dh-info-sub {
  font-weight: 400;
  font-size: 12px;
  line-height: 19px;
  color: var(--ameen-body-slate);
  margin: 0;
}

.ameen-dh-test-form {
  margin: 0;
}

.ameen-dh-test-btn,
.ameen-dh-action-btn {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  background: var(--jr-card-bg);
  border: 1px solid var(--ameen-field-border);
  border-radius: 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  color: var(--ameen-heading-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.ameen-dh-test-btn:hover,
.ameen-dh-action-btn:hover {
  background: var(--ameen-surface-blue-tint);
  border-color: var(--ameen-royal);
  transform: translateY(-1px);
}

/* 13.02 & 13.03 Cards Stack */
.ameen-dh-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ameen-dh-metric-card {
  background: var(--jr-card-bg);
  border-radius: 16px;
  min-height: 68px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--jr-card-shadow);
  transition: transform 0.15s ease;
}

.ameen-dh-metric-card:hover {
  transform: translateY(-1px);
}

.ameen-dh-metric-card--mint,
.ameen-dh-metric-card--success {
  background: var(--jr-mint);
}

.ameen-dh-metric-card--warning {
  background: var(--jr-cream);
}

.ameen-dh-metric-label {
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  color: var(--jr-slate);
  margin-bottom: 4px;
}

.ameen-dh-metric-value {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: var(--jr-ink);
}

/* 13.03 Attention Cards */
.ameen-dh-attn-card {
  border-radius: 16px;
  min-height: 68px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--jr-card-shadow);
  transition: transform 0.15s ease;
}

.ameen-dh-attn-card:hover {
  transform: translateY(-1px);
}

.ameen-dh-attn-card--danger {
  background: var(--jr-danger-bg);
}

.ameen-dh-attn-card--warning {
  background: var(--jr-cream);
}

.ameen-dh-attn-card--default {
  background: var(--jr-card-bg);
}

.ameen-dh-attn-card--info {
  background: var(--jr-blue-tint);
}

.ameen-dh-attn-card--mint {
  background: var(--jr-mint);
}

.ameen-dh-attn-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ameen-dh-attn-value {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: var(--jr-ink);
}

.ameen-dh-pill-form {
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-shrink: 0;
}

.ameen-dh-action-pill {
  min-width: 70px;
  height: 40px;
  padding: 0 10px;
  background: var(--jr-blue-tint);
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 10px;
  line-height: 12px;
  color: var(--jr-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ameen-dh-action-pill:hover {
  transform: scale(1.04);
  filter: brightness(0.96);
}

.ameen-dh-outdated-note {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--jr-slate);
  text-align: center;
  margin: 22px auto 8px;
  max-width: 306px;
}
