/* Anna Software — single consolidated stylesheet (2026 redesign) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #030712;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent2: #a78bfa;
  --lime: #4ade80;
  --border: rgba(148, 163, 184, 0.25);
  --radius: 20px;
  --font: "Sora", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --shine: linear-gradient(120deg, #38bdf8, #a78bfa, #f472b6);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  padding-top: 76px;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mono {
  font-family: ui-monospace, monospace;
}

.small {
  font-size: 0.85rem;
}

.muted {
  color: var(--muted);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  z-index: 0;
}

.orb-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: floaty 18s ease-in-out infinite;
}

.orb-1 {
  width: min(40vw, 480px);
  height: min(40vw, 480px);
  background: #1d4ed8;
  top: -8%;
  left: -5%;
}
.orb-2 {
  width: min(35vw, 420px);
  height: min(35vw, 420px);
  background: #7c3aed;
  top: 30%;
  right: -10%;
  animation-delay: -4s;
}
.orb-3 {
  width: min(32vw, 360px);
  height: min(32vw, 360px);
  background: #0ea5e9;
  bottom: -5%;
  left: 25%;
  animation-delay: -8s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.05);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--p, 0) * 1%);
  z-index: 3000;
  background: var(--shine);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
  transition: width 0.15s ease-out;
}

/* ========== Nav ========== */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-glass {
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-logo-mark__media {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  border-radius: 4px;
}

/* Global `img { max-width: 100% }` breaks wide SVGs inside the flex navbar */
.nav-logo-mark__img,
.nav-logo-mark img {
  height: 52px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.nav-logo-mark__video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122%;
  height: 122%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  /* MP4 on black: screen knocks black to "transparent" vs the navbar. WebM+alpha uses .--alpha (normal blend). */
  mix-blend-mode: screen;
  /* slight delay so the SVG fades out first, then the video eases in (crossfade overlap) */
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
  will-change: opacity;
}

.nav-logo-mark__video--alpha {
  mix-blend-mode: normal;
}

.nav-logo-mark:hover .nav-logo-mark__img,
.nav-logo-mark:focus-visible .nav-logo-mark__img {
  opacity: 0;
  /* on enter, fade the SVG out a touch faster so the video peeks through gracefully */
  transition-duration: 0.55s;
}

.nav-logo-mark:hover .nav-logo-mark__video,
.nav-logo-mark:focus-visible .nav-logo-mark__video {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
}

.nav-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 0 10px 0 4px;
  margin-inline-end: 2px;
  border-inline-end: 1px solid rgba(148, 163, 184, 0.28);
  line-height: 1.2;
}

.nav-user-badge {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.95);
}

.nav-user-name {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.82);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link--current {
  color: var(--accent);
  border-bottom-color: rgba(56, 189, 248, 0.65);
}

.navbar--compact .nav-link {
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  body {
    padding-top: 64px;
  }

  header.navbar {
    height: 64px;
    padding-inline: 16px;
  }

  .nav-logo-mark img {
    height: 42px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset-inline: 0;
    top: 64px;
    background: rgba(3, 7, 18, 0.96);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
    display: none;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }

  .nav-links::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-user-meta {
    align-items: flex-start;
    border-inline-end: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0 0 12px;
    margin: 0 0 4px;
    width: 100%;
  }
}
/* ========== Hero ========== */
.hero-v2 {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 10vw, 120px) 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-v2__inner {
  max-width: 920px;
}

/* ========== Hero background video (plays once, fades to reveal static bg) ========== */
.hero-bg-video-wrap {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.1s ease-out;
}

.hero-bg-video-wrap.is-fading {
  opacity: 0;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* extra scale prevents the blur fringe from showing the page edges */
  transform: scale(1.04);
  filter: blur(6px) saturate(112%);
}

/* Soft darkening veil so foreground text stays readable while the reel plays */
.hero-bg-video__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.82) 90%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title__line {
  display: block;
}

