.wiz-body {
  background: #fff;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

.wiz-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
}

.wiz-top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 6px 8px 6px 4px;
}

.wiz-back {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #111;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.wiz-back:hover {
  background: var(--bg-soft);
}

.wiz-kicker {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.wiz-help {
  justify-self: end;
}

.wiz-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 20px 0;
}

.wiz-progress span {
  height: 4px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
  position: relative;
}

.wiz-progress span.is-on {
  background: var(--red);
}

.wiz-progress span.is-on.is-new::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: left;
  animation: fillSeg 0.45s var(--ease) both;
}

.wiz-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  position: relative;
  overflow: hidden;
}

.wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: stepIn 0.5s var(--ease) both;
}

.wiz-step[hidden] {
  display: none;
}

.wiz-step.is-out {
  animation: stepOut 0.28s ease both;
}

.wiz-icon-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 8px 0 28px;
}

.wiz-icon-bg {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
}

.wiz-icon {
  width: 72px;
  height: 72px;
}

.wiz-icon.poland {
  width: 78px;
  height: 84px;
}

.wiz-badge {
  position: absolute;
  right: 6px;
  bottom: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 7px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px #fff;
  animation: popIn 0.45s var(--ease) 0.25s both;
}

.wiz-step h1 {
  font-size: clamp(22px, 5.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 20ch;
}

.wiz-step p {
  margin-top: 10px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.45;
  max-width: 34ch;
}

.wiz-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.btn-yes,
.btn-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s;
}

.btn-yes {
  background: var(--red);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.22);
}

.btn-yes:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-yes:active,
.btn-no:active {
  transform: scale(0.985);
}

.btn-no {
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
}

.btn-no:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.wiz-safe {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-align: left;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}

.wiz-safe svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #111;
  margin-top: 2px;
}

.wiz-safe strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.wiz-safe p {
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
  max-width: none;
}

/* Verify */
.verify-top {
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
}

.verify-top .logo {
  justify-self: start;
}

.verify-top .wiz-help {
  justify-self: end;
}

.verify-top .logo-mark {
  width: 28px;
  height: 22px;
}

.verify-top .logo-word {
  font-size: 18px;
}

.verify-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.verify-main {
  padding: 28px 20px 24px;
  animation: stepIn 0.5s var(--ease) both;
}

@media (max-width: 768px) {
  .verify-main,
  .wiz-main {
    padding-bottom: calc(24px + var(--support-fab-offset, 72px));
  }
}

.verify-h1 {
  text-align: center;
  font-size: clamp(22px, 5.5vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.verify-lead {
  text-align: center;
  color: #6b7280;
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 22px;
}

.verify-list {
  display: grid;
  gap: 10px;
}

.verify-item {
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 14px;
  min-height: 64px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.verify-item:hover {
  transform: translateY(-2px);
  border-color: #f0d0ce;
  box-shadow: var(--shadow);
}

.verify-item:active {
  transform: scale(0.99);
}

.v-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.v-ico img {
  width: 40px;
  height: 40px;
  display: block;
}

.verify-item .chev {
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.verify-safe {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #f3f4f6;
  border-radius: 12px;
}

.verify-safe svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #374151;
  margin-top: 2px;
}

.verify-safe p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}

.redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  animation: fade 0.25s ease both;
}

.redirect-overlay[hidden] {
  display: none;
}

.redirect-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.redirect-card p {
  font-weight: 700;
  font-size: 16px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #ececec;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.gov-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gov-modal[hidden] {
  display: none;
}

.gov-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 19, 23, 0.52);
  backdrop-filter: blur(6px);
  animation: fade 0.25s ease both;
}

.gov-modal-card {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 16px 48px rgba(16, 19, 23, 0.18);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gov-modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #0452a8;
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.gov-modal-x:hover {
  background: #f4f6fb;
}

.gov-modal-card h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #101317;
  margin: 0 40px 16px 0;
}

.gov-modal-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #34383f;
  margin: 0 0 12px;
}

.gov-modal-card a {
  color: #0452a8;
  text-decoration: underline;
}

.gov-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.gov-modal-close {
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 6px;
  background: #0452a8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.gov-modal-close:hover {
  background: #063477;
}

@keyframes fillSeg {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stepOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-24px);
  }
}

@keyframes stepInBack {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (min-width: 768px) {
  .wiz-body {
    background: #f6f7f8;
  }

  .wiz-shell {
    min-height: 100dvh;
    box-shadow: 0 0 0 1px #ececec, var(--shadow-lg);
  }
}

@media (max-width: 380px) {
  .verify-title {
    font-size: 12px;
  }

  .wiz-help span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-step,
  .verify-main,
  .wiz-badge,
  .wiz-progress span.is-on.is-new::after {
    animation: none !important;
  }
}
