/* Aura AI VPS shop — compact checkout, landing-page scheme */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --shop-bg: #070b12;
  --shop-ink: #f4f7f8;
  --shop-muted: #9aa6b4;
  --shop-dim: #6e7c8c;
  --shop-line: rgba(236, 244, 250, 0.1);
  --shop-line-strong: rgba(236, 244, 250, 0.16);
  --shop-cyan: #d6f6ff;
  --shop-cyan-deep: #07141c;
  --shop-font: "Outfit", system-ui, sans-serif;
  --shop-max: 980px;
  --shop-gutter: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body.shop-page {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--shop-font);
  color: var(--shop-ink);
  background:
    radial-gradient(720px 360px at 88% -8%, rgba(140, 210, 230, 0.09), transparent 60%),
    radial-gradient(520px 280px at 0% 18%, rgba(90, 140, 170, 0.05), transparent 55%),
    var(--shop-bg);
  -webkit-font-smoothing: antialiased;
}

.shop-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--shop-line);
}
.shop-topbar__inner {
  width: min(1080px, calc(100% - var(--shop-gutter) * 2));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.shop-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--shop-ink);
  text-decoration: none;
}
.shop-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
}
.shop-brand b { font-weight: 500; color: var(--shop-cyan); }
.shop-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  align-items: center;
}
.shop-nav a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--shop-muted);
  text-decoration: none;
}
.shop-nav a:hover,
.shop-nav a[aria-current="page"] { color: var(--shop-ink); }

.shop-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(0.75rem, 2.5vh, 1.75rem) 0;
}
.shop-wrap {
  width: min(var(--shop-max), calc(100% - var(--shop-gutter) * 2));
  margin: 0 auto;
}

.shop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background:
    radial-gradient(180px 120px at 12% 0%, rgba(214, 246, 255, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.shop-summary {
  padding: clamp(1.15rem, 2.4vw, 2rem);
  border-right: 1px solid var(--shop-line);
}
.shop-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-dim);
}
.shop-summary h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.shop-lead {
  margin: 0.65rem 0 0;
  max-width: 28rem;
  color: var(--shop-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.shop-price {
  margin: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.shop-price span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shop-dim);
}
.shop-price strong {
  font-size: clamp(2rem, 3.6vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--shop-cyan);
}
.shop-includes {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.shop-includes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--shop-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.shop-includes li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23d6f6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.4 11 12.5 5'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat,
    rgba(214, 246, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(214, 246, 255, 0.22);
}
.shop-includes li > span { display: grid; gap: 0.1rem; }
.shop-includes strong {
  color: var(--shop-ink);
  font-weight: 600;
}
.shop-note {
  margin: 1.1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--shop-line);
  font-size: 0.84rem;
  color: var(--shop-dim);
  line-height: 1.5;
}
.shop-note a { color: var(--shop-cyan); text-decoration: none; font-weight: 500; }
.shop-note a:hover { text-decoration: underline; }

.shop-checkout {
  padding: clamp(1.15rem, 2.4vw, 2rem);
  background: rgba(255, 255, 255, 0.03);
}
.shop-checkout__head { margin-bottom: 1.1rem; }
.shop-checkout__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.shop-checkout__head small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--shop-dim);
}

.shop-field { margin-bottom: 0.95rem; }
.shop-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-muted);
}
.shop-field input[type="email"] {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--shop-line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--shop-ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.shop-field input::placeholder { color: var(--shop-dim); }
.shop-field input:focus {
  outline: none;
  border-color: rgba(214, 246, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(214, 246, 255, 0.1);
}
.shop-field input.is-invalid {
  border-color: #f87171;
  box-shadow: none;
}
.shop-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--shop-ink);
  caret-color: var(--shop-ink);
  box-shadow: 0 0 0 1000px #0c141c inset;
  transition: background-color 9999s ease-out;
}
.shop-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--shop-dim);
  line-height: 1.4;
}

.shop-agree {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0.85rem;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.shop-agree__note {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--shop-cyan);
}
.shop-agree label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--shop-muted);
  cursor: pointer;
}
.shop-agree input { margin-top: 0.15rem; accent-color: var(--shop-cyan); }
.shop-agree a { color: var(--shop-cyan); }

