/* [AGENT-STAMP v1.0.0 2026-08-31 | codex/#2089 | neutral global SKLPAY landing system] */

:root {
  color-scheme: dark;
  --brand-accent: #57e6c1;
  --ink: #f7f9ff;
  --muted: #9ca8be;
  --surface: rgba(15, 21, 34, 0.88);
  --line: rgba(255, 255, 255, 0.09);
  --page: #070a12;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(68, 102, 255, 0.1), transparent 34rem),
    linear-gradient(145deg, #080b14 0%, #0b1120 48%, #070a12 100%);
}

button,
a {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: -16rem;
  right: -8rem;
  background: #7b61ff;
}

.ambient-two {
  bottom: -20rem;
  left: -10rem;
  background: var(--brand-accent);
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1.4rem 0;
}

.wordmark {
  display: inline-flex;
  gap: 0.72rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 44%, transparent);
  border-radius: 0.72rem;
  color: #07100e;
  background: var(--brand-accent);
  box-shadow: 0 0 2rem color-mix(in srgb, var(--brand-accent) 22%, transparent);
}

.secure-chip {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8c2d4;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.75rem;
  font-weight: 650;
}

.secure-chip svg,
.truth-note svg,
.refresh-button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 58rem);
  margin: 2.2rem auto 0;
  padding-bottom: 2.5rem;
}

.payment-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: var(--surface);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
}

.payment-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  content: '';
  opacity: 0.55;
}

.brand-context {
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, transparent);
  border-radius: 999px;
  color: #dfe7f6;
  background: color-mix(in srgb, var(--brand-accent) 8%, transparent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-dot {
  display: inline-block;
  width: 0.46rem;
  height: 0.46rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: var(--brand-accent);
  box-shadow: 0 0 0.8rem var(--brand-accent);
}

.status-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 0.42rem;
  color: var(--brand-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #bcc5d6;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 750;
}

.status-pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: currentColor;
}

.status-pill[data-state='pending'] {
  color: #64e9c7;
}

.status-pill[data-state='paid'] {
  color: #72e496;
}

.status-pill[data-state='warning'] {
  color: #ffd071;
}

.status-pill[data-state='failed'],
.status-pill[data-state='expired'] {
  color: #ff858d;
}

.status-pill[data-state='pending'] .status-pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.status-message {
  max-width: 42rem;
  margin: 0.85rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.payment-content {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(16rem, 1.1fr);
  gap: clamp(1.4rem, 5vw, 3.4rem);
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.qr-panel {
  text-align: center;
}

.qr-frame {
  position: relative;
  width: min(100%, 19rem);
  margin: 0 auto;
  padding: 1rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-corners {
  position: absolute;
  inset: -0.45rem;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 55%, transparent);
  border-radius: 1.72rem;
  pointer-events: none;
}

.qr-help {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-summary {
  min-width: 0;
}

.amount-block {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1.35rem;
}

.amount-block span,
.detail-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.amount-block strong {
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 3.1rem;
  border-bottom: 1px solid var(--line);
}

.detail-list dd {
  max-width: 12rem;
  margin: 0;
  overflow-wrap: anywhere;
  color: #eaf0fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.detail-list .countdown {
  color: var(--brand-accent);
  font-size: 1rem;
}

.truth-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.9rem;
  color: #aab5c9;
  background: rgba(255, 255, 255, 0.025);
}

.truth-note svg {
  flex: 0 0 auto;
  width: 1.1rem;
  color: var(--brand-accent);
}

.truth-note p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.refresh-button {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 36%, transparent);
  border-radius: 0.85rem;
  color: #09100f;
  background: var(--brand-accent);
  box-shadow: 0 0.8rem 2.2rem color-mix(in srgb, var(--brand-accent) 14%, transparent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.refresh-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.refresh-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-accent) 36%, transparent);
  outline-offset: 3px;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.refresh-button.secondary {
  width: auto;
  min-width: 9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.empty-state {
  display: grid;
  min-height: 22rem;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1.15rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  color: var(--brand-accent);
  background: rgba(255, 255, 255, 0.035);
}

.empty-icon svg {
  width: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 27rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-note {
  margin: 1.2rem 0 0;
  color: #657086;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 1rem;
  }

  .secure-chip {
    padding-inline: 0.6rem;
  }

  .page-shell {
    margin-top: 0.8rem;
  }

  .payment-card {
    border-radius: 1.3rem;
  }

  .status-row {
    flex-direction: column;
  }

  .payment-content {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: min(100%, 17rem);
  }
}

@media (max-width: 390px) {
  .wordmark {
    letter-spacing: 0.12em;
  }

  .secure-chip {
    font-size: 0;
  }

  .secure-chip svg {
    width: 1.05rem;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.72rem 0;
  }

  .detail-list dd {
    max-width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
