/* Warranty multi-step apply */
.wa {
  background: #0c1222;
  color: #f5f7fa;
  padding: 1.25rem 0 3rem;
  min-height: 60vh;
}
.wa-shell {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}
.wa-head { margin-bottom: 1.25rem; text-align: center; }
.wa-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d4b76a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.wa-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}
.wa-head p { margin: 0; color: rgba(245,247,250,0.68); }

.wa-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.wa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245,247,250,0.5);
  text-align: center;
}
.wa-step em {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
}
.wa-step.is-active,
.wa-step.is-done {
  color: #ead7a0;
  border-color: rgba(212,183,106,0.4);
  background: rgba(212,183,106,0.1);
}
.wa-step.is-active em,
.wa-step.is-done em {
  background: #d4b76a;
  color: #0c1222;
}

.wa-panel { display: none; }
.wa-panel.is-active { display: block; }

.wa-card {
  background: #152036;
  border: 1px solid rgba(212,183,106,0.22);
  border-radius: 18px;
  padding: 1.2rem;
}
.wa-card h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.wa-hint { color: rgba(245,247,250,0.65); margin: 0 0 1rem; line-height: 1.7; font-size: 0.9rem; }
.wa-ok { color: #86efac; font-weight: 700; margin: 0 0 1rem; }
.wa-flash {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(220,38,38,0.15);
  color: #fecaca;
}

.wa-rules {
  margin: 0 0 1rem;
  padding-right: 1.1rem;
  color: rgba(245,247,250,0.78);
  line-height: 1.85;
  font-size: 0.9rem;
}
.wa-rules strong { color: #ead7a0; }

.wa-otp { display: grid; gap: 0.85rem; }
.wa-otp__step { display: none; }
.wa-otp__step.is-active { display: grid; gap: 0.75rem; }
.wa-otp__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(245,247,250,0.85);
}
.wa-otp__field input {
  width: 100%;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
  letter-spacing: 0.04em;
}
.wa-otp__field input:focus {
  outline: 0;
  border-color: rgba(212,183,106,0.55);
  box-shadow: 0 0 0 3px rgba(212,183,106,0.15);
}
.wa-otp__msg {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 650;
}
.wa-otp__msg.is-ok { color: #86efac; }
.wa-otp__msg.is-err { color: #f87171; }
.wa-otp__timer {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #d4b76a;
  font-size: 1.1rem;
}

.wa-cam {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 3/4;
  max-height: 420px;
  margin: 0 auto 0.75rem;
  border: 1.5px solid rgba(212,183,106,0.35);
}
.wa-cam video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wa-cam__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  animation: waBlink 1s infinite;
}
@keyframes waBlink {
  50% { opacity: 0.45; }
}
.wa-timer {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #d4b76a;
  margin: 0 0 0.5rem;
}
.wa-cam-msg {
  text-align: center;
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #f87171;
  margin: 0 0 0.75rem;
}
.wa-cam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.wa-next { width: 100%; }
.wa-plans { margin-bottom: 1rem; }
.wa-video-status {
  text-align: center;
  font-size: 0.85rem;
  color: #86efac;
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.wa-quote {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(212, 183, 106, 0.12);
  border: 1px solid rgba(212, 183, 106, 0.28);
  color: rgba(245, 247, 250, 0.9);
  text-align: center;
  font-size: 0.95rem;
}
.wa-quote strong {
  color: #ead7a0;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.wa-discount-line {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(245, 247, 250, 0.65);
  direction: ltr;
  unicode-bidi: isolate;
}

.wa-coupon {
  margin: 0 0 1.1rem;
}
.wa-coupon__row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.28rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wa-coupon__row:focus-within {
  border-color: rgba(212, 183, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 183, 106, 0.12);
}
.wa-coupon__input,
.wa-coupon .care-input {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.7rem 0.85rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wa-coupon__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 0 1.05rem;
  min-width: 4.5rem;
  background: rgba(212, 183, 106, 0.92);
  color: #0c1222;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.wa-coupon__btn:hover { opacity: 0.92; }
.wa-coupon__btn:active { transform: scale(0.98); }
.wa-coupon__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wa-coupon__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.55);
  min-height: 1.1em;
}
.wa-coupon__hint.is-ok { color: #86efac; }
.wa-coupon__hint.is-err { color: #f87171; }

.care-submit:disabled,
#wa-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow: none;
}

.care-input#id_device_price {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.wa-imei-proof {
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 183, 106, 0.28);
}
.wa-imei-proof__title {
  margin: 0 0 0.65rem;
  font-weight: 800;
  color: var(--care-gold, #d4b76a);
  font-size: 1rem;
}
.wa-imei-proof__steps {
  margin: 0 0 0.9rem;
  padding-right: 1.1rem;
  color: rgba(245, 247, 250, 0.78);
  line-height: 1.75;
  font-size: 0.88rem;
}
.wa-imei-proof__dial {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.85rem;
  text-decoration: none;
}
.wa-imei-proof__upload {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: rgba(245, 247, 250, 0.9);
  font-size: 0.9rem;
}
.wa-imei-file {
  width: 100%;
  border: 1px dashed rgba(212, 183, 106, 0.45);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  padding: 0.85rem;
  font: inherit;
}
.wa-imei-proof__preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1220;
}

.wa-success {
  text-align: center;
  background: #152036;
  border-radius: 22px;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(212,183,106,0.25);
}
.wa-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 2rem;
}
.wa-success h1 { margin: 0 0 0.65rem; }
.wa-success p { margin: 0.35rem 0; color: rgba(245,247,250,0.7); line-height: 1.7; }
.wa-success__note { color: #ead7a0 !important; font-weight: 650; }
.wa-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.care-warranty-hero--soft {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .wa-steps { grid-template-columns: repeat(2, 1fr); }
}

#wa-start-inspect { width: 100%; margin-bottom: 0.6rem; }

body.wa-inspect-on {
  overflow: hidden;
}
body.wa-inspect-on .float-actions,
body.wa-inspect-on header,
body.wa-inspect-on .scroll-progress {
  visibility: hidden !important;
}

.wa-inspect {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #070b14;
  color: #fff;
  display: flex;
  flex-direction: column;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.wa-inspect[hidden] { display: none !important; }
.wa-inspect__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
  background: rgba(0,0,0,0.28);
  z-index: 2;
}
.wa-inspect.is-painting .wa-inspect__bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}
.wa-inspect.is-painting .wa-inspect__close {
  pointer-events: auto;
}
.wa-inspect.is-painting .wa-inspect__hint,
.wa-inspect.is-painting .wa-inspect__progress {
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}
.wa-inspect__close {
  border: 0;
  background: rgba(255,255,255,0.12);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
}
.wa-inspect__hint {
  flex: 1;
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
}
.wa-inspect__progress {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ead7a0;
  min-width: 3rem;
  text-align: left;
}
.wa-inspect__stage {
  flex: 1;
  position: relative;
  min-height: 0;
}
.wa-inspect__stage[hidden] { display: none !important; }
.wa-inspect__color-copy,
.wa-inspect__soft-copy {
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  left: 1rem;
  margin: 0;
  text-align: center;
  font-weight: 700;
  line-height: 1.7;
}
.wa-inspect__ok {
  position: absolute;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  right: 1.2rem;
  left: 1.2rem;
  border: 1.5px solid currentColor;
  background: rgba(0,0,0,0.28);
  color: inherit;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 800;
}
.wa-inspect__ok:disabled { opacity: 0.4; }
.wa-inspect__paint {
  display: grid;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  gap: 0;
  background: #0b1220;
  z-index: 1;
  touch-action: none;
  /* Page is RTL; force LTR so cell 0 is left and matches touch X. */
  direction: ltr;
  unicode-bidi: isolate;
}
.wa-inspect__cell {
  display: block;
  background: #111827;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.07);
}
.wa-inspect__cell.is-filled {
  background: #d4b76a;
  box-shadow: none;
}
.wa-inspect__soft {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 1;
}
.wa-soft {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 183, 106, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.wa-soft__step { display: none; }
.wa-soft__step.is-active { display: block; }
.wa-soft__eyebrow {
  margin: 0 0 0.45rem;
  color: rgba(234, 215, 160, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
}
.wa-soft h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.wa-soft p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.72);
  font-size: 0.9rem;
}
.wa-soft__clock {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ead7a0;
  font-variant-numeric: tabular-nums;
}
.wa-soft__code {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #ead7a0;
  font-variant-numeric: tabular-nums;
}
.wa-soft__input {
  width: 100%;
  margin: 0 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}
.wa-soft__action,
.wa-soft__hold {
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  padding: 0.9rem 1rem;
  background: #d4b76a;
  color: #0c1222;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.wa-soft__hold.is-holding {
  background: #e8d39a;
}
.wa-soft__hold-track {
  margin-top: 0.85rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.wa-soft__hold-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d4b76a, #f0e1b0);
  transition: width 0.05s linear;
}
.wa-inspect.is-soft .wa-inspect__bar {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
}
.dash-touch-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 8), 1fr);
  gap: 2px;
  max-width: 280px;
  aspect-ratio: 9/16;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
}
.dash-touch-grid i {
  display: block;
  background: #334155;
  border-radius: 1px;
}
.dash-touch-grid i.on { background: #d4b76a; }

