:root {
  --back-redirect-bg: #07050f;
  --back-redirect-bg-2: #140b27;
  --back-redirect-surface: rgba(15, 10, 31, 0.94);
  --back-redirect-surface-strong: rgba(27, 14, 54, 0.95);
  --back-redirect-border: rgba(255, 255, 255, 0.08);
  --back-redirect-border-danger: rgba(155, 115, 255, 0.42);
  --back-redirect-text: #f7f3ff;
  --back-redirect-muted: #d7ccf6;
  --back-redirect-danger: #5d36d9;
  --back-redirect-danger-2: #ab58f4;
  --back-redirect-success: #6d49ec;
  --back-redirect-success-2: #c274ff;
  --back-redirect-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

html,
body {
  min-height: 100%;
}

.back-redirect-body {
  margin: 0;
  color: var(--back-redirect-text);
  background:
    radial-gradient(circle at top, rgba(118, 76, 255, 0.26), transparent 24%),
    radial-gradient(circle at bottom, rgba(194, 116, 255, 0.18), transparent 28%),
    linear-gradient(180deg, var(--back-redirect-bg), var(--back-redirect-bg-2));
}

.back-redirect-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 96px, 96px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
  opacity: 0.28;
}

.back-redirect-noscript {
  padding: 24px;
  text-align: center;
}

.back-redirect-page {
  position: relative;
  min-height: 100vh;
  padding: 28px 16px 48px;
}

.back-redirect-shell {
  width: min(100%, 460px);
  margin: 0 auto;
}

.back-redirect-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.back-redirect-logo {
  width: 94px;
  height: auto;
}

.border-50 {
  border-radius: 50%;
}

.back-redirect-badge {
  border: 1px solid rgba(171, 88, 244, 0.26);
  border-radius: 999px;
  background: rgba(171, 88, 244, 0.12);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #decaff;
}

.back-redirect-stack {
  display: grid;
  gap: 16px;
}

.back-redirect-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--back-redirect-border);
  border-radius: 24px;
  background: var(--back-redirect-surface);
  box-shadow: var(--back-redirect-shadow);
}

.back-redirect-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.back-redirect-card--danger {
  border-color: var(--back-redirect-border-danger);
  background:
    linear-gradient(180deg, rgba(138, 86, 255, 0.2), rgba(29, 14, 62, 0.96)),
    var(--back-redirect-surface-strong);
}

.back-redirect-card--success {
  border-color: rgba(171, 88, 244, 0.26);
  background:
    linear-gradient(180deg, rgba(171, 88, 244, 0.18), rgba(26, 15, 56, 0.96)),
    rgba(15, 11, 34, 0.96);
}

.back-redirect-card--warning {
  border-color: rgba(194, 116, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(111, 73, 236, 0.2), rgba(31, 15, 60, 0.98)),
    rgba(20, 11, 39, 0.96);
}

.back-redirect-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
}

.back-redirect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 14px;
  color: #fff3ff;
  background: linear-gradient(135deg, rgba(93, 54, 217, 0.42), rgba(171, 88, 244, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.back-redirect-icon svg {
  width: 26px;
  height: 26px;
}

.back-redirect-eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cda7ff;
}

.back-redirect-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.back-redirect-subtitle {
  margin: 12px 0 0;
  text-align: center;
  color: var(--back-redirect-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.back-redirect-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(171, 88, 244, 0.28);
  background: rgba(171, 88, 244, 0.1);
  text-align: center;
  color: #e5d0ff;
  font-size: 0.83rem;
  line-height: 1.45;
}

.back-redirect-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #eadfff;
  font-size: 0.9rem;
}

.back-redirect-status--overlay {
  margin-top: 0;
  font-size: 0.84rem;
}

.back-redirect-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ab58f4;
  border-radius: 50%;
  animation: back-redirect-spin 0.9s linear infinite;
}

.back-redirect-button-row {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.back-redirect-button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--back-redirect-danger), var(--back-redirect-danger-2));
  color: white;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 42px rgba(93, 54, 217, 0.3);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.back-redirect-button:active {
  transform: scale(0.98);
}

.back-redirect-button--success {
  background: linear-gradient(135deg, var(--back-redirect-success), var(--back-redirect-success-2));
  box-shadow: 0 18px 42px rgba(171, 88, 244, 0.3);
}

.back-redirect-button--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.back-redirect-button__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  opacity: 0.84;
}

.back-redirect-camera-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(171, 88, 244, 0.12), rgba(8, 9, 20, 0.94)),
    #0d1016;
  aspect-ratio: 4 / 5;
}

.back-redirect-camera-video,
.back-redirect-camera-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.back-redirect-camera-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(9, 6, 20, 0), rgba(9, 6, 20, 0.92));
}

.back-redirect-camera-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: center;
  color: #e7dbff;
  font-weight: 600;
  line-height: 1.5;
}

.back-redirect-camera-help {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.back-redirect-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #eee4ff;
  font-size: 0.84rem;
  line-height: 1.45;
}

.back-redirect-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(171, 88, 244, 0.18);
  color: #e6d3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-redirect-highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.back-redirect-highlight {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(93, 54, 217, 0.34), rgba(171, 88, 244, 0.16));
  border: 1px solid rgba(171, 88, 244, 0.2);
  color: #efe7ff;
  font-size: 0.87rem;
  line-height: 1.5;
}

.back-redirect-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.back-redirect-compare-user {
  min-width: 0;
  text-align: center;
}