.shop-pay-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: var(--shop-dim);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
.shop-pay-btn.is-ready {
  background: var(--shop-cyan);
  color: var(--shop-cyan-deep);
  pointer-events: auto;
  cursor: pointer;
}
.shop-pay-btn.is-ready:hover { filter: brightness(1.06); transform: translateY(-1px); }
.shop-pay-btn--secondary {
  margin-top: 0.65rem;
  background: transparent;
  color: var(--shop-dim);
  border: 1px solid var(--shop-line);
}
.shop-pay-btn--secondary.is-ready {
  background: rgba(255, 255, 255, 0.03);
  color: var(--shop-ink);
  border-color: var(--shop-line-strong);
}
.shop-or {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.7rem 0 0;
  color: var(--shop-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shop-or::before,
.shop-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--shop-line);
}
.shop-status {
  margin: 0.65rem 0 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.8rem;
  color: var(--shop-muted);
  line-height: 1.4;
}
.shop-secure {
  margin: 0.3rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--shop-dim);
  letter-spacing: 0.04em;
}

.shop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 11, 18, 0.72);
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}
.shop-overlay.is-open {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.shop-overlay__sheet {
  width: min(520px, 100%);
  height: min(100dvh, 100vh);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1.5rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: #0c121a;
  overflow: hidden;
}
.shop-overlay__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--shop-line);
}
.shop-overlay__bar h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.shop-overlay__close {
  border: 0;
  background: none;
  color: var(--shop-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.shop-overlay__close:hover { color: var(--shop-ink); }
.shop-overlay__frame {
  flex: 1;
  min-height: 0;
  background: #fff;
}
.shop-overlay__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}
.shop-overlay__loading {
  display: none;
  padding: 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--shop-muted);
}
.shop-overlay__loading.is-active { display: block; }

.checkout-form-panel.is-hidden { display: none; }

.shop-footer {
  border-top: 1px solid var(--shop-line);
  padding: 0.85rem var(--shop-gutter);
  background: transparent;
}
.shop-footer__inner {
  width: min(var(--shop-max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--shop-dim);
  font-size: 0.82rem;
}
.shop-footer nav { display: flex; gap: 1.25rem; }
.shop-footer a {
  color: var(--shop-muted);
  text-decoration: none;
}
.shop-footer a:hover { color: var(--shop-ink); }

@media (max-width: 820px) {
  .shop-panel { grid-template-columns: 1fr; }
  .shop-summary { border-right: 0; border-bottom: 1px solid var(--shop-line); }
  .shop-main { align-items: flex-start; }
}

@media (max-width: 720px) {
  .shop-topbar { padding: 0.45rem 0; }
  .shop-topbar__inner { justify-content: center; }
  .shop-nav { display: none; }
  .shop-main { padding: 0.55rem 0 0.75rem; }
  .shop-wrap { width: min(100% - 1.25rem, 420px); }
  .shop-panel { border-radius: 16px; }
  .shop-summary,
  .shop-checkout { padding: 0.75rem 0.85rem 0.8rem; }
  .shop-kicker,
  .shop-lead,
  .shop-note,
  .shop-checkout__head,
  .shop-hint,
  .shop-secure,
  .shop-or { display: none; }
  .shop-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.65rem;
  }
  .shop-summary h1 { font-size: 1.35rem; }
  .shop-price {
    margin: 0 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 0.35rem;
  }
  .shop-price strong { font-size: 1.35rem; }
  .shop-includes {
    flex: 1 1 100%;
    margin: 0.35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
  }
  .shop-includes li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .shop-includes li > span > span { display: none; }
  .shop-includes li::before {
    width: 14px;
    height: 14px;
    margin-top: 0;
    background-size: 11px 11px, auto;
  }
  .shop-field { margin-bottom: 0.5rem; }
  .shop-field label { margin-bottom: 0.25rem; }
  .shop-field input[type="email"] { padding: 0.7rem 0.8rem; }
  .shop-agree {
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    padding: 0.5rem 0.6rem;
  }
  .shop-agree label { font-size: 0.75rem; line-height: 1.3; gap: 0.45rem; }
  .shop-agree__note { font-size: 0.72rem; }
  .shop-pay-btn { padding: 0.78rem 1rem; }
  .shop-pay-btn--secondary { margin-top: 0.45rem; }
  .shop-status { margin-top: 0.35rem; font-size: 0.72rem; }
  .shop-footer { padding: 0.65rem 0.75rem; }
  .shop-overlay {
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }
  .shop-overlay__sheet {
    width: 100%;
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  .shop-topbar { padding: 0.55rem 0; }
  .shop-main { padding: 0.55rem 0; }
  .shop-lead { display: none; }
  .shop-note { display: none; }
  .shop-footer { padding: 0.55rem var(--shop-gutter); }
}