.hero-title__accent {
  display: block;
  background: var(--shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== Magnetic letter shatter ========== */
.shatter-word {
  display: inline-block;
  white-space: nowrap;
}

.shatter-letter {
  display: inline-block;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}

/* Each letter inside the gradient accent needs its own clipped gradient,
   because background-clip: text doesn't propagate through inline-block children. */
.hero-title__accent .shatter-letter {
  background: var(--shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46rem;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-metrics dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-metrics dd {
  margin-top: 6px;
  font-weight: 600;
  font-size: 1rem;
}

/* ========== Sections ========== */
.section-v2 {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 100px) 24px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.bento {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.bento-card {
  grid-column: span 6;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.bento-card--hero {
  grid-column: span 8;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card--wide {
  grid-column: span 12;
}

.video-shell {
  position: relative;
  min-height: 280px;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
  display: grid;
  place-items: center;
}

.video-shell--sm {
  min-height: 140px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.video-placeholder-label {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 12px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.video-placeholder-wave {
  position: absolute;
  inset: auto 10% 14%;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    opacity: 0.35;
    transform: scaleX(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.35;
    transform: scaleX(0.7);
  }
}

.bento-card__meta {
  padding: 22px;
}

.bento-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.pull-quote {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  font-style: italic;
  color: rgba(248, 250, 252, 0.92);
  padding: 12px 8px;
}

.section-marquee {
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--border);
}

.marquee {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }
}

.product-teasers {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-teaser {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
}

.product-teaser h3 {
  margin-bottom: 10px;
}

.product-teaser p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.contact-split {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

.contact-card-v2 {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--hero,
  .bento-card--wide {
    grid-column: span 12;
  }

  .contact-split {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.65);
  color: var(--text);
  font-size: 1rem;
}

.contact-status {
  margin-top: 14px;
  font-size: 0.92rem;
}

.contact-status--success {
  color: var(--lime);
}
.contact-status--error {
  color: #fb923c;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.28);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* ========== Footer ========== */
.site-footer-v2 {
  position: relative;
  z-index: 1;
  padding: 56px 24px 28px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.85);
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-logo-mark {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-pay-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.pay-badge-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pay-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
  color: rgba(248, 250, 252, 0.88);
}

.pay-badge--stripe {
  border-color: rgba(99, 91, 255, 0.45);
}
.pay-badge--gpay {
  border-color: rgba(66, 133, 244, 0.45);
}
.pay-badge--apple {
  border-color: rgba(250, 250, 250, 0.35);
}
.pay-badge--mc {
  border-color: rgba(235, 0, 27, 0.35);
}
.pay-badge--visa {
  border-color: rgba(26, 31, 113, 0.55);
}

.footer-pay-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.footer-bottom {
  max-width: 1120px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer--minimal {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}

.site-footer--minimal .footer-bottom {
  margin: 0 auto;
  max-width: 960px;
  padding-top: 0;
  border-top: none;
  justify-content: center;
  gap: 24px;
}

/* ========== Shop ========== */
.shop-main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.shop-main--narrow {
  max-width: 560px;
}

.shop-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-top: 8px;
}

.shop-hero .lead {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.shop-note {
  margin-top: 18px;
  color: var(--muted);
}

.shop-promo-banner {
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.22);
  color: rgba(254, 202, 202, 0.95);
  font-size: 0.9rem;
  line-height: 1.45;
}

.field-shop-promo {
  margin-top: 12px;
  display: block;
}

.field-shop-promo span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-shop-promo input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.field-shop-promo input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.product-card form .field-shop-promo + .btn {
  margin-top: 16px;
}

/* Empty hover target — promo text is fetched after hover (see promo-reveal.php). */
.promo-magnet {
  display: inline-block;
  width: 11px;
  height: 1.05em;
  margin: 0 1px;
  vertical-align: -0.06em;
  opacity: 0;
  cursor: help;
  pointer-events: auto;
  border-radius: 4px;
  transition: opacity 0.22s ease, background-color 0.22s ease;
}

.promo-magnet:hover,
.promo-magnet:focus-visible {
  opacity: 0.18;
  background: rgba(56, 189, 248, 0.1);
}

/* Filled after successful fetch — stays visible and selectable for checkout copy-paste. */
.promo-hidden.is-revealed {
  position: relative;
  display: inline-block;
  padding: 0 5px;
  margin: 0 2px;
  border-radius: 6px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.32);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  cursor: text;
  user-select: text;
  animation: promoRevealPop 0.55s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}

.promo-hidden.is-revealed::selection {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.22);
}

@keyframes promoRevealPop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.link-like {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
}

.product-card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-price {
  margin: 18px 0;
  font-weight: 700;
  font-size: 1.15rem;
}

.product-coming-soon-note {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.shop-empty {
  color: var(--muted);
  padding: 40px 0;
}

.shop-empty code {
  color: var(--accent);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.orders-table th,
.orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.orders-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pay-result {
  text-align: center;
  padding: 48px 0;
}

.pay-result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: var(--lime);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
}

.pay-result h1 {
  font-size: 1.85rem;
}

.pay-result .lead {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.pay-result .lead a {
  color: var(--accent);
  text-decoration: underline;
}

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition:
    opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

main,
.site-footer,
.site-footer-v2 {
  position: relative;
  z-index: 1;
}

body.auth-open {
  overflow: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  z-index: 5000;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 5010;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auth-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.auth-backdrop[hidden],
.auth-modal[hidden],
.auth-panel[hidden] {
  display: none !important;
}

.auth-modal-inner {
  position: relative;
  width: min(440px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.97), rgba(3, 7, 18, 0.98));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  padding: 28px 26px 26px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.auth-modal-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #f8fafc;
}

.auth-modal-lead {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-label input {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 11px 12px;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  background: rgba(2, 6, 23, 0.85);
  color: var(--text);
}

.auth-msg {
  min-height: 1.25rem;
  font-size: 0.88rem;
  color: #fb923c;
}

.auth-msg--success {
  color: #86efac;
}

.auth-switch {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.auth-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-resend {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.portal-main {
  max-width: 900px;
  margin: 48px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.portal-hero {
  padding: 40px 36px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.portal-email {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.portal-banner {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.portal-banner--success {
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(22, 101, 52, 0.25);
  color: #bbf7d0;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.portal-card {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.portal-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.auth-standalone-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
}

.auth-modal-panel--solo {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  padding: 28px 26px;
}