.back-redirect-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.back-redirect-avatar--danger {
  border-color: rgba(171, 88, 244, 0.58);
}

.back-redirect-avatar-label {
  display: block;
  color: #d3b0ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-redirect-avatar-name {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff6ff;
  overflow-wrap: anywhere;
}

.back-redirect-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9dcff;
  font-size: 1rem;
  font-weight: 800;
}

.back-redirect-alert-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(14, 10, 26, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0e9ff;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

.back-redirect-alert-box--emphasis {
  background: rgba(171, 88, 244, 0.14);
  border-color: rgba(171, 88, 244, 0.3);
  color: #eadbff;
}

.back-redirect-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.back-redirect-metric {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  text-align: center;
}

.back-redirect-metric-icon {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.back-redirect-metric-label {
  color: #d7bcff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.back-redirect-metric-value {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.back-redirect-metric-detail {
  margin-top: 8px;
  color: #d8cdee;
  font-size: 0.72rem;
  line-height: 1.45;
}

.back-redirect-offer-kicker {
  margin: 0;
  text-align: center;
  color: #d9c3ff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-redirect-offer-sub {
  margin: 8px 0 0;
  text-align: center;
  color: #ede5ff;
  font-size: 0.88rem;
}

.back-redirect-pricing {
  margin-top: 18px;
  text-align: center;
}

.back-redirect-pricing-old {
  color: rgba(215, 204, 246, 0.75);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.back-redirect-pricing-split {
  margin-top: 8px;
  color: #ece5ff;
  font-size: 0.92rem;
}

.back-redirect-pricing-value {
  margin-top: 8px;
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #e4c8ff;
}

.back-redirect-pricing-tag {
  display: inline-flex;
  margin-left: 8px;
  transform: translateY(-8px);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(171, 88, 244, 0.18);
  color: #f3eaff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.back-redirect-benefits {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.back-redirect-benefit {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #f4edff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.back-redirect-benefit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin-top: 2px;
  background: rgba(171, 88, 244, 0.2);
  color: #dfc8ff;
  font-size: 0.78rem;
}

.back-redirect-inline-alert {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.back-redirect-inline-alert--warning {
  background: rgba(171, 88, 244, 0.14);
  border: 1px solid rgba(171, 88, 244, 0.28);
  color: #e3d0ff;
}

.back-redirect-inline-alert--danger {
  background: rgba(111, 73, 236, 0.14);
  border: 1px solid rgba(111, 73, 236, 0.24);
  color: #ddd0ff;
}

.back-redirect-quote {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff6ff;
  text-align: center;
  font-size: 0.93rem;
  font-style: italic;
  line-height: 1.5;
}

.back-redirect-footer-note {
  margin-top: 12px;
  text-align: center;
  color: #dac9ff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.back-redirect-error {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(111, 73, 236, 0.16);
  border: 1px solid rgba(111, 73, 236, 0.24);
  color: #e1d6ff;
  font-size: 0.86rem;
  line-height: 1.5;
}

@keyframes back-redirect-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .back-redirect-page {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .back-redirect-shell {
    width: min(100%, 520px);
  }

  .back-redirect-card__content {
    padding: 26px 24px;
  }
}

@media (max-width: 420px) {
  .back-redirect-page {
    padding-inline: 12px;
  }

  .back-redirect-compare {
    gap: 10px;
  }

  .back-redirect-avatar {
    width: 74px;
    height: 74px;
  }

  .back-redirect-metrics {
    gap: 8px;
  }

  .back-redirect-metric {
    padding-inline: 8px;
  }
}

@media (max-width: 480px) {
  .back-redirect-page {
    padding: 18px 12px 36px;
  }

  .back-redirect-card__content {
    padding: 18px 16px;
  }

  .back-redirect-title {
    font-size: 20px;
  }

  .back-redirect-compare {
    gap: 10px;
  }

  .back-redirect-avatar {
    width: 68px;
    height: 68px;
  }

  .back-redirect-pricing-value {
    font-size: 32px;
  }

  .back-redirect-button {
    padding: 16px 18px;
    font-size: 14px;
  }
}

/* ==========================================================================
   INPUT & SCANNING STAGE STYLES
   ========================================================================== */

.back-redirect-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.back-redirect-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.back-redirect-input-prefix {
  position: absolute;
  left: 16px;
  color: #c274ff;
  font-weight: 800;
  font-size: 18px;
  pointer-events: none;
}

.back-redirect-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 16px 16px 38px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(171, 88, 244, 0.35);
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.back-redirect-input:focus {
  border-color: #ab58f4;
  box-shadow: 0 0 0 3px rgba(171, 88, 244, 0.25), 0 8px 24px rgba(171, 88, 244, 0.15);
  background: rgba(0, 0, 0, 0.65);
}

.back-redirect-input::placeholder {
  color: #7b7495;
  font-weight: 400;
}

.back-redirect-scan-box {
  margin-top: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.back-redirect-scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.back-redirect-scan-status {
  font-size: 13px;
  font-weight: 700;
  color: #decaff;
}

.back-redirect-scan-percent {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ab58f4;
}

.back-redirect-scan-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.back-redirect-scan-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d36d9, #ab58f4, #ff5f6d);
  transition: width 0.15s ease-out;
}

.back-redirect-scan-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 74, 91, 0.15);
  border: 1px solid rgba(255, 74, 91, 0.4);
  color: #ff8c98;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: pulse-danger 1s infinite alternate;
}

@keyframes pulse-danger {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.02); opacity: 1; border-color: rgba(255, 74, 91, 0.8); }
}