:root {
  --skl-pa-primary: #0f172a;
  --skl-pa-accent: #0369a1;
  --skl-pa-accent-hover: #075985;
  --skl-pa-surface: #ffffff;
  --skl-pa-background: #f8fafc;
  --skl-pa-foreground: #020617;
  --skl-pa-secondary: #475569;
  --skl-pa-border: #dbe3ec;
  --skl-pa-error: #b91c1c;
  --skl-pa-success: #047857;
  --skl-pa-ring: rgba(3, 105, 161, 0.24);
  --skl-pa-layer-modal: 10000;
}

.skl-pa-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 11px 24px;
  border: 1px solid var(--skl-pa-accent);
  border-radius: 8px;
  background: var(--skl-pa-accent);
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  touch-action: manipulation;
}

.skl-pa-trigger:hover,
.skl-pa-trigger:focus-visible {
  border-color: var(--skl-pa-accent-hover);
  background: var(--skl-pa-accent-hover);
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.24);
  color: #fff;
}

.skl-pa-trigger:focus-visible,
.skl-pa-modal button:focus-visible,
.skl-pa-modal input:focus-visible,
.skl-pa-result button:focus-visible,
.skl-pa-result a:focus-visible {
  outline: 3px solid var(--skl-pa-ring);
  outline-offset: 2px;
}

body.skl-pa-modal-open {
  overflow: hidden;
}

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

.skl-pa-modal {
  position: fixed;
  z-index: var(--skl-pa-layer-modal);
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: inherit;
}

.skl-pa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: skl-pa-fade-in 180ms ease-out both;
}

.skl-pa-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: var(--skl-pa-surface);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
  color: var(--skl-pa-foreground);
  overscroll-behavior: contain;
  animation: skl-pa-panel-in 220ms ease-out both;
}

.skl-pa-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--skl-pa-secondary);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.skl-pa-modal__close:hover {
  background: #f1f5f9;
  color: var(--skl-pa-foreground);
}

.skl-pa-modal__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.skl-pa-modal__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 0 20px;
  place-items: center;
  border-radius: 14px;
  background: #e0f2fe;
  color: var(--skl-pa-accent);
}

.skl-pa-modal__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skl-pa-modal__heading {
  padding-right: 36px;
}

.skl-pa-eyebrow {
  margin: 0 0 6px;
  color: var(--skl-pa-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.skl-pa-modal__heading h2 {
  margin: 0;
  color: var(--skl-pa-primary);
  font-size: clamp(25px, 5vw, 32px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-transform: none;
}

.skl-pa-modal__heading > p:last-child {
  margin: 10px 0 0;
  color: var(--skl-pa-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.skl-pa-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.skl-pa-form__field {
  display: grid;
  gap: 7px;
}

.skl-pa-form__field label {
  margin: 0;
  color: var(--skl-pa-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.skl-pa-form__field label span {
  color: var(--skl-pa-error);
}

.skl-pa-form__field input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--skl-pa-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  color: var(--skl-pa-foreground);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.skl-pa-form__field input::placeholder {
  color: #94a3b8;
}

.skl-pa-form__field input:hover {
  border-color: #94a3b8;
}

.skl-pa-form__field input:focus {
  border-color: var(--skl-pa-accent);
  box-shadow: 0 0 0 3px var(--skl-pa-ring);
  outline: none;
}

.skl-pa-form__field input[aria-invalid="true"] {
  border-color: var(--skl-pa-error);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.skl-pa-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.skl-pa-form__message {
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: var(--skl-pa-error);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.skl-pa-form__message[hidden] {
  display: none;
}

.skl-pa-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 2px 0 0;
  padding: 12px 20px;
  gap: 10px;
  border: 1px solid var(--skl-pa-primary);
  border-radius: 9px;
  background: var(--skl-pa-primary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: none;
  transition:
    background-color 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
  touch-action: manipulation;
}

.skl-pa-submit:hover {
  background: #1e293b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  color: #fff;
}

.skl-pa-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.skl-pa-submit__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: skl-pa-spin 700ms linear infinite;
}

.skl-pa-submit.is-loading .skl-pa-submit__spinner {
  display: inline-block;
}

.skl-pa-form__privacy {
  margin: -3px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.skl-pa-result {
  min-height: 60vh;
  padding: clamp(48px, 8vw, 96px) 20px;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(14, 165, 233, 0.12),
      transparent 34%
    ),
    var(--skl-pa-background);
  color: var(--skl-pa-foreground);
}

.skl-pa-result__container {
  width: min(100%, 760px);
  margin: 0 auto;
}

.skl-pa-result__card {
  padding: clamp(26px, 6vw, 48px);
  border: 1px solid var(--skl-pa-border);
  border-radius: 20px;
  background: var(--skl-pa-surface);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.skl-pa-result__status-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: #d1fae5;
  color: var(--skl-pa-success);
}

.skl-pa-result__status-icon--expired {
  background: #f1f5f9;
  color: var(--skl-pa-secondary);
}

.skl-pa-result__status-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skl-pa-result__eyebrow {
  margin: 0 0 8px;
  color: var(--skl-pa-success);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skl-pa-result h1 {
  margin: 0;
  color: var(--skl-pa-primary);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.skl-pa-result__lead {
  max-width: 580px;
  margin: 14px auto 0;
  color: var(--skl-pa-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.skl-pa-result__code-wrap {
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
}

.skl-pa-result__code-label {
  display: block;
  margin-bottom: 10px;
  color: var(--skl-pa-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skl-pa-result__code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--skl-pa-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(19px, 5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.skl-pa-result__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 18px 0 0;
  padding: 10px 20px;
  gap: 8px;
  border: 1px solid var(--skl-pa-accent);
  border-radius: 8px;
  background: var(--skl-pa-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: none;
  transition: background-color 180ms ease;
}

.skl-pa-result__copy:hover {
  background: var(--skl-pa-accent-hover);
  color: #fff;
}

.skl-pa-result__copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skl-pa-result__instructions {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--skl-pa-border);
  color: var(--skl-pa-secondary);
  text-align: left;
}

.skl-pa-result__instructions h2 {
  margin: 0 0 14px;
  color: var(--skl-pa-primary);
  font-size: 20px;
  line-height: 1.35;
}

.skl-pa-result__instructions ol,
.skl-pa-result__instructions ul {
  margin: 0 0 16px 20px;
}

.skl-pa-result__instructions li,
.skl-pa-result__instructions p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.65;
}

.skl-pa-result__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--skl-pa-border);
  border-radius: 8px;
  background: #fff;
  color: var(--skl-pa-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.skl-pa-result__back:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: var(--skl-pa-primary);
}

@keyframes skl-pa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes skl-pa-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 540px) {
  .skl-pa-modal {
    align-items: end;
    padding: 0;
  }

  .skl-pa-modal__panel {
    width: 100%;
    max-height: min(92dvh, 760px);
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .skl-pa-modal__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
  }

  .skl-pa-modal__heading {
    padding-right: 28px;
  }

  .skl-pa-form {
    gap: 16px;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skl-pa-trigger,
  .skl-pa-modal *,
  .skl-pa-result * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
